Last active
October 9, 2024 19:40
-
-
Save mreidsma/3efca8cf9c43dc141a4880a40be13a66 to your computer and use it in GitHub Desktop.
Embed real-time occupancy on the website
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
<!-- | |
Docs: https://libguides.gvsu.edu/reusabledesigns/skiplink | |
--> | |
<!-- Real Time Occupancy --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
<div id="library-rto"></div> | |
<script> | |
jQuery(document).ready(function() { | |
console.log('Loading occupancy...'); | |
jQuery('#library-rto').load('https://prod.library.gvsu.edu/labs/rto/embed.php'); | |
jQuery('.chunk-module-news').removeClass('chunk-module-news').addClass('chunk-module-banner'); | |
}); | |
</script> | |
<!-- End Real Time Occupancy --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment