1 2 3 4var isSystemDomain = "false"; 5 6 7 function fbs_click(u, t) { 8 if (!u) { 9 u = 'https://www.tranquilo.co.il'; 10 }; 11 12 if (!t) { 13 t = '××¨× ×§×××'; 14 }; 15 window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,width=626,height=436'); 16 return false; 17} 18 19var defaultShipingOption =0; 20var store_dir = "rtl"; 21var is_cycle = true; 22var isPager = false; 23var facebook_leads_pixel_id = ""; 24var google_leads_pixel_id = ""; 25var siteVersion = "2"; 26var palleteName = "-"; 27var ccshopType = "default"; 28 29 30 31 32 33 34 35var appid = "786093511493355"; 36var appUrl = "https://stores.wobily.com/"; 37var apiUrl = "https://api.wobily.com/"; 38var protocol = location.protocol.replace(':', ''); 39var lang = null; 40var isHideFirststep = false; 41var isSelfDelivery = false; 42var callbackUrl = null; 43var isSelfCheckout = false; 44 45var storeBaseUrl = "https://www.tranquilo.co.il"; 46 47 window.fbAsyncInit = function () { 48 49 FB.init({ 50 appId: '', // App ID 51 channelUrl: 'http://www.tranquilo.co.il/' + 'public/FbChannel', // Channel File 52 status: true, // check login status 53 cookie: true, // enable cookies to allow the server to access the session 54 xfbml: true, // parse XFBML 55 version : 'v2.3' 56 }); 57 58 $(document).ready(function () { 59 60 if (typeof (RenderAll) == "undefined") { 61 return false; 62 } 63 64 RenderAll(); 65 66 67 setWinSize(); 68 69 70 if (typeof (onFBReadyScroll) != "undefined") { 71 onFBReadyScroll.call(this, FB); 72 }; 73 74 if (typeof (onFBReadyMegalike) != "undefined") { 75 onFBReadyMegalike.call(this, FB); 76 }; 77 78 if (typeof (onFBReadyLikeStoreWindow) != "undefined") { 79 onFBReadyLikeStoreWindow.call(this, FB); 80 }; 81 82 83 cs.DefaultSideHeight = $(".leftside").outerHeight(); 84 85 }) 86 87 if (typeof (onFBReady) != "undefined") { 88 onFBReady.call(this, FB); 89 }; 90
91 //FB.Event.subscribe('comment.create', function (response) { 92 93 // var commentQuery = FB.Data.query("SELECT text, fromid FROM comment WHERE post_fbid='" + response.commentID + 94 // "' AND object_id IN (SELECT comments_fbid FROM link_stat WHERE url='" + response.href + "')"); 95 // var userQuery = FB.Data.query("SELECT name FROM user WHERE uid in (select fromid from {0})", commentQuery); 96 // FB.Data.waitOn([commentQuery, userQuery], function () { 97 // if (commentQuery && commentQuery.value.length > 0) { 98 // var comment_fbid = commentQuery.value[0].fromid; 99 // CallAjax('/tab/SendCommentNotification/', { id: comment_fbid, href: response.href }, null, null, function () { 100 // }, function () { }, "post"); 101 // } 102 // }); 103 104 //}); 105 106 FB.Event.subscribe('comment.create', 107 function (response) { 108 var source = response.href; 109 var prodid = source.substring(source.lastIndexOf("=") + 1); 110 111 cs.UpdateProductStatistic(prodid, 3, true); 112 CallAjax('/tab/SendCommentNotification/', { id: prodid }, null, null, function () { 113 }, function () { }, "post"); 114 } 115 ); 116 117 FB.Event.subscribe('edge.create', function (response) { 118 var source = response.href; 119 var prodid = source.substring(source.lastIndexOf("=") + 1); 120 cs.UpdateProductStatistic(prodid, 2, true); 121 }); 122 123 FB.Event.subscribe('message.send', 124 function (response) { 125 var source = response.href; 126 var prodid = source.substring(source.lastIndexOf("=")) ; 127 128 cs.UpdateProductStatistic(prodid, 4, true); 129 } 130 ); 131 132 133}; 134 135 136 137 138 139 140 function onRender() { 141 142 } 143 144 145 var currencySymbol = 'âª'; 146 147 function onFBReadyScroll() { 148 149 150 151 } 152 153 var arrIds = []; 154 var haystack = []; 155 var objects = []; 156 157 function attachSuggest() { 158 159 $(".entry_form").autocomplete({ 160 source: function (request, response) { 161 var matcher = new RegExp($.ui.autocomplete.escapeRegex(request.term), "i"); 162 response($.grep(haystack, function (item) { 163 return matcher.test(item); 164 })); 165 }, 166 select: function (event, ui) { 167 onSuggestEnter(ui.item.value); 168 }, 169 position: { 170 my: store_dir == "rtl" ? "left top" : "right top", 171 at: store_dir == "rtl" ? "left bottom" : "right bottom" 172 } 173 }); 174 175 } 176 177 178 179 function onSuggestEnter(val) { 180 var index = jQuery.inArray(val, haystack); 181 var link = objects[index]; 182 var id = arrIds[index]; 183 184 var API = $("#mobile-menu").data("mmenu"); 185 if(API) { 186 API.close(); 187 } 188 189 if(!cc_ajax.isLoadPagesWithAjax) { 190 window.location = storeBaseUrl + "/p/" + link.Link; 191 } 192 else { 193 cc_ajax.loadPage(storeBaseUrl + "/p/" + link.Link); 194 } 195 } 196 197 var istorewinlike = false; 198 199 200 201 202 203 204 205 206 207 208// action dispatcher js. 209 210 211 212 213 214 215 if(typeof(cc_page_info) == "undefined") { 216 window.cc_page_info = {}; 217 } 218 219 220 221 window.cc_page_info.cart_url='https://www.tranquilo.co.il/Cart'; 222 window.cc_page_info.cart_CustomerFieldsPage_url='https://www.tranquilo.co.il/CustomerFieldsPage'; 223 224 window.cc_page_info.browser_root_url = "https://www.tranquilo.co.il"; 225 window.cc_page_info.store_is_rtl = true; 226 window.cc_page_info.store_lang = 'he'; 227 window.cc_page_info.date_format = 'dd/MM/yyyy'; 228 window.cc_page_info.account_lang = 'he'; 229 window.cc_page_info.account_culture_name = 'he-IL'; 230 window.cc_page_info.enc_account_id = 'mmS-TYu5Iv4%3d'; 231 window.cc_page_info.is_design_mode = false; 232 window.cc_page_info.store_currency_letters = "ILS"; 233 window.cc_page_info.store_currency_symbol = 'âª'; 234 window.cc_page_info.store_current_lang_id = '2'; 235 window.cc_page_info.ext_url = 'https://ext.wobily.com/' 236 window.cc_page_info.store_id = '5134'; 237 window.cc_page_info.enc_store_id = '7Yn7Nz_f31A='; 238 window.cc_page_info.getParsedInfo = function(url) { 239 240 if(!url) { 241 url = window.cc_page_info.url; 242 } 243 244 var objType = ""; 245 var permalink = ""; 246 var fullrelativeLink = ""; 247 248 if (url.lastIndexOf("/p/") > -1) { 249 objType = "p"; 250 permalink = url.substring(url.lastIndexOf("/p/") + "/p/".length); 251 fullrelativeLink = url.substring(url.lastIndexOf("/p/")); 252 } else if (url.lastIndexOf("/c/") > -1) { 253 objType = "c"; 254 permalink = url.substring(url.lastIndexOf("/c/") + "/c/".length); 255 fullrelativeLink = url.substring(url.lastIndexOf("/c/")); 256 } else if (url.lastIndexOf("/sc/") > -1) { 257 objType = "sc"; 258 permalink = url.substring(url.lastIndexOf("/sc/") + "/sc/".length); 259 fullrelativeLink = url.substring(url.lastIndexOf("/sc/")); 260 } else if (url.lastIndexOf("/page/") > -1) { 261 objType = "page"; 262 permalink = url.substring(url.lastIndexOf("/page/") + "/page/".length); 263 fullrelativeLink = url.substring(url.lastIndexOf("/page/")); 264 } 265 266 267 return { objType : objType, permalink : permalink, fullrelativeLink : fullrelativeLink }; 268 269 } 270 271 272 273 274var cc_oid = -3; 275var cc_type="category"; 276
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.