-
Notifications
You must be signed in to change notification settings - Fork 2
/
instascope.bak
86 lines (80 loc) · 3.1 KB
/
instascope.bak
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
<head>
<title>Instascope</title>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDI_WZ4zeFhGV5G5Wcua82P4MIU1Ec8U78&sensor=true&libraries=places"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-63132807-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
{{> nav}}
{{> content}}
</body>
<template name="nav">
<nav>
<span>Instascope</span>
<input id="searchTextField" type="text" size="60">
<span class="tip">Click on the map or use the search</span>
<ul class="pull-right" style="margin-right:5%; margin-top:3px; font-size: 18px">
{{loginButtons}}
</ul>
<div id="social">
<a href="https://twitter.com/share" class="twitter-share-button" data-via="instascope" data-size="large" data-hashtags="instascope" data-text="Check out what's going on in any neighborhood or location via Instagram.">Tweet</a>
</div>
</nav>
</template>
<template name="content">
<div id="container">
{{> instagram}}
{{> map}}
</div>
</template>
<template name="instagram">
<div id="photos-container">
{{#each photoset}}
<div class="photodiv" >
<img class="photo" src="{{ images.low_resolution.url }}" alt="">
<a href="http://instagram.com/{{ user.username }}" target="_blank">
<span>
<img class="profilePicture" src="{{user.profile_picture}}" />
@{{ user.username }}
</span>
<br/>
</a>
<span class="caption">
{{#if caption}}
<a href="{{link}}" target="_blank">
<span>{{ caption.text }}</span>
</a>
{{else}}
<a href="{{link}}" target="_blank">
<span>No Comment...</span>
</a>
{{/if}}
</span>
<span class="social-coffee">
<div class="twitter">
<a href="https://twitter.com/home?status={{link}} via @instascope http://instascope.meteor.com" target="_blank">
<div class="twitter-button"></div>
</a>
</div>
<div class="facebook">
<a href="https://www.facebook.com/sharer/sharer.php?u={{link}}&t=via http://instascope.meteor.com" target="_blank">
<div class="fb-button"></div>
</a>
</div>
</span>
</div>
{{/each}}
<span id="zoomed-image"></span>
</div>
</template>
<template name="map">
<div id="map_canvas"></div>
</template>