PageSourceSearch

https://www.bistrotpierre.co.uk/propeller/themes/propeller/assets/room.e2a60f6c0c72bcdefb66.js

js bistrotpierre.co.uk collected 2026-09-26 10:39:54 UTC 1,460 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{196:function(t,e,s){"use strict";function n(t,e){for(var s=0;s<e.length;s++){var n=e[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}s.r(e);var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.rooms=this.element.querySelectorAll(".js-room"),this.bindEvents()}var e,s,i;return e=t,(s=[{key:"bindEvents",value:function(){this.bindButtons(),this.bindSelect()}},{key:"bindButtons",value:function(){var t=this;this.buttons=this.element.querySelectorAll(".js-room-button");for(var e=function(e){var s=t.buttons[e];s.addEventListener("click",function(e){e.preventDefault(),t.setActiveState(s.dataset.title)})},s=0;s<this.buttons.length;s++)e(s)}},{key:"setActiveState",value:function(t){this.selector.value=t;for(var e=0;e<this.buttons.length;e++){var s=this.buttons[e];s.classList.remove("is-active"),s.dataset.title===t&&s.classList.add("is-active")}for(var n=0;n<this.rooms.length;n++){var i=this.rooms[n];i.classList.remove("is-active"),i.dataset.title===t&&i.classList.add("is-active")}}},{key:"bindSelect",value:function(){var t=this;this.selector=this.element.querySelector(".js-room-selector"),this.selector.addEventListener("change",function(){t.setActiveState(t.selector.value)})}}])&&n(e.prototype,s),i&&n(e,i),t}();e.default=i}}]);

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.