-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsavedata.html
187 lines (174 loc) · 12.5 KB
/
savedata.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#262c32" />
<meta name="description" content="Updae UPI ID">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>Save Data</title>
<link rel="manifest" href="manifest.json">
<link href="images/icons/512x512.png" rel="icon">
<link href="/images/icons/192x192.png" rel="apple-touch-icon">
<link rel="apple-touch-icon" sizes="152x152" href="images/icons/152px.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/icons/180px.png">
<link rel="apple-touch-icon" sizes="167x167" href="images/icons/167px.png">
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="style/bootstrap.css">
<link rel="stylesheet" href="style/index.css">
<link rel="stylesheet" href="style/default.css">
<!-- <script src="scripts/saveupi.js" type="module"></script> -->
<script src="scripts/saveupi.min.js" type="module"></script>
<!-- <script src="scripts/signout.js" defer type="module"></script> -->
<script src="scripts/signout.min.js" defer type="module"></script>
<!-- <script src="scripts/themeswitch.js" defer type="module"></script> -->
<script src="scripts/themeswitch.min.js" defer type="module"></script>
</head>
<body class="d-flex flex-column min-vh-100">
<nav class="navbar navbar-expand-xl navbar-dark" style=" background-color: rgba(1, 0, 0, 0.2);">
<div class="container-fluid">
<div class="ms-lg-5 ms-2 col">
<a class="navbar-brand url" href="index.html" id="BrandLogo">
<img id="navIcon" class="img-fluid" src="images/icons/1024x1024.png" width="62px" height="62px"
alt="Brand logo">
</a>
</div>
<a class="navbar-brand text-end text-md-start col-4 col-sm-5" href="index.html">
<span id="brandName" class="fs-2 fw-bold pt-3 ps-2 ps-md-0">ShopSum</span>
</a>
<div class="form-check form-switch col d-flex justify-content-end pe-md-2 pe-3">
<input class="form-check-input" type="checkbox" role="switch" id="themeBtn">
<label class="form-check-label ps-2" for="themeBtn">
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="#3471b7" id="light"
class="bi bi-brightness-high-fill pb-1 d-none" viewBox="0 0 16 16">
<path
d="M12 8a4 4 0 1 1-8 0 4 4 0 0 1 8 0M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0m9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="white" id="dark"
class="bi bi-moon-fill pb-1" viewBox="0 0 16 16">
<path
d="M6 .278a.77.77 0 0 1 .08.858 7.2 7.2 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277q.792-.001 1.533-.16a.79.79 0 0 1 .81.316.73.73 0 0 1-.031.893A8.35 8.35 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.75.75 0 0 1 6 .278" />
</svg>
</label>
</div>
<!--put data-value="generate" for js code to ignore button press as calculator interaction-->
<button class="navbar-toggler collapsed bg-dark" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end me-md-3 col col-sm-2" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-link text-end active" href="#" id="dispName"></a>
<a class="nav-link text-end" href="/calculator.html">Calculator</a>
<a class="nav-link text-end active" href="/savedata.html">Update UPI ID</a>
<a class="nav-link text-end" id="Gsignout" href="#">Sign Out</a>
</div>
</div>
</div>
</nav>
<div class="alert alert-info mb-0 py-2 text-center d-none" role="alert" id="alertDiv">
A new version is available for this app <a href="" class="btn btn-primary btn-sm ms-sm-2" id="updateapp">Update
Now</a>
</div>
<div class="container mt-4 mt-md-3 pt-4 mb-4">
<div class="row justify-content-center">
<div class="col-12 col-md-8 ps-5 heading">
<span class="ps-2 fs-5 fw-normal">User:  <span class="fs-5 fw-normal"
id="username">Loading..</span></span>
</div>
<div class="col-12 col-md-8 ps-5 mb-4 pb-2 heading">
<span class="ps-2 fs-5 fw-normal">UPI ID:  <span class="fs-5 fw-normal"
id="displayid">Loading..</span></span>
</div>
<div class="col-12 col-md-8 mb-md-4 ps-5">
<div class="col-12 col-md-7 ps-2 heading">
<label for="upiID" class="form-label fs-5 fw-normal">Enter UPI ID</label>
</div>
<div class="col-10 col-md-7 ps-2 heading">
<input type="text" id="upiID" class="form-control" placeholder="shoppershops@upi">
</div>
</div>
<div class="col-12 col-md-8 d-flex flex-column">
<div class="col-7 ps-5 mt-4">
<button type="button" class="btn btn-primary" id="savebtn">Save UPI ID</button>
</div>
</div>
<div class="col-12 col-md-8 d-flex flex-column">
<div class="col-7 ps-5 mt-4">
<a href="calculator.html" type="button" class="btn btn-primary" id="backbtn">Go Back</a>
</div>
</div>
</div>
</div>
<footer class="mt-auto pt-2 pt-md-2 pb-2" style="background-color: rgba(0, 0, 0, 0.2);">
<div class="container">
<div class="row text-center text-md-start">
<div class="col col-md-1 pb-md-1 d-md-flex align-items-center" id="socialFB">
<a href="https://github.com/makersmecca/Project-ShopSum" target="_blank">
<!-- <img src="images/icons/social-media-logos/facebook-black-32.png" class="icon bg-light" alt=""> -->
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="white" id="dark"
class="bi bi-facebook" viewBox="0 0 16 16">
<path
d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="#2e66a5" id="light"
class="bi bi-facebook d-none" viewBox="0 0 16 16">
<path
d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951" />
</svg>
</a>
</div>
<div class="col col-md-1 pb-md-2 d-md-flex align-items-center" id="socialTwtr">
<a href="https://github.com/makersmecca/Project-ShopSum" target="_blank">
<!-- <img src="images/icons/social-media-logos/twitter-32.png" id="" alt=""> -->
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="white" id="dark"
class="bi bi-twitter-x pt-1" viewBox="0 0 16 16">
<path
d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="#2e66a5" id="light"
class="bi bi-twitter-x pt-1 d-none" viewBox="0 0 16 16">
<path
d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z" />
</svg>
</a>
</div>
<div class="col col-md-1 pb-md-1 d-md-flex align-items-center" id="socialGtHb">
<a href="https://github.com/makersmecca/Project-ShopSum" target="_blank">
<!-- <img src="images/icons/social-media-logos/github-black-32.png" class="icon bg-light" alt=""> -->
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="white" id="dark"
class="bi bi-github" viewBox="0 0 16 16">
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="#2e66a5" id="light"
class="bi bi-github d-none" viewBox="0 0 16 16">
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" />
</svg>
</a>
</div>
<div class="col-12 col-md-9 d-md-flex justify-content-end pt-3 pt-md-2">
<a class="text-center url" id="appVer" href="/">© 2024 Copyright: ShopSum</a>
</div>
</div>
</div>
</footer>
<!--display none elements-->
<div id="calculator-cont"></div>
<img src="/images/user.png" id="photo" class="rounded-circle img-fluid d-none">
<div id="noupi" class="d-none"></div>
<div id="loadingLabel" class="d-none"></div>
<div id="generate"></div>
<div id="toplabel" class="d-none"></div>
<!-- registering service worker -->
<!-- <script src="scripts/registerSW.js" type="module"></script> -->
<script src="scripts/registerSW.min.js" type="module"></script>
<!--bootstrap js-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
</html>