2 t
.addEventListener('DOMContentLoaded', function () {
3 var l
= t
.querySelector('#light-off');
5 l
.checked
= t
.cookie
.match(/lightOff=true/) !== null;
6 l
.addEventListener('change', function () {
7 t
.cookie
= 'lightOff=' + JSON
.stringify(l
.checked
) + ';path=/';