-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
125 lines (103 loc) · 4.68 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
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Perfume House BD</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/@mdi/font@4.x/css/materialdesignicons.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<body>
<div id="app">
<v-app>
<!-- <h1 id="cd">Perfume House BD</h1> -->
<p style="">
<br>
</p>
<v-card class="mx-auto" max-width="100%" max-height="100%">
<v-img src="https://cdn.vuetifyjs.com/images/cards/sunshine.jpg" height="200px"></v-img>
<v-card-title>
<h1 style="margin: auto; width: 50%; text-align: center; font-weight: 900;">
COMING SOON
</h1>
</v-card-title>
<v-card-subtitle>
<h2 style="margin-left: auto; margin-right: auto; margin-top: 10px; margin:bottom: 10px; width: 50%; border: 3px solid green; padding: 10px; text-align: center; color: red">
{{cd_data}}
</h2>
</v-card-subtitle>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn icon @click="show = !show">
<v-icon>{{ show ? 'mdi-chevron-up' : 'mdi-chevron-down' }}</v-icon>
</v-btn>
</v-card-actions>
<v-expand-transition>
<div v-show="show">
<v-divider></v-divider>
<v-card-text>
<p class="text-center">
Perfume House BD site is under construction. Please come back again after {{cd_data}}. We will be waiting.
</p>
</v-card-text>
</div>
</v-expand-transition>
</v-card>
</v-app>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.js"></script>
<script>
new Vue({
el: '#app',
mounted() {
this.get_countdown()
},
data() {
return {
days: '',
hours: '',
minutes: '',
seconds: '',
now: '',
distance: '',
x: '',
countDownDate: '',
cd_data: '',
}
},
methods: {
get_countdown() {
// Set the date we're counting down to
this.countDownDate = new Date("Apr 1, 2021 12:12:00").getTime();
var _this = this
// Update the count down every 1 second
this.x = setInterval(function() {
// Get today's date and time
_this.now = new Date().getTime();
// Find the distance between now and the count down date
_this.distance = _this.countDownDate - _this.now;
// Time calculations for days, hours, minutes and seconds
_this.days = Math.floor(_this.distance / (1000 * 60 * 60 * 24));
_this.hours = Math.floor((_this.distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
_this.minutes = Math.floor((_this.distance % (1000 * 60 * 60)) / (1000 * 60));
_this.seconds = Math.floor((_this.distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
_this.cd_data = _this.days + "d " + _this.hours + "h " +
_this.minutes + "m " + _this.seconds + "s ";
// If the count down is over, write some text
if (_this.distance < 0) {
clearInterval(_this.x);
_this.cd_data = "EXPIRED";
}
}, 1000);
},
},
vuetify: new Vuetify(),
})
</script>
</body>
</html>