Skip to content

Commit 7520b9d

Browse files
Merge pull request #9 from virtual-labs/testing
Testing
2 parents e500c53 + afc15cd commit 7520b9d

File tree

14 files changed

+818
-162
lines changed

14 files changed

+818
-162
lines changed

experiment/simulation/index.html

Lines changed: 11 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,167 +1,16 @@
11
<!DOCTYPE html>
2-
<html lang="en"><head>
3-
<meta charset="utf-8"/>
4-
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
5-
<meta content="width=device-width, initial-scale=1" name="viewport"/>
6-
<link href="css/bootstrap.min.css" rel="stylesheet"/>
7-
<script src="js/jquery-1.7.1.min.js"></script>
8-
<style type="text/css">
9-
table,
10-
th,
11-
td {
12-
border: 1px solid black;
13-
border-collapse: collapse;
14-
}
15-
</style>
16-
<script type="text/javascript">
17-
$(document).ready(function() {
18-
//the function is called once the document loads
19-
20-
$('#hidden-content').load('default.html #experiment',
21-
function(response, status, xhr) {
22-
//loads the default.html #lab section into the
23-
//#hidden-content
24-
25-
$('#container').load('content.html #experiment',
26-
function(response, status, xhr) {
27-
//loads the content.html #lab section into the
28-
//#container
29-
30-
homePage = $("div#experiment-header-heading a").html();
31-
32-
thisPage = $("article#experiment-article header#experiment-article-heading").html();
33-
34-
breadcrumb = "<font color='white'>" + "<a href='../../index.html'>Home<a/> \> <a href='../index.html'>" + homePage + "</a> \> <a href='index.html'>" + thisPage + "</a>" + "</font>";
35-
36-
$("article#experiment-article div#experiment-article-breadcrumb").html(breadcrumb);
37-
38-
$("#container .default").each(function() {
39-
// Extracts all elements with class = "default"
40-
// and top down
41-
42-
sectionId = $(this).attr('id');
43-
sectionContent = $("#hidden-content #" +
44-
sectionId).html();
45-
$("#container #" + sectionId).html(sectionContent);
46-
});
47-
48-
$("#container #experiment-article-sections > section").each(function() {
49-
// loads all the content in the respective
50-
// sections with the corresponding section headings
51-
52-
sectionId = $(this).attr('id');
53-
headerId = $("#" + sectionId + "-heading").html();
54-
iconId = $("#" + sectionId + "-icon").html();
55-
56-
$("#container #experiment-article-navigation ul").
57-
append("<li> <a href=\'#\' id=\'" + sectionId +
58-
"-menu\'>" + iconId + "<br />" +
59-
headerId + "</a></li>");
60-
});
61-
62-
/*
63-
$("#experiment-article-sections").after(
64-
"<div id='experiment-article-sections-view'> </div>");
65-
$("#experiment-article-sections-view").html($(
66-
"#experiment-article-sections section:first").html()); */
67-
68-
$("#experiment-article-sections section").hide();
69-
//hide all the experiment sections
70-
71-
$("#experiment-article-sections section:first").show();
72-
//show only the first experiment section when
73-
//the experiment page loads
74-
75-
$("#experiment-article-navigation ul > li a").live('click',
76-
function() {
77-
//enables the navigation
78-
79-
menuId = $(this).attr('id');
80-
// this points to the current element
81-
82-
sectionId = menuId.replace(/-menu/i, "");
83-
/*
84-
$("#experiment-article-sections-view").html($(
85-
"#experiment-article-sections #" +
86-
sectionId).html());
87-
*/
88-
89-
$("#experiment-article-sections section").hide();
90-
$("#experiment-article-sections #" + sectionId).show();
91-
$("#experiment-article-sections #" + sectionId + " #smoothing").load("experiment10.php");
92-
});
93-
});
94-
});
95-
96-
});
97-
98-
function selectCorpus() {
99-
var corpus = document.getElementById("corpus");
100-
theIndx = corpus.selectedIndex;
101-
corpus_name = corpus.options[theIndx].value;
102-
var cno = parseFloat(corpus_name);
103-
$('#display').load('experiment10-0.php?fileno=' + cno);
104-
}
105-
</script>
106-
2+
<<<<<<< HEAD
3+
<html>
4+
<head>
5+
<!-- Add CSS at the head of HTML file -->
6+
<link rel="stylesheet" href="./css/main.css">
1077
</head>
108-
1098
<body>
110-
<div>
111-
<div id="content">
112-
<!-- =================================================================================================================================== -->
113-
114-
<div class="col-md-10 lab-list-col-10">
115-
116-
<!--edit -->
117-
<!-- <h1 class="text-h1-lightblue">N-Grams Smoothing</h1> -->
118-
<div class="content" id="experiment-article-section-4-content">
119-
<div id="smoothing">
120-
<div align="center" id="mainContainer">
121-
122-
<form action="javascript:selectCorpus()" method="post" name="selector" target="_parent">
123-
<select autocomplete="off" id="corp_opt" name="corp_opt" onchange="selectCorpus(this.value);">";
124-
<option select="selected" value="-1">---Select a corpus---</option>";
125-
<option value="1">Corpus A</option>
126-
<option value="2">Corpus B</option>
127-
<option value="3">Corpus C</option>
128-
<option value="4">Corpus D</option>
129-
</select>
130-
</form>
131-
<div id="display"></div>
132-
</div>
133-
</div>
134-
</div>
135-
</div>
136-
</div>
137-
</div>
138-
<!-- =================================================================================================================================== -->
139-
140-
</div>
141-
<!-- content div -->
142-
143-
144-
</div>
145-
<!-- top div -->
146-
147-
<script src="js/jquery.js"></script>
148-
149-
<script type="text/javascript">
150-
function selectCorpus() {
151-
var corp = document.getElementById("corp_opt");
152-
theIndx = corp.selectedIndex;
153-
corp_id = corp.options[theIndx].value;
154-
if (corp_id == "-1") {
155-
alert("Select a corpus");
156-
return;
157-
}
158-
var cno = parseFloat(corp_id);
159-
160-
$('#display').load('experiment10-0.php?fileno=' + cno);
161-
}
162-
163-
164-
</script>
9+
<!-- Your code goes here-->
16510

