-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcraftyDesigner.html
123 lines (111 loc) · 4.72 KB
/
craftyDesigner.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
<!DOCTYPE html>
<html lang="en" translate="no">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRAFTY HUB</title>
<link rel="shortcut icon" href="House.png" type="image/png">
<link rel="stylesheet" href="style.css">
<script src="https://www.gstatic.com/firebasejs/8.3.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.2/firebase-database.js"></script>
<script src="main.js"></script>
<script src="creator.js"></script>
<style>
button {
padding: 2px;
margin: 1px;
background-color: aqua;
border: 2px inset rgba(0, 0, 0, 0.500);
font-family: Minecraft;
}
.topCancel {
float: right;
font-size: 10px;
color: orange;
background-color: rgba(0, 0, 0, 0.5);
border: 2px outset rgba(0, 0, 0, 0.500);
}
</style>
</head>
<body onload="loadUserCreatorData(); verifyMobile(true,false,false)">
<div id="canEditDiv"
style="position: fixed;z-index: 100;left: 10%;top: 0;width: 90%;height: 100%;background-image: url(assets/Stone\ Background.png);">
<h1 id="canEditLog">LOADING...</h1>
</div>
<div id="option-container-mobile">
<center>
<label>Crafty Hub - </label><label id="user-name-mb">Not Logged</label><br><br>
<span onclick="redirect(1)">
<img src="assets/surface hub island.png" class="option-icon">
</span>
<span onclick="redirect(2)">
<img src="assets/nether hub island.png" class="option-icon">
</span>
<span onclick="redirect(4)">
<img src="assets/creation island.png" class="option-icon">
</span>
<span onclick="redirect(3)">
<img src="assets/account and about.png" class="option-icon">
</span>
</center>
</div>
<div id="option-container" onmouseover="showOptions()" onmouseleave="hideOptions()">
<br><br>
<div id="plataform-name-handler" onclick="redirect(0)">
<img src="assets/CraftyHub Logo.png" class="option-icon"><label class="option-label">Crafty Hub</label>
</div>
<br><br>
<div id="pages">
<div id="surfacehub-btn" onclick="redirect(1)">
<img src="assets/surface hub island.png" class="option-icon"><label class="option-label">Surface
Hub</label>
</div>
<div id="netherhub-btn" onclick="redirect(2)">
<img src="assets/nether hub island.png" class="option-icon"><label class="option-label">Nether
Hub</label>
</div>
<div id="create-btn" onclick="redirect(4)">
<img src="assets/creation island.png" class="option-icon"><label class="option-label">Create</label>
</div>
</div>
<br>
<div id="login-data" onclick="redirect(3)">
<img src="assets/account and about.png" class="option-icon">
<label id="user-name" class="option-label">Crafty Login</label>
</div>
</div>
<!--Site Body-->
<div id="mainBody">
<div class="headerTools wood-bg">
<center>
<h2>Creating a Forum: <b id="ForumNameHandler"></b></h2>
</center>
<hr color="black">
<center>
<label>Creator Tools</label><br>
<button class="ToolAdd" onclick="addToTopic(1)">Text</button>
<button class="ToolAdd" onclick="addToTopic(2)">Image</button>
<button class="ToolAdd" onclick="addToTopic(3)">Link</button>
<button class="ToolAdd" onclick="addToTopic(4)">IFrame</button>
<button class="ToolAdd" onclick="addToTopic(5)">Crafty Article</button>
</center>
</div>
<div id="createMain" style="margin-top: 50px;">
</div>
<br><br><br><br>
<div id="sendBar">
<p>Length: <label id="LabelLength">0</label></p>
<button onclick="send()">SEND</button>
</div>
</div>
<script>
var testDevMobile = /iPhone|Android|iPad/i.test(navigator.userAgent)
if (testDevMobile) {
document.getElementById('canEditDiv').style.top = '20%';
document.getElementById('canEditDiv').style.left = '0%';
document.getElementById('canEditDiv').style.width = '100%';
document.getElementById("createMain").style.marginTop = "150px";
}
</script>
</body>
</html>