varstr=prompt("Enter the URL or ID of the Gist you would like to load.");
varstr=prompt("Enter the URL or ID of the Gist you would like to load.");
if(str!==''){
gistId=getGistId(str);
loadingFromGist=!!gistId;
}
}else{
gistId=queryParams['gist'];
loadingFromGist=!!gistId;
}
$.ajax({
url:'https://api.github.com/gists/'+gistId,
jsonp:'callback',
dataType:'jsonp',
loadingFromGist=!!gistId;
}
if(loadingFromGist)$.ajax({
url:'https://api.github.com/gists/'+gistId,
jsonp:'callback',
dataType:'jsonp',
success:function(response){
if(response.data){
for(varfinresponse.data.files){
@ -249,7 +249,7 @@
varfiles={};
varfilesArr=getFiles();
vardescription="Created using soleditor: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://chriseth.github.io/browser-solidity/#gist=";
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=";
<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>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>
<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>