-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.html
142 lines (123 loc) · 7.01 KB
/
app.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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!doctype html>
<html lang="en" class="h-100">
<head>
<title>FizzBuzz: A Coding Project by Clara Lopez-Uribe</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/5db21ba9c6.js" crossorigin="anonymous"></script>
<link href="css/site.css" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
<link rel="manifest" href="img/site.webmanifest">
</head>
<body class="d-flex flex-column h-100">
<!--=== Nav Section ===-->
<nav class="navbar navbar-expand-md navbar-dark fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="#"><img src="img/android-chrome-CLU_dark-192x192.png" alt="ClaraLopezUribe Initials Logo" class="d-inline-block align-text-top me-3" height="24" width="24">FizzBuzz</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse"
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav me-auto mb-2 mb-md-0">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="app.html">The App</a>
</li>
<li class="nav-item">
<a class="nav-link" href="code.html">The Code</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" href="https://github.com/ClaraLopezUribe/Fizz-Buzz.git">Git Repo (Opens new tab)</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
</ul>
</div>
</div>
</nav>
<!--=== Main Section ===-->
<main class="flex-shrink-0">
<div class="container col-xxl-8 py-5 mt-5">
<div class="row row-cols-1 row-cols-lg-2 g-5">
<div class="col col-lg-5 border-end border-dark border-1">
<h1 class="display-4 lh-2 fw-bold">FizzBuzz:</h1>
<h2 class="subheading display-3 lh-2 mb-4">The App</h2>
<p class="lead">Write a Javascript program that takes two user input values. Display each number from 1 to 100, replacing multiples of the given values with "Fizz" or "Buzz". For common multiples. display "FizzBuzz". Give each word a unique color.</p>
<p class ="lead">For example, if the user inputs 3 and 5 as their values, "Fizz" will display instead of 3, 6, 9, 12, etc., "Buzz" will display instead of 5, 10, 20, 25, etc., and "FizzBuzz" will display instead of 15, 30, 45, etc.</p>
<h2 class="mt-5 pt-3 border-top border-2">Instructions:</h2>
<p>Enter a number in each field. Submit your choices to display the results</p>
</div>
<div class="col col-lg-7">
<h3 class="display-6">Enter Numbers</h3>
<form class="row row-cols-2 gy-2 gx-3 mt-4">
<div class="col">
<input id="fizzValue" type="number" class="form-control" placeholder="Enter a Fizz Number" value="" aria-label="Enter a Fizz Number">
</div>
<div class="col">
<input id="buzzValue" type="number" class="form-control" placeholder="Enter a Buzz Number" value="" aria-label="Enter a Buzz Number">
</div>
<div class="col-12 d-flex justify-content-lg-end mt-4">
<button id="btnSubmit" type="button" class="btn btn-outline-dark btn-lg">Submit</button>
</div>
</form>
<h2 class="mt-5 border-bottom border-2">Results</h2>
<div class="table-responsive">
<table class="table table-striped table-sm">
<tbody id="results">
<!--Results Go Here-->
</tbody>
</table>
</div>
</div>
</div>
</div>
</main>
<!--=== Footer Section ===-->
<footer class="footer mt-auto py-3 sticky-footer">
<div class="container-fluid">
<div class="row row-cols-1 row-cols-md-3 gy-2">
<div class="col d-flex align-items-center justify-content-center justify-content-md-start justify-content-xxl-center order-last order-md-first text-light">
<div><span class="text-muted">©2024</span> Clara Lopez-Uribe | claralopezuribe.com</div>
</div>
<div class="col d-flex align-items-center justify-content-center">
<img src="img/Signature White-CLU Dark Background.png" alt="Clara Lopez-Uribe Signature Logo" height="40">
</div>
<div class="col d-flex align-items-center justify-content-center justify-content-md-end justify-content-xxl-center">
<div class="row">
<div class="col social"><a href="#" target="_blank"><i class="fab fa-linkedin fa-2x"></i></a></div>
<div class="col social"><a href="#" target="_blank"><i class="fab fa-github fa-2x"></i></a></div>
<div class="col social"><a href="#" target="_blank"><i class="fab fa-twitter fa-2x"></i></a></div>
</div>
</div>
</div>
</div>
</footer>
<template id="fbTemplate">
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</template>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous">
</script>
<script src="js/site.js"></script>
<script>
document.getElementById("btnSubmit").addEventListener("click",getValues);
</script>
</body>
</html>