Add: Show warning for dangerous options
This commit is contained in:
parent
fd27f56365
commit
ba28f01247
webradar
@ -1,47 +1,70 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>radarflow</title>
|
<title>radarflow</title>
|
||||||
<link href="styles.css" rel="stylesheet" type="text/css"/>
|
<link href="styles.css" rel="stylesheet" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="canvasContainer">
|
<div id="canvasContainer">
|
||||||
<div id="settingsHolder">
|
<div id="settingsHolder">
|
||||||
<div class="settings">
|
<div class="settings">
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" onclick="toggleZoom()" id="zoomCheck" name="zoom"/>
|
<input type="checkbox" onclick="toggleZoom()" id="zoomCheck" name="zoom" />
|
||||||
<label for="zoomCheck">Zoom</label>
|
<label for="zoomCheck">Zoom</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" onclick="toggleStats()" id="statsCheck" name="stats"/>
|
<input type="checkbox" onclick="toggleStats()" id="statsCheck" name="stats" />
|
||||||
<label for="statsCheck">Stats</label>
|
<label for="statsCheck">Stats</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" onclick="toggleNames()" id="namesCheck" name="names"/>
|
<input type="checkbox" onclick="toggleNames()" id="namesCheck" name="names" />
|
||||||
<label for="namesCheck">Player Names</label>
|
<label for="namesCheck">Player Names</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" onclick="toggleGuns()" id="gunsCheck" name="guns"/>
|
<input type="checkbox" onclick="toggleGuns()" id="gunsCheck" name="guns" />
|
||||||
<label for="gunsCheck">Weapons</label>
|
<label for="gunsCheck">Weapons</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" onclick="toggleRotate()" id="rotateCheck" name="rotate" checked/>
|
<input type="checkbox" onclick="toggleRotate()" id="rotateCheck" name="rotate" checked />
|
||||||
<label for="rotateCheck">Rotate Map</label>
|
<label for="rotateCheck">Rotate Map</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" onclick="toggleCentered()" id="centerCheck" name="center" checked/>
|
<input type="checkbox" onclick="toggleCentered()" id="centerCheck" name="center" checked />
|
||||||
<label for="centerCheck">Player Centered</label>
|
<label for="centerCheck">Player Centered</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<input type="checkbox" onclick="toggleMoneyReveal()" id="moneyReveal" name="money"/>
|
<button id="showDangerousBtn" onclick="toggleDangerousOptions()">Show Dangerous Options</button>
|
||||||
<label for="moneyReveal">Money Reveal (DANGEROUS!)</label>
|
|
||||||
|
<div class="dangerous-options" id="dangerousOptions">
|
||||||
|
<div>
|
||||||
|
<input type="checkbox" onclick="toggleMoneyReveal()" id="moneyReveal" name="money" />
|
||||||
|
<label for="moneyReveal">Money Reveal (Write Memory)</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<canvas id="canvas"></canvas>
|
<canvas id="canvas"></canvas>
|
||||||
</div>
|
</div>
|
||||||
<script src="script.js"></script>
|
<script src="script.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function toggleDangerousOptions() {
|
||||||
|
const dangerousSection = document.getElementById('dangerousOptions');
|
||||||
|
const button = document.getElementById('showDangerousBtn');
|
||||||
|
|
||||||
|
if (dangerousSection.classList.contains('revealed')) {
|
||||||
|
dangerousSection.classList.remove('revealed');
|
||||||
|
button.textContent = 'Show Dangerous Options';
|
||||||
|
} else {
|
||||||
|
dangerousSection.classList.add('revealed');
|
||||||
|
button.textContent = 'Hide Dangerous Options';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -1,11 +1,11 @@
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: #000000; /* Change the background color as needed */
|
background-color: #000000;
|
||||||
background-image: url('assets/image/background.png');
|
background-image: url('assets/image/background.png');
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
background-size: 128px 128px;
|
background-size: 128px 128px;
|
||||||
@ -39,7 +39,7 @@ canvas {
|
|||||||
#settingsHolder .settings {
|
#settingsHolder .settings {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
color: white;
|
color: white;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
@ -56,22 +56,51 @@ canvas {
|
|||||||
.settings {
|
.settings {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
color: white;
|
color: white;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: rgba(25, 25, 25, 0.7); /* Semi-transparent white background */
|
background-color: rgba(25, 25, 25, 0.7);
|
||||||
transition: opacity 0.3s ease; /* Smooth transition */
|
transition: opacity 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px), (max-height: 600px) {
|
.dangerous-options {
|
||||||
|
display: none;
|
||||||
|
border-top: 1px solid rgba(255, 0, 0, 0.5);
|
||||||
|
margin-top: 10px;
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dangerous-options.revealed {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#showDangerousBtn {
|
||||||
|
background-color: #6b0000;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 5px 10px;
|
||||||
|
margin-top: 10px;
|
||||||
|
border-radius: 3px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
|
transition: background-color 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#showDangerousBtn:hover {
|
||||||
|
background-color: #8a0000;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px),
|
||||||
|
(max-height: 600px) {
|
||||||
#settingsHolder {
|
#settingsHolder {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 400px), (max-height: 400px) {
|
@media (max-width: 400px),
|
||||||
|
(max-height: 400px) {
|
||||||
#canvasContainer::before {
|
#canvasContainer::before {
|
||||||
content: 'settings';
|
content: 'settings';
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user