Skip to content

Commit

Permalink
Another bug fix
Browse files Browse the repository at this point in the history
aaaaaaaaaaaaaa
  • Loading branch information
PatrickStar8753 committed Nov 21, 2023
1 parent c916217 commit 2b252f2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ <h2>Custom theme (link to css file):</h2>
<script>

switch (localStorage.getItem('theme')) {
case 'css/style.css':
case 'https://my-wallpapers.github.io/css/style.css':
settings('default');
break;
case 'css/console.css':
case 'https://my-wallpapers.github.io/css/console.css':
settings('console');
break;
case 'css/malwarewatch.css':
case 'https://my-wallpapers.github.io/css/malwarewatch.css':
settings('malwarewatch');
break;
case 'css/discord.css':
case 'https://my-wallpapers.github.io/css/discord.css':
settings('discord');
break;
default:
Expand All @@ -81,8 +81,8 @@ <h2>Custom theme (link to css file):</h2>
switch (name){
case 'default':
if (!(document.querySelectorAll('p')[1].classList.contains('selected'))) {
document.querySelector('link[rel="stylesheet"]').href = 'css/style.css';
localStorage.setItem('theme', 'css/style.css');
document.querySelector('link[rel="stylesheet"]').href = 'https://my-wallpapers.github.io/css/style.css';
localStorage.setItem('theme', 'https://my-wallpapers.github.io/css/style.css');
document.querySelectorAll('p').forEach(function(p){
if (!(p.textContent == 'Selected text')){
p.classList.remove('selected');
Expand All @@ -93,8 +93,8 @@ <h2>Custom theme (link to css file):</h2>
break;
case 'console':
if (!(document.querySelectorAll('p')[2].classList.contains('selected'))) {
document.querySelector('link[rel="stylesheet"]').href = 'css/console.css';
localStorage.setItem('theme', 'css/console.css');
document.querySelector('link[rel="stylesheet"]').href = 'https://my-wallpapers.github.io/css/console.css';
localStorage.setItem('theme', 'https://my-wallpapers.github.io/css/console.css');
document.querySelectorAll('p').forEach(function(p){
if (!(p.textContent == 'Selected text')){
p.classList.remove('selected');
Expand All @@ -105,8 +105,8 @@ <h2>Custom theme (link to css file):</h2>
break;
case 'discord':
if (!(document.querySelectorAll('p')[3].classList.contains('selected'))) {
document.querySelector('link[rel="stylesheet"]').href = 'css/discord.css';
localStorage.setItem('theme', 'css/discord.css');
document.querySelector('link[rel="stylesheet"]').href = 'https://my-wallpapers.github.io/css/discord.css';
localStorage.setItem('theme', 'https://my-wallpapers.github.io/css/discord.css');
document.querySelectorAll('p').forEach(function(p){
if (!(p.textContent == 'Selected text')){
p.classList.remove('selected');
Expand All @@ -117,8 +117,8 @@ <h2>Custom theme (link to css file):</h2>
break;
case 'malwarewatch':
if (!(document.querySelectorAll('p')[4].classList.contains('selected'))) {
document.querySelector('link[rel="stylesheet"]').href = 'css/malwarewatch.css';
localStorage.setItem('theme', 'css/malwarewatch.css');
document.querySelector('link[rel="stylesheet"]').href = 'https://my-wallpapers.github.io/css/malwarewatch.css';
localStorage.setItem('theme', 'https://my-wallpapers.github.io/css/malwarewatch.css');
document.querySelectorAll('p').forEach(function(p){
if (!(p.textContent == 'Selected text')){
p.classList.remove('selected');
Expand All @@ -143,4 +143,4 @@ <h2>Custom theme (link to css file):</h2>
window.location.href = 'https://cdn.discordapp.com/attachments/834351544203608094/1176488861455622306/preset.css?ex=656f0da2&is=655c98a2&hm=999606532bf18a2f2fab1bbebf50de071926bf051a07e221ca3bda329e8671a8&';
}
</script>
</html>
</html>

0 comments on commit 2b252f2

Please sign in to comment.