Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
a2bd811a
Commit
a2bd811a
authored
Sep 29, 2015
by
chriseth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17 from chriseth/includeList
Do not use AJAX for retrieving the list of binaries.
parents
e0cf13c7
3f881d9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
index.html
index.html
+15
-15
No files found.
index.html
View file @
a2bd811a
...
@@ -35,6 +35,7 @@ THE SOFTWARE.
...
@@ -35,6 +35,7 @@ THE SOFTWARE.
<style
type=
"text/css"
>
<style
type=
"text/css"
>
</style>
</style>
<script
src=
"bin/list.js"
></script>
<script
src=
"libs/jquery-2.1.3.min.js"
></script>
<script
src=
"libs/jquery-2.1.3.min.js"
></script>
<script
src=
"libs/ace.js"
></script>
<script
src=
"libs/ace.js"
></script>
<script
src=
"libs/mode-solidity.js"
></script>
<script
src=
"libs/mode-solidity.js"
></script>
...
@@ -94,23 +95,22 @@ THE SOFTWARE.
...
@@ -94,23 +95,22 @@ THE SOFTWARE.
// ----------------- version selector-------------
// ----------------- version selector-------------
$
.
get
(
'bin/list.txt'
).
then
(
function
(
versionList
)
{
// var soljsonSources is provided by bin/list.js
$
(
'option'
,
'#versionSelector'
).
remove
();
$
(
'option'
,
'#versionSelector'
).
remove
();
$
.
each
(
versionList
.
split
(
'
\
n'
)
,
function
(
i
,
file
)
{
$
.
each
(
soljsonSources
,
function
(
i
,
file
)
{
if
(
file
)
{
if
(
file
)
{
var
version
=
file
.
replace
(
/soljson-
(
.*
)
.js/
,
"$1"
);
var
version
=
file
.
replace
(
/soljson-
(
.*
)
.js/
,
"$1"
);
$
(
'#versionSelector'
).
append
(
new
Option
(
version
,
file
));
$
(
'#versionSelector'
).
append
(
new
Option
(
version
,
file
));
}
}
});
});
$
(
'#versionSelector'
).
change
(
function
()
{
$
(
'#versionSelector'
).
change
(
function
()
{
Module
=
null
;
Module
=
null
;
compileJSON
=
null
;
compileJSON
=
null
;
var
script
=
document
.
createElement
(
'script'
);
var
script
=
document
.
createElement
(
'script'
);
script
.
type
=
'text/javascript'
;
script
.
type
=
'text/javascript'
;
script
.
src
=
'bin/'
+
$
(
'#versionSelector'
).
val
();
script
.
src
=
'bin/'
+
$
(
'#versionSelector'
).
val
();
$
(
'head'
).
append
(
script
);
$
(
'head'
).
append
(
script
);
onCompilerLoaded
();
onCompilerLoaded
();
});
});
});
// ----------------- resizeable ui ---------------
// ----------------- resizeable ui ---------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment