Skip to content

CelticParser/retratosdearissona.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase

firebase login
firebase deploy --only hosting

Cloudinary API

API/Secret: 411528374683961:PXtF8M992HzFH4DLJzZAL6jWeiw

curl https://411528374683961:[email protected]/v1/retratosdearissona/ping

Cache Warmup

curl https://411528374683961:[email protected]/v1/retratosdearissona/cache_warm_up -X POST --data 'url=https://retratosdearissona.mo.cloudinary.net/img/La-Mision-de-San-Xavier-del-Bac.jpg?tx=t_complex'

Log/Print

Vanila-Lazyload

<script>
    (function () {
        function logElementEvent(eventName, element) {
        console.log(Date.now(), eventName, element.getAttribute("data-src"));
        }

        var callback_enter = function (element) {
        logElementEvent("🔑 ENTERED", element);
        };
        var callback_exit = function (element) {
        logElementEvent("🚪 EXITED", element);
        };
        var callback_loading = function (element) {
        logElementEvent("⌚ LOADING", element);
        };
        var callback_loaded = function (element) {
        logElementEvent("👍 LOADED", element);
        };
        var callback_error = function (element) {
        logElementEvent("💀 ERROR", element);
        element.src =
            "https://via.placeholder.com/440x560/?text=Error+Placeholder";
        };
        var callback_finish = function () {
        logElementEvent("✔️ FINISHED", document.documentElement);
        };
        var callback_cancel = function (element) {
        logElementEvent("🔥 CANCEL", element);
        };

        var ll = new LazyLoad({
        threshold: 0,
        // Assign the callbacks defined above
        callback_enter: callback_enter,
        callback_exit: callback_exit,
        callback_cancel: callback_cancel,
        callback_loading: callback_loading,
        callback_loaded: callback_loaded,
        callback_error: callback_error,
        callback_finish: callback_finish
        });
    })();
</script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published