-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (84 loc) · 2.59 KB
/
index.html
File metadata and controls
88 lines (84 loc) · 2.59 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<title>Frontend Mentor | Price-component-with-toogle]</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution { font-size: 11px; text-align: center; padding-top: 20px; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<header>
<h1>Our Pricing</h1>
<span class="box">
<p>Annually</p>
<label class="switch">
<input type="checkbox" onclick="show();" id="box">
<span class="slider round"></span>
</label>
<p>Monthly</p>
</span>
</header>
<main>
<div class="col">
<h2>Basic</h2>
<h3 id="basic">$199.99</h3>
<hr>
<p>500 GB Storage</p>
<hr>
<p>2 Users Allowed</p>
<hr>
<p>Send up to 3 GB</p>
<hr>
<button>Learn More</button>
</div>
<div class="col">
<h2>Professional</h2>
<h3 id="professional">$249.99</h3>
<hr>
<p>1 TB Storage</p>
<hr>
<p>5 Users Allowed</p>
<hr>
<p>Send up to 10 GB</p>
<hr>
<button>Learn More</button>
</div>
<div class="col">
<h2>Master</h2>
<h3 id="master">$399.99</h3>
<hr>
<p>2 TB Storage</p>
<hr>
<p>10 Users Allowed</p>
<hr>
<p>Send up to 20 GB</p>
<hr>
<button>Learn More</button>
</div>
</main>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.frontendmentor.io/profile/Coderio10">Anointed kayode</a>.
</div>
</body>
<script>
function show(){
if(box.checked == true){
let price = document.getElementById("box");
document.getElementById("basic").innerHTML = "$19.99";
document.getElementById("professional").innerHTML = "$24.99";
document.getElementById("master").innerHTML = "$39.99";
}else{
document.getElementById("basic").innerHTML = "$199.99";
document.getElementById("professional").innerHTML = "$249.99";
document.getElementById("master").innerHTML = "$399.99";
}
}
</script>
</html>