Formatted metadata

Add API for metadata
Load more images if page is resized
Adjusted animations
This commit is contained in:
Michał Gdula 2023-01-31 17:32:22 +00:00
parent 651fd8aa49
commit da1579555b
9 changed files with 742 additions and 86 deletions

View file

@ -20,14 +20,13 @@ document.querySelector('.jumpUp').onclick = function() {
function imgFade(obj) {
$(obj).animate({opacity: 1}, 500);
//$(obj).parent().style.backgroundColor = 'transparent';
}
var times = document.getElementsByClassName('time');
for (var i = 0; i < times.length; i++) {
var time = times[i].innerHTML;
var date = new Date(time);
times[i].innerHTML = date.toLocaleString( 'en-GB', { timeZone: 'UTC' } );
times[i].innerHTML = date.toLocaleString('en-GB');
}
function addNotification(text='Sample notification', type=4) {