Sha256: 61e305f1a499ddbce58d58e0fddf9c3a8d5ffdacecd36644f8c90a97e7fe76d7

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

<script>
  document.addEventListener('DOMContentLoaded', function () {
  const checkbox = document.querySelector('.dark-mode-checkbox');

  checkbox.checked = localStorage.getItem('darkMode') === 'true';

  checkbox.addEventListener('change', function (event) {
    localStorage.setItem('darkMode', event.currentTarget.checked);
  });
});

  document.addEventListener('DOMContentLoaded', function () {
  const checkbox = document.querySelector('.typo-plus-checkbox');

  checkbox.checked = localStorage.getItem('typoPlus') === 'true';

  checkbox.addEventListener('change', function (event) {
    localStorage.setItem('typoPlus', event.currentTarget.checked);
  });
});

    document.addEventListener('DOMContentLoaded', function () {
  const checkbox = document.querySelector('.typo-dys-checkbox');

  checkbox.checked = localStorage.getItem('typoDys') === 'true';

  checkbox.addEventListener('change', function (event) {
    localStorage.setItem('typoDys', event.currentTarget.checked);
  });
});
</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simply-cyan-0.1.0 _includes/functionsscript.html