PageSourceSearch

https://studiumchemie.cz/xdUjbauGpI/themes/studiumchemie/dist/main.js?ver=1.01

js studiumchemie.cz collected 2026-10-06 11:09:43 UTC 10,030 bytes, 8 lines download raw bytes

1/*!
2 * Stickyfill -- `position: sticky` polyfill
3 * v. 1.1.4 | https://github.com/wilddeer/stickyfill
4 * Copyright Oleg Korsunsky | http://wd.dizaina.net/
5 *
6 * MIT License
7 */
8!function(a,b){function c(){y=D=z=A=B=C=K}function d(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])}function e(a){return parseFloat(a)||0}function f(){F={top:b.pageYOffset,left:b.pageXOffset}}function g(){return b.pageXOffset!=F.left?(f(),void z()):void(b.pageYOffset!=F.top&&(f(),i()))}function h(a){setTimeout(function(){b.pageYOffset!=F.top&&(F.top=b.pageYOffset,i())},0)}function i(){for(var a=H.length-1;a>=0;a--)j(H[a])}function j(a){if(a.inited){var b=F.top<=a.limit.start?0:F.top>=a.limit.end?2:1;a.mode!=b&&p(a,b)}}function k(){for(var a=H.length-1;a>=0;a--)if(H[a].inited){var b=Math.abs(t(H[a].clone)-H[a].docOffsetTop),c=Math.abs(H[a].parent.node.offsetHeight-H[a].parent.height);if(b>=2||c>=2)return!1}return!0}function l(a){isNaN(parseFloat(a.computed.top))||a.isCell||"none"==a.computed.display||(a.inited=!0,a.clone||q(a),"absolute"!=a.parent.computed.position&&"relative"!=a.parent.computed.position&&(a.parent.node.style.position="relative"),j(a),a.parent.height=a.parent.node.offsetHeight,a.docOffsetTop=t(a.clone))}function m(a){var b=!0;a.clone&&r(a),d(a.node.style,a.css);for(var c=H.length-1;c>=0;c--)if(H[c].node!==a.node&&H[c].parent.node===a.parent.node){b=!1;break}b&&(a.parent.node.style.position=a.parent.css.position),a.mode=-1}function n(){for(var a=H.length-1;a>=0;a--)l(H[a])}function o(){for(var a=H.length-1;a>=0;a--)m(H[a])}function p(a,b){var c=a.node.style;switch(b){case 0:c.position="absolute",c.left=a.offset.left+"px",c.right=a.offset.right+"px",c.top=a.offset.top+"px",c.bottom="auto",c.width="auto",c.marginLeft=0,c.marginRight=0,c.marginTop=0;break;case 1:c.position="fixed",c.left=a.box.left+"px",c.right=a.box.right+"px",c.top=a.css.top,c.bottom="auto",c.width="auto",c.marginLeft=0,c.marginRight=0,c.marginTop=0;break;case 2:c.position="absolute",c.left=a.offset.left+"px",c.right=a.offset.right+"px",c.top="auto",c.bottom=0,c.width="auto",c.marginLeft=0,c.marginRight=0}a.mode=b}function q(a){a.clone=document.createElement("div");var b=a.node.nextSibling||a.node,c=a.clone.style;c.height=a.height+"px",c.width=a.width+"px",c.marginTop=a.computed.marginTop,c.marginBottom=a.computed.marginBottom,c.marginLeft=a.computed.marginLeft,c.marginRight=a.computed.marginRight,c.padding=c.border=c.borderSpacing=0,c.fontSize="1em",c.position="static",c.cssFloat=a.computed.cssFloat,a.node.parentNode.insertBefore(a.clone,b)}function r(a){a.clone.parentNode.removeChild(a.clone),a.clone=void 0}function s(a){var b=getComputedStyle(a),c=a.parentNode,d=getComputedStyle(c),f=a.style.position;a.style.position="relative";var g={top:b.top,marginTop:b.marginTop,marginBottom:b.marginBottom,marginLeft:b.marginLeft,marginRight:b.marginRight,cssFloat:b.cssFloat,display:b.display},h={top:e(b.top),marginBottom:e(b.marginBottom),paddingLeft:e(b.paddingLeft),paddingRight:e(b.paddingRight),borderLeftWidth:e(b.borderLeftWidth),borderRightWidth:e(b.borderRightWidth)};a.style.position=f;var i={position:a.style.position,top:a.style.top,bottom:a.style.bottom,left:a.style.left,right:a.style.right,width:a.style.width,marginTop:a.style.marginTop,marginLeft:a.style.marginLeft,marginRight:a.style.marginRight},j=u(a),k=u(c),l={node:c,css:{position:c.style.position},computed:{position:d.position},numeric:{borderLeftWidth:e(d.borderLeftWidth),borderRightWidth:e(d.borderRightWidth),borderTopWidth:e(d.borderTopWidth),borderBottomWidth:e(d.borderBottomWidth)}},m={node:a,box:{left:j.win.left,right:J.clientWidth-j.win.right},offset:{top:j.win.top-k.win.top-l.numeric.borderTopWidth,left:j.win.left-k.win.left-l.numeric.borderLeftWidth,right:-j.win.right+k.win.right-l.numeric.borderRightWidth},css:i,isCell:"table-cell"==b.display,computed:g,numeric:h,width:j.win.right-j.win.left,height:j.win.bottom-j.win.top,mode:-1,inited:!1,parent:l,limit:{start:j.doc.top-h.top,end:k.doc.top+c.offsetHeight-l.numeric.borderBottomWidth-a.offsetHeight-h.top-h.marginBottom}};return m}function t(a){for(var b=0;a;)b+=a.offsetTop,a=a.offsetParent;return b}function u(a){var c=a.getBoundingClientRect();return{doc:{top:c.top+b.pageYOffset,left:c.left+b.pageXOffset},win:c}}function v(){G=setInterval(function(){!k()&&z()},500)}function w(){clearInterval(G)}function x(){I&&(document[L]?w():v())}function y(){I||(f(),n(),b.addEventListener("scroll",g),b.addEventListener("wheel",h),b.addEventListener("resize",z),b.addEventListener("orientationchange",z),a.addEventListener(M,x),v(),I=!0)}function z(){if(I){o();for(var a=H.length-1;a>=0;a--)H[a]=s(H[a].node);n()}}function A(){b.removeEventListener("scroll",g),b.removeEventListener("wheel",h),b.removeEventListener("resize",z),b.removeEventListener("orientationchange",z),a.removeEventListener(M,x),w(),I=!1}function B(){A(),o()}function C(){for(B();H.length;)H.pop()}function D(a){for(var b=H.length-1;b>=0;b--)if(H[b].node===a)return;var c=s(a);H.push(c),I?l(c):y()}function E(a){for(var b=H.length-1;b>=0;b--)H[b].node===a&&(m(H[b]),H.splice(b,1))}var F,G,H=[],I=!1,J=a.documentElement,K=function(){},L="hidden",M="visibilitychange";void 0!==a.webkitHidden&&(L="webkitHidden",M="webkitvisibilitychange"),b.getComputedStyle||c();for(var N=["","-webkit-","-moz-","-ms-"],O=document.createElement("div"),P=N.length-1;P>=0;P--){try{O.style.position=N[P]+"sticky"}
8catch(Q){}""!=O.style.position&&c()}f(),b.Stickyfill={stickies:H,add:D,remove:E,init:y,rebuild:z,pause:A,stop:B,kill:C}}(document,window),window.jQuery&&!function($){$.fn.Stickyfill=function(a){return this.each(function(){Stickyfill.add(this)}),this}}(window.jQuery);;"use strict";function slideTo(a){var b=a.offset(),c=b.top,d=c,e=$nav.height();jQuery("body, html").animate({scrollTop:d-e-80},1e3)}function resetActiveMenuItem(){var a=jQuery(".main-nav > .nav__item"),b=a.filter(".current-menu-item, .current-menu-ancestor, .main-nav > .nav__item.current-menu-item"),c=jQuery(".nav__line");b.length>0?c.css({left:b.position().left+8,width:0}):c.css({left:0,width:0})}var $nav=jQuery(".nav");jQuery(function(){jQuery(".sticky").Stickyfill();var a=jQuery(".header").height(),b=!1;jQuery(window).scroll(function(){var c=jQuery(window).scrollTop();c>a&&!b?(b=!0,resetActiveMenuItem(),jQuery("body").addClass("fixed-menu")):c<a&&b&&(b=!1,resetActiveMenuItem(),jQuery("body").removeClass("fixed-menu"))});var c=jQuery(window).scrollTop();if(c>a&&!b?(b=!0,resetActiveMenuItem(),jQuery("body").addClass("fixed-menu")):c<a&&b&&(b=!1,resetActiveMenuItem(),jQuery("body").removeClass("fixed-menu")),jQuery(".js-login-toggle").click(function(a){jQuery(this).toggleClass("open"),jQuery(jQuery(this).data("target")).toggleClass("open"),a.preventDefault()}),jQuery(".learning-item--detailed .learning-item__content").click(function(a){(jQuery(a.target).hasClass("learning-item__wrapper")||jQuery(a.target).closest(".learning-item__wrapper").length||jQuery(a.target).closest(".learning-item__more-btn").length||jQuery(a.target).hasClass("learning-item__more-btn"))&&(jQuery(this).closest(".learning-item").hasClass("active")?jQuery(this).closest(".learning-item").removeClass("active").find(".learning-item__detail").stop().slideUp():(jQuery(this).closest(".learning-item").siblings(".learning-item.active").removeClass("active").find(".learning-item__detail").stop().slideUp(),jQuery(this).closest(".learning-item").addClass("active").find(".learning-item__detail").stop().slideDown(),window.location.hash=jQuery(this).closest(".learning-item").data("id")),a.preventDefault())}),jQuery("body").hasClass("post-type-archive-material")){var d=window.location.hash.replace("#","");d&&jQuery('[data-id="'+d+'"]').length&&(slideTo(jQuery('[data-id="'+d+'"]')),jQuery('[data-id="'+d+'"]').addClass("active").find(".learning-item__detail").stop().slideDown())}jQuery(".cat-item .tax-link").click(function(a){if(jQuery(a.target).is(".cat-expand")||jQuery(a.target).closest(".cat-expand").length){var b=jQuery(this).closest(".cat-item");b.toggleClass("expanded"),b.hasClass("expanded")?(b.children(".children").stop().slideDown(),b.siblings(".expanded, .current-cat-ancestor, .current-cat").removeClass("expanded").children(".children").stop().slideUp()):b.removeClass("expanded").children(".children").stop().slideUp(),a.preventDefault()}}),jQuery('.cat-item .tax-link input[type="radio"], #material-format-select, input[name="tag-material"]').on("change",function(){jQuery(this).closest("form").submit()}),jQuery('input[name="tag-material-check[]"]').on("change",function(){var a=jQuery('input[name="tag-material-check[]"]:checked').map(function(){return this.value}).get().join(",");jQuery('[name="tag-material"]').val(a).change()}),jQuery(".filters-toggle").click(function(){jQuery(this).toggleClass("active"),jQuery(jQuery(this).data("target")).stop().slideToggle()}),jQuery('input[name="registration_ucitel"]').on("change",function(){jQuery(this).prop("checked")?jQuery(".form__row.ucitel").removeClass("hidden"):jQuery(".form__row.ucitel").addClass("hidden")}).change(),jQuery.ajaxSetup({beforeSend:function(a){a.setRequestHeader("X-WP-Nonce",wpApiSettings.nonce)},dataType:"json",cache:!1});var e=!1;jQuery(".favorites-btn").click(function(){var a=jQuery(this).data("id"),b=jQuery(this).hasClass("active"),c=jQuery(this);e||(e=!0,b?jQuery.ajax({url:wpApiSettings.root+"chemie/v1/favorites",type:"DELETE",data:{id:a},success:function(a){c.attr("title",c.data("add")),c.removeClass("active"),c.parents(".page-content.favorites").length&&c.parents(".learning-item").slideUp(400,function(){jQuery(this).remove()})},complete:function(){e=!1}}):jQuery.ajax({url:wpApiSettings.root+"chemie/v1/favorites",type:"POST",data:{id:a},success:function(a){c.attr("title",c.data("remove")),c.addClass("active")}
8,complete:function(){e=!1}}))}),jQuery(".main-nav > .nav__item:not(.current-menu-item):not(.nav__logo-container)").on("mouseenter",function(a){jQuery(".nav__line").css({left:jQuery(this).position().left+8,width:jQuery(this).outerWidth()-16})})});

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.