File tree Expand file tree Collapse file tree 3 files changed +13
-26
lines changed Expand file tree Collapse file tree 3 files changed +13
-26
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,14 @@ section {
296
296
width : 100% ;
297
297
}
298
298
299
+ /* SPINNER */
300
+ .dot-spin {
301
+ position : absolute;
302
+ top : 50% ;
303
+ left : 50% ;
304
+ transform : translate (-50% , -50% ) scale (3 );
305
+ }
306
+
299
307
/* MEDIA QUERIES */
300
308
301
309
@media screen and (max-width : 768px ) {
Original file line number Diff line number Diff line change @@ -160,32 +160,7 @@ <h2>Minted!</h2>
160
160
</ div >
161
161
</ section >
162
162
163
- <!-- <section>
164
- <h1>MINT</h1>
165
- <div>
166
- <div id="address">Wallet not connected</div>
167
-
168
- <div>
169
- <button id="connect" onclick="connect()">Connect your wallet</button>
170
- </div>
171
- <div>
172
- <div>Minting price per token: <a id="price" target="_blank"></a></div>
173
- <div>Maximum tokens per mint: <span id="maxAmount"></span></div>
174
-
175
- <div>
176
- <input
177
- id="amount"
178
- type="number"
179
- step="1"
180
- min="1"
181
- max="10"
182
- value="1"
183
- />
184
- </div>
185
- </div>
186
- </div>
187
- <button id="mint" onclick="mint()">Mint</button>
188
- </section> -->
163
+ < div id ="spinner " class ="dot-spin "> </ div >
189
164
190
165
< div class ="splide ">
191
166
< div class ="splide__track ">
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ async function loadInfo() {
83
83
const actionButton = document . getElementById ( "actionButton" ) ;
84
84
const mintContainer = document . getElementById ( "mintContainer" ) ;
85
85
const mintButton = document . getElementById ( "mintButton" ) ;
86
+ const spinner = document . getElementById ( "spinner" ) ;
86
87
87
88
let startTime = "" ;
88
89
if ( publicMintActive ) {
@@ -130,6 +131,9 @@ async function loadInfo() {
130
131
clockdiv . setAttribute ( "data-date" , startTime ) ;
131
132
countdown ( ) ;
132
133
134
+ // HIDE SPINNER
135
+ spinner . classList . add ( 'hidden' ) ;
136
+
133
137
// SHOW CARD
134
138
setTimeout ( ( ) => {
135
139
const countdownCard = document . querySelector ( '.countdown' ) ;
You can’t perform that action at this time.
0 commit comments