PageSourceSearch

https://www.faber-castell.com/dist/FC.Ecom/modules/colorSelector.9a112a0a.js

js faber-castell.com collected 2026-10-02 06:46:40 UTC 2,066 bytes, 1 lines download raw bytes

1"use strict";(self["FC.EcomwebpackJsonp"]=self["FC.EcomwebpackJsonp"]||[]).push([[2690],{42564:(t,e,i)=>{i.r(e),i.d(e,{colorSelector:()=>a,default:()=>s});var n=i(65638),o=i(42120),a=function(){function t(t){var e=this;this.container=n(t),this.quantitySelectBox(),this.hardnessSelectBox(),this.disableButton(),n(".all-filters a",this.container).click((function(t){e.scrollToTable(t)})),this.animateClientToReviews(),n(".variant-editor-modal").length&&n(".color-items a",this.container).click((function(t){e.selectVariantClick(t)}))}return t.prototype.selectVariantClick=function(t){var e=n(t.currentTarget);this.selectVariant(e)},t.prototype.selectVariant=function(t){var e={lineId:t.data("line-id"),productId:t.data("product-id")};document.dispatchEvent(new CustomEvent("hardnessVariantSelected",{detail:e}))},t.prototype.disableButton=function(){n(".disable .cart-button",this.container).addClass("disabled"),n(".disable .cart-button",this.container).attr("disabled","disabled")},t.prototype.scrollToTable=function(t){var e=n(t.currentTarget).attr("href"),i=this.container.nextAll(""+e).offset().top-58;n("html,body").stop().animate({scrollTop:i},"slow")},t.prototype.hardnessSelectBox=function(){if(this.container.get(0)){this.container.get(0).querySelectorAll("select.hardness").forEach((function(t){null!=t&&(0,o.ie)(t)}));var t=this;n("select.hardness",this.container).on("change",(function(){if(n(".shopping-cart-variant-editor").length)t.selectVariant(n("option:selected",n(this)));else{var e=n("option:selected",n(this)).attr("data-link-url");window.location.href=e}}))}},t.prototype.quantitySelectBox=function(){n(".quantity",this.container).closest(".cart").hasClass("disable")&&(this.disableButton(),n(".disable .quantity",this.container).attr("disabled","disabled")),n(".selectbox.disable .selectboxit-text",this.container).text("1")},t.prototype.animateClientToReviews=function(){n(".review",this.container).click((function(){var t=n("#reviews").offset().top-58;n("html, body").animate({scrollTop:t},"slow")}))},t}();const s=new a(".product-info")}}]);

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.