-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·174 lines (165 loc) · 7.08 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
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
<!DOCTYPE html>
<html>
<head>
<title>Random Bytes</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Do not add `link` tags unless you know what you are doing -->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<!-- Do not add `script` tags unless you know what you are doing -->
<script src="public/vendor.js" type="text/javascript" charset="utf-8" defer></script>
<script src="public/application.js" type="text/javascript" charset="utf-8" defer></script>
</head>
<body class="container-fluid">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" id="home-tab" class="active tab-item"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
<li role="presentation" id="blog-tab" class="tab-item"><a href="#blogs" aria-controls="blogs" role="tab" data-toggle="tab">Blogs</a></li>
<li role="presentation" id="page-tab" class="tab-item"><a href="#pages" aria-controls="pages" role="tab" data-toggle="tab">Pages</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="home">
<div id="authContainer">
<div id="authButtonGroup">
<button class="btn btn-primary btn-font" id="signUpButton" type="button" data-toggle="collapse" data-target="#collapseSignUp" aria-expanded="false" aria-controls="collapseSignUp">
Sign Up
</button>
<button class="btn btn-primary btn-font" id="signInButton" type="button" data-toggle="collapse" data-target="#collapseSignIn" aria-expanded="false" aria-controls="collapseSignIn">
Sign In
</button>
<button class="btn btn-primary hidden btn-font" id="changePassButton" type="button" data-toggle="collapse" data-target="#collapseChangePass" aria-expanded="false" aria-controls="collapseChangePass">
Change Password
</button>
<button type="button" class="btn btn-primary hidden btn-font" id="sign-out">
Sign Out
</button>
<div class="accordion-group">
<div class="collapse" id="collapseSignUp">
<div class="well">
<form id="sign-up">
<fieldset>
<legend>Sign Up</legend>
<label>
Email
<input type="text" maxlength="100" id="account-name" class="signup-field" name="credentials[email]">
</label>
<label>
Password
<input type="password" maxlength="100" class="signup-field" name="credentials[password]">
</label>
<label>
Password Confirmation
<input type="password" maxlength="100" class="signup-field" name="credentials[password_confirmation]">
</label>
<input type="submit" name="submit" value="Sign Up">
</fieldset>
</form>
</div>
</div>
<div class="collapse" id="collapseSignIn">
<div class="well">
<form id="sign-in">
<fieldset>
<legend>Sign In</legend>
<label>
Email
<input type="text" class="signin-field" maxlength="100" id="account-name-signin" name="credentials[email]">
</label>
<label>
Password
<input type="password" class="signin-field" maxlength="100" name="credentials[password]">
</label>
<input type="submit" name="submit" maxlength="100" value="Sign In">
</fieldset>
</form>
</div>
</div>
<div class="collapse" id="collapseChangePass">
<div class="well">
<form id="change-password">
<fieldset>
<legend>Change Password</legend>
<label>
Current Password
<input type="password" class="change-pass-field" maxlength="100" name="passwords[old]">
</label>
<label>
New Password
<input type="password" class="change-pass-field" maxlength="100" name="passwords[new]">
</label>
<input type="submit" name="submit" value="Change Password">
</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>
<div id="status-box"></div>
<h1 id="CMStitle">Random Bytes</h1>
<br>
<h3 id="guestBlogMessage"> Check out what others are blogging about!</h3>
<button id="index-blog" class="btn btn-info btn-font" type="button">See Some Blogs</button>
<div id="welcome-message">
</div>
<div id="content-all-blogs" class="content">
</div>
</div>
<div role="tabpanel" class="tab-pane" id="blogs">
<div id="blog-input-container">
<form class="blogs" id="create-blog">
<div class="form-group">
<input type="text" name="blog[title]" maxlength="150" id="blog-show-title" placeholder="Title">
<input type="text" name="blog[author]" id="blog-author" maxlength="150" placeholder="Author">
<br>
<br>
<textarea rows="10" cols="50" name="blog[content]" maxlength="10000" id="blog-textarea" placeholder="Content"></textarea>
<br>
<input type="checkbox" name="blog[isPrivate]" class="private-box hidden" value="unchecked" checked>
<label><input type="checkbox" name="blog[isPrivate]" class="private-box" value="checked">Make Private
</label>
</div>
<button type="submit" class="btn btn-success btn-font" id="add-blog-btn">Add A Blog</button>
</form>
<br>
<br>
<div id="blog-message">
</div>
<button id="index-public-blog" class="btn btn-info btn-font" type="button">Show All Public Blogs</button>
<button id="index-my-blog" class="btn btn-info btn-font" type="button">Show My Blogs</button>
</div>
<div id="content" class="content">
</div>
</div>
<div role="tabpanel" class="tab-pane" id="pages">
<div id="page-show-content" class="content">
</div>
<button id="page-menu-button" class="btn btn-info btn-font" type="button">Go Back to Page Menu</button>
<div id="page-menu">
<button class="btn btn-primary btn-font" id="new-page-button" type="button" data-toggle="collapse" data-target="#collapseCreatePage" aria-expanded="false" aria-controls="collapseCreatePage">
Create a new webpage!
</button>
<div class="collapse" id="collapseCreatePage">
<div class="well">
<form class="pages" id="create-page">
<div class="form-group">
<input type="text" name="page[header]" id="page-show-header" maxlength="300" placeholder="Header">
<br>
<textarea rows="10" cols="50" id="page-textarea" name="page[body]" maxlength="20000" placeholder="Body"></textarea>
<br>
<input type="text" name="page[footer]" id="page-footer" maxlength="300" placeholder="Footer">
<br>
<br>
</div>
<button type="submit" class="btn btn-success btn-font">Create</button>
</form>
</div>
</div>
<div id="page-message">
</div>
<button id="index-page" class="btn btn-info btn-font" type="button">Show My Pages</button>
<div id="page-content" class="content">
</div>
</div>
</div>
<footer id="home-footer">Built by Squad Complex</footer>
</body>
</html>