-
Notifications
You must be signed in to change notification settings - Fork 0
/
source-editor.html
350 lines (287 loc) · 20.7 KB
/
source-editor.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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Source Editor - Marketerbay.Com</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
html{}
body{width:97%;margin:0 auto;background-color:#f1f1f1;font-size: calc(15px + 6 * ((100vw - 320px) / 680));font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;font-weight:100;}
*{box-sizing:border-box;}
.xcr::-webkit-scrollbar {width:8px;}
.xcr::-webkit-scrollbar-track {-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);-webkit-border-radius:1px;border-radius:1px;}
.xcr::-webkit-scrollbar-thumb {-webkit-border-radius:1px;border-radius:1px;background:#09C;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.5);}
.xcr::-webkit-scrollbar-thumb:window-inactive {background:rgba(204,0,0,.4);border:1px solid #ccc;}
.ffxcr{scrollbar-color: #09C rgba(0,0,0,0.7); scrollbar-width: thin;}
* {box-sizing:border-box;}
html{}
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-5-half {width: 47.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}
[class*="col-"] {
float: left;
padding: 15px;
border: 0px solid #ccc;
color:#444;
}
[class*="no"] {
float: left;
padding: 0;}
[class*="padd20"]{display:block;padding:20px;}
.row:after {
content: "";
clear: both;
display:table;
}
.hr{border:none; clear:both; height:1px; line-height:0; width:100%; font-size:0; padding:0 ;margin-bottom :20px;background:#F39;box-shadow:0 0px 3px #fff;}
.left {text-align:left;}
.right {text-align:right;}
.center {text-align:center;}
.fleft {float:left;}
.fright {float:right;}
.clear {clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0;}
.dotted {border-bottom:1px dashed #F3C;border-left:0;border-right:0;margin-bottom:10px;}
/*** Wrapper ***/
.wrapper{background-color:#fff;box-shadow:0 0 7px #999;-webkit-box-shadow:0 0 7px #999;border-top:5px solid #ca3be2;margin:10px auto 20px auto;}
.fcode{border:none;padding:5px;width:100%;height:400px;scroll:auto;background:#212121;color:#f1f1f1; font-family:Courier, serif;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}
.fcode:hover{box-shadow:0 0 3px #006699;-moz-box-shadow:0 0 3px #006699;-webkit-box-shadow:0 0 3px #006699;}
.frender2{min-height:900px;width:100%;background:#ffffff;}
.default{display:block;width:30%;padding:8px 22px; text-align:left;font-size: calc(12px + 3 * ((100vw - 320px) / 680));font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;font-weight:100;background-color:rgba(0,0,0,0.05);cursor:pointer;border-radius:5px;-webkit-border-radius:5px;-webkit-box-shadow:inset 0 0 4px #fff,inset 0 1px 8px #999;box-shadow:inset 0 0 4px #fff,inset 0 1px 8px #999;border:1px dashed #EBEBEB;-webkit-transition:all .7s;transition:all .7s;}
.default:focus,.default:hover{display:block;width:50%;}
#aboutmetextarea { display: block; width: 97%;margin:5px auto 7px 2px; }
#exampleInputFile { display: block; }
.btn{background-color:#ca3be2;color:#fff;border:1px solid #832a92;padding:7px 22px;text-align:center;border-radius:3px;cursor:pointer;}
.btn:hover{background-color:#832a92;}
.btnoff{color:#333;border:none;padding:7px 12px;text-align:center; outline:none; }
.btn,.btnoff{ margin-bottom:10px}
.tab #info,.tab #designer{display:none;width:100%;background-color:rgba(0,0,0,0.80);height:100%;margin:0 auto;-webkit-transition:all 2s linear;transition:all 2s linear;position:fixed;top:0;left:0;z-index:10000;font-weight:100;}
#info p{font-size: calc(12px + 4 * ((100vw - 320px) / 680));font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;}
h3{color:#666;font-size: calc(19px + 6 * ((100vw - 320px) / 680));font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;}
.tab #info:target,.tab #designer:target{display:block;}
a:link, a:visited{color:#099;text-decoration:none;}a:hover{color:#F39;text-decoration:none;}
.btnoff{display:blcok;width:100%;height:auto;margin:0 auto 12px auto;opacity:1;font-size:19px;background-color:transparent;text-align:left;}
button.dinfo,button.dinfo:visited{display:block;width:auto;height:auto;background-color:#000;color:#fff;text-align:center;padding:.3em .3em 0em;position:fixed;top:20px;right:10px;z-index:10000;transition:all .3s linear;transition:all .3s linear;cursor:pointer; outline:none;}
button.dinfo:hover{background-color:#ca3be2;color:#fff;width:auto;height:auto;}
button.dinfoz,button.dinfoz:visited{width:auto;height:auto;background-color:#fff;color:#555;text-align:center;-webkit-border-radius:3px;border-radius:3px;border:1px solid #ccc;font-family:Verdana, Geneva, sans-serif;overflow:hidden;-webkit-transition:all .3s linear;transition:all .3s linear;cursor:pointer; outline:none;}
button.dinfoz:hover{background-color:#f1f1f1;color:#09C;border:1px solid #222;}
button.close,button.close:visited{width:auto;height:auto;background-color:#09F;color:#fff;text-align:center;-webkit-border-radius:3px;border-radius:3px;border:1px solid #06C;font-family:Verdana, Geneva, sans-serif;overflow:hidden;-webkit-transition:all .3s linear;transition:all .3s linear;cursor:pointer; outline:none;padding:3px 9px 7px;}
button.close:hover{background-color:#09C;color:#fff;border:1px solid #06C;}
button.dinfozDesigner,button.dinfozDesigner:visited{width:auto;height:auto;background-color:#fff;color:#555;text-align:center;-webkit-border-radius:3px;border-radius:3px;border:0;font-family:Verdana, Geneva, sans-serif;overflow:hidden;-webkit-transition:all .3s linear;transition:all .3s linear;cursor:pointer; outline:none;}
button.dinfozDesigner:hover{background-color:#fff;color:#09C;}
.boxed{background-color:#fff;margin:2% auto 2% auto;height:auto;-webkit-border-radius:10px;border-radius:10px;}
#m500,#m800,#mfull{-webkit-transition: all .4s;transition: all .4s;}
#m500:target{display:block;width:50%;margin:0 auto;}
#m800:target{display:block;width:80%;margin:0 auto;}
.leo{background-color:#fff;border-bottom:1px solid #f1f1f1;}
.leo p{display:block;width:90%;height:auto;margin:0 auto auto 4px;padding:10px;font-size:19px;color:#666;}
.resize a,.resize a:visited{display:block;width:90%;height:auto;padding:7px 6px;background-color:#099;color:#fff;font-size:12px;text-align:center;text-decoration:none;margin:30px auto 14px auto;-webkit-border-radius:4px;border-radius:4px;}
.resize a:hover{background-color:#09C;color:#fff;text-decoration:none;}
.blue{background-color:#09C;border:1px solid #069;}
.blue:hover{background-color:#069}
.caramel{height:350px;overflow:auto;margin-top:20px;}
.boxed h3,.caramel h3, .caramel p, .caramel{font-size: calc(13px + 4 * ((100vw - 320px) / 680));font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;font-weight:100;}
.caramel h3{font-size: calc(18px + 6 * ((100vw - 320px) / 680));font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;font-weight:400;} .caramel p{font-size: calc(13px + 4 * ((100vw - 320px) / 680));font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;}
.micro span{opacity:0;-webkit-transition:all .3s linear;transition:all .3s linear;}
.micro:hover span {opacity:1;}
span.zinfo{display:block;width:90%;height:auto;font-size:13px;color:#000;font-family:Tahoma, Geneva, sans-serif;padding:3px 11px;background-color:rgba(0,153,204,0.5);border:1px solid rgba(0,153,204,0.8);-webkit-border-radius:2px;border-radius:2px;}
span.zinfo::before{ content: " ";position:relative;bottom:25px;left:20px; margin-left: -5px;border-width: 5px;border-style: solid;border-color: transparent transparent rgba(0,153,204,1) transparent;}
span.zinfor{display:block;font-size:13px;color:#666;font-family:Tahoma, Geneva, sans-serif;padding:3px 11px;background-color:rgba(0,153,204,0.0);border:1px solid rgba(0,153,204,0.0);-webkit-border-radius:2px;border-radius:2px;}
.zet{display:block;width:90%;height:1px;overflow:hidden;background-color:#ccc;margin:6px auto 4px auto;}
.margindown{margin-top:40px;}
@media only screen and (max-width: 500px) {[class*="col-"] {float: left;padding: 15px;border: 0px solid #ccc;color:#444;}[class*="no"] {float: left;padding: 0;}}
.clearfix:after {clear:both;content:' ';display:block;font-size:0;line-height:0;visibility:hidden;width:0;height:0;}* html .clearfix {height:1%;}
/*** Subscribe ***/
.beta{display:block;width:170px;height:auto;padding:0;font-size:12px;color:#fff;text-align:center;position:absolute;top:2px;left:5px;text-transform:uppercase;}
.beta a:link,
.beta a:visited{padding:.3em 1em .3em;margin:0 auto;color:#fff;background-color:#ca3be2;text-decoration:none;border-radius:5px;}
.beta a:hover{padding:.3em 1em .3em;margin:0 auto;color:#fff;background-color:#06C;text-decoration:none;}
.svg-icon-subscribe {width: 1.8em;height: 1.8em;margin-right:6px;transform:translateY(5px);}
.svg-icon-subscribe path,
.svg-icon-subscribe polygon,
.svg-icon-subscribe rect {fill: #ffffff;}
.svg-icon-subscribe circle {stroke: #ffffff;stroke-width: 1;}
.supbeta{margin-left:7px;font-size:10px;color:#777;}
.svg-icon-info {width: 2em;height: 2em;}
.svg-icon-info path,
.svg-icon-info polygon,
.svg-icon-info rect {fill: #ffffff;}
.svg-icon-info circle {stroke: #ffffff;stroke-width: 1;}
.svg-icon-screen {width: 2em;height: 2em;}
.svg-icon-screen path,
.svg-icon-screen polygon,
.svg-icon-screen rect {fill: #ffffff;}
.svg-icon-screen circle {stroke: #ffffff;stroke-width: 1;}
</style>
</head>
<body>
<div class="beta">
<a href="https://www.getrevue.co/profile/camgirlcloud" target="_blank"><svg class="svg-icon-subscribe" viewBox="0 0 20 20">
<path d="M17.388,4.751H2.613c-0.213,0-0.389,0.175-0.389,0.389v9.72c0,0.216,0.175,0.389,0.389,0.389h14.775c0.214,0,0.389-0.173,0.389-0.389v-9.72C17.776,4.926,17.602,4.751,17.388,4.751 M16.448,5.53L10,11.984L3.552,5.53H16.448zM3.002,6.081l3.921,3.925l-3.921,3.925V6.081z M3.56,14.471l3.914-3.916l2.253,2.253c0.153,0.153,0.395,0.153,0.548,0l2.253-2.253l3.913,3.916H3.56z M16.999,13.931l-3.921-3.925l3.921-3.925V13.931z"></path>
</svg> Subscribe</a>
</div>
<button class="dinfo" type="button" onclick="myFunction()"><svg class="svg-icon-info" viewBox="0 0 20 20">
<path d="M14.999,8.543c0,0.229-0.188,0.417-0.416,0.417H5.417C5.187,8.959,5,8.772,5,8.543s0.188-0.417,0.417-0.417h9.167C14.812,8.126,14.999,8.314,14.999,8.543 M12.037,10.213H5.417C5.187,10.213,5,10.4,5,10.63c0,0.229,0.188,0.416,0.417,0.416h6.621c0.229,0,0.416-0.188,0.416-0.416C12.453,10.4,12.266,10.213,12.037,10.213 M14.583,6.046H5.417C5.187,6.046,5,6.233,5,6.463c0,0.229,0.188,0.417,0.417,0.417h9.167c0.229,0,0.416-0.188,0.416-0.417C14.999,6.233,14.812,6.046,14.583,6.046 M17.916,3.542v10c0,0.229-0.188,0.417-0.417,0.417H9.373l-2.829,2.796c-0.117,0.116-0.71,0.297-0.71-0.296v-2.5H2.5c-0.229,0-0.417-0.188-0.417-0.417v-10c0-0.229,0.188-0.417,0.417-0.417h15C17.729,3.126,17.916,3.313,17.916,3.542 M17.083,3.959H2.917v9.167H6.25c0.229,0,0.417,0.187,0.417,0.416v1.919l2.242-2.215c0.079-0.077,0.184-0.12,0.294-0.12h7.881V3.959z"></path>
</svg></button>
<div id="code" class="col-12 wrapper margindown">
<button type="button" id="btnOpen" disabled="" class="btnoff">Source Editor<sup class="supbeta">BETA</sup></button>
<textarea id="aboutmetextarea" class="frame fcode ffxcr xcr" name="code" wrap="soft" onclick="focus(this.code)" spellcheck="false"></textarea>
<div style="col-12">
<div class="col-4 micro">
<button type="button" onclick="preview.document.write (document.getElementsByTagName ('TEXTAREA')[0].value); preview.document.close(); preview.focus()" class="btn">Preview</button>
<span class="zinfo">Click this button to view your edited file</span>
</div>
<div class="col-4 micro">
<button type="button" onclick="window.location.href=window.location.href" class="btn">Reset</button>
<span class="zinfo">Reset - all editing made will be lost</span>
</div>
<div class="col-4 micro">
<button type="button" id="btnSave" class="btn blue">Save File</button>
<span class="zinfo">Save the edited file (accepted format: .txt, .php, .html)</span>
</div>
<div class="col-12 no">
<input type="file" id="exampleInputFile" accept=".html" class="default">
<span class="zinfor">Upload your file (accepted format: .txt, .php, .html) - <button class="dinfoz" type="button" onclick="myFunction()">? Info</button></span>
</div>
</div>
</div>
<div class="tab">
<div id="info" style="display: none;">
<div class="col-2"></div>
<div class="col-8 boxed">
<div class="col-10 no"><h3>How to use this tool?</h3></div><div class="col-2 right no"><button type="button" class="close" onclick="myFunction()">x</button></div>
<div class="col-12 caramel ffxcr xcr">
<p><strong>Source Editor</strong> - dark-grey text box where you can edit the markup code</p>
<p><strong>Preview button</strong> - after you are done with the editing process, click this button in order to apply the changes and view the rendered markup in the Render window</p>
<p><strong>Reset button</strong> - basically a refresh page function. All editing made will be lost</p>
<p><strong>Save File</strong> - after you are done with the editing, click the Preview button and after that, click the Save File button in order to update the file you were editing and save it on your laptop/pc</p>
<p><strong>Upload File</strong> - allows you to upload any web page from your laptop/pc directly into Source Editor's window</p>
<div class="zet"> </div>
<p>When prompt to save the file, if you are editing a loaded file rename it using the same name, this way it updates itself avoiding creating a copy</p>
<p>Because it only shows the markup , the Editor does not load the full path of the images or any other resources like additional stylesheet via url.<br>If you want for all resources to be loaded and rendering the full page, move this file into the main directory (folder where your to-edit file is located)</p>
</div>
</div>
<div class="col-2"></div>
</div>
</div>
<div id="m800">
<div id="m500">
<div id="#mfull" class="col-12 no leo">
<div class="row">
<div id="render" class="col-9 leo"><p>Render</p></div>
<div class="col-3 no resize right"><button onclick="my500()" class="close"><svg class="svg-icon-screen" viewBox="0 0 20 20"><path d="M17.237,3.056H2.93c-0.694,0-1.263,0.568-1.263,1.263v8.837c0,0.694,0.568,1.263,1.263,1.263h4.629v0.879c-0.015,0.086-0.183,0.306-0.273,0.423c-0.223,0.293-0.455,0.592-0.293,0.92c0.07,0.139,0.226,0.303,0.577,0.303h4.819c0.208,0,0.696,0,0.862-0.379c0.162-0.37-0.124-0.682-0.374-0.955c-0.089-0.097-0.231-0.252-0.268-0.328v-0.862h4.629c0.694,0,1.263-0.568,1.263-1.263V4.319C18.5,3.625,17.932,3.056,17.237,3.056 M8.053,16.102C8.232,15.862,8.4,15.597,8.4,15.309v-0.89h3.366v0.89c0,0.303,0.211,0.562,0.419,0.793H8.053z M17.658,13.156c0,0.228-0.193,0.421-0.421,0.421H2.93c-0.228,0-0.421-0.193-0.421-0.421v-1.263h15.149V13.156z M17.658,11.052H2.509V4.319c0-0.228,0.193-0.421,0.421-0.421h14.308c0.228,0,0.421,0.193,0.421,0.421V11.052z"></path></svg> <svg class="svg-icon-screen" viewBox="0 0 20 20">
<path d="M14.911,1.295H5.09c-0.737,0-1.339,0.603-1.339,1.339v14.733c0,0.736,0.603,1.338,1.339,1.338h9.821c0.737,0,1.339-0.602,1.339-1.338V2.634C16.25,1.898,15.648,1.295,14.911,1.295 M15.357,17.367c0,0.24-0.205,0.445-0.446,0.445H5.09c-0.241,0-0.446-0.205-0.446-0.445v-0.893h10.714V17.367z M15.357,15.58H4.644V4.42h10.714V15.58z M15.357,3.527H4.644V2.634c0-0.241,0.205-0.446,0.446-0.446h9.821c0.241,0,0.446,0.206,0.446,0.446V3.527z"></path>
</svg></button></div>
</div>
<iframe class="frame frender2" src="about:blank" name="preview" frameborder="0"></iframe>
</div>
</div>
</div>
<div class="col-12 wrapper center footer">
<p><button class="dinfozDesigner" type="button" onclick="designedBy()">Source Editor tool Developed by Dan N</button></p>
</div>
<div class="tab">
<div id="designer">
<div class="col-2"></div>
<div class="col-8 boxed">
<div class="col-10 no"><h3>Author</h3></div><div class="col-2 right no"><button type="button" class="close" onclick="designedBy()">x</button></div>
<div class="col-12 caramel ffxcr xcr">
<p>I'm Dan N, entrepreneur and web designer.
<br>From time to time I offer markup codes, templates and resources for webcam performers but some of them (users) have dificulties in editing and customizing their template by altering the Source code. </p>
<p>Well, this offline Source Editor<sup class="supbeta">BETA</sup> is helping you view, edit and save markup codes.</p>
<p>It works offline, no additional resources. All in one file - javascript, CSS, HTML and it works in your Browser. Nothing to install and secure</p>
<p>Your browser must support HTML5 FileRender. If you see an error message, please upgrade your browser or at least use a better one like Firefox or Chrome; (I didn't tested this with Safari)</p>
<p class="col-12 center">
Feel free to visit my <a href="https://dandesign.camgirl.cloud/store/" target="_blank">CGC profile</a> page for more markup codes or <a href="https://dandesign.camgirl.cloud/contact-me/">DM</a> me if necessary.
</p>
</div>
</div>
<div class="col-2"></div>
</div>
</div>
<script>
document.getElementById('btnOpen').onclick = function() {
if ('FileReader' in window) {
document.getElementById('exampleInputFile').click();
} else {
alert('Your browser does not support the HTML5 FileReader.');
}
};
document.getElementById('exampleInputFile').onchange = function(event) {
var fileToLoad = event.target.files[0];
if (fileToLoad) {
var reader = new FileReader();
reader.onload = function(fileLoadedEvent) {
var textFromFileLoaded = fileLoadedEvent.target.result;
document.getElementById('aboutmetextarea').value = textFromFileLoaded;
};
reader.readAsText(fileToLoad, 'UTF-8');
}
};
document.getElementById('btnSave').onclick = function() {
if ('Blob' in window) {
var fileName = prompt('Enter file name to save. Suggestion is to save the file with the same name as the original one and in the same folder - if applicable', 'MyFile.html');
if (fileName) {
var textToWrite = document.getElementById('aboutmetextarea').value.replace(/\n/g, '\r\n');
var textFileAsBlob = new Blob([textToWrite], { type: 'text/plain' });
if ('msSaveOrOpenBlob' in navigator) {
navigator.msSaveOrOpenBlob(textFileAsBlob, fileName);
} else {
var downloadLink = document.createElement('a');
downloadLink.download = fileName;
downloadLink.innerHTML = 'Download File';
if ('webkitURL' in window) {
// Chrome allows the link to be clicked without actually adding it to the DOM.
downloadLink.href = window.webkitURL.createObjectURL(textFileAsBlob);
} else {
// Firefox requires the link to be added to the DOM before it can be clicked.
downloadLink.href = window.URL.createObjectURL(textFileAsBlob);
downloadLink.onclick = destroyClickedElement;
downloadLink.style.display = 'none';
document.body.appendChild(downloadLink);
}
downloadLink.click();
}
}
} else {
alert('Your browser does not support the HTML5 Blob.');
}
};
function destroyClickedElement(event) {
document.body.removeChild(event.target);
}
function myFunction() {
var x = document.getElementById("info");
if (x.style.display === "block") {
x.style.display = "none";
} else {
x.style.display = "block";
}
};
function designedBy() {
var x = document.getElementById("designer");
if (x.style.display === "block") {
x.style.display = "none";
} else {
x.style.display = "block";
}
}
function my500() {
var x = document.getElementById("m500");
if (x.style.width === "100%") {
x.style.width = "50%";
} else {
x.style.width = "100%";
}
}
</script>
</body></html>