-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (76 loc) · 2.37 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Aggy the Instagram Aggregator</title>
<link rel="stylesheet" href="content/styles/site.css">
</head>
<body>
<header>
<!-- <nav>
<button class="button" click="refreshItems()">refresh</button>
</nav> -->
</header>
<div class="centered">
<section id="allItems">
<div id="top"></div>
<div data-bind="foreach: {
data: collection,
afterAdd: showLatestItem
}">
<article data-bind="attr: { id: id }" class="centered item">
<img data-bind="attr: { src: images.standard_resolution.url }" class="centered itemImg" />
<div class="profilePhoto">
<img data-bind="attr: { src: caption.from.profile_picture }" />
</div>
<div class="comment">
<span data-bind="text: caption.from.full_name" class="title"></span>
<span data-bind="text: caption.text"></span>
</div>
<!-- <ul data-bind="foreach: comments.data" class="comments centered">
<li>
<div class="profilePhoto">
<img data-bind="attr: { src: from.profile_picture }" />
</div>
<div class="comment">
<span data-bind="text: from.full_name" class="userName"></span>
<span data-bind="text: text"></span>
</div>
<div class="clear"></div>
</li>
</ul> -->
<div class="clear"></div>
<!-- <div class="comments centered heart">
<img src="content/images/heart.png"/>
</div>
<div data-bind="foreach: likes.data" class="comments centered likePhoto">
<img data-bind="attr: { src: profile_picture }" />
</div>
<div class="clear"></div> -->
</article>
</div>
</section>
</div>
</body>
</html>
<script src="scripts/vendor/jquery-2.0.3.min.js"></script>
<script src="scripts/vendor/knockout-3.0.0.js"></script>
<script src="scripts/vendor/knockout.mapping-latest.js"></script>
<script src="scripts/aggy.config.js"></script>
<script src="scripts/aggy.model.js"></script>
<script src="scripts/aggy.utils.js"></script>
<script>
if (window.location.hash) {
aggy.config.tokenId = aggy.utils.getHashParam(document.URL, 'access_token');
aggy.utils.getAllItems().then(function () {
aggy.utils.interval(aggy.utils.moveSlider, aggy.config.sliderTimer);
aggy.utils.interval(aggy.utils.getLatestItem, aggy.config.updateTimer);
});
} else {
aggy.utils.authorizeUser();
}
$('body').toggleClass('noScroll');
$('body').click(function () {
$(this).toggleClass('noScroll');
});
</script>