1"use strict"; 2 3jQuery(document).on("ready", function () { 4 // var sizeRegister1 = $("#register1").css("font-size"); 5 6 // $("#register1").mouseover(function(event) { 7 // $("#register1").html("Wkrótce dostÄpne"); 8 // $("#register1").css("font-size", 13); 9 // $("#register1").css("transition", "none"); 10 // }); 11 12 // $("#register1").mouseleave(function(event) { 13 // $("#register1").html("Wkrótce dostÄpne"); 14 // $("#register1").css("font-size", sizeRegister1); 15 // }); 16 17 // $("#register1").click(function(event) { 18 // event.preventDefault(); 19 // }); 20 21 // var sizeRegister2 = $("#register2").css("font-size"); 22 23 // $("#register2").mouseover(function(event) { 24 // $("#register2").html("Wkrótce dostÄpne"); 25 // $("#register2").css("font-size", 13); 26 // $("#register2").css("transition", "none"); 27 // }); 28 29 // $("#register2").mouseleave(function(event) { 30 // $("#register2").html("Wkrótce dostÄpne"); 31 // $("#register2").css("font-size", sizeRegister2); 32 // }); 33 34 // $("#register2").click(function(event) { 35 // event.preventDefault(); 36 // }); 37 38 // var myCirclePlayer = new CirclePlayer( 39 // "#jquery_jplayer_1", 40 // { 41 // m4a: 42 // "https://api.soundcloud.com/tracks/380696789/download?oauth_token=1-253120-379451507-4db2c90904a98" 43 // }, 44 // { 45 // cssSelectorAncestor: "#cp_container_1", 46 // swfPath: "http://jplayer.org/latest/dist/jplayer", 47 // wmode: "window", 48 // keyEnabled: true 49 // } 50 // ); 51 52 // $(window).resize(function() { 53 // var width = $(window).width(); 54 55 // if (width < 500) { 56 // resizevideo(300, 200); 57 // } else if (width < 600) { 58 // resizevideo(380, 240); 59 // } else if (width < 977) { 60 // resizevideo(500, 300); 61 // } else if (width < 1200) { 62 // resizevideo(430, 280); 63 // } else { 64 // resizevideo(500, 281); 65 // } 66 // // else { 67 // // resizevideo(853, 490); 68 // // } 69 // }); 70 71 $("#day-two-container").on("click", function () { 72 $("#schedulecontent").css("background-color", "#f7f7f7"); 73 }); 74 75 $("#day-one-container").on("click", function () { 76 if ($("#hall-switch-one").hasClass("active")) { 77 $("#schedulecontent").css("background-color", "#f7f7f7"); 78 } else { 79 $("#schedulecontent").css("background-color", "#ECEEE9"); 80 } 81 }); 82 83 $("#hall-switch-one").on("click", function () { 84 $("#schedulecontent").css("background-color", "#f7f7f7"); 85 }); 86 87 $("#hall-switch-two").on("click", function () { 88 $("#schedulecontent").css("background-color", "#ECEEE9"); 89 }); 90 91 /* ------------------------------------- 92 TITL EFFECT 93 -------------------------------------- */ 94 var _tg_bannercontent = jQuery(".tg-homebanner .tg-bannercontent"); 95 _tg_bannercontent.tilt({ 96 perspective: 1000, 97 }); 98 /* ------------------------------------- 99 SCROLL NAV 100 -------------------------------------- */ 101 var body = jQuery("body"); 102 if (body.hasClass("tg-home")) { 103 body.addClass("home"); 104 jQuery(window).on("scroll", function () { 105 var scroll = jQuery(window).scrollTop(); 106 if (scroll >= 10) { 107 jQuery("#tg-header").addClass("single-page-nav"); 108 } else { 109 jQuery("#tg-header").removeClass("single-page-nav"); 110 } 111 }); 112 } 113 var _tg_navigation = jQuery(".tg-navigation"); 114 _tg_navigation.singlePageNav({ 115 updateHash: false, 116 offset: 90, 117 filter: ":not(.external)", 118 }); 119 var _tg_btnscrolltop = jQuery("#tg-btnscrolltop"); 120 _tg_btnscrolltop.on("click", function () { 121 var _scrollUp = jQuery("html, body"); 122 _scrollUp.animate({ scrollTop: 0 }, "slow"); 123 }); 124 /* ------------------------------------- 125 HOME BANNER SLIDER 126 -------------------------------------- */ 127 var _tg_homeslider = jQuery("#tg-homeslider"); 128 _tg_homeslider.owlCarousel({ 129 items: 1, 130 loop: true, 131 nav: true, 132 autoplay: false, 133 navText: [ 134 '<i class="icon-chevron-left"></i><span>prev</span>', 135 '<i class="icon-chevron-right"></i><span>next</span>', 136 ], 137 navClass: ["tg-btnprev", "tg-btnnext"], 138 }); 139 /*------------------------------------------ 140 SIDE NAVIGATION 141 ------------------------------------------*/ 142 var _tg_btnopenclose = jQuery(".tg-btnopenclose"); 143 _tg_btnopenclose.on("click", function () { 144 jQuery("#tg-wrapper").toggleClass("tg-sidenavshow"); 145 if (jQuery("#tg-wrapper").hasClass("tg-sidenavshow")) { 146 jQuery("body").addClass("spread-overlay"); 147 return true; 148 } 149 jQuery("body").removeClass("spread-overlay"); 150 }); 151 var _tg_close = jQuery(".tg-close"); 152 _tg_close.on("click", function () { 153 jQuery("#tg-wrapper").toggleClass("tg-sidenavshow"); 154 if (jQuery("#tg-wrapper").hasClass("tg-sidenavshow")) { 155 jQuery("body").addClass("spread-overlay"); 156 return true; 157 } 158 jQuery("body").removeClass("spread-overlay"); 159 }); 160 /* ------------------------------------- 161 NEXT EVENT COUNTER 162 -------------------------------------- */ 163 var _tg_upcomingeventcounter = jQuery("#tg-upcomingeventcounter"); 164 _tg_upcomingeventcounter.countdown("2020/01/16", function (event) { 165 var $this = jQuery(this).html( 166 event.strftime( 167 "" + 168 '<div class="tg-eventcounter"><span>%-D</span><span> Days Left</span></div>' + 169 '<div class="tg-eventcounter"><span>%H</span><span>Hours</span></div>' + 170 '<div class="tg-eventcounter"><span>%M</span><span>Minutes</span></div>' + 171 '<div class="tg-eventcounter"><span>%S</span><span>Seconds</span></div>' 172 ) 173 ); 174 }); 175 /* ------------------------------------- 176 NEXT EVENT COUNTER 177 -------------------------------------- */ 178 var _tg_upcomingeventcountervtwo = jQuery("#tg-upcomingeventcountervtwo"); 179 _tg_upcomingeventcountervtwo.countdown("2025/01/16 09:00", function (event) { 180 var $this = jQuery(this).html( 181 event.strftime( 182 "" + 183 '<div class="tg-eventcounterholder"><div class="tg-eventcounter"><span>%-D</span><span>Dni</span></div></div>' + 184 '<div class="tg-eventcounterholder"><div class="tg-eventcounter"><span>%H</span><span>Godziny</span></div></div>' + 185 '<div class="tg-eventcounterholder"><div class="tg-eventcounter"><span>%M</span><span>Minuty</span></div></div>' + 186 '<div class="tg-eventcounterholder"><div class="tg-eventcounter"><span>%S</span><span>Sekundy</span></div></div>' 187 ) 188 ); 189 }); 190 /* ------------------------------------- 191 TESTIMONIAL SLIDER 192 -------------------------------------- */ 193 var _tg_testimonialslider = jQuery("#tg-testimonialslider"); 194 _tg_testimonialslider.owlCarousel({ 195 items: 1, 196 loop: true, 197 nav: false, 198 animateIn: "fadeIn", 199 autoplay: true, 200 }); 201 /* ------------------------------------- 202 TESTIMONIAL SLIDER 203 -------------------------------------- */ 204 var _tg_eventspeakerslider = jQuery("#tg-eventspeakerslider"); 205 _tg_eventspeakerslider.owlCarousel({ 206 loop: false, 207 nav: true, 208 items: 14, 209 animateIn: "fadeIn", 210 autoplay: true,
211 responsiveClass: false, 212 navText: [ 213 '<i class="icon-chevron-left"></i><span>Poprz.</span>', 214 '<i class="icon-chevron-right"></i><span>Nast.</span>', 215 ], 216 navClass: ["tg-btnprev", "tg-btnnext"], 217 responsive: { 218 0: { 219 items: 1, 220 }, 221 480: { 222 items: 2, 223 }, 224 768: { 225 items: 3, 226 }, 227 992: { 228 items: 4, 229 }, 230 }, 231 }); 232 /* ------------------------------------- 233 THEME ACCORDION 234 -------------------------------------- */ 235 function themeAccordion() { 236 jQuery(".tg-panelcontent").hide(); 237 jQuery(".tg-accordion h4:first") 238 .addClass("active") 239 .next() 240 .slideDown("slow"); 241 jQuery(".tg-accordion h4").on("click", function () { 242 if (jQuery(this).next().is(":hidden")) { 243 jQuery(".tg-accordion h4").removeClass("active").next().slideUp("slow"); 244 jQuery(this).toggleClass("active").next().slideDown("slow"); 245 } 246 }); 247 } 248 themeAccordion(); 249 /* ------------------------------------- 250 GALLERY SLIDER 251 -------------------------------------- */ 252 function gallerySlider(a, b) { 253 var sync1 = jQuery(a); 254 var sync2 = jQuery(b); 255 var slidesPerPage = 1; 256 var syncedSecondary = true; 257 258 sync1.owlCarousel({ 259 items: 1, 260 loop: true, 261 nav: false, 262 dots: false, 263 autoplay: false, 264 slideSpeed: 2000, 265 responsiveRefreshRate: 200, 266 }); 267 // .on("changed.owl.carousel", syncPosition); 268 sync2 269 .on("initialized.owl.carousel", function () { 270 sync2.find(".owl-item").eq(0).addClass("current"); 271 }) 272 .owlCarousel({ 273 items: slidesPerPage, 274 dots: false, 275 nav: true, 276 smartSpeed: 200, 277 slideSpeed: 500, 278 slideBy: slidesPerPage, 279 responsiveRefreshRate: 100, 280 navText: [ 281 '<i class="icon-chevron-left"></i><span>Poprz.</span>', 282 '<i class="icon-chevron-right"></i><span>Nast.</span>', 283 ], 284 navClass: ["tg-btnprev", "tg-btnnext"], 285 }) 286 .on("changed.owl.carousel", syncPosition2); 287 function syncPosition(el) { 288 var count = el.item.count - 1; 289 var current = Math.round(el.item.index - el.item.count / 2 - 0.5); 290 if (current < 0) { 291 current = count; 292 } 293 if (current > count) { 294 current = 0; 295 } 296 sync2 297 .find(".owl-item") 298 .removeClass("current") 299 .eq(current) 300 .addClass("current"); 301 var onscreen = sync2.find(".owl-item.active").length - 1; 302 var start = sync2.find(".owl-item.active").first().index(); 303 var end = sync2.find(".owl-item.active").last().index(); 304 if (current > end) { 305 sync2.data("owl.carousel").to(current, 100, true); 306 } 307 if (current < start) { 308 sync2.data("owl.carousel").to(current - onscreen, 100, true); 309 } 310 } 311 function syncPosition2(el) { 312 if (syncedSecondary) { 313 var number = el.item.index; 314 sync1.data("owl.carousel").to(number, 100, true); 315 } 316 } 317 sync2.on("click", ".owl-item", function (e) { 318 e.preventDefault(); 319 var number = jQuery(this).index(); 320 sync1.data("owl.carousel").to(number, 300, true); 321 }); 322 } 323 324 gallerySlider(".tg-galleryslider_2018", ".tg-gallerthumbslider_2018"); 325 gallerySlider(".tg-galleryslider_2017", ".tg-gallerthumbslider_2017"); 326 327 /* ------------------------------------- 328 PHOTO SWIPE 329 -------------------------------------- */ 330 var initPhotoSwipeFromDOM = function (gallerySelector) { 331 var galleryElements = document.querySelectorAll(gallerySelector); 332 333 var parseThumbnailElements = function (elements) { 334 var thumbElements = [], 335 items = [], 336 figureEl, 337 linkEl, 338 size, 339 item; 340 341 for (var i = 0; i < elements.length; i++) { 342 for (var j = 0; j < elements[i].childNodes.length; j++) { 343 thumbElements.push(elements[i].childNodes[j]); 344 } 345 } 346 347 for (var i = 0; i < thumbElements.length; i++) { 348 figureEl = thumbElements[i]; 349 350 if (figureEl.nodeType !== 1) { 351 continue; 352 } 353 linkEl = figureEl.children[0]; // <a> element 354 size = linkEl.getAttribute("data-size").split("x"); 355 item = { 356 src: linkEl.getAttribute("href"), 357 w: parseInt(size[0], 10), 358 h: parseInt(size[1], 10), 359 }; 360 if (figureEl.children.length > 1) { 361 item.title = figureEl.children[1].innerHTML; 362 } 363 if (linkEl.children.length > 0) { 364 item.msrc = linkEl.children[0].getAttribute("src"); 365 } 366 item.el = figureEl; 367 items.push(item); 368 } 369 return items; 370 }; 371 var closest = function closest(el, fn) { 372 return el && (fn(el) ? el : closest(el.parentNode, fn)); 373 }; 374 var onThumbnailsClick = function (index, e) { 375 e = e || window.event; 376 e.preventDefault ? e.preventDefault() : (e.returnValue = false); 377 var eTarget = e.target || e.srcElement; 378 var clickedListItem = closest(eTarget, function (el) { 379 return el.tagName && el.tagName.toUpperCase() === "FIGURE"; 380 }); 381 if (!clickedListItem) { 382 return; 383 } 384 385 if (index >= 0) { 386 openPhotoSwipe(index, galleryElements); 387 } 388 return false; 389 }; 390 var photoswipeParseHash = function () { 391 var hash = window.location.hash.substring(1), 392 params = {}; 393 if (hash.length < 5) { 394 return params; 395 } 396 var vars = hash.split("&"); 397 for (var i = 0; i < vars.length; i++) { 398 if (!vars[i]) { 399 continue; 400 } 401 var pair = vars[i].split("="); 402 if (pair.length < 2) { 403 continue; 404 } 405 params[pair[0]] = pair[1]; 406 } 407 408 params.gid = 1; 409 return params; 410 }; 411 var openPhotoSwipe = function ( 412 index, 413 galleryElement, 414 disableAnimation, 415 fromURL 416 ) { 417 var pswpElement = document.querySelectorAll(".pswp")[0], 418 gallery, 419 options, 420 items; 421 items = parseThumbnailElements(galleryElement); 422 423 options = { 424 galleryUID: 1, 425 getThumbBoundsFn: function (index) { 426 var thumbnail = items[index].el.getElementsByTagName("img")[0], // find thumbnail 427 pageYScroll = 428 window.pageYOffset || document.documentElement.scrollTop, 429 rect = thumbnail.getBoundingClientRect(); 430 return { x: rect.left, y: rect.top + pageYScroll, w: rect.width }; 431 }, 432 }; 433 if (fromURL) { 434 if (options.galleryPIDs) { 435 for (var j = 0; j < items.length; j++) { 436 if (items[j].pid == index) { 437 options.index = j; 438 break; 439 } 440 } 441 } else { 442 options.index = parseInt(index, 10) - 1; 443 } 444 } else { 445 options.index = parseInt(index, 10); 446 } 447 if (isNaN(options.index)) { 448 return; 449 } 450 if (disableAnimation) { 451 options.showAnimationDuration = 0; 452 } 453 gallery = new PhotoSwipe( 454 pswpElement, 455 PhotoSwipeUI_Default, 456 items, 457 options 458 ); 459 gallery.init(); 460 }; 461 462 for (var i = 0, l = galleryElements.length; i < l; i++) { 463 galleryElements[i].onclick = onThumbnailsClick.bind(this, i); 464 } 465 var hashData = photoswipeParseHash(); 466 if (hashData.pid) { 467 openPhotoSwipe(hashData.pid, galleryElements, true, true); 468 } 469 }; 470 initPhotoSwipeFromDOM(".my-gallery"); 471 /* ------------------------------------- 472 STICKY HEADER 473 -------------------------------------- */ 474 jQuery(window).on("scroll", function () { 475 var scroll = jQuery(window).scrollTop(); 476 if (scroll >= 900) { 477 jQuery(".tg-header.tg-headervthree").addClass("tg-showheader"); 478 } else { 479 jQuery(".tg-header.tg-headervthree").removeClass("tg-showheader"); 480 } 481 }); 482 /* ------------------------------------- 483 PRETTY PHOTO GALLERY 484 -------------------------------------- */ 485 jQuery("a[data-rel]").each(function () { 486 jQuery(this).attr("rel", jQuery(this).data("rel")); 487 }); 488 jQuery("a[data-rel^='prettyPhoto']").prettyPhoto({ 489 animation_speed: "normal", 490 theme: "dark_square", 491 slideshow: 3000, 492 autoplay_slideshow: false, 493 social_tools: false, 494 }); 495 /* ------------------------------------- 496 THEME TOOLTIP 497 -------------------------------------- */ 498 jQuery('[data-toggle="tooltip"]').tooltip(); 499});
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.