-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
157 lines (145 loc) · 7.35 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE HTML>
<html>
<head>
<title>PointOut - Share your ideas simply.</title>
<meta http-equiv="X-UA-Compatible" content="IE=8;FF=3;OtherUA=4" />
<meta name="keywords" content="pointout, image, commenting, sharing" />
<meta http-equiv="Content-Language" content="en-us" />
<meta name="author" content="PointOut" />
<meta name="copyright" content="Copyright by PointOut. All Rights Reserved." />
<meta name="description" content="Collaborative discussion of screenshots or any other images. Just upload your image and start commenting" />
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<link rel="stylesheet" type="text/css" href="/css/baloon.css" />
<script src='/_ah/channel/jsapi'></script>
<script src="/js/math.uuid.js"></script>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ui.min.js"></script>
<script src="/js/jquery.tmpl.min.js"></script>
<script src="/js/jquery.ba-bbq.min.js"></script>
<script src="/js/pointout.js"></script>
<script src="/js/workspace.js"></script>
<script src="/js/main.js"></script>
<script id="connected_users_template" type="text/x-jquery-tmpl">
{{each users}}
{{if $value.id != current_user.id}}
<a class="linear_grad br_8 " title="Users watching this project right now" href="${$value.link}" target='_blank'>${$value.name}<img src="/images/green_dot.png" /></a>
{{/if}}
{{/each}}
</script>
<script>
var connected_users_template = $('#connected_users_template');
</script>
<script id="notification_template" type="text/x-jquery-tmpl">
<div class="notification br_8 linear_grad box_shadow_s">
<div class="image"><img width="35px" height="35px" src="${image}"/></div>
<div class="text">${text}</div>
</div>
</script>
<script>
var notification_template = $('#notification_template');
</script>
<script id="point_template" type="text/x-jquery-tmpl">
<div class='point' style='top:${point.y}px; left:${point.x}px' id="point_${point.label}">
<div class='label'>${point.label}</div>
<div class='overview triangle-border top'>
{{each point.comments}}
<div class="comment {{if $index == edit_comment}}edit_mode{{/if}}" data-index="${$index}" data-author="${$value.author_name}" data-author-image="${$value.author_image}">
{{if $index == 0 || $index == point.comments.length-1}}
<div class="form">
<textarea>${$value.text}</textarea>
<input type="button" class="save" value="OK" />
{{if $index == 0}}
<div class="colors" style="display: none">
<div class="blue"></div>
<div class="red"></div>
<div class="green"></div>
</div>
{{/if}}
<a class="delete">delete</a>
</div>
{{/if}}
<div class="preview">
<div class='image'>
<img class='author_image' width='50px' height='50px' src='${$value.author_image||'/images/empty_avatar.png'}' />
</div>
<div class='description'>
<span class='author'>${$value.author_name}</span>{{if $value.text}}wrote:{{else}}didn't wrote anything {{/if}}
<p class='text'>${$value.text}</p>
</div>
</div>
</div>
{{/each}}
{{if !(point.comments.length == 1 && edit_comment == 0)}}
<div class="comment new_comment_container colapsed" data-author='${user.name}' data-author-image='${user.image}'>
{{if !user.name }}
<a href="javascript:FB.login()" class="fb_login"><img src="/images/fb-login-button.png"/></a>
{{else}}
<textarea class="new_comment" spellcheck='false'>Write a comment...</textarea>
<input type="submit" value="Comment" class="submit" />
{{/if}}
</div>
{{/if}}
</div>
</div>
</script>
<script>
var point_template = $('#point_template');
</script>
</head>
<body>
<div id="start_screen" class="br_8" style="display: none">
<label>Upload image</label>
<input type="file" id="file_uploader" />
<br />
<br />
<img src="/images/firefox.png" />
<img src="/images/chrome.png" />
</div>
<div id="workspace" style="display: none;">
<div id="toolbar" class="linear_grad">
<div id="status" style="display: none;">Uploading to server...</div>
<div id="share_link" style="display: none;">Share<input value="" readonly onmousemove="this.select()" /></div>
</div>
<canvas id="image_canvas"></canvas>
<div id="connected_users"></div>
<div id="notifications"></div>
</div>
<div id="logged_user" class="user_info" style="display:none">
<div class="image">
<img width="35" height="35" class="br_3" />
</div>
<div class="name">
<span></span>
<br/>
<a href="javascript:;" onclick="logout(); return false;" class="logout">Logout</a>
</div>
</div>
<div id="background" style="display: none;"></div>
<div id="fb_login_screen" style="display:none" class="container box_shadow">
<fb:login-button size="xlarge" >Login with Facebook</fb:login-button>
</div>
<div id="big_loader" class="box_shadow br_8" style="display: none"></div>
<!--Facebook connect-->
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({appId: '127727177287107', status: true, cookie: true, xfbml: true});
FB.Event.subscribe('auth.sessionChange', function(response) {
if (response.session) {
// A user has logged in, and a new cookie has been saved
updateLoginStatus(true);
} else {
updateLoginStatus(false);
// The user has logged out, and the cookie has been cleared
}
});
FB.getLoginStatus(function(response) {
if(response.session) {
updateLoginStatus(true);
} else {
updateLoginStatus(false);
}
})
</script>
</body>
</html>