1$("[name=rating]").click(function () { 2 var eventName = "{{ $query['event'] }}" + "-eventRating"; 3 document.cookie = eventName + "=" + this.id; 4}); 5function pauseVideoPlay() { 6 $("iframe.carousel-video")[0].contentWindow.postMessage( 7 '{"event":"command","func":"' + "stopVideo" + '","args":""}', 8 "*" 9 ); 10} 11$(document).ready(function () { 12 $(window).bind("scroll", function () { 13 var navHeight = $(".event-slide").height(); 14 if ($(window).scrollTop() > navHeight) { 15 $(".main-nav").addClass("fixed-header"); 16 } else { 17 $(".main-nav").removeClass("fixed-header"); 18 } 19 }); 20}); 21function setMobileIframeHeight() { 22 var sliderHeight = document.querySelector( 23 ".event-slide.show-mobile .carousel-inner" 24 ).clientHeight; 25 document.querySelector( 26 ".event-slide.show-mobile .carousel-inner .carousel-item:first-child iframe" 27 ).style.height = sliderHeight + "px"; 28} 29$(document).ready(function () { 30 $(window).resize(function () { 31 setMobileIframeHeight(); 32 }); 33 setMobileIframeHeight(); 34 var filters = {}; 35 $(".show-timing").isotope({ 36 itemSelector: ".grid-item", 37 }); 38 $(".filter-dropdown .dropdown-menu input[type='checkbox']").on( 39 "change", 40 function () { 41 var $this = $(this); 42 var $filtergroup = $this.parents(".filter-dropdown"); 43 var $buttonGroup = $this.parents(".dropdown-menu"); 44 var $text = $this.html(); 45 var arr = []; 46 $filtergroup 47 .find('input[name="location"]:checked') 48 .each(function () { 49 arr.push($(this).val()); 50 }); 51 $filtergroup.find('input[name="month"]:checked').each(function () { 52 arr.push($(this).val()); 53 }); 54 var filterGroup = $filtergroup.attr("data-filter-group"); 55 filters[filterGroup] = arr; 56 var filterValue = concatValues(filters); 57 $(".show-timing").isotope({ 58 filter: filterValue, 59 }); 60 toggleAccords(filterValue); 61 } 62 ); 63 64 function concatValues(obj) { 65 var value = ""; 66 for (var prop in obj) { 67 value += obj[prop]; 68 } 69 return value; 70 } 71 72 function toggleAccords(filterValue) { 73 setTimeout(function () { 74 $(".accordion-wrap .accordion").each(function (index) { 75 var mlen = $(this).find(".grid-item" + filterValue).length; 76 if (mlen == 0) $(this).fadeOut(); 77 else $(this).fadeIn(); 78 $(this).find(".show-timing").isotope("layout"); 79 }); 80 }, 500); 81 } 82}); 83 84$(".selectall").click(function () { 85 var $filter = $(this).parents(".filter-dropdown"); 86 if ($(this).is(":checked")) { 87 $filter.find(".custom-check").prop("checked", true); 88 var total = $filter.find('input[name="location"]:checked').length; 89 $filter.find(".dropdown-text").html("(" + total + ") Selected"); 90 $filter.find(".select-text").html(" Deselect"); 91 } else { 92 $filter.find(".custom-check").prop("checked", false); 93 $filter.find(".select-text").html(" Select"); 94 $filter 95 .find(".dropdown-text") 96 .html($filter.find(".dropdown-text").attr("data-attr")); 97 } 98}); 99$(".apply-btn.clear").click(function () { 100 var $filter = $(this).parents(".filter-dropdown"); 101 $filter.find(".custom-check").prop("checked", false); 102 $filter.find(".selectall").prop("checked", false); 103 $filter 104 .find(".dropdown-text") 105 .html($filter.find(".dropdown-text").attr("data-attr")); 106 $(".selectall").trigger("change"); 107}); 108 109$("input[type='checkbox'].custom-check").change(function () { 110 var $filter = $(this).parents(".filter-dropdown"); 111 var a = $filter.find("input[type='checkbox'].custom-check"); 112 if (a.length == a.filter(":checked").length) { 113 $filter.find(".selectall").prop("checked", true); 114 $filter.find(".select-text").html(" Deselect"); 115 } else { 116 $filter.find(".selectall").prop("checked", false); 117 $filter.find(".select-text").html(" All"); 118 } 119 var total = $filter.find(
120 'input[type="checkbox"].custom-check:checked' 121 ).length; 122 if (total > 0) { 123 if (total == 1) { 124 var txt = $filter 125 .find('input[type="checkbox"].custom-check:checked') 126 .parents("li") 127 .find("label.head") 128 .text(); 129 $filter.find(".dropdown-text").html(txt); 130 } else 131 $filter 132 .find(".dropdown-text") 133 .html( 134 $filter.find(".dropdown-text").attr("data-attr") + 135 " (" + 136 total + 137 ")" 138 ); 139 } else $filter.find(".dropdown-text").html("All " + $filter.find(".dropdown-text").attr("data-attr")); 140}); 141 142$(".close-info").on("click", function (e) { 143 e.stopPropagation(); 144 $(this).parents("ul.dropdown-menu").hide(); 145 $("#filter-search").removeClass("filters-open"); 146}); 147 148$(".filter-dropdown .dropdown").on("click", function (e) { 149 e.stopPropagation(); 150 $(this).find("ul.dropdown-menu").show(); 151 $("#filter-search").addClass("filters-open"); 152}); 153 154//accordion 155$(".header").click(function () { 156 if ($(this).parent().hasClass("active")) { 157 $(this).parent().removeClass("active"); 158 $(this).siblings(".body").slideUp(); 159 } else { 160 $(".body").slideUp(); 161 $(".accordion").removeClass("active"); 162 $(this).parent().addClass("active"); 163 $(this) 164 .siblings(".body") 165 .slideDown(function () { 166 $(this).find(".show-timing").isotope("layout"); 167 }); 168 } 169}); 170 171//smooth scroll 172//(function( $ ) { "use strict"; 173$(function () { 174 $('a[href*="#"]:not([href="#"])').click(function () { 175 if ( 176 location.pathname.replace(/^\//, "") == 177 this.pathname.replace(/^\//, "") && 178 location.hostname == this.hostname 179 ) { 180 var target = $(this.hash); 181 target = target.length 182 ? target 183 : $("[name=" + this.hash.slice(1) + "]"); 184 if (target.length) { 185 $("html, body").animate( 186 { 187 scrollTop: target.offset().top - 150, 188 }, 189 1000 190 ); 191 return false; 192 } 193 } 194 }); 195}); 196//}(jQuery)); 197 198//filter dropdown 199$("body").on("click", ".dropdown-menu", function (e) { 200 $(this).parent().is(".open") && e.stopPropagation(); 201}); 202 203$(".btn-apply").on("click", function (e) { 204 e.preventDefault(); 205 //$(this).css('display', 'none !important'); 206 var parentId = $(this).attr("data-refer"); 207 setTimeout(function () { 208 $("#" + parentId).css({ 209 display: "none", 210 }); 211 }, 200); 212});
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.