joinpeertube/themes/hugo-bootstrap-premium/static/js/site.js

16 lines
501 B
JavaScript
Raw Normal View History

2018-02-28 15:33:36 +00:00
$(
function(){
$("table").addClass("table table-condensed table-bordered table-striped");
}
);
$('#return-to-top').click(function() { // When arrow is clicked
$('body,html').animate({
scrollTop : 0 // Scroll to top of body
}, 500);
});
2018-06-14 10:38:34 +00:00
const end = new Date('04/08/2018 11:59 PM');
const now = new Date();
const days = (end - now < 0) ? 0 : Math.floor((end - now) / 86400000); // 24*60*60*1000
document.getElementById('kkbbDays').innerHTML = days;