PageSourceSearch

https://www.tefal.co.uk/_ui/desktop/common/vendors/js/jquery-labelauty.min.js

js tefal.co.uk collected 2026-10-02 10:34:24 UTC 2,708 bytes, 1 lines download raw bytes

1!function(e){function a(e){var a=0,l=e,t="position: absolute !important; top: -1000 !important; ";return l=l.clone().attr("style",t).appendTo("body"),a=l.width(!0),l.remove(),a}function l(e,a){e&&window.console&&window.console.log&&window.console.log("jQuery-LABELAUTY: "+a)}function t(e,a,l,t,n,c,s){var i,r,d,o="";return null==n?r=d="":(r=n[0],d=null==n[1]?r:n[1]),o=null==a?"":'tabindex="0" role="'+t+'" aria-checked="'+l+'" aria-label="'+a+'"',i=1==c&&1==s?'<label for="'+e+'" '+o+'><span class="labelauty-unchecked-image"></span><span class="labelauty-unchecked">'+r+'</span><span class="labelauty-checked-image"></span><span class="labelauty-checked">'+d+"</span></label>":1==c?'<label for="'+e+'" '+o+'><span class="labelauty-unchecked">'+r+'</span><span class="labelauty-checked">'+d+"</span></label>":'<label for="'+e+'" '+o+'><span class="labelauty-unchecked-image"></span><span class="labelauty-checked-image"></span></label>'}e.fn.labelauty=function(n){var c=e.extend({development:!1,class:"labelauty",icon:!0,label:!0,separator:"|",checked_label:"Checked",unchecked_label:"Unchecked",force_random_id:!1,minimum_width:!1,same_width:!0},n);return this.each(function(){var n,s,i,r=e(this),d=r.is(":checked"),o=r.attr("type"),u=!0,h=!0,b=r.attr("aria-label");if(r.attr("aria-hidden",!0),r.is(":checkbox")===!1&&r.is(":radio")===!1)return this;if(r.addClass(c.class),n=r.attr("data-labelauty"),h=c.label,u=c.icon,h===!0&&(null==n||0===n.length?s=[c.unchecked_label,c.checked_label]:(s=n.split(c.separator),s.length>2?(h=!1,l(c.development,"There's more than two labels. LABELAUTY will not use labels.")):1===s.length&&l(c.development,"There's just one label. LABELAUTY will use this one for both cases."))),r.css({display:"none"}),r.removeAttr("data-labelauty"),i=r.attr("id"),c.force_random_id||null==i||""===i.trim()){var p=1+Math.floor(1024e3*Math.random());for(i="labelauty-"+p;0!==e(i).length;)p++,i="labelauty-"+p,l(c.development,"Holy crap, between 1024 thousand numbers, one raised a conflict. Trying again.");r.attr("id",i)}var k=jQuery(t(i,b,d,o,s,h,u));if(k.click(function(){r.is(":checked")?e(k).attr("aria-checked",!1):e(k).attr("aria-checked",!0)}),k.keypress(function(a){a.preventDefault(),32!==a.keyCode&&13!==a.keyCode||(r.is(":checked")?(r.prop("checked",!1),e(k).attr("aria-checked",!1)):(r.prop("checked",!0),e(k).attr("aria-checked",!0)))}),r.after(k),c.minimum_width!==!1&&r.next("label[for="+i+"]").css({"min-width":c.minimum_width}),0!=c.same_width&&1==c.label){var m=r.next("label[for="+i+"]"),y=a(m.find("span.labelauty-unchecked")),f=a(m.find("span.labelauty-checked"));y>f?m.find("span.labelauty-checked").width(y):m.find("span.labelauty-unchecked").width(f)}})}}(jQuery);

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.