kalkulator/static/index.html

62 lines
2.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kalkulator</title>
<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=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<!-- anime.js is a library for easy fancy animations with JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/css/keyboard.css">
</head>
<body>
<div class="history-container" id="history">
<span>5+10<strong> = 15</strong></span>
<span>7*8<strong> = 56</strong></span>
<span>9*9<strong> = 81</strong></span>
<span>8*8<strong> = 64</strong></span>
</div>
<div class="calculator">
<div class="display">
<div class="display-text"></div>
</div>
<button class="button">AC</button>
<button class="button">H</button>
<button class="button">%</button>
<button class="button operation">÷</button>
<button class="button">7</button>
<button class="button">8</button>
<button class="button">9</button>
<button class="button operation">×</button>
<button class="button">4</button>
<button class="button">5</button>
<button class="button">6</button>
<button class="button operation"></button>
<button class="button">1</button>
<button class="button">2</button>
<button class="button">3</button>
<button class="button operation">+</button>
<button class="button settings"><img src="./assets/img/settings.svg" alt="settings"></button>
<button class="button">0</button>
<button class="button">.</button>
<button class="button operation">=</button>
</div>
<div class="settings-container">
<span>Kolor tła: </span><input type="color" id="background"><br>
<span>Kolor tekstu: </span><input type="color" id="text"><br>
<span>Kolor podstawowy: </span><input type="color" id="primary"><br>
<span>Kolor alternatywny: </span><input type="color" id="secondary">
</div>
<script src="./assets/js/calculator-logic.js"></script>
</body>
</html>