Fix bugginess with resource loading

This commit is contained in:
Mark Eaton
2024-03-08 16:04:21 -05:00
committed by GitHub
parent 0a67f40c4f
commit 3d13f22794
+3 -3
View File
@@ -142,16 +142,16 @@ a[href^="/az.php"].btn.btn-info.s-lg-hp-btn-section {
</style> </style>
<!-- scripts to replace Email Me buttons in profiles with LibAnswers widgets --> <!-- scripts to replace Email Me buttons in profiles with LibAnswers widgets -->
<script src="https://kbcc-cuny.libanswers.com/1.0/widgets/19393"></script>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
try { try {
document.getElementsByClassName("s-lib-profile-email")[0].innerHTML = "<div id='s-la-widget-19393'></div>" document.querySelector("[id^='s-lib-profile-email-']").innerHTML = "<div id='s-la-widget-19393'></div>"
} catch (error) { } catch (error) {
console.log(error); console.log("Email Me button not found on this page. This is just a warning...")
}; };
}); });
</script> </script>
<script src="https://kbcc-cuny.libanswers.com/1.0/widgets/19393"></script>
<!-- global style to replace Email Me buttons in profiles with LibAnswers widgets --> <!-- global style to replace Email Me buttons in profiles with LibAnswers widgets -->
<style> <style>