-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
190 lines (164 loc) · 7.21 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>chatter|app</title>
<!-- embed the roboto font. This needs to go above your css -->
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" />
<!-- embed external css -->
<link rel="stylesheet" href="css/style.css"/>
<!-- embed jquery -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<!-- #7 embed font awesome -->
<!-- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" /> -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<!-- #7 embed external JavaScript file for channel objects -->
<script src="js/channels.js"></script>
<!-- embed external JavaScript file for app interaction -->
<script src="js/script.js"></script>
</head>
<!-- #8 #channel #onload all channels when the body has loaded -->
<!-- <body onload="listChannels()"> -->
<!-- channel area -->
<div id="channels">
<!-- APP BAR for APP TITLE -->
<h1 id="left-app-bar">
<img src="http://ip.lfe.mw.tum.de/sections/moocus.png" alt="Moocus, the chatty duck!" style="height: 56px;">
chatter|app
</h1>
<!-- CHANNELS -->
<ul>
<!-- #8 #remove all #channels -->
<!-- This document will trigger many warning and errors when using the W3C Validator due to comments in comments, which is not allowed. We let them in here so you can check out the solution for Challenge 7. -->
<!-- #7 calls our switchChannel with the corresponding OBJECT as an argument -->
<li onclick="switchChannel(yummy)">
#Yummy
<span class="channel-meta">
<!-- #7 replace images with icons-->
<i class="far fa-star"></i>
<i class="fas fa-chevron-right"></i>
</span>
</li>
<!-- #7 calls our switchChannel with the corresponding OBJECT as an argument -->
<li class="selected" onclick="switchChannel(sevencontinents)">
#SevenContinents
<span class="channel-meta">
<!-- #7 replace images with icons-->
<i class="far fa-star"></i>
<i class="fas fa-chevron-right"></i>
</span>
</li>
<!-- #7 calls our switchChannel with the corresponding OBJECT as an argument -->
<li onclick="switchChannel(killerapp)">
#KillerApp
<span class="channel-meta">
<!-- #7 replace images with icons-->
<i class="far fa-star"></i>
<i class="fas fa-chevron-right"></i>
</span>
</li>
<!-- #7 calls our switchChannel with the corresponding OBJECT as an argument -->
<li onclick="switchChannel(firstpersononmars)">
#FirstPersonOnMars
<span class="channel-meta">
<!-- #7 replace images with icons-->
<i class="far fa-star"></i>
<i class="fas fa-chevron-right"></i>
</span>
</li>
<!-- #7 calls our switchChannel with the corresponding OBJECT as an argument -->
<li onclick="switchChannel(octoberfest)">
#Octoberfest
<span class="channel-meta">
<!-- #7 replace images with icons-->
<i class="far fa-star"></i>
<i class="fas fa-chevron-right"></i>
</span>
</li>
</ul>
<!-- TAB BAR -->
<div id="tab-bar">
<button class="selected" id="tab-new" onclick="selectTab('#tab-new')">
<!-- #7 replacing icons -->
<i class="far fa-lightbulb"></i>
New
</button>
<button id="tab-trending" onclick="selectTab('#tab-trending')">
<!-- #7 replacing icons -->
<i class="fas fa-fire"></i>
Trending
</button>
<button id="tab-favorites" onclick="selectTab('#tab-favorites')">
<!-- #7 replacing icons -->
<i class="fas fa-star"></i>
Favorites
</button>
</div>
</div>
<div id="chat">
<!-- APP BAR for CHANNEL TITLE -->
<h1>
<span id="channel-name">#SevenContinents</span>
<small id="channel-location">by <strong>cheeses.yard.applies</strong></small>
<!-- #7 star is now font-awesome -->
<i class="fas fa-star" onclick="star()"></i>
</h1>
<div id="messages">
<div class="message own">
<h3><a href="http://w3w.co/cheeses.yard.applies" target="_blank"><strong>cheeses.yard.applies</strong></a>
Wed, June 20th, 13:37 <em>15 min. left</em></h3>
<p>What's the place you folks call home?</p>
<button>+5 min.</button>
</div>
<div class="message">
<h3><a href="http://w3w.co/truck.cotton.zone" target="_blank"><strong>truck.cotton.zone</strong></a>
Wed, June 20th, 13:39 <em>4 min. left</em></h3>
<p>BRISBANE! Hang loose!</p>
<button>+5 min.</button>
</div>
<div class="message">
<h3><a href="http://w3w.co/thus.best.dishes" target="_blank"><strong>thus.best.dishes</strong></a>
Wed, June 20th, 14:02 <em>12 min. left</em></h3>
<p>The big apple.</p>
<button>+5 min.</button>
</div>
<div class="message">
<h3><a href="http://w3w.co/driveway.helper.magazine"
target="_blank"><strong>driveway.helper.magazine</strong></a>
Wed, June 20th, 14:02 <em>7 min. left</em></h3>
<p>Eu sou um Cariocas.</p>
<button>+5 min.</button>
</div>
<div class="message">
<h3><a href="http://w3w.co/escapes.pitch.saucepan"
target="_blank"><strong>escapes.pitch.saucepan</strong></a>
Wed, June 20th, 14:07 <em>14 min. left</em></h3>
<p>Greetings from the western cape!</p>
<button>+5 min.</button>
</div>
<div class="message">
<h3><a href="http://w3w.co/meanings.identity.pays"
target="_blank"><strong>meanings.identity.pays</strong></a>
Wed, June 20th, 04:08 <em>15 min. left</em></h3>
<p>北京</p>
<button>+5 min.</button>
</div>
</div>
<!-- ChAT BAR -->
<div id="chat-bar">
<button id="emojis-button" onclick="toggleEmojis()">
<!-- #7 replacing icons -->
<i class="far fa-smile"></i>
</button>
<div id="emojis">😁 😂 😃 😄 😅 😆 😇</div>
<!-- #8 create a new input element which accepts text and has a prefill as well as a character limit.
It also gets an id -->
<input type="text" placeholder="Message..." maxlength="140" id="message">
<!-- #8 send message requires a button -->
<button onclick="sendMessage()"><i class="fas fa-arrow-right"></i></button>
</div>
</div>
</body>
</html>