-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
executable file
·58 lines (57 loc) · 1.43 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
<html>
<head>
<script src="addPinboard.js" type="text/javascript"></script>
<script type="text/javascript">
//From http://code.google.com/chrome/extensions/messaging.html
//Used to set bookmark description to selected text
chrome.tabs.getSelected(null, function(tab) {
// Send a request to the content script.
chrome.tabs.sendRequest(tab.id, {action: "getTXT"}, function(response) {
pbdescription = response.description;
});
});
</script>
<style type="text/css">
body {
margin: 1px;
}
div.toolstrip-button {
color: #333;
cursor: hand;
font: normal 13px arial, sans-serif;
width: 120px;
padding: 6px;
border-bottom: 1px dotted #AAA
}
div.toolstrip-button:last-child {
border-bottom-style: none;
}
div.toolstrip-button:hover {
background-color: #FFC;
}
</style>
</head>
<body>
<div id="add-bookmark" class="toolstrip-button">
Save to Pinboard
</div>
<div id="read-later" class="toolstrip-button">
Read later
</div>
<div id="save-tab-set" style="border-bottom:1px solid #999" class="toolstrip-button">
Save tab set
</div>
<div id="unread-bookmarks" class="toolstrip-button">
Unread bookmarks
</div>
<div id="all-bookmarks" class="toolstrip-button">
All bookmarks
</div>
<div id="network" class="toolstrip-button">
Network
</div>
<div id="tab-sets" class="toolstrip-button">
Tab sets
</div>
</body>
</html>