MDB5 Free

This commit is contained in:
unknown 2020-12-02 11:37:27 +01:00
parent 5b886babfc
commit e4bcdb8e8f
75 changed files with 605 additions and 2861 deletions

View File

@ -1282,44 +1282,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1271,44 +1271,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1274,44 +1274,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1288,44 +1288,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1451,44 +1451,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1299,44 +1299,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1305,44 +1305,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1316,44 +1316,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1347,44 +1347,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1276,44 +1276,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1299,44 +1299,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1348,44 +1348,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1283,44 +1283,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1295,44 +1295,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1266,44 +1266,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1299,44 +1299,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1268,44 +1268,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1321,44 +1321,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1296,44 +1296,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1266,44 +1266,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1310,44 +1310,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1286,44 +1286,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1287,44 +1287,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1286,44 +1286,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -143,44 +143,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1270,44 +1270,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1286,44 +1286,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1266,44 +1266,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1265,44 +1265,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1269,44 +1269,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1278,44 +1278,14 @@
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1292,44 +1292,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1299,44 +1299,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1269,44 +1269,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1312,44 +1312,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1312,44 +1312,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1264,44 +1264,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1265,44 +1265,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1319,44 +1319,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1269,44 +1269,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1261,44 +1261,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1261,44 +1261,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1271,44 +1271,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1266,44 +1266,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1264,44 +1264,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1275,44 +1275,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1265,44 +1265,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1262,44 +1262,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1259,44 +1259,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1261,44 +1261,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1261,44 +1261,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1268,44 +1268,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1265,44 +1265,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -1256,44 +1256,14 @@
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>

View File

@ -182,59 +182,23 @@
<div class="row">
<div class="col-md-6 text-center">
<div class="alert alert-dark" role="alert">
<p class="font-weight-bold">90% OFF for BLACK WEEK</p>
<div class="alert alert-success" role="alert">
<p class="font-weight-bold">New version available - Material Design for Bootstrap 5</p>
<hr>
<p>UI KIT's, Templates, Plugins, Premium components for Bootstrap, Angular React &amp; Vue - including the latest 🔥 Bootstrap 5 version!</p>
<strong>Hurry up! All offers are LIMITED</strong><br>
<span class="font-weight-bold text-poppy-red" id="time-counter"></span><br>
<strong>
<a type="button" href="https://mdbootstrap.com/sale/"
class="btn btn-outline-danger mt-3">CLAIM OFFER NOW</a>
</strong></div>
<p>Material Design 2.0 + latest Bootstrap 5 based on plain JavaScript (but works also with jQuery). 500+ material UI components, super simple, 1 minute installation, free templates &amp; much more</p>
<a type="button" id="myBtn" href="https://mdbootstrap.com/download/mdb-ui-kit/free/221KdmzSCAwdMdUHrCI/MDB-UI-KIT-Free-2.2.1.zip" class="btn btn-danger active mt-3" role="button">Free Download</a>
</div>
</div>
<script>
// Ad counter
// Set the date we're counting down to
var countDownDate = new Date(Date.UTC(2020, 11, 12, 12, 00, 00));
var counterElement = document.getElementById("time-counter");
// Update the count down every 1 second
function startCounter(){
//wrapped in an if to prevent console errors if the element isn't found on the page
if(counterElement==null){
return
}else {
var x = setInterval(
function () {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
counterElement.innerHTML = hours + "h " +
minutes + "m " + seconds + "s";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time-counter").innerHTML =
'<p class="h3 grey-text">Sale ended :(</p>';
}
}, 1000);
}}
startCounter();
const btn = document.getElementById('myBtn');
btn.addEventListener('click', () => {
setTimeout(() => {
window.location.href = 'https://mdbootstrap.com/docs/standard/?utm_ref_id=28683';
}, 500);
});
</script>
</div>