This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
/
popup.html
137 lines (124 loc) · 4.58 KB
/
popup.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
<!DOCTYPE html>
<!--
The above DOCTYPE declaration is actually required for Chrome to
properly resize the window as content size changes. See:
http://stackoverflow.com/questions/9498685/resize-popup-html-in-chrome-extension
-->
<html>
<head>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.10.custom.min.js"></script>
<script type="text/javascript" src="asana.js"></script>
<script type="text/javascript" src="options.js"></script>
<script type="text/javascript" src="api_bridge.js"></script>
<script type="text/javascript" src="server_model.js"></script>
<link rel="stylesheet" href="popup.css"/>
<title>
Asana Quick Add
</title>
</head>
<body>
<div id="add_view" style="display:none">
<div class="banner">
<div class="left-column">
<div id="logo" class="sprite"></div>
</div>
<div class="middle-column">
<span class="banner-add">
Add to
<span id="workspace"></span>
<div id="workspace_select_container">
<select id="workspace_select"><option>Loading...</option></select>
<svg class="svgIcon svgIcon-dropdownarrow " viewBox="0 0 32 32" title="dropdownarrow">
<polygon points="28,12.5 25.5,10 16.586,18.914 7.5,10 5,12.5 16.5,24"></polygon>
</svg>
</div>
</span>
</div>
<div class="right-column">
<a id="close_popup" class="sprite close-x" tabindex="-1"></a>
</div>
</div>
<div class="name-row">
<div class="left-column">
<span class="icon-checkbox sprite"></span>
</div>
<div class="middle-column">
<input id="name_input" class="generic-input" tabindex="0" placeholder="Task" />
</div>
<div class="right-column">
<div id="use_page_details" title="Insert page title and URL"><div class="icon-use-link-arrow sprite"></div><div class="icon-use-link"></div></div>
</div>
</div>
<div class="notes-row">
<div class="left-column">
<span class="icon-notes sprite"></span>
</div>
<div class="middle-column">
<textarea id="notes_input" class="generic-input" tabindex="0" placeholder="Description"></textarea>
</div>
<div class="right-column"></div>
</div>
<div class="assignee-row">
<div class="left-column">
<span class="icon-assignee sprite"></span>
</div>
<div class="middle-column">
<span class="token-area-view-container">
<div id="assignee_token_area" class="tokenAreaView generic-input" tabindex="0">
<input id="assignee_input" class="token-input" placeholder="Assignee" tabindex="-1"/>
<div id="assignee_token" class="tokenView"></div>
</div>
</span>
</div>
<div class="right-column"></div>
</div>
<div id="assignee_list_container">
<div id="assignee_list"></div>
</div>
<div class="buttons">
<div class="left-column"></div>
<div class="middle-column">
<div id="add_button" tabindex="0" class="buttonView buttonView--primary buttonView--large is-disabled">
<span class="new-button-text">Add to Asana</span>
</div>
</div>
</div>
<div class="footer">
<div id="error" class="footer-status" style="display:none">
<span class="error-message">
Sorry, there was a problem. Please try again.
</span>
</div>
<div id="success" class="footer-status" style="display:none">
<div class="sprite icon-success"></div>
<span class="success-message">
Added <a id="new_task_link" target="_blank" href=""></a>
</span>
</div>
</div>
</div>
<div id="login_view" style="display:none">
<div class="banner">
<div class="left-column">
<div id="logo" class="sprite"></div>
</div>
<div class="middle-column">
<span class="banner-add">
Add to Asana
</span>
</div>
<div class="right-column">
<a id="close_login" class="sprite close-x" tabindex="-1"></a>
</div>
</div>
<div class="content">
You must log in to Asana before you can add tasks.
<span id="signup_button" class="buttonView buttonView--large"><span class="new-button-text">Sign Up</span></span>
<span id="login_button" class="buttonView buttonView--primary buttonView--large"><span class="new-button-text">Log In</span></span>
</div>
</div>
</body>
<!-- Adds event handlers to elements, so we include at the end -->
<script type="text/javascript" src="popup.js"></script>
</html>