mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
70 lines
3.1 KiB
HTML
70 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<title>Calculator</title>
|
|
<meta name="description" content="Simple Calculator With Dark Mode." />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="icon" type="image/x-icon" href="assets/calculator.ico">
|
|
<link rel="stylesheet" href="styles/dark.css" id="theme" />
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap" rel="stylesheet">
|
|
<script src="https://hexahigh.github.io/cdn/js/min/jquery-3.6.3.min.js"></script>
|
|
<script src="scripts/secret.js"></script>
|
|
</head>
|
|
|
|
<body id="bodyId">
|
|
<div id="iframeDiv" style="display: none; position:absolute; left: 0; right: 0; bottom: 0; top: 0px;">
|
|
<iframe sandbox="allow-scripts allow-popups allow-same-origin" width="100%" height="100%" loading="lazy"
|
|
frameborder="0" src="secret/index.html"></iframe>
|
|
</div>
|
|
<div id="websiteWrapper" class="wrapper">
|
|
<div class="container">
|
|
<div class="header-container">
|
|
<!-- This heading also notifies about the theme change.-->
|
|
<h1 id="toast">Calculator</h1>
|
|
<div class="top-buttons">
|
|
</a>
|
|
<button type="button" onclick="changeTheme()" class="theme-button">
|
|
<img src="assets/SunIcon.svg" alt="Theme Icon" height="19" width="19" id="theme-icon">
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="first-row">
|
|
<input type="text" name="result" id="result" placeholder="Result" readonly />
|
|
<input type="button" value="C" onclick="result.value=''" id="clear-button" />
|
|
</div>
|
|
<div class="second-row">
|
|
<input type="button" value="1" onclick="liveScreen(1)" />
|
|
<input type="button" value="2" onclick="liveScreen(2)" />
|
|
<input type="button" value="3" onclick="liveScreen(3)" />
|
|
<input type="button" value="+" onclick="liveScreen('+')" />
|
|
</div>
|
|
<div class="third-row">
|
|
<input type="button" value="4" onclick=" liveScreen(4)" />
|
|
<input type="button" value="5" onclick=" liveScreen(5)" />
|
|
<input type="button" value="6" onclick=" liveScreen(6); sixPress()" />
|
|
<input type="button" value="-" onclick="liveScreen('-')" />
|
|
</div>
|
|
<div class="fourth-row">
|
|
<input type="button" value="7" onclick="liveScreen(7)" />
|
|
<input type="button" value="8" onclick="liveScreen(8)" />
|
|
<input type="button" value="9" onclick=" liveScreen(9); ninePress()" />
|
|
<input type="button" value="x" onclick="liveScreen('*')" />
|
|
</div>
|
|
<div class="fifth-row">
|
|
<input type="button" value="/" onclick="liveScreen('/')" />
|
|
<input type="button" value="0" onclick="liveScreen(0)" />
|
|
<input type="button" value="." onclick="liveScreen('.')" />
|
|
<input type="button" value="=" onclick="calculate(result.value)" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="scripts/script.js">
|
|
</script>
|
|
</body>
|
|
|
|
</html> |