This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SINGLY LINKED LIST | |
class SinglyLinkedList { | |
constructor(head = null) { | |
this.head = head; | |
} | |
getFirstNode() { | |
return this.head; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('DOMContentLoaded', function () { | |
var lazyloadImages = document.querySelectorAll('img.lazy'); | |
var lazyloadThrottleTimeout; | |
function lazyload() { | |
if (lazyloadThrottleTimeout) { | |
clearTimeout(lazyloadThrottleTimeout); | |
} | |
lazyloadThrottleTimeout = setTimeout(function () { |