-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.php
More file actions
executable file
·153 lines (140 loc) · 5.46 KB
/
editor.php
File metadata and controls
executable file
·153 lines (140 loc) · 5.46 KB
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
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 7 ]>
<script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
<!DOCTYPE HTML>
<html ng-app="myModule">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>icare::learn code by doing</title>
<link rel="stylesheet" href="app/css/custom_editor.css">
<script src="plugins/js/angular.min.js" type="text/javascript"></script>
<script src="plugins/js/src-min-noconflict/ace.js" type="text/javascript"></script>
<script src="plugins/js/src-min-noconflict/ext-language_tools.js"></script>
</head>
<body ng-controller="myController1" id="body">
<div class="alert-wrapper">
<div id="alert">
<img src="images/danger.svg" width='60' id="alertIcon" >
<p class="alert-desc"></p>
<input type="button" name="closeBtn" id="closeBtn" value="OK" onclick="closeAlert(this)">
</div>
</div>
<section class="main-section">
<header>
<div class="logo">
<h2>i<span>deobyte</span></h2>
</div>
<div class="select-theme" id="themeSelectionContainer">
<label>Theme:</label>
<select ng-options="theme for theme in themes" ng-model="userTheme" ng-change="changeTheme(userTheme)"></select>
</div>
<div class="select-prog-lang" id="progLangSelectionContainer">
<label>Language:</label>
<select ng-options="lang for lang in langs" ng-model="progLangMode" ng-change="changeEnv(progLangMode)"></select>
</div>
<input type="button" name="submitCode" value="submit" ng-click="getCode(progLangMode)">
<input type="button" name="runCode" value="Compile and run" ng-click="runCode(progLangMode)">
</header>
<div class="main-container">
<div class="qo-wrapper">
<div class="modal-buttons">
<input type="button" value="problem" ng-click="showProblemBox()" id="questionModalBtn" class="modal-btn" ng-class="{'active': isQuestionBox}">
<input type="button" value="output" ng-click="showOutputBox()" id="outputModalBtn" class="modal-btn" ng-class="{'active': isOutputBox}">
</div>
<div class="question-container" ng-class="{'active': isQuestionBox}">
<section class="question-box">
<p class="question question-box-common-rules">
<font style="color: #556; font-weight: bold; ">Question 1) .</font><br/><br/>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard.
</p>
<div class="test-cases question-box-common-rules">
<h4>Test Cases: </h4>
<aside>
<pre>
<li>0 < t <= 10<sup>9</sup></li><li>0 < t <= 10<sup>9</sup></li><li>0 < t <= 10<sup>9</sup></li>
</pre>
</aside>
</div>
<div class="sample-output-box question-box-common-rules">
<aside class="left">
<h4>Sample input: </h4>
<pre>
2
4
1 2 3 4
7
10 40 56 1 4 91 0
</pre>
</aside>
<aside class="right">
<h4>Sample output: </h4>
<pre>
10
45
</pre>
</aside>
</div>
<div class="sample-output-box question-box-common-rules">
<aside class="left">
<h4>Sample input: </h4>
<pre>
2
4
1 2 3 4
7
10 40 56 1 4 91 0
</pre>
</aside>
<aside class="right">
<h4>Sample output: </h4>
<pre>
10
45
</pre>
</aside>
</div>
<div class="sample-output-box question-box-common-rules">
<aside class="left">
<h4>Sample input: </h4>
<pre>
2
4
1 2 3 4
7
10 40 56 1 4 91 0
</pre>
</aside>
<aside class="right">
<h4>Sample output: </h4>
<pre>
10
45
</pre>
</aside>
</div>
</section>
</div>
<!-- question container ends here -->
<!-- code for response -->
<div class="response-container" id="responseContainer" ng-class="{'active': isOutputBox}" >
</div>
<!-- response container ends here -->
</div>
<!-- qo container ends here -->
<button type="button" onclick="toggleQOContainer(this)" id="toggleViewBtn" title="hide" > « </button>
<div class="editor-container">
<pre id="editor"></pre>
</div>
<!-- editor container ends here -->
</div>
</section>
<script src="app/js/custom_editor.js" type="text/javascript"></script>
<!-- <script src="app/js/keyevents.js" type="text/javascript"></script> -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
</body>
</html>