Skip to content

Commit

Permalink
Agregado estilo XP
Browse files Browse the repository at this point in the history
  • Loading branch information
ASHVALDE committed Apr 24, 2024
1 parent 2a9f48a commit 45447a7
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Script/desktopManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,8 @@ function setWallpaper(e){
}
}
setWallpaper()




createIcons()
27 changes: 27 additions & 0 deletions Script/loadCSS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
function setStyle(e){
let id;
if(e){
id= e.value
}
let x = localStorage.style
if(!x || id){
localStorage.style = id || 1
}
switch (localStorage.style) {

case "2":
var link = document.getElementById( "daStyleshit" );

link.href = "Stylesheet/98.css"

break;
case "1":
var link = document.getElementById( "daStyleshit" );
link.href = "Stylesheet/XP.css"
break;

default:
break;
}
}
setStyle()
2 changes: 2 additions & 0 deletions Stylesheet/XP.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions apps/Configuraciones/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
<option value="4">Obrero Micrero</option>
<option value="5">Icarly</option>
</select>
<br>
<p>Estilo</p>
<select onchange="setStyle(this)">

<option value="1">Windows XP</option>
<option value="2">Windows 98</option>

</select>

</div>

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>ASH-VALDE</title>
<link rel="stylesheet" href="Stylesheet/home.css">

<link rel="stylesheet" href="Stylesheet/98.css">
<link id="daStyleshit" rel="stylesheet" href="Stylesheet/98.css">
<link rel="icon" type="image/x-icon" href="./favicon-96x96.png">

</head>
Expand Down Expand Up @@ -54,6 +54,6 @@
<script src="Script/windowManager.js"></script>
<script src="Script/loadWindows.js"></script>
<script src="Script/desktopManager.js"></script>

<script src="Script/loadCSS.js"></script>

</html>

0 comments on commit 45447a7

Please sign in to comment.