PageSourceSearch

https://www.optec.ch/temp/min_templates__entrytypes__Katalog__KatalogCategoryDescription.js?tid=20260814143356

js optec.ch collected 2026-10-04 07:00:02 UTC 1,686 bytes, 4 lines download raw bytes

1$(document).ready(function(){const descriptionEl=$('.KatalogCategoryDescription__descriptionInner');const descriptionButtonEl=$('.KatalogCategoryDescription__descriptionButton');const expandText=descriptionButtonEl.data('expand-text');const reduceText=descriptionButtonEl.data('reduce-text');setAccordion(descriptionEl,descriptionButtonEl);$(window).resize(function(){setAccordion(descriptionEl,descriptionButtonEl);})
2descriptionButtonEl.on('click',function(){descriptionEl.toggleClass('visible')
3if(descriptionEl.hasClass('visible')){descriptionButtonEl.text(reduceText);}else{descriptionButtonEl.text(expandText);}});const tabHeaderEl=$('.KatalogCategoryDescription__tabHeaderElement');const tabContentEl=$('.KatalogCategoryDescription__tabContentInner');tabHeaderEl.on('click',function(){const tabHeaderElId=$(this).data('tab-id');tabHeaderEl.each(function(){const thisTabContentElId=$(this).data('tab-id');if(tabHeaderElId===thisTabContentElId){$(this).toggleClass('active');}else{$(this).removeClass('active');}})
4tabContentEl.each(function(){const tabContentElId=$(this).data('tab-id');if(tabHeaderElId===tabContentElId){$(this).toggle();}else{$(this).hide();}})});});function setAccordion(descriptionEl,descriptionButtonEl){const accordionBreakpoint=90;const descriptionTextEl=$('.description2');let descriptionTextHeight=0;descriptionTextEl.each(function(){let elHeight=$(this).innerHeight();if(elHeight>descriptionTextHeight){descriptionTextHeight=elHeight;}});if(descriptionTextHeight<=accordionBreakpoint){descriptionEl.addClass('noAccordion');descriptionButtonEl.addClass('hidden');}else{descriptionEl.removeClass('noAccordion');descriptionButtonEl.removeClass('hidden');}}

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.