2424 < div class ="container ">
2525 < div class ="d-flex justify-content-center align-items-center " style ="height: 100vh; ">
2626 < div class ="text-center ">
27+ <!-- <i class="fas fa-ticket-alt fa-10x"></i> -->
2728 < img
28- class =" mb-4 "
29- src =" https://mdbootstrap.com/img/logo/mdb-transparent-250px.png "
30- style =" width: 250px; height: 90px; "
29+ src =" https://mdbootstrap.com/img/Marketing/other/mdb50off.png "
30+ height =" 150px "
31+ width =" 150px "
3132 />
32- < h5 class ="mb-3 "> Thank you for using our product. We're glad you're with us.</ h5 >
33- < p class ="mb-3 "> MDB Team</ p >
33+ < h5 class ="mb-3 "> Release suprise! 50% OFF MDB 5 PRO</ h5 >
34+
35+ < p >
36+ Use this coupon code before the next release to claim the reward.< br /> Hurry up & don't
37+ loose your chance.
38+ </ p >
39+ < p >
40+ < code class ="text-uppercase h1 px-2 rounded bg-dark text-white "> MB8XW23V</ code >
41+ </ p >
3442 < a
3543 class ="btn btn-primary btn-lg "
44+ onclick ="copy('MB8XW23V');toastr.info('Coupon code copied! Use it on the checkout.'); "
45+ target ="_blank "
46+ role ="button "
47+ > CLAIM DISCOUNT</ a
48+ >
49+ < a
50+ class ="btn btn-outline-primary btn-lg "
3651 href ="https://mdbootstrap.com/docs/standard/getting-started/ "
3752 target ="_blank "
3853 role ="button "
39- > Start MDB tutorial </ a
54+ > START TUTORIAL </ a
4055 >
56+ < h5 class ="h1-responsive text-uppercase mt-3 ">
57+ the code < span class ="font-weight-bold "> </ span > expires in:< br />
58+ < span class ="font-weight-bold " id ="time-counter "> </ span >
59+ </ h5 >
4160 </ div >
4261 </ div >
4362 </ div >
@@ -47,5 +66,52 @@ <h5 class="mb-3">Thank you for using our product. We're glad you're with us.</h5
4766 <!-- MDB -->
4867 < script type ="text/javascript " src ="js/mdb.min.js "> </ script >
4968 <!-- Custom scripts -->
50- < script type ="text/javascript "> </ script >
69+ < script type ="text/javascript ">
70+ function copy ( text ) {
71+ var textarea = document . createElement ( 'textarea' ) ;
72+ textarea . value = text ;
73+ document . body . appendChild ( textarea ) ;
74+ textarea . select ( ) ;
75+ document . execCommand ( 'copy' ) ;
76+ document . body . removeChild ( textarea ) ;
77+ }
78+
79+ // Ad counter
80+ // Set the date we're counting down to
81+ var countDownDate = new Date ( Date . UTC ( 2020 , 09 , 30 , 10 , 00 , 00 ) ) ;
82+ var counterElement = document . getElementById ( 'time-counter' ) ;
83+
84+ // Update the count down every 1 second
85+ function startCounter ( ) {
86+ //wrapped in an if to prevent console errors if the element isn't found on the page
87+ if ( counterElement == null ) {
88+ return ;
89+ } else {
90+ var x = setInterval ( function ( ) {
91+ // Get todays date and time
92+ var now = new Date ( ) . getTime ( ) ;
93+
94+ // Find the distance between now an the count down date
95+ var distance = countDownDate - now ;
96+
97+ // Time calculations for days, hours, minutes and seconds
98+ var days = Math . floor ( distance / ( 1000 * 60 * 60 * 24 ) ) ;
99+ var hours = Math . floor ( ( distance % ( 1000 * 60 * 60 * 24 ) ) / ( 1000 * 60 * 60 ) ) ;
100+ var minutes = Math . floor ( ( distance % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) ) ;
101+ var seconds = Math . floor ( ( distance % ( 1000 * 60 ) ) / 1000 ) ;
102+
103+ // Display the result in the element with id="demo"
104+ counterElement . innerHTML = days + 'd ' + hours + 'h ' + minutes + 'm ' + seconds + 's' ;
105+
106+ // If the count down is finished, write some text
107+ if ( distance < 0 ) {
108+ clearInterval ( x ) ;
109+ document . getElementById ( 'time-counter' ) . innerHTML =
110+ '<p class="h3 grey-text">Sale ended :(</p>' ;
111+ }
112+ } , 1000 ) ;
113+ }
114+ }
115+ startCounter ( ) ;
116+ </ script >
51117</ html >
0 commit comments