Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts / page-width.js
diff options
context:
space:
mode:
Commit010597ad71b3bc48784cb9a13b3e0fc8dccc69cd (patch)
Author
 Kamen Mladenov <kamen@syndamia.com>
2024-10-06 07:59:36 +0000
Committer
 Kamen Mladenov <kamen@syndamia.com>
2024-10-06 07:59:36 +0000
Files784604f5818679987f940285077cd8e0460a6488 /src/scripts/page-width.js
syndamia.com-010597ad71b3bc48784cb9a13b3e0fc8dccc69cd.tar
syndamia.com-010597ad71b3bc48784cb9a13b3e0fc8dccc69cd.tar.gz
syndamia.com-010597ad71b3bc48784cb9a13b3e0fc8dccc69cd.zip
Parent6fe00c6ec76028fc055084a3398004fbbefac0be (diff)
Parentc027ddea2e1d6ed69a012edf47d3b39e25b6c9d5 (diff)
Merge branch 'master' into 'blog/black-hole-shader'
# Conflicts: # src/blog/index.md
1 files changed, 2 insertions, 2 deletions
-rw-r--r--src/scripts/page-width.js4
diff --git a/src/scripts/page-width.js b/src/scripts/page-width.js
index 784c0f2..353dc4d 100644
--- a/src/scripts/page-width.js
+++ b/src/scripts/page-width.js
@@ -4,11 +4,11 @@ const articleElem = document.getElementsByTagName('article')[0];
if (localStorage.getItem('width') === 'wide') {
widthLabel.innerText = 'Narrow';
- articleElem.classList.add('noMaxWidth');
+ articleElem.classList.add('article-wide');
}
widthBtn.onclick = function() {
- articleElem.classList.toggle('noMaxWidth');
+ articleElem.classList.toggle('article-wide');
if (localStorage.getItem('width') !== 'norm') {
widthLabel.innerText = 'Wide';