We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d331a commit 35739c8Copy full SHA for 35739c8
assets/scripts/main.js
@@ -54,11 +54,12 @@ var Events = {
54
return new Date(a.start.date) - new Date(b.start.date);
55
});
56
var count = 0;
57
- var numPages = 1;
+ var numPages = 0;
58
var html = '<ul id="event-list">';
59
// print each event
60
response.items.forEach(function(event) {
61
if (count === 0) {
62
+ numPages++;
63
html += '<div class="event-page" data-event-page="'+ numPages +'">';
64
}
65
html += '<li class="event">';
@@ -75,7 +76,6 @@ var Events = {
75
76
if (count === 4) {
77
html += '</div>';
78
count = 0;
- numPages++;
79
80
81
html += '</ul>';
0 commit comments