Last active
November 6, 2015 04:50
-
-
Save serverhiccups/d0e86f2866a76152dc6f to your computer and use it in GitHub Desktop.
My current phosphate code
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
$(document).ready(function(){ | |
var scratch_player = $(".stage"); | |
var url = window.location.href; | |
url = url.substr(33,40); | |
$(scratch_player).empty(); | |
$(scratch_player).append("<script src='https://phosphorus.github.io/embed.js?id=", url, "&auto-start=false&light-content=false'></script>"); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment