Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (75 loc) · 3.92 KB
/
Copy pathindex.html
File metadata and controls
81 lines (75 loc) · 3.92 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
<!DOCTYPE html>
<html>
<head>
<title>InventJS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-green.css">
<style>
.title {font-family: "Lucida Console", "Courier New", monospace;}
.w3-bar .w3-right {padding-right:2rem;align:middle;}
.w3-bar a {text-decoration:none; vertical-align:middle;}
#projects a {margin:4px;}
.w3-button {border:1.4px solid #508F24;border-radius:.4rem;}
</style>
</head>
<body style="background-color:#EBF7E3;">
<div class="w3-bar w3-xlarge" style="background-color:#508F24;color:white;font-style:bold;">
<span class="w3-bar-item title" style="padding:1.5rem;padding-left:2rem;font-size:2rem;">InventJS™</span>
<div class="w3-right">
<span class="w3-hide-small w3-hide-medium" style="padding-right:60px;"> </span>
<a rel="nofollow" target="_blank" href="https://firefox.com/?for-firefox&referer=InventJS" class="w3-hide-medium w3-hide-small">
<img alt="I Use Firefox" src="https://code.cdn.mozilla.net/for-firefox/badges/assets/I-Use-Firefox.png" width="80"
style="position:absolute;top:-5px;right:4px;">
</a>
<a href="#" class="w3-bar-item">
<img class="w3-hide-small" src="https://developers.google.com/blockly/images/logos/logo_built_on_dark_with_bg.png" width="180">
<img class="w3-hide-medium w3-hide-large" src="https://developers.google.com/blockly/images/logos/logo_built_on_dark_with_bg.png" width="90">
</a>
</div>
</div>
<div class="w3-container w3-padding-small w3-theme-d3" style="max-height:1rem;"> </div>
<div class="w3-bar w3-hide-small" style="position:absolute;width:100%;bottom:0;padding:.9rem;padding-left:8rem;background-color:#1B3409;color:white;padding-bottom:1.1rem;">
Copyright © 2021 by Isaiah. Licensed under LGPL:
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/LGPLv3_Logo.svg/1200px-LGPLv3_Logo.svg.png" width="80">
</div>
<div class=" w3-content" style="padding-top:1rem;background:#EBF7E3;">
<div class="w3-row" style="padding-top:.8rem;">
<div class="w3-half">
<h3>What is InventJS</h3><hr class="w3-hide-small">
<div class="w3-container">
InventJS lets you develop JS applications using a <span class="w3-hide-small">Google </span>Blockly™ interface.
<span class="w3-hide-small"> Alternative to MIT App Inventor for JS.</span><br><hr class="w3-hide-small">
<div>
<a href="./workspace.html?createNewProject"><button class="w3-theme w3-button">New Project</button></a>
<a href="./examples.html"><button class="w3-theme w3-button">Examples & Documentation</button></a>
<br>
</div>
</div>
</div>
<div class="w3-rest w3-mobile" style="padding-left:1rem;padding-top:1rem;">
<h3>My Projects <i><small style="font-size:.8rem;">(From browser's localStorage)</small></i></h3>
<div id="projects">
<div id="test"></div>
</div>
<div>
</div>
</div>
</div>
</div>
</body>
<script>
for (var i = 0; i < localStorage.length; i++) {
var key = localStorage.key(i);
var value = localStorage.getItem(key);
console.log('Key: ' + key + ', Value: ' + value);
if (value.toString().indexOf('<xml xmlns="https://developers.google.com/blockly/xml">') == -1) {
continue; // Not a Saved Project.
}
var a = document.createElement('a');
a.href = "./workspace.html?projectId=" + key;
a.innerHTML = "<button title='Project Preview Data:\n"+value+"' class='w3-theme w3-button'>" + key + "</button>";
document.getElementById("projects").appendChild(a);
}
</script>
</html>