!function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=5)}({5:function(module,exports,__webpack_require__){"use strict";var css=document.querySelector("#colourScheme").getAttribute("href").split("/").pop();document.getElementById("colourSchemeSelect").value=css;var form=document.getElementById("colourSchemeForm");form.childNodes[5].addEventListener("click",function(e){e.preventDefault();var newCss=document.getElementById("colourSchemeSelect").value,link=document.querySelector("#colourScheme"),parts=link.getAttribute("href").split("/");parts.pop(),parts.push(newCss),link.setAttribute("href",parts.join("/"));var formData=new FormData(form);fetch("/update-colour-scheme",{method:"POST",credentials:"same-origin",body:formData}).catch(function(error){console.warn(error)})})}});
//# sourceMappingURL=colours.js.map