diff options
author | NYPD <6412879+NYPD@users.noreply.github.com> | 2022-02-28 08:42:54 +0300 |
---|---|---|
committer | NYPD <6412879+NYPD@users.noreply.github.com> | 2022-02-28 08:42:54 +0300 |
commit | 9fd905f25ef01775482647b7b732951c366c7026 (patch) | |
tree | 185fa9dcf69df38a93389f378246c97cf1d77370 | |
parent | c448b72f284807c8cc4f9667fcaebe95bb531400 (diff) |
npm run format
-rw-r--r-- | assets/js/theme.js | 2 | ||||
-rw-r--r-- | layouts/partials/analytics.html | 6 | ||||
-rw-r--r-- | layouts/partials/backtotop.html | 3 |
3 files changed, 4 insertions, 7 deletions
diff --git a/assets/js/theme.js b/assets/js/theme.js index e66b826..ddb5af7 100644 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -1,5 +1,4 @@ window.onload = function () { - var toggle = document.getElementById('dark-mode-toggle') var darkTheme = document.getElementById('dark-mode-theme') @@ -29,5 +28,4 @@ window.onload = function () { document.querySelector('body').setAttribute('data-dark-theme', 'false') } } - } diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index 797b349..4aa4fe1 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -18,8 +18,8 @@ {{ if and (.Site.Params.matomo) ( not .Site.IsServer ) }} {{ $domain := .Site.Params.matomo.domain }} {{ $id := .Site.Params.matomo.id }} -<!-- Matomo --> -<script type="text/javascript"> + <!-- Matomo --> + <script type="text/javascript"> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); @@ -32,5 +32,5 @@ g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> -<!-- End Matomo Code --> + <!-- End Matomo Code --> {{ end }} diff --git a/layouts/partials/backtotop.html b/layouts/partials/backtotop.html index 0bc054b..dd223d4 100644 --- a/layouts/partials/backtotop.html +++ b/layouts/partials/backtotop.html @@ -1,6 +1,5 @@ <script> - - var backtotopButton = document.getElementById('backtotopButton'); + var backtotopButton = document.getElementById('backtotopButton') document.addEventListener('scroll', function () { if ( |