Last active
December 4, 2024 17:28
-
-
Save LeftistTachyon/85962ddef931f8e8b2f86ab67b46cb34 to your computer and use it in GitHub Desktop.
The scripting half of the pfp insanity
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
savestring = "*insert Base64 junk here*"; | |
saving=true; | |
document.getElementById('button_save').style.background='#888'; | |
statusdiv.innerHTML='Saving the painting'; | |
(SaveObj=new XMLHttpRequest()).open('POST', 'includes/ajax_dsipaint_save.php', true); | |
SaveObj.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); | |
SaveObj.send ('data='+savestring); | |
SaveObj.onreadystatechange=function(){ | |
if(SaveObj.readyState==4){ | |
statusdiv.innerHTML=SaveObj.responseText; | |
saving=false; | |
document.getElementById('button_save').style.background='#00f'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment