-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
173 lines (154 loc) · 6.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>ChanChain</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/styles.css">
</head>
<body class="bg-dark">
<div id="alertRow" class="row d-none">
<div class="col-12 col-md-12 container-fluid">
<div class="alert" role="alert">
<i class="fa fa-fw fa-exclamation-circle mr-3 align-self-center"></i>
<strong id="alertMessage"></strong>
</div>
</div>
</div>
<navbar class="navbar navbar-expand navbar-dark flex-column flex-md-row bd-navbar">
<a class="navbar-brand" target="_blank" href="/img/logo.png">
<img id="logo" class="d-inline-block align-top logo" height="50" width="50" src="img/logo.png" />
<h2 style="padding-top: 6px; display: inline-block; font-weight: 800;">ChanChain</h2>
</a>
<ul class="navbar-nav ml-auto account">
<li>
Account:
<span id="wallet-address">Null</span>
</li>
<li>
Balance:
<span id="wallet-balance">Null</span> ETH
</li>
</ul>
</navbar>
<section>
<div class="row justify-content-center">
<div class="col-6">
<div class="container-fluid">
<label class="badge badge-info">
FEE TO POST: <span id="feeNewThread"></span> Wei
</label>
<label class="badge badge-info">
FEE TO REPLY: <span id="feeReplyThread"></span> Wei
</label>
</div>
</div>
</div>
</section>
<section class="row justify-content-center">
<div class="col-8">
<div class="container-fluid">
<div class="bd-callout bd-callout-warning">
<p>The content on this imageboard is <strong>NOT</strong> moderated. The images are blurred by default as they might be shocking and not safe for work. Please click the toggle below to view images.</p>
<div class="form-inline">
<label class="nsfwLabel">Toggle NSFW Filter</label>
<label class="switch">
<input id="nsfwToggle" type="checkbox">
<span class="slider round"></span>
</div>
</div>
</div>
</div>
</section>
<section class="row">
<div class="col-12 col-md-12">
<div class="container-fluid">
<div style="margin-bottom: 20px;">
<button id="createThread" data-toggle="modal" data-target="#Modal" onclick="App.postNewThread()" class="btn btn-primary btn-lg">Create Thread</button>
<button id="backToHome" class="btn btn-primary btn-lg d-none" onclick="location.reload(); $('#backToHome').addClass('d-none'); $('#postReply').addClass('d-none'); $('#createThread').removeClass('d-none');">Go Back</button>
<button id="postReply" data-toggle="modal" data-target="#Modal" onclick="" class="btn btn-primary btn-lg d-none">Post Reply</button>
</div>
</div>
</div>
</section>
<section class="row">
<div class="col-12 col-md-12">
<div id="contentRow" class="container-fluid row">
</div>
</div>
</section>
<!-- Card Temlates -->
<div id="cardTemplate" class="d-none">
<div class="card d-none" style="width: 18rem; max-height: 34rem;">
<div id="ribbon" class="ribbon d-none"><span>NEW</span></div>
<div class="card-header">
</div>
<img class="card-img-top" src="" alt="Card image cap">
<div class="card-body">
<p class="card-text"></p>
</div>
</div>
</div>
<!-- Thread Temlate -->
<div id="threadTemplate" class="d-none">
<div class="col-10">
<div class="d-none threadPost">
<div class="threadPostTimestamp" id="threadPostTimestamp">
</div>
<div class="row">
<div class="col-4">
<img id="threadPostImg" class="threadPostImg" src="" />
</div>
<div id="threadPostText" class="col-8">
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="Modal" tabindex="-1" role="dialog" aria-labelledby="Modal" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="submitModal">Submit</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<input id="imageUpload" type="file" name="pic" accept="image/*">
<div class="imagepreview" id="imagepreview">
<label for="">Preview:</label>
<img class="previewContainer" id="previewContainer" src="" />
</div>
</div>
<div class="form-group">
<label for="messageText" class="col-form-label">Message:</label>
<textarea rows="10" class="form-control" id="messageText"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button id="modalSubmit" type="button" class="btn btn-primary">Submit</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/loadingoverlay.min.js"></script>
<script src="https://unpkg.com/ipfs-api/dist/index.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/truffle-contract.min.js"></script>
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<script src="js/buffer.js"></script>
<script src="js/app.js"></script>
</body>
</html>