Created
April 19, 2021 07:29
-
-
Save zecar/ea44de69d1e9a7eaacecff3f1bb21514 to your computer and use it in GitHub Desktop.
document ready
This file contains hidden or 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
function contentLoaded() { | |
document.addEventListener("stamped:badges:loaded", function() { | |
$(".stamped-badge[data-rating!='0.0']").parent().addClass("has-rating") | |
}) | |
} | |
if (document.readyState === "complete" || document.readyState === "loaded" || document.readyState === "interactive"){ | |
contentLoaded(); | |
} else { | |
window.addEventListener("DOMContentLoaded",contentLoaded); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment