PageSourceSearch

https://www.heraklion.gr/js/js.js?v=2023v1

js heraklion.gr collected 2026-10-02 02:41:29 UTC 22,099 bytes, 495 lines download raw bytes

1$(document).ready(function() {
2
3	$('#base_her_Modal').modal('show');    
4    
5    (function(){
6        // setup your carousels as you normally would using JS
7        // or via data attributes according to the documentation
8        // http://getbootstrap.com/javascript/#carousel
9        $('#carousel123').carousel({ interval: 5000 });
10//        $('#carouselABC').carousel({ interval: 3600 });
11    }());
12
13    (function(){
14        $('.carousel-showmanymoveone .item').each(function(){
15        var itemToClone = $(this);
16
17        for (var i=1;i<3;i++) {
18          itemToClone = itemToClone.next();
19
20          // wrap around if at end of item collection
21          if (!itemToClone.length) {
22            itemToClone = $(this).siblings(':first');
23          }
24
25          // grab item, clone, add marker class, add to collection
26          itemToClone.children(':first-child').clone()
27            .addClass("cloneditem-"+(i))
28            .appendTo($(this));
29        }
30      });
31    }());
32    
33    $("#menu-toggle").click(function(e) { 
34        e.preventDefault();
35        $("#wrapper").toggleClass("toggled");
36    });
37    
38    $("#menu-toggle-close").click(function(e) { 
39        e.preventDefault();
40        $("#wrapper").toggleClass("toggled");
41    });
42    
43    $("#menu-toggle-close2").click(function(e) { 
44        e.preventDefault();
45        $("#wrapper").toggleClass("toggled");
46    });
47//    jQuery.curCSS = function(element, prop, val) {
48//    return jQuery(element).css(prop, val);
49//};
50
51    $('a.tooltip').qtip({
52            content: {
53                attr: 'title'
54            },
55            style: {
56                classes: 'qtip qtip-default qtip-shadow qtip-bootstrap qtip-pos-lb qtip-focus qtip-hover'
57            },
58            position: {
59                my: 'bottom left',
60                at: 'top right'
61            },
62            hide: {
63               fixed: true
64            }
65        });
66      
67       $('table.calendar tbody a').each(function(){
68            $(this).qtip({
69                hide:{ 
70                    delay:500, 
71                    fixed:true
72                  },
73                content: {
74                    text: 'Loading...', 
75                    ajax: {
76                            url: '/ajax.php', 
77                            type: 'GET',
78                            data: {ajaxAction:'getAgendaItems',day:$(this).attr('day')} ,
79                            dataType: 'json',
80                            success: function(data, status) {
81                                var str = '<ul class="agenda-tooltips">';
82                                for(var i=0;i<data.length;i++){
83                                    var tm = data[i].agenda_dates[0].tm !=null ?data[i].agenda_dates[0].tm:'&nbsp';
84                                    var catUrl = data[i].cat_url_symbol != null? '/'+data[i].cat_url_symbol:'';
85                                    var url='/agenda';
86                                    url += catUrl;
87                                    url += '/'+data[i].url_symbol+'.html';
88                                    str += '<li>';
89                                    str += tm !='&nbsp' ? '<span>'+tm+'</span>':'';
90                                    str += '&nbsp;'
91                                    str += '<a href="'+url+'">'+data[i].title+'</a></li>';
92                                }
93                                str +='</ul>';
94                                this.set('content.text', str);
95                            }
96                        }
97                    },
98                    style: {
99                        classes: 'qtip qtip-default qtip-shadow qtip-bootstrap qtip-pos-lb qtip-focus qtip-hover'
100                    }
101            });
102    });
103    
104//    if ($(window).width() > 1000) {
105//       $("#0DF35008-97A2-471C-B264-0C18A44AD181").css("width", "1000");
106//       $("#0DF35008-97A2-471C-B264-0C18A44AD181").html('</iframe><a target="_blank" style="display: block; text-decoration: underline; font: 10px/10px Arial,san-serif; color: rgb(119, 119, 119);" href="http://www.deltiokairou.gr/?widget_type=map">Ο καιρός σήμερα και πρόγνωση καιρού για τις επόμενες μέρες</a><script type="text/javascript" src="http://service.24media.gr/js/deltiokairou_widget.js"></script><script type="text/javascript">set_url("0DF35008-97A2-471C-B264-0C18A44AD181", "http://service.24media.gr/app/forecast/lat/35.3325/lon/25.1346/alt/0/singleCity.html?label=%CE%97%CF%81%CE%AC%CE%BA%CE%BB%CE%B5%CE%B9%CE%BF&width=1000&height=200&color=GREY");</script>');
107//    }
108//    else if($(window).width() > 750){
109//        $("#0DF35008-97A2-471C-B264-0C18A44AD181").css("width", "700");
110//        $("#0DF35008-97A2-471C-B264-0C18A44AD181").html('</iframe><a target="_blank" style="display: block; text-decoration: underline; font: 10px/10px Arial,san-serif; color: rgb(119, 119, 119);" href="http://www.deltiokairou.gr/?widget_type=map">Ο καιρός σήμερα και πρόγνωση καιρού για τις επόμενες μέρες</a><script type="text/javascript" src="http://service.24media.gr/js/deltiokairou_widget.js"></script><script type="text/javascript">set_url("0DF35008-97A2-471C-B264-0C18A44AD181", "http://service.24media.gr/app/forecast/lat/35.3325/lon/25.1346/alt/0/singleCity.html?label=%CE%97%CF%81%CE%AC%CE%BA%CE%BB%CE%B5%CE%B9%CE%BF&width=700&height=200&color=GREY");</script>');
111//    }
112//    else if($(window).width() > 550){
113//        $("#0DF35008-97A2-471C-B264-0C18A44AD181").css("width", "500"); 
114//        $("#0DF35008-97A2-471C-B264-0C18A44AD181").html('</iframe><a target="_blank" style="display: block; text-decoration: underline; font: 10px/10px Arial,san-serif; color: rgb(119, 119, 119);" href="http://www.deltiokairou.gr/?widget_type=map">Ο καιρός σήμερα και πρόγνωση καιρού για τις επόμενες μέρες</a><script type="text/javascript" src="http://service.24media.gr/js/deltiokairou_widget.js"></script><script type="text/javascript">set_url("0DF35008-97A2-471C-B264-0C18A44AD181", "http://service.24media.gr/app/forecast/lat/35.3325/lon/25.1346/alt/0/singleCity.html?label=%CE%97%CF%81%CE%AC%CE%BA%CE%BB%CE%B5%CE%B9%CE%BF&width=500&height=200&color=GREY");</script>');
115//    }
116//        else{
117//         
118//        $("#0DF35008-97A2-471C-B264-0C18A44AD181").css("width", "300"); 
119//        $("#0DF35008-97A2-471C-B264-0C18A44AD181").html('</iframe><a target="_blank" style="display: block; text-decoration: underline; font: 10px/10px Arial,san-serif; color: rgb(119, 119, 119);" href="http://www.deltiokairou.gr/?widget_type=map">Ο καιρός σήμερα και πρόγνωση καιρού για τις επόμενες μέρες</a><script type="text/javascript" src="http://service.24media.gr/js/deltiokairou_widget.js"></script><script type="text/javascript">set_url("0DF35008-97A2-471C-B264-0C18A44AD181", "http://service.24media.gr/app/forecast/lat/35.3325/lon/25.1346/alt/0/singleCity.html?label=%CE%97%CF%81%CE%AC%CE%BA%CE%BB%CE%B5%CE%B9%CE%BF&width=300&height=200&color=GREY");</script>');
120//    }
121    
122    
123//    $(".weather").click(function(){
124//        $('.usefullDiv').slideUp();
125//        if(!$(".weather-target").is(":visible")){
126//                  $(".weather-target").slideToggle('slow');
127//        }
128//        return false;
129//    });
130
131    var $win = $(window);
132    $win.scroll(function () {
133        if ($win.scrollTop() > 100) {
134            $('#scrollup').fadeIn();
135        } else {
136            $('#scrollup').fadeOut();
137        }
138        checkOffset();
139//        // Check if the window is almost at the bottom (-230 for the height of the footer)
140//        if ($win.height() + $win.scrollTop() >= $(document).height() - 370) {
141//          $('#scrollup').addClass('absolute');
142//        } else {
143//          $('#scrollup').removeClass('absolute');
144//        }
145    }); 
146
147    $('#scrollup').click(function(){
148        $("html, body").animate({scrollTop: 0}, 600);
149        return false;
150    });
151    
152    
153function checkOffset() {
154    if($('#scrollup').offset().top + $('#scrollup').height() >= $('.footfull').offset().top - 20)
155        $('#scrollup').css('position', 'absolute');
156    if($(document).scrollTop() + window.innerHeight < $('.footfull').offset().top)
157        $('#scrollup').css('position', 'fixed'); // restore when you scroll up
158    
159}
160
161
162 
163    
164    
165    
166    
167    
168    $("#request-title").autocomplete({
169//request-title
170    source: function( request, response ) {
171        $.ajax({
172            url: "/ajax.php",
173            type: 'POST',
174            dataType:'json',
175            data: "ajaxAction=findRequests&request-title="+$("#request-title").val(),
176            success: function( data ) {
177                response( $.map( data, function( item ) {
178                      return {
179                            label: item.title,
180                            value: item.title,
181                           url:'/'+item.section_url_symbol+'/'+item.cat_url_symbol+'/'+item.item_url_symbol+'.html'
182                              }
183                  }));
184             }
185        });
186     },
187    minLength: 2,
188    select: function( event, ui ) {
189        window.location =ui.item.url;
190    }
191});
192    
193    
194    
195    
196    
197    
198    
199    
200    
201    
202    
203    
204//    $('[data-toggle="popover"]').popover(); 
205    $('.pop-bottom_weather').popover({ 
206       title : 'Weather',
207       html : true,
208       placement : "bottom",
209       content: function() {
210           return '<iframe scrolling="no" frameborder="0" allowtransparency="true" src="https://www.weather.gr/widgets/weather_w6.aspx?p=17" style="width: 200px; height: 120px">'+'</iframe>'+
211                  '<a target="blank" style="color: #999999; width: 200px; display: block; text-align: center; font: 10px/10px Arial,san-serif; text-decoration: none;" href="http://www.weather.gr">πρόγνωση καιρού από το weather.gr</a>';
212        }
213    });
214
215    $('.pop-bottom_call_us').popover({ 
216       title : 'Call Us',
217       html : true,
218       placement : "bottom",
219       content: function() {
220           return '<img src="/img/call_us2017.png" alt="call us" height="117" width="244"/>';
221        }
222    });
223    
224    $('.pop-bottom_infoDiv').popover({ 
225       title : 'Info Div',
226       html : true,
227       placement : "bottom",
228       content: function() {
229           return '<ul>'+
230                  '<li><a class="" href="/ourplace/on-duty-services/on-duty.html" title=" on duty">Εφημερεύοντα</a></li>'+
231                  '<li><a class="" href="/ourplace/useful-phones/useful-phones.html" title="Xρήσιμα τηλέφωνα">Xρήσιμα τηλέφωνα</a></li>'+
232                  '<li><a class="" href="/weblinks.html" title="Χρήσιμοι σύνδεσμοι">Χρήσιμοι σύνδεσμοι</a></li>'+
233                  '<li><a class="" href="/ourplace/cinemas" target="_blank" title="Κινηματογράφοι">Κινηματογράφοι</a></li>'+
234                  '<li><a class="" href="/culture/podhlata/podhlata-daneismos.html" title="Διάθεση Ποδηλάτων">Διάθεση Ποδηλάτων</a></li>'+
235                  '<li><a class="" href="/ourplace/paidikes-xares" title="Παιδικές Χαρές">Παιδικές Χαρές</a></li>'+
236                  '<li><a class="" href="/e-services/laikes-agores" title="Λαϊκές Αγορές">Λαϊκές Αγορές</a></li>'+
237                  '<li><a class="" href="/ourplace/parking" title="Θέσεις Στάθμευσης">Θέσεις Στάθμευσης</a></li>'+
238                  '</ul>';
239        }          
240    });
241    
242    
243    
244    /*
245                '<li><a class="" href="/ourplace/on-duty-services/on-duty.html" title=" on duty">Εφημερεύοντα</a></li>'+
246                '<li><a class="" href="/ourplace/useful-phones/useful-phones.html" title="Xρήσιμα τηλέφωνα">Xρήσιμα τηλέφωνα</a></li>'+
247                '<li><a class="" href="/ourplace/residence/residence.html" title="Διαμονή">Διαμονή</a></li>'+
248                '<li><a class="" href="/weblinks.html" title="Χρήσιμοι σύνδεσμοι">Χρήσιμοι σύνδεσμοι</a></li>'+
249                '<li><a class="" href="http://www.cine.gr/prog.asp?display=Cine.her" target="_blank" title="Κινηματογράφοι">Κινηματογράφοι</a></li>'+
250                '<li><a class="" href="/ourplace/visit-heraklion/visit-heraklion.html" title="Δρομολόγια">Δρομολόγια</a></li>'+
251     */
252    
253    $('.pop-bottom_cam').popover({ 
254       title : 'Cameras',
255       html : true,
256       placement : "bottom",
257       content: function() {
258           return '<ul>'+
259                  '<li><a class="" href="https://www.youtube.com/channel/UC4q7mhkdLSEbw5Oz-ZFciYg/videos?flow=grid&view=2" target="_blank" title="Συνεδριάσεις Δημοτικού Συμβουλίου">Συνεδριάσεις Δημοτικού Συμβουλίου</a></li>'+
260                  '<li><a class="" href="https://www.youtube.com/user/cityofheraklion/videos?view=2&flow=grid" target="_blank" title="Εκδηλώσεις - Αίθουσα Μ.Καρέλλη">Εκδηλώσεις - Αίθουσα Μ.Καρέλλη</a></li>'+
261                  '<li><a class="" href="/e-services/live-streaming/web-camera.html" title="Live Webcam - Πλατεία Ελ.Βενιζέλου">Live Webcam - Πλατεία Ελ.Βενιζέλου</a></li>'+
262                  '</ul>';
263        }          
264    });
265
266    $('.pop-bottom_mobile').popover({ 
267       html : true,
268       placement : "bottom",
269       content: function() {
270           return '<ul>'+
271                  '<li><a class="" href="/e-services/web-mobile-apps/web-mobile-apps.html#dimotis" title="Δημότης Ηρακλείου">Δημότης Ηρακλείου</a></li>'+
272                  '<li><a class="" href="/e-services/web-mobile-apps/web-mobile-apps.html#guide" title="Σύγχρονος Οδηγός της Πόλης">Σύγχρονος Οδηγός της Πόλης</a></li>'+
273                  '<li><a class="" href="/e-services/web-mobile-apps/web-mobile-apps.html#candia" title="Περιήγηση στην Ενετική Κάντια">Περιήγηση στην Ενετική Κάντια</a></li>'+
274                  '<li><a class="" href="/e-services/web-mobile-apps/web-mobile-apps.html#alikarnassos" title="Περιήγηση στη Νέα Αλικαρνασσό">Περιήγηση στη Νέα Αλικαρνασσό</a></li>'+
275		'</ul>';
276      }
277    });
278
279/*
280           return '<div id="mob-pop"><img src="http://heraklion.gr/files/items/5/53833/mobile_dimotis1_t.png" title="Δημότης" alt="Δημότης">&nbsp;</strong></p>'+
281                  '<a href="https://play.google.com/store/apps/details?id=gr.noveltech.mitos.heraklion" target="_blank">'+
282                  '<img src="http://heraklion.gr/files/186/53833/googleplay_t.jpg" width="120" height="35"></a>'+
283                  '<a href="https://itunes.apple.com/us/app/demotes-erakleiou/id1142945582?l=el&amp;ls=1&amp;mt=8" target="_blank">'+
284                  '<img src="http://heraklion.gr/files/186/53833/appstore_t.png" width="120" height="35"></a></div>';
285*/
286
287/* 
288   $('.Mob').popover({
289       html : true,
290       placement : "bottom",
291       content: function() {
292           return '<div id="mob-pop"><img src="http://heraklion.gr/files/items/5/53833/mobile_dimotis1_t.png" title="Δημότης" alt="Δημότης">&nbsp;</strong></p>'+
293                  '<a href="https://play.google.com/store/apps/details?id=gr.noveltech.mitos.heraklion" target="_blank">'+
294                  '<img src="http://heraklion.gr/files/186/53833/googleplay_t.jpg" width="120" height="35"></a>'+
295                  '<a href="https://itunes.apple.com/us/app/demotes-erakleiou/id1142945582?l=el&amp;ls=1&amp;mt=8" target="_blank">'+
296                  '<img src="http://heraklion.gr/files/186/53833/appstore_t.png" width="120" height="35"></a></div>';
297      }
298    });
299	
300*/
301
302
303
304 
305    $(".eventDiv").click(function(){
306        $('.usefullDiv').slideUp();
307        if(!$(".events-target").is(":visible")){
308            $(".events-target").slideToggle('slow');
309        }
310        return false;
311    });
312    
313    $(".state").click(function(){
314        $('.usefullDiv').slideUp();
315        if(!$(".state-target").is(":visible")){
316                  $(".state-target").slideToggle('slow',function(){document.getElementById('centralMap').contentWindow.initialize();} );
317        }
318        return false;
319    });
320    
321    
322    $('#myCarousel').carousel({
323        interval: 10000
324    })
325    $('.fdi-Carousel .item').each(function () {
326        var next = $(this).next();
327        if (!next.length) {
328            next = $(this).siblings(':first');
329        }
330        next.children(':first-child').clone().appendTo($(this));
331
332        if (next.next().length > 0) {
333            next.next().children(':first-child').clone().appendTo($(this));
334        }
335        else {
336            $(this).siblings(':first').children(':first-child').clone().appendTo($(this));
337        }
338    });
339    
340    
341    
342    $('#low_bans').carouFredSel({ 
343        responsive: true,
344            width: '100%',
345        direction            : "left", 
346        next: "#prev2",
347        prev: "#next2",
348        scroll : { 
349//            items            : 6, 
350//            easing           : "quadratic", 
351            duration         : 2000, 
352            pauseOnHover     : true 
353        }, 
354        items: {
355                    width: 200,
356            //	height: '30%',	//	optionally resize item-height
357                    visible: {
358                            min: 2,
359                            max: 6
360                    }
361            }
362    }); 
363    
364    
365//    $('#low_bans').carouFredSel({
366//            responsive: true,
367//            width: '100%',
368//            scroll: {
369//			items: 1,
370//			duration: 4000,
371//			timeoutDuration: 0,
372//			easing: 'linear',
373//			pauseOnHover: 'immediate'
374//		},
375//            items: {
376//                    width: 200,
377//            //	height: '30%',	//	optionally resize item-height
378//                    visible: {
379//                            min: 2,
380//                            max: 6
381//                    }
382//            }
383//    });
384    
385    
386    
387//    
388//    $('#majorCarousel').carousel({
389//        interval: 4000
390//    })
391//
392//    $('.fdi-Carousel2 .item').each(function(){
393//      var next = $(this).next();
394//      if (!next.length) {
395//        next = $(this).siblings(':first');
396//      }
397//      next.children(':first-child').clone().appendTo($(this));
398//
399//      for (var i=0;i<2;i++) {
400//        next=next.next();
401//        if (!next.length) {
402//            next = $(this).siblings(':first');
403//            }
404//
405//        next.children(':first-child').clone().appendTo($(this));
406//      }
407//    });
408    
409    
410//$("#request-title").autocomplete({
411////request-title
412//    source: function( request, response ) {
413//        $.ajax({
414//            url: "/ajax.php",
415//            type: 'POST',
416//            dataType:'json',
417//            data: "ajaxAction=findRequests&request-title="+$("#request-title").val(),
418//            success: function( data ) {
419//                response( $.map( data, function( item ) {
420//                      return {
421//                            label: item.title,
422//                            value: item.title,
423//                           url:'/'+item.section_url_symbol+'/'+item.cat_url_symbol+'/'+item.item_url_symbol+'.html'
424//                              }
425//                  }));
426//             }
427//        });
428//     },
429//    minLength: 2,
430//    select: function( event, ui ) {
431//        window.location =ui.item.url;
432//    }
433//});
434
435$('#dep_id').change(function() {
436        $.ajax({
437          url: '/ajax.php',
438          dataType: 'json',
439          type:'POST',
440          data: 'ajaxAction=loadDepartmentInfo&depId='+$('#dep_id').val(),
441         success: function(data){
442                 $("#_department").html(data.title||"");
443                        $("#_competence").html(data.descr||"");
444                        $("#_phone").html(data.phone||"");
445                        $("#_fax").html(data.fax||"");
446                        $("#_email").html(data.email||"");
447          }
448
449        });
450
451});
452
453if ($('.gallery').html() != null) {
454		if ($('.gallery').find('a > img').html() == null) {
455			$('.gallery img').each(function(index) {
456				var source = $(this).attr("src").replace(/_t\./, '.');
457				var title = $(this).attr("title");
458				$(this).wrap('<a href="'+source+'" title="'+title+'"></a>');
459			})
460		}
461    }
462    
463    $('.gallery a').lightBox();
464
465
466// Add slideDown animation to Bootstrap dropdown when expanding.
467  $('.dropdown').on('show.bs.dropdown', function() {
468    $(this).find('.dropdown-menu').first().stop(true, true).slideDown();
469  });
470
471  // Add slideUp animation to Bootstrap dropdown when collapsing.
472  $('.dropdown').on('hide.bs.dropdown', function() {
473    $(this).find('.dropdown-menu').first().stop(true, true).slideUp();
474  });
475
476});
477
478	function addFile(t) {
479        	$(t).before('<input style="display:table-cell; " type="file" name="files[]"> <input style="display:table-cell; clear:both;" type="button" value="Αφαίρεση -" onclick = "removeFile(this);" ><div style="clear:both"></div>');
480    	}
481    	
482	function removeFile(t){
483    		 $(t).prev().remove();
484    		 $(t).remove();	
485    	}
486
487
488
489   function myPrintFunction() {
490        window.print();
491    }
492    
493    function emailCurrentPage(){
494            window.location.href="mailto:?subject="+document.title+"&body="+escape(window.location.href);
495        }

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.