-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
243 lines (168 loc) · 9.71 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html lang="en">
<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>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div style=" height:fit-content; width: 200px; align-items: center; margin-left: auto; " id="flow">
<div style="width:fit-content;" id="1">
<img src="main.png" alt="" style="width: 100px; height:50px;">
</div>
<img src="down-arrow.png" alt="" id= "300" style="width: 80px; height:70px;" onclick="openPopup(this.id)">
<div style="width:fit-content;" id="299">
<img src="end.png" alt="" style="width: 100px; height:50px;">
</div>
</div>
<table class="display-btn" style="margin-right: 200px; margin-bottom:auto ; margin-top: 100px; margin-left:auto; align-items: center; ">
<th>Get C code</th>
<th>Get Java code</th>
<tr>
<td>
<textarea name="myTextBox" id="cont" cols="40" rows="10"> </textarea>
</td>
<td>
<textarea name="myTextBox" id="cont1" cols="40" rows="10"> </textarea>
</td>
</tr>
<tr>
<td>
<button id="convert" onclick="display()">c code</button>
</td>
<td>
<button id="convert-java" onclick="displayJava()" >java code</button>
</td>
</tr>
</table>
<div class="deleteTag" >
<span class="popuptext" id="myPopup">Are you sure want to delete this tag ?
<br>
<button id="confirmDelete" onclick="deleteTag(),closeDeletePopup()" > Confirm </button>
<button id="cancleDelete" onclick="closeDeletePopup()"> Cancle </button>
</span>
</div>
<div class="popup" id="popup">
<table style="height:480px ; width: 500px; background-color: aliceblue;">
<tr>
<th>Variables</th>
<th>input/output</th>
<th>Condition</th>
<th>loop</th>
</tr>
<tr>
<td> <img src="declare.png" alt="" style="width:100px; height:50px" onclick="addTag(1), closePopup()"></td>
<td> <img src="input.png" alt="" style="width:100px; height:50px" onclick="addTag(3), closePopup()"></td>
<td> <img src="if.png" alt="" style="width:100px; height:50px" onclick="addTag(6), closePopup()"></td>
<td><img src="for.png" alt="" style="width:100px; height:50px" onclick="addTag(5), closePopup()"></td>
</tr>
<tr>
<td> <img src="assign.png" alt="" style="width:100px; height:50px" onclick="addTag(2), closePopup()" ></td>
<td><img src="output.png" alt="" style="width:100px; height:50px" onclick="addTag(4), closePopup()"></td>
</tr>
</table>
<button type="button" onclick="closePopup()">Cancle</button>
</div>
<div class="assign_popup" id="assign_popup">
<div style="height: 200px; width:500px; background-color: lightblue; margin-top: 20px;">
<img src="assign.png" alt="" style="width: 100px; height:50px;">
<p style="font-family:courier;"> <b>
An Assignment Statement calculate an Expression and then stores the result in Variable
</b>
</p>
</div>
<div style="margin-top: 50px;">
<p> <input style="height:20px; width:200px;" placeholder="Variable" id="variable-name"> = <input style="height:200px; width:200px;" placeholder="Expression" id="value-assign"> </p>
</div>
<button type="button" onclick="closeAssignPopup()" style="height: 40px; width: 100px; ">ok</button>
</div>
<div class="declare_popup" id="declare_popup">
<div style="height: 200px; width:500px; background-color: lightblue; margin-top: 20px;">
<img src="declare.png" alt="" style="width: 100px; height:50px;">
<p style="font-family:courier;"> <b>
An Assignment Statement calculate an Expression and then stores the result in Variable
</b>
</p>
</div>
<form action="#">
<div class="user-details">
<div class="input-box">
<span class="details">Variable Name</span>
<input id="variable-name-declare" type="text" reqiured>
</div>
<div class="input-box">
<span class="details">Type</span>
<select name="type" id="data-type">
<option value="integer">Integer</option>
<option value="real">Real</option>
<option value="String">String</option>
<option value="boolean">Boolean</option>
</select>
</div>
<div class="checkbox">
<input type="checkbox" id="array" name="array" value="array">
<label for="array"> Array?</label>
</div>
</div>
</form>
<button type="button" onclick="closeDeclarePopup()" style="height: 40px; width: 100px; ">ok</button>
</div>
<div class="input_popup" id="input_popup">
<div style="height: 200px; width:500px; background-color: lightblue; margin-top: 20px;">
<img src="input.png" alt="" style="width: 100px; height:50px;">
<p style="font-family:courier;"> <b>
An Assignment Statement calculate an Expression and then stores the result in Variable
</b>
</p>
</div>
<div style="margin-top: 50px;">
<p> <input style="height:40px; width:500px;" placeholder="Enter a Variable name" id="variable-name-assign"></p>
</div>
<button type="button" onclick="closeInputPopup()" style="height: 40px; width: 100px; ">ok</button>
</div>
<div class="output_popup" id="output_popup">
<div style="height: 200px; width:500px; background-color: lightblue; margin-top: 20px;">
<img src="output.png" alt="" style="width: 100px; height:50px;">
<p style="font-family:courier;"> <b>
An Assignment Statement calculate an Expression and then stores the result in Variable
</b>
</p>
</div>
<div style="margin-top: 50px;">
<input style="height:230px; width:500px;" placeholder="Enter an Expression here" id="output-expression">
</div>
<button type="button" onclick="closeOutputPopup()" style="height: 40px; width: 100px; ">ok</button>
</div>
<div class="for_popup" id="for_popup">
<div style="height: 200px; width:500px; background-color: lightblue; margin-top: 20px;">
<img src="for.png" alt="" style="width: 100px; height:50px;">
<p style="font-family:courier;"> <b>
An Assignment Statement calculate an Expression and then stores the result in Variable
</b>
</p>
</div>
<div style="margin-top: 50px;">
<p> <input style="height:20px; width:200px;" placeholder="Variable"> = <input style="height:200px; width:200px;" placeholder="Expression"> </p>
</div>
<button type="button" onclick="closeforPopup()" style="height: 40px; width: 100px; ">ok</button>
</div>
<div class="if_popup" id="if_popup">
<div style="height: 200px; width:500px; background-color: lightblue; margin-top: 20px;">
<img src="if.png" alt="" style="width: 100px; height:50px;">
<p style="font-family:courier;"> <b>
An Assignment Statement calculate an Expression and then stores the result in Variable
</b>
</p>
</div>
<div style="margin-top: 50px;">
<input style="height:230px; width:500px;" placeholder="Enter a Conditional Expression here " id="condition-expression">
</div>
<button type="button" onclick="closeifPopup()" style="height: 40px; width: 100px; ">ok</button>
</div>
</div>
</body>
<script src="main.js"> </script>
</html>