Merge pull request #17 from chriseth/includeList

Do not use AJAX for retrieving the list of binaries.
pull/1/head
chriseth 9 years ago
commit a2bd811a84
  1. 6
      index.html

@ -35,6 +35,7 @@ THE SOFTWARE.
<style type="text/css">
</style>
<script src="bin/list.js"></script>
<script src="libs/jquery-2.1.3.min.js"></script>
<script src="libs/ace.js"></script>
<script src="libs/mode-solidity.js"></script>
@ -94,9 +95,9 @@ THE SOFTWARE.
// ----------------- version selector-------------
$.get('bin/list.txt').then(function(versionList) {
// var soljsonSources is provided by bin/list.js
$('option', '#versionSelector').remove();
$.each(versionList.split('\n'), function(i, file) {
$.each(soljsonSources, function(i, file) {
if (file) {
var version = file.replace(/soljson-(.*).js/, "$1");
$('#versionSelector').append(new Option(version, file));
@ -111,7 +112,6 @@ THE SOFTWARE.
$('head').append(script);
onCompilerLoaded();
});
});
// ----------------- resizeable ui ---------------

Loading…
Cancel
Save