Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions dist/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/img/run-btc2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/img/run-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 45 additions & 3 deletions runhacx.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
</head>
<body>
<div class="window-layer">
<div class="window" style="width: 350px; height: auto;">
<div class="window" style="width: 400px; height: auto;">
<div class="title-bar">
<div class="title-bar-text"><img src="./dist/img/run.png"><span>RunHacx</span></div>
<div class="title-bar-text"><img id="title-bar-image" src="./dist/img/run.png"><span>RunHacx</span></div>
<div class="title-bar-controls">
<button aria-label="Close"></button>
</div>
</div>

<div class="window-body run-hacx">
<section>
<div><img class="start-menu__icon" src="./dist/img/run.png"></div>
<div><img id="start-menu-image" class="start-menu__icon" src="./dist/img/run.png"></div>
<div><p>Type in a cheatcode or command and the system will attempt running it for you.</p></div>
</section>
<section>
Expand All @@ -35,12 +35,54 @@
</section>

<div class="field-row">
<section class="theme-select">
<div><u>T</u>heme:</div>
<div>
<select class="sel">
<option>Light</option>
<option>Dark</option>
<option>BTC2</option>
</select>
</div>
</section>
<button type="button">Ok</button>
<button type="button">Cancel</button>
<button type="button">Browse...</button>
</div>
</div>
</div>
</div>

<script>
var select = document.querySelector('.sel');
var title_bar = document.querySelector('.title-bar');

select.addEventListener('change',function(){
var values = changeTheme(select.value);
title_bar.style.background = values[0];
document.getElementById("title-bar-image").src=values[1];
document.getElementById("start-menu-image").src=values[1];
});

function changeTheme(mode){
switch(mode){
case "Light":
return [
"linear-gradient(90deg,navy,#1084d0)",
"./dist/img/run.png"
]
case "Dark":
return [
"#400080",
"./dist/img/run-dark.png"
]
case "BTC2":
return [
"linear-gradient(90deg,#1C649A,#678FAF)",
"./dist/img/run-btc2.png"
]
}
}
</script>
</body>
</html>