1$(document).ready(function () { 2 3 if ($("section").hasClass("landing-page")) { 4 5 //hide and show large section headline during resize 6 var section_headline = $('.langing_page_big_link .langing_page_big_link_inner'); 7 $(window).resize(function (e) { 8 e.preventDefault(); 9 e.stopPropagation(); 10 11// section_headline.hide(); 12 section_headline.css("opacity", 0); 13 14 setTimeout(() => { 15// section_headline.show(); 16 section_headline.css("opacity", 1); 17 }, 800); 18 }); 19 20 $('.owl-carousel.landing_page_blog_view_text_picture').each(function () { 21 var $slider = $(this); 22 var carouselItems = $slider.find('.item'); 23 24 $slider.owlCarousel({ 25 loop: carouselItems.length > 2, 26 margin: 0, 27 nav: true, 28 dots: false, 29 center: false, 30 responsive: { 31 0: { 32 items: 1.1 33 }, 34 1024: { 35 items: 2.16 36 } 37 } 38 }); 39 40 console.log('Slider .landing_page_blog_view_text_picture in page_production haben ' + carouselItems.length + ' Items'); 41 }); 42 43 //slider only with text 44 $('.owl-carousel.landing_page_blog_view_text').owlCarousel({ 45 loop: false, 46 margin: 40, 47 nav: true, 48 dots: false, 49 center: false, 50 responsive: { 51 0: { 52 items: 1.1 53 }, 54 1024: { 55 items: 2.4 56 } 57 } 58 }); 59 60 //slider only magazin 61 $('.owl-carousel.landing_page_blog_view_magazin').owlCarousel({ 62 loop: true, 63 margin: 40, 64 nav: true, 65 dots: false, 66 center: false, 67 responsive: { 68 0: { 69 items: 1.1 70 }, 71 1024: { 72 items: 2.75 73 } 74 } 75 }); 76 77 //manipulate startposition of owl slider 78// setTimeout(() => {// 79// $('.owl-carousel.landing_page_blog_view_text_picture .owl-stage').css("transform", "translate3d(0, 0px, 0px)"); 80// $('.owl-carousel.landing_page_blog_view_text .owl-stage').css("transform", "translate3d(0, 0px, 0px)"); 81// $('.owl-carousel.landing_page_blog_view_magazin .owl-stage').css("transform", "translate3d(0, 0px, 0px)"); 82// }, 800); 83 84 85 86// 87// // NEW BS CAROUSEL TEST 88// if ($('.landing_page_carousel').length > 0) { 89// console.log('landing_page_carousel BS carousel'); 90// 91// $('.landing_page_carousel').carousel({ 92// interval: 10000, //10000 93// touch: true, 94// ride: false, 95// mouseDrag: true 96// }); 97// } 98 99 //home ticket select 100 $('.ticket_selections .opener').on('click', function (e) { 101 e.preventDefault(); 102 e.stopPropagation(); 103 var $l = $(this).parent().find('.list'); 104 $l.toggleClass('open'); 105 $(this).toggleClass('open'); 106 }); 107 108 109 $('#locationList .no_result').hide(); 110 $('#datesList .no_result').hide(); 111 $('#ticket-link-container').hide(); 112 113 // Ticket filtering 114 $('.category-filter').on('click', function () { 115 var el = $(this); 116 117 $('#locationList li.remove_able').remove(); 118 $('#locationList').removeClass("open"); 119 $('#datesList li.remove_able').remove(); 120 $('#datesList').removeClass("open"); 121 122 //display selection at input field 123 var el_text = el.text(); 124 el.parents(':eq(1)').find(".category-opener span").text(el_text); 125 $('#categoryList').removeClass("open"); 126 $('button.category-opener').removeClass("open"); 127 128 $('#locationList .no_category_selected').hide(); 129 $('#locationList .no_result').hide(); 130 131 132 $('.selected_production_text').remove(); 133 $('.location-displayer').show(); 134 $('span.selected_date_text').remove(); 135 $('.date-displayer').show(); 136 $('#datesList .no_production_selected').show(); 137
138 $('#ticket-link-container').hide(); 139 $('.ticket-button-disabled').show(); 140 141 $.ajax({ 142 'url': ENV.link_root + '/ticket_filter.json', 143 'data': { 144 'm': 'ticket_filter_events', 145 'category': $(this).data('value') 146 } 147 }) 148 .done(function (data) { 149 CbUx.hideLoader(); 150// console.log('### Productions: ', data); 151 if (data.length > 0) { 152 data.forEach((event) => { 153 154 const li = $('<li>', { 155 class: 'location-filter remove_able', 156 role: 'option', 157 'data-value': event.Id, 158 tabindex: 0, 159 text: event.ProdTitle 160 }); 161 162 $('#locationList').append(li); 163 164 }); 165 166 } else { 167 $('#locationList .no_result').show(); 168 } 169 }) 170 .fail(function (xhr, status, error) { 171 CbUx.hideLoader(); 172 self.isLoading = false; 173 console.error("Failed to load calendar data:", status, error); 174 console.error("Response:", xhr.responseText); 175 }); 176 }); 177 178 //select production 179 $('#locationList').on('click', '.location-filter', function () { 180 var el = $(this); 181 182 console.log('##### Location filter '); 183 184 $('#datesList li.remove_able').remove(); 185 $('#datesList').removeClass("open"); 186 187 //display selection at input field 188 $('span.selected_production_text').remove(); 189 var el_text = el.text(); 190 var production_text = $('<span>', { 191 class: 'selected_production_text', 192 text: el_text 193 }); 194// el.parents(':eq(1)').find(".location-opener span").text(el_text); 195 el.parents(':eq(1)').find(".location-opener").prepend(production_text); 196 $('.location-displayer').hide(); 197 198 $('#locationList').removeClass("open"); 199 $('button.location-opener').removeClass("open"); 200 201 $('#datesList .no_production_selected').hide(); 202 $('#datesList .no_result').hide(); 203 204 $('.selected_date_text').remove(); 205 $('.date-displayer').show(); 206 207 $('#ticket-link-container').hide(); 208 $('.ticket-button-disabled').show(); 209 210 $.ajax({ 211 'url': ENV.link_root + '/ticket_filter.json', 212 'data': { 213 'm': 'ticket_filter_dates', 214 'production': $(this).data('value') 215 } 216 }) 217 .done(function (data) { 218 CbUx.hideLoader(); 219 console.log('### Productions: ', data); 220 if (data.length > 0) { 221 data.forEach((prod) => { 222 console.log('##### Event id: ', prod.Id); 223 224 const li = $('<li>', { 225 class: 'dates-filter remove_able', 226 role: 'option', 227 'data-value': prod.EventDateId, 228 tabindex: 0, 229 text: prod.FormatedEventDateAndTime 230 }); 231 232 $('#datesList').append(li); 233 234 }); 235 236 } else { 237 $('datesList .no_result').show(); 238 } 239 }) 240 .fail(function (xhr, status, error) { 241 CbUx.hideLoader(); 242 self.isLoading = false;
243 console.error("Failed to load calendar data:", status, error); 244 console.error("Response:", xhr.responseText); 245 }); 246 }); 247 248 //select date 249 $('#datesList').on('click', '.dates-filter', function () { 250 var el = $(this); 251 $('#ticket-link-container').empty().hide(); 252 253 254 //display selection at input field 255 $('span.selected_date_text').remove(); 256 var el_text = el.text(); 257 var el_text = el.text(); 258 var date_text = $('<span>', { 259 class: 'selected_date_text', 260 text: el_text 261 }); 262// el.parents(':eq(1)').find(".date-opener span").text(el_text); 263 el.parents(':eq(1)').find(".date-opener").prepend(date_text); 264 $('.date-displayer').hide(); 265 266 $('#datesList').removeClass("open"); 267 $('button.date-opener').removeClass("open"); 268 269 $.ajax({ 270 'url': ENV.link_root + '/ticket_filter.json', 271 'data': { 272 'm': 'ticket_filter_tickets', 273 'event_date': $(this).data('value') 274 } 275 }) 276 .done(function (data) { 277 CbUx.hideLoader(); 278 console.log('### Productions: ', data); 279 if (data.length > 0) { 280 console.log('##### Ticket link: ', data[0].TicketLink); 281 282 $('.ticket-button-disabled').hide(); 283 284 const a = $('<a>', { 285 href: data[0].TicketLink, 286 target: '_blank', 287 rel: 'noopener noreferrer', 288 class: 'btn-theme', 289 text: data[0].TicketMl 290 }); 291 $('#ticket-link-container').show(); 292 $('#ticket-link-container').append(a); 293 294 } else { 295 $('.ticket-button-disabled').show(); 296 } 297 }) 298 .fail(function (xhr, status, error) { 299 CbUx.hideLoader(); 300 self.isLoading = false; 301 console.error("Failed to load calendar data:", status, error); 302 console.error("Response:", xhr.responseText); 303 }); 304 }); 305 306 } 307 308});
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.