-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
163 lines (137 loc) · 5.65 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<head lang="en">
<meta charset="UTF-8">
<title>Practicum</title>
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon"/>
<!-- load common styles from bootstrap -->
<link href="css/bootstrap/bootstrap.min.css" type="text/css" rel="stylesheet" />
<!-- load local files after to override bootstrap styling -->
<link href="css/indexlayout.css" type="text/css" rel="stylesheet" />
<link href="css/csed.css" type="text/css" rel="stylesheet" />
<link href="controller/problem.css" type="text/css" rel="stylesheet" />
<!-- load jQuery before cookie plugin, bootstrap, d3 -->
<script src="vendor/jquery/jquery-1.11.2.min.js"></script>
<script src="vendor/jquery/jquery.cookie.js"></script>
<script src="vendor/bootstrap/bootstrap.min.js"></script>
<script src="vendor/d3/d3.js"></script>
<!-- polyfill fetch for older browsers -->
<script src="vendor/fetch/fetch.js"></script>
<script src="vendor/big.js"></script>
<script src="js/logging.js"></script>
<script src="js/python/ast.js"></script>
<script src="js/python/parser.js"></script>
<script src="js/python/simulator.js"></script>
<script src="js/python/formatter.js"></script>
<script src="js/tpl/main.js"></script>
<script src="js/tpl/parser.js"></script>
<script src="js/tpl/simulator.js"></script>
<script src="js/tpl/explainer.js"></script>
<script src="js/tpl/algorithms/tplHelper.js"></script>
<!-- load index before problem JS -->
<script src="js/index.js"></script>
<script src="controller/controller.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-csed">
<div class="container-fluid">
<a id="home-link" class="navbar-brand" href="#">
<img alt="Home" src="images/home-icon.png" />
</a>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<!-- placeholder div for problems to be put into -->
<ul id="problems-nav-container" class="nav navbar-nav">
</ul>
</div>
</div>
</nav>
<div id="__username" class="hidden"><?= $username ?></div>
<div id="main-page" class="container-fluid hidden">
<div class="content">
<div id="welcome">
<h2>Welcome to Practicum!</h2>
<p>
On this site you can practice problems related to introductory<br>programming
through our in-depth learning environment.
</p>
<p>
Click on a problem to get started!
</p>
</div>
</div>
<!-- placeholder div for problem descriptions to be put into -->
<div id="problems-content-container" class="container container-fluid"></div>
</div>
<!-- placeholder div for the problem content to go in -->
<div id="problem-container" class="container container-fluid hidden"></div>
<!-- Fading Level Prompt -->
<div id="fading-level-modal" class="modal">
<style scoped>
body {
font-family: Arial, Helvetica, sans-serif;
}
/* The Modal (background) */
.modal {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 1;
/* Sit on top */
padding-top: 100px;
/* Location of the box */
left: 0;
top: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
overflow: auto;
/* Enable scroll if needed */
background-color: rgb(0, 0, 0);
/* Fallback color */
background-color: rgba(0, 0, 0, 0.4);
/* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
</style>
<!-- Modal content -->
<div class="modal-content">
<h4 style="font-weight: bold;">Choose the difficulty for the chosen problem</h4>
<!-- Change the message if needed -->
<p>The Guided difficulty will walk you through the entire problem, showing how
Practicum works and how it goes about solving the problem. The Independent
difficulty will prompt you for input at each step and is a more interactive
difficulty. If this is your first time answering this type of problem, we
recommend trying it out on Guided difficulty first.
</p>
<input type="radio" id="guided" name="difficulty-level" value="Guided" checked>
<label for="guided">Guided</label><br>
<input type="radio" id="independent" name="difficulty-level" value="Independent">
<label for="independent">Independent</label><br>
<br>
<button id="doneBtn">Done</button>
</div>
<script>
</script>
</div>
</body>