11+
<p><li>Click <a href="./smoothing/index.html" target="_new">here</a> to perform the experiment</li></p>
16612

167-
</body><!-- jQuery --></html>
13+
<!-- Add JS at the bottom of HTML file -->
14+
<script src="./js/main.js"></script>
15+
</body>
16+
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
0,300,300,0,300,0,300,0,0,0,0,300,0,300,600,0,0,0,300,0,0,300,0,0,0,0,0,0,0,300,0,0,0,0,600,0,0,300,300,0,0,0,300,0,300,0,0,600,0
2+
&0.0002,0.0527,0.0527,0.0002,0.0527,0.0002,0.0527,0.0002,0.0002,0.0002,0.0002,0.0527,0.0002,0.0527,0.1053,0.0002,0.0002,0.0002,0.0527,0.0002,0.0002,0.0527,0.0002,0.0002,0.0002,0.0002,0.0002,0.0002,0.0002,0.0527,0.0002,0.0002,0.0002,0.0002,0.1053,0.0002,0.0002,0.0527,0.0527,0.0002,0.0002,0.0002,0.0527,0.0002,0.0527,0.0002,0.0002,0.1053,0.0002&(eos),I,you,him,can,near,sit
3+
&5700,7&
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
0,300,300,0,300,0,300,0,0,0,0,300,0,300,600,0,0,0,300,0,0,300,0,0,0,0,0,0,0,300,0,0,0,0,600,0,0,300,300,0,0,0,300,0,300,0,0,600,0
2+
&0.0002,0.0527,0.0527,0.0002,0.0527,0.0002,0.0527,0.0002,0.0002,0.0002,0.0002,0.0527,0.0002,0.0527,0.1053,0.0002,0.0002,0.0002,0.0527,0.0002,0.0002,0.0527,0.0002,0.0002,0.0002,0.0002,0.0002,0.0002,0.0002,0.0527,0.0002,0.0002,0.0002,0.0002,0.1053,0.0002,0.0002,0.0527,0.0527,0.0002,0.0002,0.0002,0.0527,0.0002,0.0527,0.0002,0.0002,0.1053,0.0002&(eos),I,you,him,can,near,sit
3+
&5700,7&
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
0,300,0,0,0,300,300,0,0,0,300,0,0,300,0,0,0,0,300,0,0,0,300,0,0,300,0,0,0,0,300,0,0,0,0,300,0,300,0,0,0,0,0,0,600,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,300,0,0,0,0,0,300,0,0,0,0,0,300,0,0,0,0,0,0,300,0,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,300,0,0,0,300,0,300,0,0,0,0,0,300,300,0,0,0,0,0,0,0,0,300,0&0,0.2485,0,0,0,0.2485,0.2485,0,0,0,0.2485,0,0,0.4926,0,0,0,0,0.4926,0,0,0,0.3304,0,0,0.3304,0,0,0,0,0.3304,0,0,0,0,0.4926,0,0.4926,0,0,0,0,0,0,0.9836,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.9678,0,0,0,0,0,0.4926,0,0,0,0,0,0.4926,0,0,0,0,0,0,0.4926,0,0,0,0,0,0.4926,0,0,0,0,0,0,0,0,0,0,0.9678,0,0,0,0.3304,0,0.3304,0,0,0,0,0,0.3304,0.4926,0,0,0,0,0,0,0,0,0.4926,0&(eos),you,book,a,car,I,can,read,in,the,park&7200,11&
2+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0,300,0,0,300,0,0,0,300,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,300,0,600,0,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,0,0,0,300,300,0,0,0,0,0,0,0,0,0,0,300,0,0,0,300,0,0,0,0,0,0,0,0,300,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,300,300,0,0,0,0,0,0,0,0,0,0&0,0.3304,0,0,0.3304,0,0,0,0.3304,0,0,0,0,0.9678,0,0,0,0,0,0,0,0,0,0,0,3304,0,0.6597,0,0,0,0,0,0.9678,0,0,0,0,0,0,0,0,0,0,0,0,0.9678,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.4926,0.4926,0,0,0,0,0,0,0,0,0,0,0.9678,0,0,0,0.4926,0,0,0,0,0,0,0,0,0.4926,0,0,0,0.9678,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.9678,0.9678,0,0,0,0,0,0,0,0,0,0&(eos), John, read, Fountainhead, Mary, a, different, book, She, by, Dickens&5100,11&(eos), John, read, Fountainhead, Mary, a, different, book, She, by, Dickens&5100,11&
100 KB
Loading
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
0,300,0,0,300,0,0,0,300,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,300,0,600,0,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,0,0,0,300,300,0,0,0,0,0,0,0,0,0,0,300,0,0,0,300,0,0,0,0,0,0,0,0,300,0,0,0,0,300,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,300,300,0,0,0,0,0,0,0,0,0,0&(eos), John, read, Fountainhead, Mary, a, different, book, She, by, Dickens&5100,11&
2+

0 commit comments

Comments
 (0)