Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/content/English/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'content/English/index.html')
-rwxr-xr-xcontent/English/index.html61
1 files changed, 4 insertions, 57 deletions
diff --git a/content/English/index.html b/content/English/index.html
index da4592c..28ff111 100755
--- a/content/English/index.html
+++ b/content/English/index.html
@@ -10,67 +10,14 @@
<script type="text/javascript" src="../js/karma.js"></script>
<script type="text/javascript" src="../js/global.js"></script>
<script type="text/javascript" src="../js/jquery.svg.js"></script>
+ <script type="text/javascript" src="../js/learner_subject.js"></script>
<script type="text/javascript" src="../js/navigation.js"></script>
<script type="text/javascript" src="activities.js"></script>
- <script type="text/javascript">
-
- function getName(){
-
- name = $('#login').val()
- grade = $('#grade').val();
- if (name.length == 0){
- ('#line4')
- .one('click',getName);
- return;
- };
-
-
- $('<div id="txtFetch")>')
- .load('http://localhost:8008/cgi-bin/fetch_milestone.py',
- {'mode':'Student','student':name,'class':grade},
- function(responseTxt, status, xhr){
-
- $('<div id="txtMain">')
- .load('http://localhost:8008/cgi-bin/set_up_main_menu.py',
- {'mode':'Student','student':name,'subject':'English'},
- function(responseTxt, status, xhr){
- window.location = './ladder.html'
- })
- })
- };
-
- $(function(){
- $('<div id="line0" />')
- .load('http://localhost:8008/cgi-bin/logged_in.py',
- function(responseTxt, status, xhr){
- pos = responseTxt.indexOf('unknown');
- if (pos == -1){
- window.location = './ladder.html'
- };
- });
- $('<div id="line1" />')
- .html('<h1>Welcome to the Learn.activity</h1>')
- .appendTo('#content')
- $('<div id="line2" />')
- .html('<p>Please enter your name and class ("P4","P5","P6")</p>')
- .appendTo('#content')
- $('<div id="line3" />')
- .html("<p><input id='login' label='name' value ='' type='text' /></p>")
- .appendTo('#content')
- $('<div id="line3" />')
- .html("<p><input id='grade' label='class' value ='' type='text' /></p>")
- .appendTo('#content')
- $('<div id="line4" />')
- .html("<p>Click here when you are finished</p>")
- .appendTo('#content')
- $('#line4')
- .one('click',getName)
- });
- </script>
</head>
<body>
<div id="header">
- <div id="topbtn_left"><div title="home" id="linkBack" class="linkHome" /></div></div>
+ <div id="topbtn_left"><div title="home" id="linkBack" class="linkHome" />
+ </div></div>
<div id="lesson_title">
<img src="../assets/image/title_block_lt.png" width="33" height="75" align = "absmiddle" />
English
@@ -80,6 +27,6 @@
<div title="Quit" id="linkQuit" class="linkQuit"></div>
</div>
</div>
- <div id="content" />
+ <canvas id="ladder"/>
</body>
</html>