This repository was archived by the owner on Jul 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpopup.html
More file actions
135 lines (120 loc) · 3.94 KB
/
Copy pathpopup.html
File metadata and controls
135 lines (120 loc) · 3.94 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pushbullet</title>
<link rel="stylesheet" href="css/popup.css">
<style>
/* Hide all sections by default to prevent flashing */
#loading-section, #login-section, #main-section {
display: none;
}
/* Show loading section by default */
#loading-section {
display: flex;
}
.disclaimer {
font-size: 11px;
color: #666;
margin-top: 12px;
text-align: center;
font-style: italic;
}
</style>
</head>
<body>
<!-- Loading Section -->
<div id="loading-section">
<div class="spinner"></div>
<p>Loading...</p>
</div>
<!-- Login Section -->
<div id="login-section">
<h1>Pushbullet</h1>
<p>Please enter your Access Token to continue.</p>
<p>You can find your Access Token in your <a href="https://www.pushbullet.com/#settings/account" target="_blank">Pushbullet account settings</a> under Access Tokens.</p>
<div class="form-group">
<input type="text" id="api-key" placeholder="Access Token">
</div>
<div class="form-group">
<input type="text" id="device-nickname" placeholder="Device Nickname (e.g., My Chrome)">
</div>
<div class="form-group">
<button id="save-api-key">Save</button>
</div>
<p class="disclaimer">This is an unofficial extension and is not affiliated with, endorsed by, or connected to Pushbullet Inc.</p>
</div>
<!-- Main Section -->
<div id="main-section">
<div class="header">
<div class="user-info">
<img id="user-image" src="" alt="User Image">
<span id="user-name">User Name</span>
</div>
<button id="logout">Logout</button>
</div>
<div class="push-form">
<h2>Send a Push</h2>
<div class="form-group">
<label for="push-type">Push Type:</label>
<select id="push-type">
<option value="note">Note</option>
<option value="link">Link</option>
</select>
</div>
<div id="note-form">
<div class="form-group">
<input type="text" id="note-title" placeholder="Title">
</div>
<div class="form-group">
<textarea id="note-body" placeholder="Body"></textarea>
</div>
</div>
<div id="link-form" style="display: none;">
<div class="form-group">
<input type="text" id="link-title" placeholder="Title">
</div>
<div class="form-group">
<input type="text" id="link-url" placeholder="URL">
</div>
<div class="form-group">
<textarea id="link-body" placeholder="Comment (optional)"></textarea>
</div>
</div>
<div class="form-group">
<label for="target-device">Send to:</label>
<select id="target-device">
<option value="all">All Devices</option>
</select>
</div>
<div class="form-group">
<button id="send-push">Send</button>
</div>
<div id="status-message"></div>
</div>
<div class="settings">
<h2>Settings</h2>
<div class="setting-item">
<label for="auto-open-links">
<input type="checkbox" id="auto-open-links" checked>
Auto-open links when received
</label>
</div>
<div class="setting-item">
<label for="device-nickname-setting">Device Nickname:</label>
<div class="form-group">
<input type="text" id="device-nickname-setting" placeholder="Device Nickname">
<button id="update-nickname">Update</button>
</div>
</div>
</div>
<div class="recent-pushes">
<h2>Recent Pushes</h2>
<div id="pushes-list"></div>
</div>
<p class="disclaimer">This is an unofficial extension and is not affiliated with Pushbullet Inc.</p>
</div>
<script src="js/popup.js"></script>
</body>
</html>