forked from raprav/hacklab-almeria.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-alt.html
83 lines (62 loc) · 2.71 KB
/
index-alt.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
---
layout: default
title: HackLab Almería
---
<div class="row">
<div class="col-xs-12">
<p class="center"><strong>HackLab Almería</strong> somos un colectivo de <strong>experimentación</strong> <strong>tecnológica</strong>, <strong>social</strong> y <strong>creativa</strong>.</p><br>
</div>
</div>
<div class="row">
<div class="col-md-4">
<h3>Actividades</h3>
{% assign curDate = site.time | date: '%s' %}
<ul>
{% for post in site.posts reversed %}
{% assign date = post.date | date: '%s' %}
{% if date >= curDate %}
<li><span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
<h4>Actividades anteriores</h4>
<ul>
{% for post in site.posts %}
{% assign date = post.date | date: '%s' %}
{% if date < curDate %}
<li><span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="col-md-4">
<h3>Calendario</h3>
<p>Subscríbete a nuestro calendario usando <a style="font-weight: bold;" title="añádeme a tu aplicación de calendario" href="http://bit.ly/calendario-HackLabAl">este enlace</a>.</p>
<iframe src="https://www.google.com/calendar/embed?showTitle=0&showPrint=0&mode=AGENDA&wkst=2&src=eohual6srvr2l4oqa1ujevad9s%40group.calendar.google.com" width="100%" height="400" frameborder="0" ></iframe>
</div>
<div class="col-md-4">
<h3>Lo último en el foro</h3>
<div id="ultimosmensajes">
</div><p>
<p><a href="http://foro.hacklabalmeria.net/" class="button" title="Entrar al foro">Entrar al foro</a></p>
</div>
</div>
<script type="text/javascript">
var discourseUrl = "http://foro.hacklabalmeria.net/"
function readForoRss(e){
$.ajax({url:'http://json2jsonp.com/?url='+discourseUrl+'latest.json',
dataType: 'jsonp',
success:function(data){
data = data.topic_list.topics.slice(0, 10);
var elemento='<ul>'
$.each(data,function(index,element){
elemento += '<li><a target=_blank href='+discourseUrl + 't/'+ element.slug +'/'+element.id+'>'+element.title+'</a> - '+element.last_poster_username+'</li>';
});
elemento+='</ul>';
$(e).html(elemento);
}});
}
document.addEventListener('DOMContentLoaded', function(event) {
setInterval(readForoRss('#ultimosmensajes'),30*1000);
});
</script>