<p><buttonid="gist"title="Publish all files as public gist on github.com"><iclass="fa fa-github"></i> Publish Gist</button> Publish all open files to an anonymous github gist.</p>
<p>
<buttonid="gist"title="Publish all files as public gist on github.com"><iclass="fa fa-github"></i> Publish Gist</button> Publish all open files to an anonymous github gist.<br/>
<buttonid="copyOver"title="Copy all files to another instance of browser-solidity.">Copy files</button> Copy all files to another instance of browser-solidity.
</p>
<p>You can also load a gist by adding the following <spanclass="pre">#gist=GIST_ID</span> to your url, where GIST_ID is the id of the gist to load.</p>
if(confirm("Are you sure you want to publish all your files anonymously as a public gist on github.com?")){
varfiles={};
varfilesArr=getFiles();
varfiles=packageFiles();
vardescription="Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. \n Load this file by pasting this gists URL or ID at https://chriseth.github.io/browser-solidity/#version="+getQueryParams().version+"&optimize="+getQueryParams().optimize+"&gist=";
for(varfinfilesArr){
files[fileNameFromKey(filesArr[f])]={
content:localStorage[filesArr[f]]
};
}
$.ajax({
url:'https://api.github.com/gists',
type:'POST',
@ -274,6 +297,18 @@ var run = function() {
}
});
$('#copyOver').click(function(){
vartarget=prompt(
"To which other browser-solidity instance do you want to copy over all files?",