-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
121 lines (111 loc) · 4.71 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
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
<!DOCTYPE html>
<html lang="en">
<!--MIT License
Copyright (c) 2024 Hadi Raza
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tables</title>
<style>
*,body{
font-family: monospace;
color: rgb(0, 255, 0);
background-color: rgb(0, 0, 0);
}
h1 {
text-align: center;
}
p {
font-size: xx-large;
text-align: center;
}
footer{
text-align: end;
margin-top: 0px;
}
</style>
</head>
<body>
<h1>To use app again refresh this page. <br><a href="index.html">Default Theme </a><br><a href="theme-1.html">Theme 1 </a><br><a href="theme-2.html">Theme 2 </a></h1>
<div class="container">
<br>
<p class="one"></p>
<p class="two"></p>
<p class="three"></p>
<p class="four"></p>
<p class="five"></p>
<p class="six"></p>
<p class="seven"></p>
<p class="eight"></p>
<p class="nine"></p>
<p class="ten"></p>
</div>
<footer>Copyright 2024 - MIT License</footer>
</body>
<script>
const tableContainer1 = document.querySelector(".one");
const tableContainer2 = document.querySelector(".two");
const tableContainer3 = document.querySelector(".three");
const tableContainer4 = document.querySelector(".four");
const tableContainer5 = document.querySelector(".five");
const tableContainer6 = document.querySelector(".six");
const tableContainer7 = document.querySelector(".seven");
const tableContainer8 = document.querySelector(".eight");
const tableContainer9 = document.querySelector(".nine");
const tableContainer10 = document.querySelector(".ten");
alert("This app will tell you table of any number till ten .Press OK to continue");
tableOf = +prompt("Enter a number whose table you want.");
tableOne = (tableOf + " x " + "1 = " + tableOf * 1 + " ");
tableTwo = (tableOf + " x " + "2 = " + tableOf * 2 + " ");
tableThree = (tableOf + " x " + "3 = " + tableOf * 3 + " ");
tableFour = (tableOf + " x " + "4 = " + tableOf * 4 + " ");
tableFive = (tableOf + " x " + "5 = " + tableOf * 5 + " ");
tableSix = (tableOf + " x " + "6 = " + tableOf * 6 + " ");
tableSeven = (tableOf + " x " + "7 = " + tableOf * 7 + " ");
tableEight = (tableOf + " x " + "8 = " + tableOf * 8 + " ");
tableNine = (tableOf + " x " + "9 = " + tableOf * 9 + " ");
tableTen = (tableOf + " x " + "10 =" + tableOf * 10 + " ");
tableContainer1.innerText = tableOne;
tableContainer2.innerText = tableTwo;
tableContainer3.innerText = tableThree;
tableContainer4.innerText = tableFour;
tableContainer5.innerText = tableFive;
tableContainer6.innerText = tableSix;
tableContainer7.innerText = tableSeven;
tableContainer8.innerText = tableEight;
tableContainer9.innerText = tableNine;
tableContainer10.innerText = tableTen;
</script>
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/11.0.1/firebase-app.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyAFJihWuegkUDJ0gPslbSoIYjQNtAttx6A",
authDomain: "tables-b272a.firebaseapp.com",
projectId: "tables-b272a",
storageBucket: "tables-b272a.appspot.com",
messagingSenderId: "725978649359",
appId: "1:725978649359:web:a50ec7de140234d8d9247a"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
</script>
</html>