-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (50 loc) · 1.88 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
<!DOCTYPE HTML>
<html>
<head>
<title>Code as String</title>
<meta charset = "UTF-8">
</head>
<!--
NOTE:
===============================================================================================
Because of simplicity & demonstration purposes, the "style" attribute is used within html tags.
Nevertheless it is recommended to use CSS for styling.
In '<body>' the 'style="text-align:center;"'
centers similar like the tag '<center>' which was used in the previous mini-projects.
Some tag attributes are put into new lines, to improve the readability.
===============================================================================================
-->
<body style="text-align:center; margin-left:auto; margin-right: auto;">
<section >
<h2>Code as String</h2>
<span>NOTE: Save the code in file "code.js"!</span>
<br>
<br>
<button type="button" onclick="getCode()">GET CODE</button>
<a id="save" onclick="saveCode()" style="text-decoration: none">
<button type="button">SAVE CODE</button>
</a>
<button type="button" onclick="location.reload(true);">ACTIVATE CODE</button>
<br>
<br>
<br>
<textarea id="edit"
rows="25"
cols="50"
style="border: 1px solid red; width: 50%; margin-left: auto; margin-right: auto;"></textarea>
</section>
<section>
<br>
<br>
For more explanation please visit -
<a href = "https://github.com/Incrementis/Javascript-output-code-as-string-/wiki">
Output code as string Wiki
</a>
</section>
</body>
<footer>
<script language = "javascript" type = "text/javascript" src = "main.js"></script>
<script language = "javascript" type = "text/javascript" src = "code.js"></script>
<script language = "javascript" type = "text/javascript" src = "call.js"></script>
</footer>
</html>