1!(function (t, e, i, o) { 2 "use strict"; 3 function a(e, i) { 4 (this.element = t(e)), (this.settings = t.extend({}, s, i)), (this._defaults = s), (this._name = n), this.init(); 5 } 6 var n = "hashtagComponent", 7 s = {}; 8 (a.prototype = { 9 init: function () { 10 if (!this.element.length) return !1; 11 var o = this.element; 12 if ( 13 ((this.conf = { gallery: o, items: o.find(".hashtag-gallery-item"), tweets: o.find(".hashtag-gallery-item.tweet"), modal: t("#hashtagModal"), modalBody: t("#hashtagModal .modal-body") }), 14 0 < this.conf.items.filter(".tweet").length && void 0 === e.twttr) 15 ) { 16 var a = i.createElement("script"); 17 (a.async = !0), (a.src = "//platform.twitter.com/widgets.js"), (a.charset = "utf-8"); 18 var n = i.getElementsByTagName("script")[0]; 19 n.parentNode.insertBefore(a, n); 20 } 21 this.handleEvents(); 22 }, 23 handleEvents: function () { 24 var t = this; 25 this.conf.items.on("click", "a", function (e) { 26 t.openModal(e, this); 27 }); 28 }, 29 openModal: function (e, i) { 30 e.preventDefault(); 31 var o = t(i).attr("href"); 32 switch (!0) { 33 case -1 !== o.indexOf("twitter"): 34 this.conf.modalBody.html('<blockquote class="twitter-tweet"><p>Loading tweet...</p> <a href="' + o + '"></a></blockquote>'), twttr.widgets.load(), this.conf.modal.modal("show"); 35 break; 36 case -1 !== o.indexOf("flickr"): 37 this.conf.modalBody.html( 38 '<img class="img-responsive" src="' + 39 o + 40 '" alt="' + 41 t(i).attr("title") + 42 '" /><p><a class="btn btn-primary btn-block" href="' + 43 t(i).attr("rel") + 44 '" target="_blank"> <i class="fa fa-flickr"></i> View on Flickr</a></p>' 45 ), 46 this.conf.modal.modal("show"); 47 break; 48 case -1 !== o.indexOf("youtube"): 49 } 50 }, 51 }), 52 (t.fn[n] = function (e) { 53 return ( 54 this.each(function () { 55 t.data(this, "plugin_" + n) || t.data(this, "plugin_" + n, new a(this, e)); 56 }), 57 this 58 ); 59 }), 60 t(function () { 61 t(".hashtag-gallery").hashtagComponent(); 62 }); 63})(jQuery, window, document), 64 (function (t, e, i, o) { 65 "use strict"; 66 function a(e, i) { 67 (this.element = t(e)), (this.settings = t.extend({}, s, i)), (this._defaults = s), (this._name = n), this.init(); 68 } 69 var n = "responsiveBgs", 70 s = { sm: 768, md: 992, lg: 1330 }; 71 (a.prototype = { 72 init: function () { 73 if (!this.element.length) return !1; 74 var i = this, 75 o = this.element; 76 o.attr("data-responsive-background-xs", o.css("background-image").replace("url(", "").replace(")", "")), 77 this.setBackgrounds(), 78 t(e).resize(function () { 79 i.setBackgrounds(); 80 }); 81 }, 82 setBackgrounds: function () { 83 var t = e.innerWidth, 84 i = this.element; 85 t < this.settings.sm && void 0 !== i.attr("data-responsive-background-xs") && i.css("background-image", "url(" + i.attr("data-responsive-background-xs") + ")"), 86 t >= this.settings.sm && void 0 !== i.attr("data-responsive-background-sm") && i.css("background-image", "url(" + i.attr("data-responsive-background-sm") + ")"), 87 t >= this.settings.md && void 0 !== i.attr("data-responsive-background-md") && i.css("background-image", "url(" + i.attr("data-responsive-background-md") + ")"), 88 t >= this.settings.lg && void 0 !== i.attr("data-responsive-background-lg") && i.css("background-image", "url(" + i.attr("data-responsive-background-lg") + ")"); 89 }, 90 }), 91 (t.fn[n] = function (e) { 92 return ( 93 this.each(function () { 94 t.data(this, "plugin_" + n) || t.data(this, "plugin_" + n, new a(this, e)); 95 }), 96 this 97 ); 98 }), 99 t(function () { 100 t("[data-responsive-background=true]").responsiveBgs();
101 }); 102 })(jQuery, window, document), 103 (function (t) { 104 "use strict"; 105 var e; 106 t(".btn-share").popover({ html: !0 }), 107 t(".btn-download").popover({ html: !0 }), 108 t(".modal").appendTo("body"), 109 t("#searchModal").on("shown.bs.modal", function () { 110 t("#searchModalInput").focus(); 111 }), 112 t(".news-listing-component").last().addClass("last"), 113 t(".mega-navigation .navbar-nav > .dropdown > a.dropdown-toggle").hover( 114 function () { 115 var i = this; 116 1 === t(".mega-navigation .navbar-nav .open").length 117 ? t(i).trigger("click") 118 : (e = setTimeout(function () { 119 t(i).trigger("click"); 120 }, 200)); 121 }, 122 function () { 123 clearTimeout(e), t(this).blur(); 124 } 125 ), 126 t(".mega-navigation .dropdown-menu").mouseleave(function () { 127 t("body").trigger("click"); 128 }), 129 t(document).delegate('*[data-toggle="lightbox"]', "click", function (e) { 130 e.preventDefault(), 131 t(this).ekkoLightbox({ 132 always_show_close: !1, 133 onShow: function () { 134 t(".ekko-lightbox").prepend('<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><i class="hri-times-square"></i></span></button>'); 135 }, 136 }); 137 }); 138 })(jQuery), 139 (function (t) { 140 "use strict"; 141 t(".sidebar-toggle").click(function (e) { 142 if ((e.preventDefault(), !t("#wrapper").is(":animated"))) { 143 var i = t(this).data("target"), 144 o = t(i).data("body-class"); 145 if (i) 146 if (t("body").hasClass("sidebar-right-toggled") || t("body").hasClass("sidebar-full-toggled")) { 147 var a = t(".sidebar-wrapper-active"); 148 t(a).hide(), 149 t(i).css("visibility", "visible").addClass("sidebar-wrapper-active"), 150 setTimeout(function () { 151 t(a).removeClass("sidebar-wrapper-active").removeAttr("style"); 152 }, 250); 153 } else t(i).css("visibility", "visible"), t(i).addClass("sidebar-wrapper-active"), t("body").addClass(o); 154 else 155 (i = t(".sidebar-wrapper-active")), 156 t(i).removeClass("sidebar-wrapper-active"), 157 t("body").removeClass("sidebar-right-toggled"), 158 t("body").removeClass("sidebar-full-toggled"), 159 setTimeout(function () { 160 t(i).removeAttr("style"); 161 }, 500); 162 } 163 }); 164 })(jQuery), 165 (function (t) { 166 "use strict"; 167 t(".cd-primary-nav") 168 .children(".has-children") 169 .children("a") 170 .on("click", function (t) { 171 t.preventDefault(); 172 }), 173 t(".cd-primary-nav .has-children") 174 .children("a") 175 .on("click", function (e) { 176 e.preventDefault(); 177 var i = t(this); 178 return ( 179 i.next("ul").hasClass("is-hidden") 180 ? (i.addClass("selected").next("ul").removeClass("is-hidden").end().parent(".has-children").parent("ul").addClass("moves-out"), 181 i.parent(".has-children").siblings(".has-children").children("ul").addClass("is-hidden").end().children("a").removeClass("selected")) 182 : i.removeClass("selected").next("ul").addClass("is-hidden").end().parent(".has-children").parent("ul").removeClass("moves-out"), 183 !1 184 ); 185 }), 186 t(".cd-primary-nav .go-back").on("click", function () { 187 t(this).parent("ul").addClass("is-hidden").parent(".has-children").parent("ul").removeClass("moves-out"); 188 }); 189 })(jQuery), 190 (function (t) { 191 "use strict"; 192 t("#page-changer select").change(function () { 193 window.location = t(this).val(); 194 }); 195 })(jQuery); 196var eventFound = !1; 197(function () { 198 "use strict"; 199 var t, e; 200 (t = jQuery), 201 ((e = function (e, i) { 202 var o, 203 a, 204 n = this; 205 return ( 206 (this.options = t.extend({ title: null, footer: null, remote: null }, t.fn.ekkoLightbox.defaults, i || {})), 207 (this.$element = t(e)), 208 (this.modal_id = this.options.modal_id ? this.options.modal_id : "ekkoLightbox-" + Math.floor(1e3 * Math.random() + 1)), 209 (a = 210 '<div class="modal-header"' + 211 (this.options.title || this.options.always_show_close ? "" : ' style="display:none"') + 212 '><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title">' + 213 (this.options.title || " ") + 214 "</h4></div>"), 215 (o = '<div class="modal-footer"' + (this.options.footer ? "" : ' style="display:none"') + ">" + this.options.footer + "</div>"), 216 t(document.body).append( 217 '<div id="' + 218 this.modal_id + 219 '" class="ekko-lightbox modal fade" tabindex="-1"><div class="modal-dialog"><div class="modal-content">' + 220 a + 221 '<div class="modal-body"><div class="ekko-lightbox-container"><div></div></div></div>' + 222 o + 223 "</div></div></div>" 224 ), 225 (this.modal = t("#" + this.modal_id)),
226 (this.modal_dialog = this.modal.find(".modal-dialog").first()), 227 (this.modal_content = this.modal.find(".modal-content").first()), 228 (this.modal_body = this.modal.find(".modal-body").first()), 229 (this.lightbox_container = this.modal_body.find(".ekko-lightbox-container").first()), 230 (this.lightbox_body = this.lightbox_container.find("> div:first-child").first()), 231 this.showLoading(), 232 (this.modal_arrows = null), 233 (this.border = { 234 top: parseFloat(this.modal_dialog.css("border-top-width")) + parseFloat(this.modal_content.css("border-top-width")) + parseFloat(this.modal_body.css("border-top-width")), 235 right: parseFloat(this.modal_dialog.css("border-right-width")) + parseFloat(this.modal_content.css("border-right-width")) + parseFloat(this.modal_body.css("border-right-width")), 236 bottom: parseFloat(this.modal_dialog.css("border-bottom-width")) + parseFloat(this.modal_content.css("border-bottom-width")) + parseFloat(this.modal_body.css("border-bottom-width")), 237 left: parseFloat(this.modal_dialog.css("border-left-width")) + parseFloat(this.modal_content.css("border-left-width")) + parseFloat(this.modal_body.css("border-left-width")), 238 }), 239 (this.padding = { 240 top: parseFloat(this.modal_dialog.css("padding-top")) + parseFloat(this.modal_content.css("padding-top")) + parseFloat(this.modal_body.css("padding-top")), 241 right: parseFloat(this.modal_dialog.css("padding-right")) + parseFloat(this.modal_content.css("padding-right")) + parseFloat(this.modal_body.css("padding-right")), 242 bottom: parseFloat(this.modal_dialog.css("padding-bottom")) + parseFloat(this.modal_content.css("padding-bottom")) + parseFloat(this.modal_body.css("padding-bottom")), 243 left: parseFloat(this.modal_dialog.css("padding-left")) + parseFloat(this.modal_content.css("padding-left")) + parseFloat(this.modal_body.css("padding-left")), 244 }), 245 this.modal 246 .on("show.bs.modal", this.options.onShow.bind(this)) 247 .on("shown.bs.modal", function () { 248 return n.modal_shown(), n.options.onShown.call(n); 249 }) 250 .on("hide.bs.modal", this.options.onHide.bind(this)) 251 .on("hidden.bs.modal", function () { 252 return n.gallery && t(document).off("keydown.ekkoLightbox"), n.modal.remove(), n.options.onHidden.call(n); 253 }) 254 .modal("show", i), 255 this.modal 256 ); 257 }).prototype = { 258 modal_shown: function () { 259 var e, 260 i = this; 261 return this.options.remote 262 ? ((this.gallery = this.$element.data("gallery")), 263 this.gallery && 264 ("document.body" === this.options.gallery_parent_selector || "" === this.options.gallery_parent_selector 265 ? (this.gallery_items = t(document.body).find('*[data-toggle="lightbox"][data-gallery="' + this.gallery + '"]')) 266 : (this.gallery_items = this.$element 267 .parents(this.options.gallery_parent_selector) 268 .first() 269 .find('*[data-toggle="lightbox"][data-gallery="' + this.gallery + '"]')), 270 (this.gallery_index = this.gallery_items.index(this.$element)), 271 t(document).on("keydown.ekkoLightbox", this.navigate.bind(this)), 272 this.options.directional_arrows && 273 1 < this.gallery_items.length && 274 (this.lightbox_container.append( 275 '<div class="ekko-lightbox-nav-overlay"><a href="#" class="' + 276 this.strip_stops(this.options.left_arrow_class) + 277 '"></a><a href="#" class="' + 278 this.strip_stops(this.options.right_arrow_class) + 279 '"></a></div>' 280 ), 281 (this.modal_arrows = this.lightbox_container.find("div.ekko-lightbox-nav-overlay").first()), 282 this.lightbox_container.find("a" + this.strip_spaces(this.options.left_arrow_class)).on("click", function (t) { 283 return t.preventDefault(), i.navigate_left(); 284 }), 285 this.lightbox_container.find("a" + this.strip_spaces(this.options.right_arrow_class)).on("click", function (t) { 286 return t.preventDefault(), i.navigate_right(); 287 }))), 288 this.options.type 289 ? "image" === this.options.type 290 ? this.preloadImage(this.options.remote, !0) 291 : "youtube" === this.options.type && (e = this.getYoutubeId(this.options.remote)) 292 ? this.showYoutubeVideo(e) 293 : "vimeo" === this.options.type 294 ? this.showVimeoVideo(this.options.remote) 295 : "instagram" === this.options.type 296 ? this.showInstagramVideo(this.options.remote) 297 : "url" === this.options.type 298 ? this.loadRemoteContent(this.options.remote) 299 : "video" === this.options.type 300 ? this.showVideoIframe(this.options.remote) 301 : this.error('Could not detect remote target type. Force the type using data-type="image|youtube|vimeo|instagram|url|video"') 302 : this.detectRemoteType(this.options.remote)) 303 : this.error("No remote target given"); 304 },
305 strip_stops: function (t) { 306 return t.replace(/\./g, ""); 307 }, 308 strip_spaces: function (t) { 309 return t.replace(/\s/g, ""); 310 }, 311 isImage: function (t) { 312 return t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i); 313 }, 314 isSwf: function (t) { 315 return t.match(/\.(swf)((\?|#).*)?$/i); 316 }, 317 getYoutubeId: function (t) { 318 var e; 319 return !(!(e = t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)) || 11 !== e[2].length) && e[2]; 320 }, 321 getVimeoId: function (t) { 322 return 0 < t.indexOf("vimeo") && t; 323 }, 324 getInstagramId: function (t) { 325 return 0 < t.indexOf("instagram") && t; 326 }, 327 navigate: function (t) { 328 if (39 === (t = t || window.event).keyCode || 37 === t.keyCode) { 329 if (39 === t.keyCode) return this.navigate_right(); 330 if (37 === t.keyCode) return this.navigate_left(); 331 } 332 }, 333 navigateTo: function (e) { 334 var i, o; 335 return e < 0 || e > this.gallery_items.length - 1 336 ? this 337 : (this.showLoading(), 338 (this.gallery_index = e), 339 (this.$element = t(this.gallery_items.get(this.gallery_index))), 340 this.updateTitleAndFooter(), 341 (o = this.$element.attr("data-remote") || this.$element.attr("href")), 342 this.detectRemoteType(o, this.$element.attr("data-type") || !1), 343 this.gallery_index + 1 < this.gallery_items.length && ((o = (i = t(this.gallery_items.get(this.gallery_index + 1), !1)).attr("data-remote") || i.attr("href")), "image" === i.attr("data-type") || this.isImage(o)) 344 ? this.preloadImage(o, !1) 345 : void 0); 346 }, 347 navigate_left: function () { 348 return 1 !== this.gallery_items.length 349 ? (0 === this.gallery_index ? (this.gallery_index = this.gallery_items.length - 1) : this.gallery_index--, this.options.onNavigate.call(this, "left", this.gallery_index), this.navigateTo(this.gallery_index)) 350 : void 0; 351 }, 352 navigate_right: function () { 353 return 1 !== this.gallery_items.length 354 ? (this.gallery_index === this.gallery_items.length - 1 ? (this.gallery_index = 0) : this.gallery_index++, this.options.onNavigate.call(this, "right", this.gallery_index), this.navigateTo(this.gallery_index)) 355 : void 0; 356 }, 357 detectRemoteType: function (t, e) { 358 var i; 359 return "image" === (e = e || !1) || this.isImage(t) 360 ? ((this.options.type = "image"), this.preloadImage(t, !0)) 361 : "youtube" === e || (i = this.getYoutubeId(t)) 362 ? ((this.options.type = "youtube"), this.showYoutubeVideo(i)) 363 : "vimeo" === e || (i = this.getVimeoId(t)) 364 ? ((this.options.type = "vimeo"), this.showVimeoVideo(i)) 365 : "instagram" === e || (i = this.getInstagramId(t)) 366 ? ((this.options.type = "instagram"), this.showInstagramVideo(i)) 367 : "video" === e 368 ? ((this.options.type = "video"), this.showVideoIframe(i)) 369 : ((this.options.type = "url"), this.loadRemoteContent(t)); 370 }, 371 updateTitleAndFooter: function () { 372 var t, e, i, o; 373 return ( 374 (i = this.modal_content.find(".modal-header")),
375 (e = this.modal_content.find(".modal-footer")), 376 (o = this.$element.data("title") || ""), 377 (t = this.$element.data("footer") || ""), 378 o || this.options.always_show_close 379 ? i 380 .css("display", "") 381 .find(".modal-title") 382 .html(o || " ") 383 : i.css("display", "none"), 384 t ? e.css("display", "").html(t) : e.css("display", "none"), 385 this 386 ); 387 }, 388 showLoading: function () { 389 return this.lightbox_body.html('<div class="modal-loading">' + this.options.loadingMessage + "</div>"), this; 390 }, 391 showYoutubeVideo: function (t) { 392 var e, i; 393 return (e = (i = this.checkDimensions(this.$element.data("width") || 560)) / (560 / 315)), this.showVideoIframe("//www.youtube.com/embed/" + t + "?badge=0&autoplay=1&html5=1", i, e); 394 }, 395 showVimeoVideo: function (t) { 396 var e, i; 397 return (e = (i = this.checkDimensions(this.$element.data("width") || 560)) / (500 / 281)), this.showVideoIframe(t + "?autoplay=1", i, e); 398 }, 399 showInstagramVideo: function (t) { 400 var e, i; 401 return ( 402 (i = this.checkDimensions(this.$element.data("width") || 612)), 403 this.resize(i), 404 (e = i + 80), 405 this.lightbox_body.html('<iframe width="' + i + '" height="' + e + '" src="' + this.addTrailingSlash(t) + 'embed/" frameborder="0" allowfullscreen></iframe>'), 406 this.options.onContentLoaded.call(this), 407 this.modal_arrows ? this.modal_arrows.css("display", "none") : void 0 408 ); 409 }, 410 showVideoIframe: function (t, e, i) { 411 return ( 412 (i = i || e), 413 this.resize(e), 414 this.lightbox_body.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="' + e + '" height="' + i + '" src="' + t + '" frameborder="0" allowfullscreenclass="embed-responsive-item"></iframe></div>'), 415 this.options.onContentLoaded.call(this), 416 this.modal_arrows && this.modal_arrows.css("display", "none"), 417 this 418 ); 419 }, 420 loadRemoteContent: function (e) { 421 var i, 422 o = this; 423 return ( 424 (i = this.$element.data("width") || 560), 425 this.resize(i), 426 this.$element.data("disableExternalCheck") || this.isExternal(e) 427 ? (this.lightbox_body.html('<iframe width="' + i + '" height="' + i + '" src="' + e + '" frameborder="0" allowfullscreen></iframe>'), this.options.onContentLoaded.call(this)) 428 : this.lightbox_body.load( 429 e, 430 t.proxy(function () { 431 return o.$element.trigger("loaded.bs.modal"); 432 }) 433 ), 434 this.modal_arrows && this.modal_arrows.css("display", "none"), 435 this 436 ); 437 }, 438 isExternal: function (t) { 439 var e; 440 return ( 441 ("string" == typeof (e = t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/))[1] && 0 < e[1].length && e[1].toLowerCase() !== location.protocol) || 442 ("string" == typeof e[2] && 0 < e[2].length && e[2].replace(new RegExp(":(" + { "http:": 80, "https:": 443 }[location.protocol] + ")?$"), "") !== location.host) 443 ); 444 }, 445 error: function (t) { 446 return this.lightbox_body.html(t), this; 447 }, 448 preloadImage: function (e, i) { 449 var o, 450 a = this; 451 return ( 452 (o = new Image()), 453 (null == i || !0 === i) && 454 ((o.onload = function () { 455 var e; 456 return (e = t("<img />")).attr("src", o.src), e.addClass("img-responsive"), a.lightbox_body.html(e), a.modal_arrows && a.modal_arrows.css("display", "block"), a.resize(o.width), a.options.onContentLoaded.call(a); 457 }), 458 (o.onerror = function () { 459 return a.error("Failed to load image: " + e); 460 })), 461 (o.src = e), 462 o 463 ); 464 }, 465 resize: function (e) { 466 var i; 467 return ( 468 (i = e + this.border.left + this.padding.left + this.padding.right + this.border.right), 469 this.modal_dialog.css("width", "auto").css("max-width", i), 470 this.lightbox_container.find("a").css("line-height", function () { 471 return t(this).parent().height() + "px"; 472 }), 473 this 474 ); 475 }, 476 checkDimensions: function (t) { 477 var e; 478 return (e = t + this.border.left + this.padding.left + this.padding.right + this.border.right), document.body.clientWidth < e && (t = this.modal_body.width()), t; 479 }, 480 close: function () { 481 return this.modal.modal("hide"); 482 }, 483 addTrailingSlash: function (t) { 484 return "/" !== t.substr(-1) && (t += "/"), t; 485 }, 486 }), 487 (t.fn.ekkoLightbox = function (i) { 488 return this.each(function () { 489 var o; 490 return (o = t(this)), (i = t.extend({ remote: o.attr("data-remote") || o.attr("href"), gallery_parent_selector: o.attr("data-parent"), type: o.attr("data-type") }, i, o.data())), new e(this, i), this; 491 }); 492 }), 493 (t.fn.ekkoLightbox.defaults = { 494 gallery_parent_selector: "document.body", 495 left_arrow_class: ".glyphicon .glyphicon-chevron-left", 496 right_arrow_class: ".glyphicon .glyphicon-chevron-right", 497 directional_arrows: !0, 498 type: null, 499 always_show_close: !0, 500 loadingMessage: "Loading...", 501 onShow: function () { }, 502 onShown: function () { }, 503 onHide: function () { }, 504 onHidden: function () { }, 505 onNavigate: function () { }, 506 onContentLoaded: function () { }, 507 }); 508}.call(this), 509 $("#TicketFilter").length && 510 $("div.packages-component").each(function (t) { 511 ($this = $(this).find("h4.component-heading-extend")), 512 "" != $this.html().trim() && ($("<a name='" + t + "Package'></a>").insertBefore($this), $("#selected-ticket-page").append($("<option>", { value: "#" + t + "Package", text: $this.html() }))); 513 })); 514 515/*Cookie Control */ 516function showCookies() { 517 $("#consent").removeClass("hide"); 518 $("#consent").addClass("show"); 519 $("#cookiesettings").removeClass("show"); 520 $("#cookiesettings").addClass("hide"); 521};
522 523function hideCookies(data) { 524 $("#consent").addClass("hide"); 525 $("#consent").removeClass("show"); 526 $("#cookiesettings").addClass("show"); 527 $("#cookiesettings").removeClass("hide"); 528 529 if (data === 'all') { 530 showScripts(); 531 $('#cookie-essential-input').removeClass('cookie-btn-selected'); 532 $('#cookie-all-input').addClass('cookie-btn-selected'); 533 } 534 else { 535 resetScripts(); 536 } 537} 538 539function resetScripts() { 540 $('#cookies-div').html(''); 541 $('#cookie-essential-input').addClass('cookie-btn-selected'); 542 $('#cookie-all-input').removeClass('cookie-btn-selected'); 543} 544 545function showScripts() { 546 $.ajax({ 547 url: "/ThirdPartyConfiguration/GetScripts", 548 method: "POST", 549 success: function (data) { $('#cookies-div').html(data); }, 550 error: function () { showCookies() }, 551 }); 552} 553 554function SetCookies(setting) { 555 $.ajax({ 556 url: "/Consent/SetCookieConsent?cookieLevel=" + setting, 557 method: "POST", 558 success: function (data) { hideCookies(data) }, 559 error: function () { showCookies() }, 560 }); 561} 562/*Cookie Control END*/ 563 564$(function () { 565 $('table:not(".NoChange")').removeClass(); 566 $('table:not(".NoChange")').addClass('table table-striped table-bordered table-condensed table-sm'); 567}); 568 569$(function () { 570 // Bind event listeners 571 $("#divLoadMoreNews").on("click", loadMoreNews); 572}); 573 574var loadMoreNews = function loadMoreNews() { 575 var loading = "<img src=\"/Content/images/purple_loader.gif\" style=\"width: 30px; height: 30px\"/>"; 576 $("#divLoadMoreNews").html(loading); 577 var pageIndex = +$("#NewsPageIndex").text() + 1; 578 $("#NewsPageIndex").text(pageIndex); 579 loadNextPageOfResults(pageIndex); 580 //$("#divLoadMoreNews").html("View More News"); 581}; 582 583var loadNextPageOfResults = function loadNextPageOfResults(pageIndex) { 584 return $.ajax("/News/GetNextPage", { 585 type: "GET", 586 data: { 587 pageIndex: pageIndex 588 }, 589 cache: false, 590 traditional: true, 591 success: function success(data) { 592 refreshView(data); 593 }, 594 error: function error(xhr, status, _error5) { 595 console.log(xhr.responseText); 596 }, 597 complete: function () { 598 $("#divLoadMoreNews").html("View More News"); 599 } 600 }); 601}; 602 603var refreshView = function refreshView(data) { 604 // this function replaces the HTML with the data returned from the controller/server 605 $("#newsList").html(data); 606};
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.