// for Valoreti check store if(typeof(store_id) == "undefined") { console.log("cannot find store id"); } if (typeof (Builder) == "undefined") { window.Builder = { Config : {} }; } if (typeof (Builder.Version) == "undefined") { window.Builder.Version = { Ver : "1.0.9104.38044" }; } var tt = getCookie("t");//localStorage.getItem("t"); if((tt == null || tt == "" || typeof tt == "undefined") && location.href.toLowerCase().indexOf('isdesignmode') > -1 ) { // redirect in case of not sign in var rightUrl = location.href.replace(/isdesignmode=true/g,''); if(rightUrl.slice(-1) == '?') { // remove ? if last char rightUrl = rightUrl.slice(0, -1);; } location.href = rightUrl; } Builder.Config = { // application root url AppRootUrl: "https://cdnw.wobily.com/prod/scripts/website-builder-2/", ThemesRootUrl: "https://cdnw.wobily.com/prod/scripts/website-builder-2/", EnableJsLogging: false, ResourcesPath: "resources/", MediaGalleryAPiUrl: "https://app.wobily.com/Media/Index/", MediaUrl: "https://cdnw.wobily.com/prod/", ApiUrl: 'https://api.wobily.com/api/Site/', StoresUrl: 'https://stores.wobily.com/', ImagesUrl: 'https://cdna.wobily.com/images', SaveWidgetsActionUrl : 'https://api.wobily.com/api/Site/SaveWidgetSettings?storeid=' + store_id +'&token='+tt, SaveSiteUrl : "https://api.wobily.com/api/Site/SaveSite?storeid=" + store_id + "&page_type=" + cc_type + "&page_oid=" + cc_oid +'&token='+tt, SaveSiteDesignUrl : 'https://api.wobily.com/api/Site/SaveSiteDesign?storeid=' + store_id +'&token='+tt, UploadFileUrl : 'https://api.wobily.com/api/Site/UploadImage?storeid=' + store_id +'&token='+tt, GetPageSettingsUrl : 'https://api.wobily.com/api/Site/GetPage?token='+tt+'&pageid=', SavePageSettingsUrl : 'https://api.wobily.com/api/Site/SaveSitePage?token='+tt+'&pageid=', IsPagePermalinkExistsUrl : 'https://api.wobily.com/api/Site/GetIsPagePermalinkExists?storeid='+storeid+'&token='+tt, DeletePageUrl : 'https://api.wobily.com/api/Site/DelSitePage' +'?token='+tt, DuplicatePageUrl : 'https://api.wobily.com/api/Site/DuplicateSitePage' +'?token='+tt, GetSitePagesUrl : 'https://api.wobily.com/api/Site/GetSitePages?storeid=' + store_id +'&token='+tt, SaveSiteSettings : 'https://api.wobily.com/api/Site/SaveSiteSettings?storeid=' + store_id +'&token='+tt, GetSiteSettings : 'https://api.wobily.com/api/Site/GetSiteSettings?storeid=' + store_id +'&token='+tt, MediaGallery : 'https://app.wobily.com/media/index?folder=' + window.cc_page_info.enc_account_id +'&token='+tt, SaveSiteJsCss : 'https://api.wobily.com/api/Site/SaveSiteJsCss?storeid=' + store_id +'&token='+tt, GetSiteJsCss : 'https://api.wobily.com/api/Site/GetSiteJsCss?storeid=' + store_id +'&token='+tt, GetSiteNavigationUrl : 'https://api.wobily.com/SiteHtml/GetSiteNavigation?storeid=' + store_id +'&token='+tt, SaveNavigationTreeUrl : 'https://api.wobily.com/api/Site/SaveNavigationTree?storeid=' + store_id +'&token='+tt, DialogLinksUrl : 'https://api.wobily.com/SiteHtml/DialogLinks?storeid=' + store_id +'&token='+tt, SaveObjectSettingsUrl : 'https://api.wobily.com/api/Site/SaveObjectSettings?storeid=' + store_id +'&token='+tt, SaveObjectSettingsByNameUrl : 'https://api.wobily.com/api/Site/SaveObjectSettingsByName?storeid=' + store_id +'&token='+tt, GetObjectSettingsUrl : 'https://api.wobily.com/api/Site/GetObjectSettings?storeid=' + store_id +'&token='+tt, CdnURL: 'https://cdna.wobily.com/', GetStoreCategoriesUrl: 'https://api.wobily.com/api/Site/GetStoreCategories?storeid=' + store_id +'&token='+tt, GetSubCategoriesOfCatgoryUrl: 'https://api.wobily.com/api/Site/GetSubCategoriesOfCatgory?&token='+tt, DialogPinProductsUrl : 'https://api.wobily.com/SiteHtml/DialogPinProducts?storeid=' + store_id +'&token='+tt, DialogFontAwesomeUrl : 'https://api.wobily.com/SiteHtml/DialogFontAwesome?storeid=' + store_id +'&token='+tt, GetLessThemeUrl : 'https://api.wobily.com/SiteHtml/GetTheme?storeid=' + store_id +'&token='+tt, GetLessThemeUrlVersion2 : 'https://api.wobily.com/SiteHtml/GetThemeVersion2?storeid=' + store_id +'&token='+tt, GetCustomVariables : 'https://api.wobily.com/Api/Site/GetCustomVariables?storeid=' + store_id +'&token='+tt, DefaultPalleteName : 'ccGold', WebsiteFontLinkId : "cc-website-font", ResetSiteDesignUrl : 'https://api.wobily.com/api/Site/ResetSiteDesign?storeid=' + store_id +'&token='+tt, GetObjectSettingsByNameUrl : 'https://api.wobily.com/api/Site/GetObjectSettingsByName?type=4&storeid=' + store_id +'&token='+tt, GetMenuPartialHTMLUrl : 'https://stores.wobily.com/Tab/SiteMenu?store_id='+ store_id +'', IsCSSJsCompressed : true, SaveSitePartialUrl : "https://api.wobily.com/api/Site/SaveSitePartial?storeid=" + store_id + "&token=" +tt, GetSiteThemeColorPalletes : "https://api.wobily.com/api/Site/GetSiteThemeColorPalletes?storeid=" + store_id + "&token=" +tt, SaveSiteThemeColorPalletes : "https://api.wobily.com/api/Site/SaveSiteThemeColorPalletes?storeid=" + store_id + "&token=" +tt, GetSiteSelectedPallete : "https://api.wobily.com/api/Site/GetSiteSelectedPallete?storeid=" + store_id + "&token=" +tt, GetSiteSelectedFonts : "https://api.wobily.com/api/Site/GetSiteSelectedFonts?storeid=" + store_id + "&token=" +tt, SaveSiteDefaultPageHtml : "https://api.wobily.com/api/Site/SaveSiteDefaultPageHtml?storeid=" + store_id + "&token=" +tt, IsFeatureValidUrl : "https://api.wobily.com/api/Site/IsFeatureValid?storeid=" + store_id + "&token=" +tt, CheckCreditCardUrl : "https://api.wobily.com/api/Site/CheckCreditCard?storeid=" + store_id + "&token=" +tt, BuyBigStockImageUrl : "https://api.wobily.com/api/Site/BuyBigStockImage?storeid=" + store_id + "&token=" +tt, BigStockAccountId : "245627", ChargeSettingsPageUrl : "https://app.wobily.com/Canvas/AccountDashboard/AccountUpgrade", SiteInformationUrl : "https://api.wobily.com/api/Site/GetSiteInformation?storeid=" + store_id + "&token=" +tt, MediaConnectLinksAppUrl: "https://app.wobily.com/Canvas/Connect/", IsNewBuilderUrl : "https://api.wobily.com/api/Site/GetIsNewBuilder?storeid=" + store_id + "&token=" +tt, SaveObjectSettingsEnterPopupHtml : 'https://api.wobily.com/api/Site/SaveObjectSettingsEnterPopupHtml?storeid=' + store_id +'&token='+tt, GetObjectSettingsEnterPopupHtml : 'https://api.wobily.com/api/Site/GetObjectSettingsEnterPopupHtml?storeid=' + store_id +'&token='+tt, GetSiteSeoCheckerUrl : 'https://api.wobily.com/SiteHtml/GetSiteSeoChecker?storeid=' + store_id +'&token='+tt, IsSeoErrorUrl : 'https://api.wobily.com/SiteHtml/GetIsSeoError?storeid=' + store_id +'&token='+tt } Builder.Config.Pallets = [ { name : 'ccGold', id : 8, pallete : ['#ffffff', '#292d30', '#967e4b', '#f0f0f0']}, { name : 'ccPink', id : 1, pallete : ['#fff', '#efefef', '#e65c6c', '#383838']}, { name : 'ccGreen', id : 2, pallete : ['#fff', '#252a2f', '#409346', '#383838']}, { name : 'ccBrown', id : 3, pallete : ['#fff', '#fff', '#683f2a', '#212121']}, { name : 'ccYellowGray', id : 4, pallete : ['#fff', '#2f353b', '#252a2f', '#ffb400']} , { name : 'ccBlackDarkRed', id : 5, pallete : ['#000', '#191919', '#ff434a', '#838383']} , { name : 'ccBGrayBlack', id : 7, pallete : ['#f5f5f5', '#ececec', '#313538', '#000000']} ];