Skip to content

Instantly share code, notes, and snippets.

@serverhiccups
Last active November 6, 2015 04:50
Show Gist options
  • Save serverhiccups/d0e86f2866a76152dc6f to your computer and use it in GitHub Desktop.
Save serverhiccups/d0e86f2866a76152dc6f to your computer and use it in GitHub Desktop.
My current phosphate code
$(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