This repository was archived by the owner on Mar 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateProject.html
More file actions
85 lines (82 loc) · 2.23 KB
/
createProject.html
File metadata and controls
85 lines (82 loc) · 2.23 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
82
83
84
85
<!DOCTYPE html>
<html>
<head>
<title>Cloudev | Create Project</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet">
<style>
html {
padding-top: 50px;
background-color: #282C31;
}
* {
color: white;
text-align: center;
font-family: 'Open Sans', sans-serif;
}
input {
margin-bottom: 10px;
}
input[type="text"] {
height: 50px;
width: 300px;
color: black;
font-size: 16px;
text-align: left;
padding: 0px 10px;
border: none;
border-radius: 5px;
outline: none;
background-color: #f5f5f5;
}
input[type="submit"] {
margin-top: 10px;
height: 50px;
width: 100px;
font-size: 16px;
border: none;
border-radius: 5px;
outline: none;
background-color: #7187DC;
}
input[type="submit"]:hover {
background-color: #6076CB;
}
.faded {
color: #aaaaaa;
}
.hide {
display: none
}
</style>
<script src="https://www.gstatic.com/firebasejs/3.7.8/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyB9ttmojRBWZD7MgGq3uhCCAiokHpQmgdk",
authDomain: "cloudev-6f3f5.firebaseapp.com",
databaseURL: "https://cloudev-6f3f5.firebaseio.com",
projectId: "cloudev-6f3f5",
storageBucket: "cloudev-6f3f5.appspot.com",
messagingSenderId: "545680646927"
};
firebase.initializeApp(config);
</script>
<script src="createProject.js"></script>
</head>
<body>
<img src="logo.png" height=100>
<h1>Create Project</h1>
<p id="error" class="faded hide">
Project name must consist of only letters, numbers, hyphens, and underscores.
</p>
<form action="#" method="get" onsubmit="event.preventDefault(); validateform();">
<input type="text" id="name" placeholder="Enter Project Name" required><br>
<input type="submit">
</form>
<script>
if (window.location.hash == "#error") {
document.getElementById("error").classList.remove("hide");
}
</script>
</body>
</html>