mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Load image source on scroll
Set time tags to local time
This commit is contained in:
parent
792cbd1884
commit
651fd8aa49
6 changed files with 51 additions and 44 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue