kalkulator/static/index.html

69 lines
3.1 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">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<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="loader"></div>
<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"><span class="material-symbols-outlined">backspace</span></button>
<button class="button">AC</button>
<button class="button">H</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"><span class="material-symbols-outlined">settings</span></button>
<button class="button">0</button>
<button class="button">.</button>
<button class="button operation">=</button>
</div>
<div class="settings-container">
<span>Kolor tła: <input type="color" id="background"></span>
<span>Kolor tekstu: <input type="color" id="text"></span>
<span>Kolor podstawowy: <input type="color" id="button-primary"></span>
<span>Kolor alternatywny: <input type="color" id="button-secondary"></span>
<div class="container">
<button onclick="applyUIColors()">Zapisz</button>
</div>
</div>
<script src="./assets/js/calculator-logic.js"></script>
<script src="./assets/js/colors.js"></script>
</body>
</html>