PageSourceSearch

https://www.fybikon.no/js/umw.tabbuilder.min.js?v=21.33.0

js fybikon.no collected 2026-10-08 01:14:48 UTC 2,913 bytes, 2 lines download raw bytes

1!function(h,f){"use strict";const s={containerSelector:"umw-tab-container",tabName:"umw-tab-name",tabClass:"umw-tab-class",position:"umw-tab-position"},e=h(".js-umw-tabs-check-if-empty");function v(t,a,e,n){var i=document.createElement(t);return a&&(i.className=a),e&&f.each(e,function(t,a){i.setAttribute(a,t)}),n&&(i.textContent=n),h(i)}h(function(){var o={},r={};if(h("[data-"+s.containerSelector+"]").each(function(){var t,a,e,n=h(this);n.find("script").remove();let i=!1;(i=!!n.hasClass("uc-product-view__product-tab-pane-description")||0<h.trim(n.text()).length||0<n.find("iframe").length||0<n.find("img").length)&&(t=n.data(s.containerSelector),(e=o[t]||(o[t]=h(t).first())).length?((a=e.attr("id"))||e.attr("id",a=f.uniqueId("tabCont")),r[a]||(r[a]=[]),e={$content:n,tabName:function(t){var a=t.data(s.tabName);a=a||t.prevAll("input:hidden.TabTitle").val()||t.find(".js-tab-name,.Title,.MainTitle").first().text()||f.uniqueId("Tab ");return a}(n),position:n.data(s.position),containerId:function(t){t=t.attr("id");t=t&&t.toLowerCase();return t}(n),tabClass:n.data(s.tabClass)},r[a].push(e)):console.error('[UMW]: Tab builder - Cannot find tabs container by "'+t+'" selector'))}),f.isEmpty(r))e.each(function(){var t=h(this);0===t.text().length&&t.remove()});else{var t,a=new URLSearchParams(window.location.search);let p=null;for(t of a)if("tab"===t[0]){p=t[1].toLowerCase();break}f.each(r,function(t,c){var a=h("#"+c),l=!1,e=[],d=!1,b=a.find(".nav-tabs"),u=(0<b.length?(b.detach(),l=0<b.find(".active").length):b=v("ul","nav nav-tabs",{role:"tablist"}),a.find(".tab-content")),t=(0<u.length?u.detach():u=v("div","tab-content"),f.sortBy(t,"position")),t=f.groupBy(t,"tabName");p&&(f.each(t,function(t){e.push(t[0].containerId)}),d=0<f.indexOf(e,p)),f.each(t,function(t,a){var e,n=f.uniqueId(c+"_tab"),i=!l&&(l=!0),o=(d&&(i=!1,p===t[0].containerId)&&(i=!0),t[0].$content.hasClass("uc-product-view__product-tab-pane-lipscore-review")),r=t[0].containerId?t[0].containerId+"NavItem":void 0,a=((h("body").hasClass("bs5")?(e=v("button",i?"nav-link active":"nav-link",{type:"button",id:n+"-tab","data-bs-toggle":"pill","data-bs-target":"#"+n,role:"tab","aria-controls":n,"aria-selected":"false"},a),v("li","nav-item"+(t[0]&&t[0].tabClass?" "+t[0].tabClass:""),{role:"presentation"}).attr("id",r).attr("hidden",o).append(e)):(e=v("a",null,{href:"#"+n,"aria-controls":n,role:"tab","data-toggle":"tab"},a),v("li",((i?"active":"")+(t[0]&&t[0].tabClass?" "+t[0].tabClass:"")).trim(),{role:"presentation"}).attr("id",r).attr("hidden",o).append(e))).appendTo(b),"tab-pane "+((i?" active":"")+(t[0]&&t[0].tabClass?" "+t[0].tabClass:"")).trim()),s=v("div",a,{id:n,role:"tabpanel"}).appendTo(u);f.each(t,function(t){t.$content.detach(),t.$content.removeClass("hidden").show(),t.$content.removeAttr("hidden"),t.$content.appendTo(s)})}),a.append(b,u),a.show()})}})}(jQuery,_);
2//# sourceMappingURL=umw.tabbuilder.min.js.map

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.