mirror of
https://github.com/iv-org/invidious.io.git
synced 2024-12-26 16:19:29 -05:00
Unminify the JavaScript file, and remove everything that isn't used
This commit is contained in:
parent
ecc0242a3b
commit
9f8a67f34c
@ -107,6 +107,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src=../js/main.min.js></script>
|
||||
<script src=../js/main.js></script>
|
||||
</body>
|
||||
</html>
|
@ -96,6 +96,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src=../js/main.min.js></script>
|
||||
<script src=../js/main.js></script>
|
||||
</body>
|
||||
</html>
|
@ -152,6 +152,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src=js/main.min.js></script>
|
||||
<script src=js/main.js></script>
|
||||
</body>
|
||||
</html>
|
7
public/js/main.js
Normal file
7
public/js/main.js
Normal file
@ -0,0 +1,7 @@
|
||||
(() => {
|
||||
document.getElementById('mode').addEventListener('click', () => {
|
||||
document.body.classList.toggle('dark'),
|
||||
localStorage.setItem('theme', document.body.classList.contains('dark') ? 'dark' : 'light')
|
||||
}),
|
||||
localStorage.getItem('theme') === 'dark' && document.body.classList.add('dark')
|
||||
})()
|
1
public/js/main.min.js
vendored
1
public/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
@ -127,6 +127,6 @@ And <a href="https://github.com/iv-org/invidious/graphs/contributors">more!</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src=../js/main.min.js></script>
|
||||
<script src=../js/main.js></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user