Load image source on scroll

Set time tags to local time
This commit is contained in:
Michał Gdula 2023-01-26 16:55:42 +00:00
parent 792cbd1884
commit 651fd8aa49
6 changed files with 51 additions and 44 deletions

View file

@ -23,6 +23,13 @@ function imgFade(obj) {
//$(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' } );
}
function addNotification(text='Sample notification', type=4) {
var container = document.querySelector('.notifications');