-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (32 loc) · 1.23 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fibonacci Calculator</title>
<!-- Content Security Policy (CSP) -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://cdn.jsdelivr.net; style-src 'self' https://fonts.googleapis.com 'unsafe-inline'; font-src 'self' https://fonts.gstatic.com; img-src 'self' data:;">
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="container">
<header>
<h1>Fibonacci Calculator</h1>
</header>
<section class="content">
<p>Enter a number to calculate its Fibonacci sequence:</p>
<input type="number" id="fibonacciInput" placeholder="Enter a number" />
<button id="calculateButton">Calculate</button>
<div id="result"></div>
<canvas id="fibonacciChart" width="400" height="400"></canvas>
</section>
</div>
<!-- Dodana stopka -->
<footer>
<p>Daniel Trzeciński 2024</p>
</footer>
<script src="script.js"></script>
</body>
</html>