PageSourceSearch

https://www.bezeq.co.il/Scripts/Bezeq/newSite/mainNewSiteStore.js?v=3

js bezeq.co.il collected 2026-09-24 09:54:37 UTC 8,469 bytes, 265 lines download raw bytes

1var videoClicked;
2
3$(document).ready(function () {
4    
5    $("a[rel^='prettyPhoto']").click(function (e) {
6        videoClicked = $(this);
7    });
8
9    $("a[rel^='prettyPhoto']").prettyPhoto({
10        theme: 'dark_rounded',
11        default_width: '90%',
12        default_height: '90%',
13        social_tools: '',
14        deeplinking: false,
15        autoplay: true,
16
17        changepicturecallback: function (event) {
18            //alert("open");
19            
20            $(".ppt").focus();            
21            //$("#pp_full_res iframe").focus();
22
23        },
24
25        callback: function () {
26            videoClicked.focus();
27            //alert("close");
28        }
29    });
30
31
32
33    $(".menu_icon_fullscreen_store").click(function (e) {
34
35        $(".bnhp_main_menu_store, #bezeq_search_store").hide();
36        $("body").removeClass("fullscreenmenu");
37
38        $(".bnhp_main_menu_store, #bezeq_search_store").fadeIn("slow");
39    });
40
41    var keyboardKeys = new keyCodes(); // keycodes needed for event handlers 
42    // .each() is used to create a closure to store a cache of the query.
43    $('.supportTabTitle').each(function () {
44        var $content = $(this).next();
45        $(this).click(function (e) {
46            e.preventDefault();
47            var _this = $(this).closest('.supportTab_item');
48            _isMobile = $content.closest('.supportTabs').css("float") == "none";
49            if (_isMobile) {
50                $(".selectedFirst").removeClass("selectedFirst");
51            }
52
53            if (!_this.hasClass("selected") && !_this.hasClass("selectedFirst")) {
54
55                //if mobile
56                if (_isMobile) {
57                    $(".supportTab_item.selected .supportTabContent").slideUp();
58                    $content.not(':animated').slideToggle(function () {
59                    });
60                }
61
62                else {
63                    $(".supportTabContent").hide();
64                    $content.closest('.supportTabs').css("margin-bottom", 0);
65                    $content.show();
66                    if ($content.outerHeight() > 600) {
67                        $content.closest('.supportTabs').css("margin-bottom", $content.outerHeight() - 600);
68                    }
69                }
70                $(".selectedFirst").removeClass("selectedFirst");
71                $(".supportTab_item.selected, .supportTabContent.selected").removeClass("selected");
72                _this.addClass("selected");
73
74                $(".supportTabTitle").attr('aria-selected', 'false').attr('tabindex', '-1');
75                $(".supportTabContent").attr('aria-hidden', 'true');
76
77                $(this).attr('tabindex', '0');
78                $(this).attr('aria-selected', function (i, attr) {
79                    return attr == 'true' ? 'false' : 'true'
80                });
81
82                $content.attr('aria-hidden', function (i, attr) {
83                    return attr == 'true' ? 'false' : 'true'
84                });
85            }
86
87        });
88
89        var firstTabSupport = $(".supportTabContent.selectedFirst");
90
91        if (firstTabSupport.outerHeight() > 600) {
92            firstTabSupport.closest('.supportTabs').css("margin-bottom", firstTabSupport.outerHeight() - 600);
93        }
94
95        $(this).keydown(function (e) {
96            var _this = $(this);
97            var code = e.keyCode || e.which;
98            if (code == 13) {
99                
100                _this.click();
101                e.preventDefault();
102                return
103            }
104            
105            var curNdx = _this.data("index");
106            var maxNdx = $(".supportTabs li:last-child .supportTabTitle").data("index");
107
108            switch (code) {
109                case keyboardKeys.left:
110                case keyboardKeys.up: {
111
112                    if (curNdx == 1) {
113                        //_this.closest(".supportTabs").find("li:last-child .supportTabTitle").click();
114                        $('.supportTabTitle[data-index="' + maxNdx + '"]').focus().click();
115                    }
116                    else {
117                        curNdx--;
118                        $('.supportTabTitle[data-index="' + curNdx + '"]').focus().click();
119                    }
120
121                    e.stopPropagation();
122                    return false;
123                }
124                case keyboardKeys.right:
125                case keyboardKeys.down: {
126
127                    if (curNdx == maxNdx) {
128                        $('.supportTabTitle[data-index="' + 1 + '"]').focus().click();
129                    }
130                    else {
131                        curNdx++;
132                        $('.supportTabTitle[data-index="' + curNdx + '"]').focus().click();
133                    }
134
135                    e.stopPropagation();
136                    return false;
137                }
138                case keyboardKeys.home: {
139                    $('.supportTabTitle[data-index="' + 1 + '"]').focus().click();
140
141                    e.stopPropagation();
142                    return false;
143                }
144                case keyboardKeys.end: {
145                    $('.supportTabTitle[data-index="' + maxNdx + '"]').focus().click();
146
147                    e.stopPropagation();
148                    return false;
149                }
150            }
151        });
152    });
153
154    $(".more_qa_link").click(function () {
155        var qaList = $(this).closest(".questionList_container").find(".hideAll");
156        qaList.removeClass("hideAll").addClass("showAll");
157        $(this).addClass("hide");
158
159
160        $(".questionList .questionList_item:nth-child(n + 5)").slideDown(function (index) {
161            //console.log(index++);
162        }).promise().done(function () {
163            $(".questionList .questionList_item:nth-child(5) h3").focus();
164        });
165    });
166
167    $('.contourField.textfield input').each(toggleFloating);
168
169    $('.contourField.textfield input').focus(focusInput);
170
171    //already called from mainpage.js
172    //var $successMessage = $(".contourMessageOnSubmit");
173    //if ($successMessage.exists()) {
174    //    var cleanUrl = location.protocol + '//' + location.host + location.pathname;
175    //    ga('send', 'event', { eventCategory: 'LeadForm', eventAction: 'Submit', eventLabel: cleanUrl.toLowerCase(), eventValue: 1 });
176
177    //    dataLayer.push({
178    //        'event': 'lead_form_success'
179    //    });
180    //}   
181
182
183    function focusInput() {
184        var me = this;
185        $(me).parent().addClass('static-label');
186    }
187
188    $('.contourField.textfield input').blur(toggleFloating);
189
190    function toggleFloating() {
191        var me = this;
192        if ($(me).val().length > 0) {
193            $(me).parent().addClass('static-label');
194        } else {
195            $(me).parent().removeClass('static-label');
196        }
197    }
198
199    // New Product Pages
200    //$(".product2019VideoWithContentTextTellMore").click(function (e) {
201    //    $(this).closest(".product2019VideoWithContent").next(".videowithcontentMoreHtml").slideToggle(function () {
202
203    //    });
204    //});
205
206
207    //recommendedSlider = new Swiper('.videoSliderContainerSlider', {
208    //    loop: false,
209    //    speed: 400,
210    //    observer: true,
211    //    observeParents: true,
212    //    slidesPerView: 'auto',
213    //    preventClicksPropagation: true,
214    //    watchOverflow: true,
215    //    //,
216    //    //spaceBetween: 30,
217    //    //centeredSlides: true,
218    //    //preventClicks: false,
219    //    navigation: {
220    //        nextEl: '.swiper-button-next',
221    //        prevEl: '.swiper-button-prev',
222    //    }
223    //    , pagination: {
224    //        el: '.swiper-pagination',
225    //        clickable: true
226    //    }
227    //});
228
229});
230
231
232// Validators
233
234function isValidCellPhone(phoneNumber) {
235    var regex = /^[0-9]{10}$/;
236
237    var checkPhone = regex.test(phoneNumber);
238
239    if (checkPhone) {
240        return true;
241    }
242
243    return false;
244}
245
246// keyCodes() is an object to contain keycodes needed for the application 
247// 
248function keyCodes() {
249    // Define values for keycodes 
250    this.tab = 9;
251    this.enter = 13;
252    this.esc = 27;
253
254    this.space = 32;
255    this.pageup = 33;
256    this.pagedown = 34;
257    this.end = 35;
258    this.home = 36;
259
260    this.left = 37;
261    this.up = 38;
262    this.right = 39;
263    this.down = 40;
264
265} // end keyCodes 

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.