PageSourceSearch

https://www.greece-islands.co.il/js/scripts.js?v=?8:16:35%20PM1

js greece-islands.co.il collected 2026-10-02 08:11:26 UTC 20,069 bytes, 463 lines download raw bytes

1// Empty JS for your own code to be here
2
3var paymentForm = '<form action="[URL]" style="background: #eee; display: table; padding: 15px; border-radius: 10px;color: red;"><input type="checkbox" onclick="if(this.checked){$(\'.mysubmitpayment[ix]\').removeClass(\'disabled\').removeAttr(\'disabled\').css({\'filter\':\'grayscale(0)\'})}else{$(\'.mysubmitpayment[ix]\').addClass(\'disabled\').attr({\'disabled\':\'disabled\'}).css({\'filter\':\'grayscale(1)\'})}" style="width: 20px; height: 20px; vertical-align: middle;"> אני מאשר שברצוני לבצע תשלום<br><br><input class="mysubmitpayment[ix] disabled" type="image" src="https://www.greece-islands.co.il/Pictures/2014621143508_158X58.png" style="vertical-align: middle;filter: grayscale(1);transition: all 2s ease 0s;" disabled="disabled"><img src="../../upload1/000Album/spay.jpg" alt="" width="122" height="54" style="vertical-align: middle; border: 3px solid #FFF; background: #fff;padding-top: 1px; height: 58px!important;"></form>';
4	$(".recomendi").load('/pages/java.html #div_1121');
5	var newElement = $('<div class="recommendation" style="border: 1px solid #ffffff;padding: 7px;width: 100%;max-width: 250px;font-size: 14px;line-height: 130%;color: #fff!important;text-align: center;background: #0d5eb0;border-radius: 5px;margin: 10px 0; min-height: 220px"><h5>ההמלצה היומית שלנו שמתחלפת כל יום</h5><hr></div>');
6	$(".recomendi").before(newElement);
7	$('body').find('.recommendation, #modalRecommend .modal-body').load('/recommendation.asp');	
8    $("#java_links").load("/getJavaLinks.asp");
9    $("#java_links_mobile").load("/getJavaLinks.asp");
10    $("#marquee3-container").load("/getJavaLinksMarquee.asp", function () {
11        $("#marquee3").marquee({
12            yScroll: "top"
13        });
14    });
15    $(".mega_menu_banner").each(function () {
16        $(this).load('/banners_200X164.asp');
17    });
18    $(".banners_120X60").load('/banners_120X60.asp?id=' + $('html').attr('id').replace('page-id-', ''));
19    $(".regi").load('/getJavaReg.asp');
20
21$(window).on("load", function (e) {
22	$('iframe').each(function(){
23		$(this).attr({'src': $(this).attr('data-src')});
24	});
25});
26
27$('iframe').each(function(){
28	$(this).attr({'data-src': $(this).attr('src')});
29	$(this).attr({'src': 'about:blank'});
30});
31
32$(document).ready(function () {
33	var secureScriptExist = false;
34	if ($('#secure-page').length) {
35			// Check if there is a <script> tag immediately after it
36			if ($('#secure-page').next('script').length) {
37				console.log('There is a <script> tag immediately after #secure-page.');
38				secureScriptExist = true;
39			} else {
40				console.log('No <script> tag immediately after #secure-page.');
41			}
42		} else {
43			console.log('#secure-page does not exist.');
44		}	
45	
46	
47    $('html#page-id-5054 #secure-page #secure-form').prepend('<p>עמוד זה לרשומים לשרותי הייעוץ או לרוכשי הספר המדריך למטיילים בצפון יוון ההררית - <a href="pm.html"><strong>למידע ורכישה</strong></a></p><p>אם את/ה רשומים לשירות, <a href="contact.html"><strong>צרו איתנו קשר</strong></a> לקבלת הסיסמא האישית.</p>');
48	$('#floating-contact-button').on("click", function(){window.open('/pages/contact.html')})
49	$('#floating-ai-button').on("click", function(){$('#aiToggle').click()})
50    //$("#java_links").load("/getJavaLinks.asp");
51    //$("#java_links_mobile").load("/getJavaLinks.asp");
52    $('a[href^="http"], .new-template-a a').attr('target', '_blank');
53    $('a[href="http://www.hellas.co.il/"]').attr({
54        "href": "/pages/contact.html"
55    }).html('<img src="/images/header/contact_btn.jpg" class="img-responsive" style="display:inline-block">');
56    if (!secureScriptExist && $("#page-id-584").length > 0) {
57        $("#secure-page").modal({
58            backdrop: 'static',
59            keyboard: false
60        });
61        $("div.container div.print-content").fadeOut();
62        $("#secure-form").submit(function (event) {
63            event.preventDefault();
64            ddata = $(this).serialize();
65            $.post('/check-secure.php?token=1', ddata, function (data) {
66                if (data == 'True' || data=='1') {
67                    $("#secure-page").modal("hide");
68                    $("div.container div.print-content").fadeIn();
69                } else {
70                    $(".secure-msg").html('הסיסמא שגויה, נא לנסות שוב בבקשה');
71                    setTimeout('$(".secure-msg").html("&nbsp;")', 3000)
72                }
73            })
74        });
75    }
76    if ($("#page-id-5087").length > 0) {
77        $("#secure-page").modal({
78            backdrop: 'static',
79            keyboard: false
80        });
81        $("div.container div.print-content").fadeOut();
82        $("#secure-form").submit(function (event) {
83            event.preventDefault();
84            var data = $(this).find('input').val();
85			var dte = new Date();
86			var curMo = dte.getMonth()+1;
87			var curYr = dte.getYear()-100;
88			var pwd = "greece" + curMo + curYr;
89			if (data == pwd) {
90				$("#secure-page").modal("hide");
91				$("div.container div.print-content").fadeIn();
92			} else {
93				$(".secure-msg").html('הסיסמא שגויה, נא לנסות שוב בבקשה');
94				setTimeout('$(".secure-msg").html("&nbsp;")', 3000)
95			}
96        });
97    }
98    if ($("#page-id-46700000000").length > 0) {
99        $("#secure-page").modal({
100            backdrop: 'static',
101            keyboard: false
102        });
103        $("div.container div.print-content").fadeOut();
104        $("#secure-form").submit(function (event) {
105            event.preventDefault();
106            ddata = $(this).serialize();
107            $.post('/check-secure.php?token=2', ddata, function (data) {
108                if (data == 'True' || data=='1') {
109                    $("#secure-page").modal("hide");
110                    $("div.container div.print-content").fadeIn();
111                } else {
112                    $(".secure-msg").html('הסיסמא שגויה, נא לנסות שוב בבקשה');
113                    setTimeout('$(".secure-msg").html("&nbsp;")', 3000)
114                }
115            })
116        });
117    }
118    $(".click-print").click(function () {
119        var elementId = $(this).attr('data-print').replace('#', '');
120		
121        var content = document.getElementById(elementId).outerHTML.replace('class="click-print"', 'class="click-print hidden"');
122        var documentTitle = document.title;
123        var openerUrl = window.location.href;
124
125        // Create a new window
126        var printWindow = window.open('', '_blank', 'width=800,height=600');
127
128        // Write the content to the new window
129        printWindow.document.write(`
130            <html>
131            <head>
132                <title>${documentTitle} - ${openerUrl}</title>
133                <style>
134                    body { font-family: Arial, sans-serif; direction: rtl; }
135                    h1 { margin: 0; }
136                    .header { text-align: center; margin-bottom: 20px;}
137                </style>
138            </head>
139            <body onload="window.print(); window.close();">
140                ${content}
141            </body>
142            </html>
143        `);
144        // Close the document to finish writing
145        printWindow.document.close();
146		
147		/*
148        $(printObj).printThis({
149            debug: false, //show the iframe for debugging
150            importCSS: false, //import page CSS
151            printContainer: true, //grab outer container as well as the contents of the selector
152            loadCSS: "/style/print.css", //path to additional css file
153            pageTitle: "", //add title to print page
154            removeInline: true //remove all inline styles from print elements
155        });
156		*/
157    });
158    $("#triton-btn").click(function () {
159        $("#triton-iframe").attr("src", "/triron/");
160        $("#modalTriton").modal('show')
161    });
162	/*
163    $("#marquee3-container").load("/getJavaLinksMarquee.asp", function () {
164        $("#marquee3").marquee({
165            yScroll: "top"
166        });
167    });
168    ////$(".recomendi").load('/getJavaRecomend.asp');
169    $(".recomendi").load('/pages/java.html #div_1121');
170
171    $(".mega_menu_banner").each(function () {
172        $(this).load('/banners_200X164.asp');
173    });
174	*/
175    $(".textfit").each(function (index, element) {
176        $(this).css({
177            'width': $(this).width() + 'px'
178        });
179        $(this).textfit('bestfit');
180    });
181    /*
182    	return $(".carousel.lazy").on("slide", function(ev) {
183    		alert();
184    		var lazy;
185    	});
186    	*/
187    $('#c-arouseMM').on('slide.bs.carousel', function (event) {
188        lazy = $(event.relatedTarget).find("img[data-src]");
189        lazy.attr("src", lazy.data('src'));
190        lazy.removeAttr("data-src");
191    });
192    /*	
193        $('.dropdown').on('show.bs.dropdown', function () {
194    		$('.modal-backdrop').removeClass('hidden');
195        });
196        $('.dropdown').on('hide.bs.dropdown', function () {
197    		$('.modal-backdrop').addClass('hidden');
198        });
199    */
200    var myTimeout;
201    $(".dropdown").hover(
202        function () {
203            var that = this;
204            myTimeout = setTimeout(function () {
205                $(that).addClass('open');
206                $('.dropdown-menu', that).not('.in .dropdown-menu').stop(true, true).fadeIn(500);
207                $('.modal-backdrop').removeClass('hidden');
208            }, 300)
209        },
210        function () {
211            var that = this;
212            clearTimeout(myTimeout);
213            $(that).removeClass('open');
214            $('.dropdown-menu', that).not('.in .dropdown-menu').stop(true, true).fadeOut();
215            $('.modal-backdrop').addClass('hidden');
216        }
217    );
218    /*
219    	$("#secure-page").dialog({modal: true, title: '<div style="text-align: right; width: 200px">כניסה למסלול טיול ביוון ללקוחות ייעוץ</div>'});
220    	$('body').css({'overflow': 'hidden'});
221    	$('.ui-widget-overlay').css({'background': '#016CB0'});
222    	$('.ui-dialog-titlebar-close').hide();
223    	$("#secure-form").submit(function(event){
224    		event.preventDefault();
225    		ddata = $(this).serialize();
226    		$.post('/check-secure.asp', ddata, function(data){
227    			if(data=='True'){
228    				$('body').css({'overflow': 'auto'});
229    				$("#secure-page").dialog('close')
230    			}else{
231    				$(".secure-msg").html('הסיסמא שגויה, נא לנסות שוב בבקשה');
232    				setTimeout('$(".secure-msg").html("&nbsp;")', 3000)
233    			}
234    		})
235    	});
236    */
237    $("#cse-search-form").html('<form method="post" action="/search.asp" style="margin: 3px 0 3px;"><input name="q" value="' + $('#search_q').text() + '"><input type="submit" value="חפש"></form>');
238    $("#location-filter").change(function (e) {
239        if ($(this).val() != '') {
240            $('#location-submit-step1').removeAttr('disabled').removeClass('disabled');
241        } else {
242            $('#location-submit-step1').attr('disabled', 'disabled').addClass('disabled');
243        }
244    });
245    $("html#page-id-812 #div_1097 img.voter").each(function (index, element) {
246        var btn = $('<button>');
247        var whichHeart = (localStorage.getItem('contest_id' + $(this).attr('id')) == null) ? 'glyphicon-heart-empty' : 'glyphicon-heart';
248        btn.addClass('btn btn-warning voter_btn');
249        btn.data('id', $(this).attr('id'));
250        btn.css({
251            'direction': 'ltr',
252            'margin-bottom': '-30px',
253            'margin-right': '-10px',
254            'position': 'relative'
255        });
256        btn.html('<span style="color: #fff!important;" id="voter_counter_' + $(this).attr('id') + '">0</span> <span class="glyphicon ' + whichHeart + '" id="voter_heart_' + $(this).attr('id') + '" style="color: #fff!important;font-family: \'Glyphicons Halflings\'!important;"></span> &nbsp;LIKES');
257        btn.click(function (e) {
258            var theId = $(this).data('id');
259            var currentCount = parseInt($('#voter_counter_' + $(this).data('id')).text());
260            if (localStorage.getItem('contest_id' + theId) == null) {
261                localStorage.setItem('contest_id' + theId, '1');
262                $('#voter_counter_' + theId).text(currentCount + 1);
263                $('#voter_heart_' + theId).removeClass('glyphicon-heart-empty').addClass('glyphicon-heart');
264                $.get('/contest_count.asp?vote=1&pic_id=' + theId);
265            } else {
266                alert('ניתן להצביע פעם אחת בלבד לכל תמונה,\nככל שתשתפו יותר חברים תגדילו את מספר ההצבעות!!!');
267            }
268        });
269        $(this).before(btn);
270        //$(this).before('<button class="" data-id="'+$(this).attr('id')+'" style="direction: ltr; margin-bottom: -30px; margin-right: -10px; position: relative;"><span style="color: #fff!important;" id="voter_counter_' + $(this).attr('id') + '">0</span> <span class="glyphicon glyphicon-heart-empty" style="color: #fff!important;font-family: \'Glyphicons Halflings\'!important;"></span> &nbsp;LIKES</button>');
271        $("#voter_counter_" + $(this).attr('id')).load('/contest_count.asp?pic_id=' + $(this).attr('id'));
272    });
273    //$()
274    $('.hagrala-form').submit(function (event) {
275        event.preventDefault();
276        var theForm = $(this)[0];
277        $.post('/activetrail.php', $(this).serialize(), function (data) {
278            alert('הנתונים נקלטו. תודה!\nמספרי הכרטיסים הזוכים יפורסמו בעמוד זה של אתר יוון והאיים,\nאז תמשיכו לעקוב.');
279            theForm.reset();
280        });
281    });
282    $('#accordion_mobile_menu .accordion-toggle').click(function (e) {
283        $('#accordion_mobile_menu .collapse').collapse('hide');
284    });
285
286
287    $('#accordion_mobile_menu').on('show.bs.collapse', function () {
288        $(this).addClass('active');
289    });
290
291    $('#accordion_mobile_menu').on('hide.bs.collapse', function () {
292        $(this).removeClass('active');
293    });
294
295    $('#mobile_menu .panel').click(function (e) {
296        $('#mobile_menu .collapse').collapse('hide');
297        $('.panel-heading').removeClass('active');
298        var that = $(this);
299        setTimeout(function () {
300            if ($(that).find('.collapsed').length < 1)
301                $(that).find('.panel-heading').addClass('active');
302        }, 100);
303    });
304
305
306    $('.panel-heading a').click(function () {
307        $('.panel-heading').removeClass('active');
308        if (!$(this).closest('.panel').find('.panel-collapse').hasClass('in'))
309            $(this).parents('.panel-heading').addClass('active');
310    });
311
312    /*
313    $('#mobile_menu .panel-body a').each(function () {
314        var href = $(this).attr('href');
315        var hrefHashed = href + '#scroll-to-content';
316        $(this).attr('href', hrefHashed);
317    });
318
319
320    if (location.hash == '#scroll-to-content') {
321        $('html, body').animate({
322            scrollTop: $(".content").offset().top
323        }, 2000);
324    }
325    */
326// בעמוד המקור - לפני הניווט
327$('#mobile_menu .panel-body a').each(function () {
328    $(this).on('click', function() {
329        sessionStorage.setItem('scrollToContent', '1');
330    });
331});
332
333// בכל עמוד - בטעינה
334if (sessionStorage.getItem('scrollToContent') === '1') {
335    sessionStorage.removeItem('scrollToContent');
336    if ($(".content").length) {
337        $('html, body').animate({
338            scrollTop: $(".content").offset().top
339        }, 2000);
340    }
341}
342
343	$('#page-idd-468 a[href^="../../clickgo/general_purchase.asp?sum="]').each(function(ix){
344		var url = $(this).attr('href');
345		var newElement = paymentForm.replace('[URL]', url).replaceAll('[ix]', ix);
346		$(this).replaceWith(newElement);
347	});
348    if($('#secure-page').length > 0){
349        // Get the current URL
350        var urlParams = new URLSearchParams(window.location.search);
351        // Check if 'code' parameter exists
352        if (urlParams.has('code')) {
353            // Get the value of 'code'
354            var code = urlParams.get('code');
355            // Set the value of the input field
356            $('#secure-page').find('input[name="agency"]').val(code);
357        }
358    }
359});
360
361$(window).on("resize", function (e) {
362    $(".textfit").each(function (index, element) {
363        $(this).css({
364            'width': $(this).width() + 'px'
365        });
366        $(this).textfit('bestfit');
367    });
368});
369/*
370$(window).on("load", function (e) {
371    $(".banners_120X60").load('/banners_120X60.asp?id=' + $('html').attr('id').replace('page-id-', ''));
372    $(".regi").load('/getJavaReg.asp');
373});
374*/
375/*
376$(window).loader(function(e) {
377  (function() {
378    var cx = '002928059091463336236:WMX-281094063';
379    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
380    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
381        '//www.google.com/cse/cse.js?cx=' + cx;
382    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
383  })();
384});
385*/
386
387        window.onscroll = function() {
388            const button = document.getElementById('floating-contact-button');
389            if (document.body.scrollTop > 90 || document.documentElement.scrollTop > 90) {
390                button.style.display = "block"; // Show button
391            } else {
392                button.style.display = "none"; // Hide button
393            }
394            const buttonAi = document.getElementById('floating-ai-button');
395            if (document.body.scrollTop > 150 || document.documentElement.scrollTop > 150) {
396                //buttonAi.style.display = "block"; // Show button
397            } else {
398                buttonAi.style.display = "none"; // Hide button
399            }
400        };
401
402/**************AI INIT ***********************************/
403  const input = document.getElementById('searchInput');
404  const clear = document.getElementById('clearBtn');
405  const clearM = document.getElementById('clearBtn-mobile');
406  const inputM = document.getElementById('searchInput-mobile');
407
408  clear.addEventListener('click', function () {
409    input.value = '';
410    input.focus();
411
412    input.dispatchEvent(new Event('input'));
413  });
414  clearM.addEventListener('click', function () {
415    inputM.value = '';
416    inputM.focus();
417
418    inputM.dispatchEvent(new Event('input'));
419  });
420  $('.ai-toggle').on("click",
421	function(){
422	$('.ai-toggle').toggleClass('active');
423	$('.giai-panel').toggleClass('open');
424	if(document.getElementById('searchInput').value.length > 0){
425		document.getElementById("giai-input").value = document.getElementById('searchInput').value;
426		document.getElementById('searchInput').value = '';
427		document.getElementById("giai-send").click();
428	}
429	}
430  );
431  window.addEventListener('DOMContentLoaded', function () {
432    const input = document.getElementById('searchInput');
433    if (input) {
434      input.focus();
435    }
436  });
437
438
439
440
441  // History debug
442(function() {
443    var originalPushState = history.pushState;
444    var originalReplaceState = history.replaceState;
445
446    history.pushState = function() {
447        originalPushState.apply(this, arguments);
448        console.log('[pushState]', arguments[1], arguments[2]);
449    };
450
451    history.replaceState = function() {
452        originalReplaceState.apply(this, arguments);
453        console.log('[replaceState]', arguments[1], arguments[2]);
454    };
455
456    window.addEventListener('popstate', function(e) {
457        console.log('[popstate]', e.state, '| current URL:', location.href);
458    });
459
460    window.addEventListener('hashchange', function(e) {
461        console.log('[hashchange]', 'from:', e.oldURL, '→ to:', e.newURL);
462    });
463})();

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.