4
|
1 doctype html
|
|
2 html
|
|
3 head
|
|
4 title add link
|
|
5 {{> head.jade}}
|
|
6 body
|
|
7 h2 add link
|
|
8
|
|
9 p Bookmarklet to get this form over any page:
|
|
10 a(href="javascript:(function(){
|
|
11 var s=document.createElement('div');
|
|
12 s.innerHTML='Loading...';
|
|
13 s.style.position='fixed';
|
|
14 s.style.zIndex='9999';
|
|
15 s.style.border='2px solid black';
|
|
16
|
|
17 s.style.top='40px';
|
|
18 s.style.right='40px';
|
|
19 s.style.bottom='40px';
|
|
20 s.style.left='40px';
|
|
21 s.style.background='white';
|
|
22 document.body.appendChild(s);
|
|
23
|
|
24 s=document.createElement('script');
|
|
25 s.setAttribute('type','text/javascript');
|
|
26 s.setAttribute('src','http://plus:10002/addOverlay'+
|
|
27 '?url='+encodeURIComponent(window.location.href)+
|
|
28 '&title='+encodeURIComponent(document.title)+
|
|
29 '&selected='+encodeURIComponent(''+(
|
|
30 window.getSelection ? window.getSelection(): document.getSelection? document.getSelection(): document.selection.createRange().text))
|
|
31 );
|
|
32 document.body.appendChild(s);
|
|
33 })();") addlink
|
|
34
|
|
35 form(method='post', action='{{toRoot}}/{{user}}')
|
|
36 div URI:
|
|
37 input(type='text', name='href', data-bind='value: href')
|
|
38 div Title:
|
|
39 input(type='text', name='description')
|
|
40 div Tags:
|
|
41 input(type='text', name='tag')
|
|
42 div Comment:
|
|
43 textarea(name='extended')
|
|
44 div Private: ...
|
|
45 div Shared: ..?
|
|
46 div
|
|
47 button(type='submit')
|
|
48 | Add
|
|
49
|
|
50 {{> tail.jade}}
|
|
51 script(src="{{toRoot}}/static/add.js")
|