<labelfor="web3"title="Execution environment connects to node at localhost, transactions will be sent to the network and can cause loss of money or worse!">
<labelfor="web3"title="Execution environment connects to node at localhost, transactions will be sent to the network and can cause loss of money or worse!">
if(confirm("Are you sure you want to publish all your files anonymously as a public gist on github.com")){
varfiles={};
varfilesArr=getFiles();
vardescription="Ethereum Contracts Gist created using soleditor at: https://chriseth.github.io/browser-solidity to load gist in soleditor append #gist=gistid to the url, where gistid is the id in this gist url.";
for(varfinfilesArr){
files[fileNameFromKey(filesArr[f])]={
content:localStorage[filesArr[f]]
};
}
$.ajax({
url:'https://api.github.com/gists',
type:'POST',
data:JSON.stringify({
description:description,
public:true,
files:files
})
}).done(function(response){
if(response.html_url&&confirm("Created a gist at "+response.html_url+" Would you like to open it in a new window?")){