-
Notifications
You must be signed in to change notification settings - Fork 1
/
bookmark.js
27 lines (27 loc) · 854 Bytes
/
bookmark.js
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
javascript: (function() {
var w = window,
d = document,
s =
d.getElementById('descItemNumber').innerText ||
w.getSelection().toString();
if (s) {
var e = encodeURIComponent,
p = w.open(
'http://es.mydip.net?api=bookmark&token=KnutKohl&name=' +
e(d.title) +
'&item=' +
e(s),
'es_popup',
'left=' +
((w.screenX || w.screenLeft) + 10) +
',top=' +
((w.screenY || w.screenTop) + 10) +
',height=150px,width=400px,resizable=1,alwaysRaised=1'
);
w.setTimeout(function() {
p.focus();
}, 300);
} else {
w.alert('Please select item Id before!');
}
})();