1(function($){ 2 "use strict"; 3 $(document).ready(function(){ 4 5 /***** Map *****/ 6 function initialize() { 7 var lat = parseFloat( $("#location").data('lat') ); 8 var lng = parseFloat( $("#location").data('lng') ); 9 var address = $("#location").data('address'); 10 var zoom = parseInt( $("#location").data('zoom') ); 11 12 var infoWindow = new google.maps.InfoWindow(); 13 14 var loc = {lat: lat, lng: lng}; 15 16 var map = new google.maps.Map(document.getElementById('location'), { 17 zoom: zoom, 18 center: loc, 19 scrollwheel: false 20 }); 21 22 var marker = new google.maps.Marker({ 23 position: loc, 24 map: map 25 }); 26 27 google.maps.event.addListener(marker, 'click', (function(marker) { 28 return function() { 29 infoWindow.setContent(address); 30 infoWindow.open(map, marker); 31 } 32 })(marker)); 33 34 } 35 36 37 if( typeof google !== 'undefined' && $(".single-event #location").length > 0 ){ 38 google.maps.event.addDomListener(window, "load", initialize); 39 } 40 41 42 43 /***** Gallery PrettyPhoto *****/ 44 if( $(".gallery-items a[data-rel^='prettyPhoto']").length > 0 ){ 45 $(".gallery-items a[data-rel^='prettyPhoto']").prettyPhoto(); 46 } 47 48 49 /***** Date Time Picker *****/ 50 $(".ovaev_start_date_search, .ovaev_end_date_search").each(function(){ 51 if($().datetimepicker) { 52 var date = $(this).data('date'); 53 var lang = $(this).data('lang'); 54 var dayOfWeekStart = $(this).data('start-of-week'); 55 56 $(this).datetimepicker({ 57 format: date, 58 timepicker:false, 59 dayOfWeekStart: dayOfWeekStart, 60 }); 61 $.datetimepicker.setLocale(lang); 62 } 63 }); 64 65 $(".slide-event-feature").each(function(){ 66 var rtl = false; 67 if ( $('body').hasClass('rtl') ) { 68 rtl = true; 69 } 70 $(this).owlCarousel({ 71 loop:true, 72 margin:80, 73 nav:false, 74 dots:false, 75 autoplay:true, 76 autoplayTimeout:4000, 77 autoplayHoverPause:true, 78 rtl:rtl, 79 responsive:{ 80 0:{ 81 items:1 82 }, 83 600:{ 84 items:1 85 }, 86 1000:{ 87 items:1 88 } 89 } 90 }); 91 }) 92 93 94 $('.search_archive_event #ovaev_type').on('change', function(){ 95 $(this).closest('.search_archive_event').find('.select2-selection__rendered').css('color', '#333'); 96 }); 97 98 99 $('.single_event .event_content .tab-Location ul.nav li.nav-item:first-child a').addClass('active'); 100 $('.single_event .event_content .tab-Location .tab-content .tab-pane:first-child').addClass('active').removeClass('fade'); 101 102 103 104 }); 105 106})(jQuery);
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.