Skip to content
This repository was archived by the owner on Mar 29, 2018. It is now read-only.

Commit b30e58a

Browse files
author
Daniel Cormier
committed
More HTML cleanup.
1 parent eb5df22 commit b30e58a

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

options.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@
2222
<label for="refresh_interval"><strong>Refresh Interval (ms):</strong></label>
2323
<input type="text" id="refresh_interval">
2424
</div>
25-
<br />
25+
<br>
2626
<div>
2727
<label for="api_key"><strong>Pushbullet Access Token:</strong></label>
28-
<a href="https://www.pushbullet.com/account" target="_blank">?</a>
2928
<input type="text" id="api_key" size="50">
29+
<a href="https://www.pushbullet.com/account" target="_blank">?</a>
3030
</div>
3131
<br>
3232
<div id="devices">
3333
</div>
34-
<br />
34+
<br>
3535
<div>
36-
<button id="save">Save</button>
3736
<button id="test">Test</button>
37+
<button id="save">Save</button>
3838
</div>
39-
<br />
40-
<div><small>You can <a href=\"https://www.pushbullet.com/apps\" target=\"_blank\">add devices here</a>.</small></div>
39+
<br>
40+
<div><small>You can <a href="https://www.pushbullet.com/apps" target="_blank">add devices here</a>.</small></div>
4141

4242
</body>
4343
</html>

options.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function load_devices(saved_devices, removeInvalidIds)
9393
div_devices.append(div_non_chrome);
9494

9595
if (chrome_count > 0) {
96-
div_devices.append("<br />");
96+
div_devices.append("<br>");
9797
}
9898
}
9999

@@ -162,7 +162,12 @@ $("#save").click(function(e) {
162162
});
163163

164164
$("#test").click(function(e) {
165+
var msg = {
166+
title: "Test Push",
167+
url: "https://play.google.com/store/devices"
168+
};
169+
165170
$.each(checked_devices(), function(index, device_iden) {
166-
PushBullet.push("link", device_iden, null, {title: "I got you a Nexus 6", url: "https://www.google.com/"});
171+
PushBullet.push("link", device_iden, null, msg);
167172
});
168173
});

0 commit comments

Comments
 (0)