REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 2.40 KB
Close
//home/justbyquicklly-old/public_html/test/js/js/lazyload.js
Text
Base64
(function(root,factory){if(typeof define==="function"&&define.amd){define([],factory(root));}else if(typeof exports==="object"){module.exports=factory(root);}else{root.LazyLoad=factory(root);}})(typeof global!=="undefined"?global:this.window||this.global,function(root){"use strict";const defaults={src:"data-src",srcset:"data-srcset",selector:"img"};const extend=function(){let extended={};let deep=false;let i=0;let length=arguments.length;if(Object.prototype.toString.call(arguments[0])==="[object Boolean]"){deep=arguments[0];i++;} let merge=function(obj){for(let prop in obj){if(Object.prototype.hasOwnProperty.call(obj,prop)){if(deep&&Object.prototype.toString.call(obj[prop])==="[object Object]"){extended[prop]=extend(true,extended[prop],obj[prop]);}else{extended[prop]=obj[prop];}}}};for(;i<length;i++){let obj=arguments[i];merge(obj);} return extended;};function LazyLoad(images,options){this.settings=extend(defaults,options||{});this.images=images||document.querySelectorAll(this.settings.selector);this.observer=null;this.init();} LazyLoad.prototype={init:function(){if(!root.IntersectionObserver){this.loadImages();return;} let self=this;let observerConfig={root:null,rootMargin:"0px",threshold:[0]};this.observer=new IntersectionObserver(function(entries){entries.forEach(entry=>{if(entry.intersectionRatio>0){self.observer.unobserve(entry.target);let src=entry.target.getAttribute(self.settings.src);let srcset=entry.target.getAttribute(self.settings.srcset);if("img"===entry.target.tagName.toLowerCase()){if(src){entry.target.src=src;} if(srcset){entry.target.srcset=srcset;}}else{entry.target.style.backgroundImage="url("+src+")";}}});},observerConfig);this.images.forEach(image=>{this.observer.observe(image);});},loadAndDestroy:function(){if(!this.settings){return;} this.loadImages();this.destroy();},loadImages:function(){if(!this.settings){return;} this.images.forEach(image=>{let src=image.getAttribute(this.settings.src);let srcset=image.getAttribute(this.settings.srcset);if(src){image.src=src;} if(srcset){image.srcset=srcset;}});},destroy:function(){if(!this.settings){return;} this.observer.disconnect();this.settings=null;}};root.lazyload=function(images,options){return new LazyLoad(images,options);};if(window.jQuery){const $=window.jQuery;$.fn.lazyload=function(options){options=options||{};options.attribute=options.attribute||"data-src";new LazyLoad($.makeArray(this),options);return this;};} return LazyLoad;});
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
bootstrap.min.js
30.91 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cart.js
257.40 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cloud-zoom.js
13.92 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
common.js
13.38 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
count-down.js
576 B
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
jquery.bxslider.min.js
16.87 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
jquery.flexslider.js
30.74 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
jquery.min.js
93.62 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
jquery.mobile-menu.min.js
4.01 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
lazyload.js
2.40 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
owl.carousel.min.js
14.56 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
parallax.js
3.88 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
revslider.js
168.21 KB
lrwxrwxr-x
2024-09-18 10:03:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).