forked from stefan-kolb/cloud-conferences
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (67 loc) · 2.25 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
---
layout: default
title: Cloud Computing Conferences
---
{% assign conferences = site.data.conferences | sort: "name" %}
<h2>Next Deadlines:</h2>
{% assign deadlines = site.data.conferences | sort: "deadline" %}
{% assign num = 3 %}
{% for next in deadlines %}
{% assign d1 = next.deadline | date: "%Y/%m/%d" %}
{% assign d2 = 'now' | date: "%Y/%m/%d" %}
{% if d1 >= d2 %}
<div>
<div class="time">
<span class="count curr top" data-countdown="{{ next.deadline | date: "%Y/%m/%d" }}"></span>
<span class="count curr bottom" data-countdown="{{ next.deadline | date: "%Y/%m/%d" }}"></span>
<span class="label">days</span>
</div>
<a class="conference" href="#{{ next.abbrv }}">{{ next.name }} ({{ next.abbrv }})</a>
</div>
{% assign num = num | minus:1 %}
{% if num == 0 %}
{% break %}
{% endif %}
{% endif %}
{% endfor %}
<h2>Conference List</h2>
<ul>
{% for conference in conferences %}
<li><a href="#{{ conference.abbrv }}">{{ conference.name }} ({{ conference.abbrv }})</a></li>
{% endfor %}
</ul>
{% for conference in conferences %}
<h2 id="{{ conference.abbrv }}"><a href="{{ conference.url }}" target="_blank">{{ conference.name }} ({{ conference.abbrv }})</a></h2>
{{ conference.date_from | date_to_string }} - {{ conference.date_to | date_to_string }}, <em><a href="http://maps.google.com/?q={{ conference.location }}" target="_blank">{{ conference.location }}</a></em>
<h4>Reputation</h4>
<p>{% assign d = conference.edition %}
{% case d %}
{% when "1" or "21" or "31" %}{{ d }}st
{% when "2" or "22" %}{{ d }}nd
{% when "3" or "23" %}{{ d }}rd
{% else %}{{ d }}th
{% endcase %} edition
{% if conference.organization %}
, {{ conference.organization }} sponsored
{% endif %}</p>
<h4>Call for Papers</h4>
<p>Deadline:
{% if conference.deadline %}
{{ conference.deadline | date_to_string }} (<span data-countdown="{{ conference.deadline | date: "%Y/%m/%d" }}"></span> days)
{% endif %}
</p>
<p>Page limit: {{ conference.page_limit }}</p>
{% unless forloop.last %}
<hr>
{% endunless %}
{% endfor %}
<script>
$(document).ready(function() {
$('[data-countdown]').each(function() {
var $this = $(this), finalDate = $(this).data('countdown');
$this.countdown(finalDate, function(event) {
$this.html(event.strftime('%-D'));
});
});
});
</script>