-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
206 lines (184 loc) · 9.46 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html>
<title>ThinkingPlace</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles/w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-orange.css">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
html,body,h1,h2,h3,h4,h5 {font-family: "Open Sans", sans-serif}
</style>
<body class="w3-theme-l5">
<!-- Navbar -->
<div class="w3-top">
<div class="w3-bar w3-theme-d2 w3-left-align w3-large">
<a class="w3-bar-item w3-button w3-hide-medium w3-hide-large w3-right w3-padding-large w3-hover-white w3-large w3-theme-d2" href="javascript:void(0);" onclick="openNav()"><i class="fa fa-bars"></i></a>
<a href="index.html" class="w3-bar-item w3-button w3-padding-large w3-theme-d4"><i class="fa fa-home w3-margin-right"></i>ThinkingPlace</a>
<a href="filter.html" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white" title="Filtrar"><i class="fa fa-globe"></i></a>
<a href="#" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white" title="Ajustes"><i class="fa fa-user"></i></a>
<a href="#" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white" title="Chat"><i class="fa fa-envelope"></i></a>
<div class="w3-dropdown-hover w3-hide-small">
<button class="w3-button w3-padding-large" title="Notifications"><i class="fa fa-bell"></i><span class="w3-badge w3-right w3-small w3-green">2</span></button>
<div class="w3-dropdown-content w3-card-4 w3-bar-block" style="width:300px">
<a href="#" class="w3-bar-item w3-button">Ejemplo de notificación 1</a>
<a href="#" class="w3-bar-item w3-button">Ejemplo de notificación 2</a>
</div>
</div>
<a href="login.html" class="w3-bar-item w3-button w3-hide-small w3-right w3-padding-large w3-hover-white" title="Logout">Logout</a>
</div>
</div>
<!-- Navbar on small screens -->
<div id="navDemo" class="w3-bar-block w3-theme-d2 w3-hide w3-hide-large w3-hide-medium w3-large">
<a href="#" class="w3-bar-item w3-button w3-padding-large">Menu</a>
<a href="filter.html" class="w3-bar-item w3-button w3-padding-large">Filtrar</a>
<a href="#" class="w3-bar-item w3-button w3-padding-large">Ajustes</a>
<a href="#" class="w3-bar-item w3-button w3-padding-large">Chat</a>
<a href="#" class="w3-bar-item w3-button w3-padding-large">Notificaciones</a>
<a href="login.html" class="w3-bar-item w3-button w3-padding-large">Logout</a>
</div>
<!-- Page Container -->
<div class="w3-container w3-content" style="max-width:1400px;margin-top:80px">
<!-- The Grid -->
<div class="w3-row">
<!-- Left Column -->
<div class="w3-col m3">
<!-- -->
<!-- End Left Column -->
</div>
<!-- Middle Column -->
<div class="w3-col m7" id="content">
<div class="w3-row-padding">
<div class="w3-col m12">
<div class="w3-card w3-round w3-white">
<div class="w3-container w3-padding">
<h6 class="w3-opacity">¿Qué estás pensando?</h6>
<input id="pensamiento" type="text" value="Su pensamiento aquí" width="200px"></p>
<button type="button" class="w3-button w3-theme" onclick="post()"><i class="fa fa-pencil"></i> Post</button>
</div>
</div>
</div>
</div>
<div class="w3-container w3-card w3-white w3-round w3-margin"><br>
<span class="w3-right w3-opacity">1 min</span>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<button type="button" class="w3-button w3-theme-d1 w3-margin-bottom"><i class="fa fa-thumbs-up"></i> Like</button>
<button type="button" class="w3-button w3-theme-d1 w3-margin-bottom"><i class="fa fa-thumbs-down"></i> Dislike</button>
<button type="button" class="w3-button w3-theme-d2 w3-margin-bottom"><i class="fa fa-comment"></i> Comment</button>
<button type="button" class="w3-button w3-theme-d2 w3-margin-bottom"><i class="fa fa-ban"></i> Report</button>
</div>
<div class="w3-container w3-card w3-white w3-round w3-margin"><br>
<span class="w3-right w3-opacity">X min</span>
<p>Yo opino que pino</p>
<button type="button" class="w3-button w3-theme-d1 w3-margin-bottom"><i class="fa fa-thumbs-up"></i> Like</button>
<button type="button" class="w3-button w3-theme-d1 w3-margin-bottom"><i class="fa fa-thumbs-down"></i> Dislike</button>
<button type="button" class="w3-button w3-theme-d2 w3-margin-bottom"><i class="fa fa-comment"></i> Comment</button>
<button type="button" class="w3-button w3-theme-d2 w3-margin-bottom"><i class="fa fa-ban"></i> Report</button>
</div>
<!--
<div class="w3-container w3-card w3-white w3-round w3-margin"><br>
<img src="/w3images/avatar6.png" alt="Avatar" class="w3-left w3-circle w3-margin-right" style="width:60px">
<span class="w3-right w3-opacity">32 min</span>
<h4>Angie Jane</h4><br>
<hr class="w3-clear">
<p>Have you seen this?</p>
<img src="/w3images/nature.jpg" style="width:100%" class="w3-margin-bottom">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<button type="button" class="w3-button w3-theme-d1 w3-margin-bottom"><i class="fa fa-thumbs-up"></i> Like</button>
<button type="button" class="w3-button w3-theme-d2 w3-margin-bottom"><i class="fa fa-comment"></i> Comment</button>
</div> -->
<!-- End Middle Column -->
</div>
<!-- Right Column -->
<!-- End Right Column -->
</div>
<!-- End Grid -->
</div>
<!-- End Page Container -->
</div>
<br>
<!-- Footer -->
<footer class="w3-container w3-theme-d3 w3-padding-16">
<h5>ThinkingPlace - 2018. Proyecto para la asignatura ISST, Pensamiento Colectivo Geolocalizado.</h5>
</footer>
<footer class="w3-container w3-theme-d5">
<p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a></p>
</footer>
<script>
// Accordion
function myFunction(id) {
var x = document.getElementById(id);
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
x.previousElementSibling.className += " w3-theme-d1";
} else {
x.className = x.className.replace("w3-show", "");
x.previousElementSibling.className =
x.previousElementSibling.className.replace(" w3-theme-d1", "");
}
}
// Used to toggle the menu on smaller screens when clicking on the menu button
function openNav() {
var x = document.getElementById("navDemo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
function post() {
var textoPensamineto = document.getElementById("pensamiento").value;
var x = document.getElementById("content");
var div = document.createElement('div');
var span = document.createElement('span');
var p = document.createElement('p');
var button1 = document.createElement('button');
var button2 = document.createElement('button');
var button3 = document.createElement('button');
var button4 = document.createElement('button');
var icon1 = document.createElement('i');
var icon2 = document.createElement('i');
var icon3 = document.createElement('i');
var icon4 = document.createElement('i');
div.setAttribute("class","w3-container w3-card w3-white w3-round w3-margin");
span.setAttribute("class","w3-right w3-opacity");
icon1.setAttribute("class","fa fa-thumbs-up");
icon2.setAttribute("class","fa fa-thumbs-down");
icon3.setAttribute("class","fa fa-comment");
icon4.setAttribute("class","fa fa-ban");
button1.setAttribute("type","button");
button2.setAttribute("type","button");
button3.setAttribute("type","button");
button4.setAttribute("type","button");
button1.setAttribute("class","w3-button w3-theme-d1 w3-margin-bottom");
button2.setAttribute("class","w3-button w3-theme-d1 w3-margin-bottom");
button3.setAttribute("class","w3-button w3-theme-d2 w3-margin-bottom");
button4.setAttribute("class","w3-button w3-theme-d2 w3-margin-bottom");
var pensamiento = document.createTextNode(textoPensamineto);
var like = document.createTextNode('Like');
var dislike = document.createTextNode('Dislike');
var comment = document.createTextNode('Comment');
var report = document.createTextNode('Report');
var time = document.createTextNode('X min');
div.appendChild(span);
div.appendChild(p);
div.appendChild(button1);
div.appendChild(button2);
div.appendChild(button3);
div.appendChild(button4);
span.appendChild(time);
p.appendChild(pensamiento);
button1.appendChild(icon1);
button2.appendChild(icon2);
button3.appendChild(icon3);
button4.appendChild(icon4);
button1.appendChild(like);
button2.appendChild(dislike);
button3.appendChild(comment);
button4.appendChild(report);
x.appendChild(div);
}
</script>
</body>
</html>