summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-20 13:25:32 +0300
committerAlon Levy <alon@pobox.com>2014-10-20 21:36:37 +0300
commitc919c4bfef4ad9e2dc25d040c0727dd29ad541ae (patch)
treedd6394603680976c48801b53321e8085b0db1505 /index.html
parentf1f4e937932f52c630831d0d501f8f8756b37531 (diff)
introduce require.js and rewrite tests
Yes, I'm being lazy. The purpose of require.js is to allow writing modules, i.e. individual smaller then the whole files with clear dependencies. This is achieved by using a new api provided by require.js: define, require, requirejs Read more at [requirejs] (http://requirejs.org) Tests have been rewritten to work correctly with require.js; they still use jsdom. Test output is now stored in the repository, all tests are run via run_tests.js; This is a hack - once a good harness (with assertions, suites - unittest like) presents itself it will be used. Hidden here is also using FileSaver for history saving, so history is saved to history.json instead to a random name. Plus dropping some dead code.
Diffstat (limited to 'index.html')
-rw-r--r--index.html26
1 files changed, 4 insertions, 22 deletions
diff --git a/index.html b/index.html
index 549ecec2..ef5b58b4 100644
--- a/index.html
+++ b/index.html
@@ -8,14 +8,7 @@
<link rel="shortcut icon" href="images/favicon2.ico" />
- <script src="external/scripts/d3/d3.js"></script>
- <script src="external/scripts/jquery.js"></script>
-
- <script src="external/scripts/jquery-ui.js"></script>
- <script src="external/scripts/autocomplete.js"></script>
- <script src="external/scripts/FileSaver.js"></script>
-
- <script src="scripts/caret.js"></script>
+ <script data-main='scripts/app.js' src="scripts/external/require.js"></script>
</head>
@@ -36,14 +29,14 @@
<div class='editinfo'>
<form id='editform'>
- <input id="editname" onkeyup="expand(this);"/>
+ <input id="editname"/>
</form>
</div>
<div class='editlinkinfo'>
<form id='editlinkform'>
- <input id="editlinkname" onkeyup="expand(this);"/>
+ <input id="editlinkname"/>
</form>
</div>
@@ -51,7 +44,7 @@
<div id="suggestion" >
- <form> <input id="textanalyser" size="70" placeholder="Type here to create a network:" onkeyup="expand(this);"/></form>
+ <form> <input id="textanalyser" size="70" placeholder="Type here to create a network:"/></form>
</div>
<div class="typeselection">
@@ -129,16 +122,5 @@
</label>
</div>
- <script src="scripts/history.js"></script>
- <script src="scripts/util.js"></script>
- <script src="scripts/rhizicore.js"></script>
- <script src="scripts/textanalysis.js"></script>
- <script src="scripts/textanalysis-ui.js"></script>
- <script src="scripts/buttons.js"></script>
- <script src="scripts/drag_n_drop.js"></script>
- <script src="scripts/robot.js"></script>
- <script src="scripts/watchdog.js"></script>
- <script src="scripts/gant.js"></script>
-
</body>
</html>