public
Fork of sr/git-wiki
Description: A wiki engine that uses a Git repository as its data store.
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/al3x/git-wiki.git
Search Repo:
handy appendation bookmarklet
Alex Payne (author)
Wed Feb 27 09:24:51 -0800 2008
commit  64f99e4507062d65732aa7a11114ec040cf1791b
tree    cce71adb563176a69e1e3659bc70aab0634e4c8f
parent  f37914b81e11cbe2bfbeaca313dcd495ec4cdceb
0
...
1
2
3
4
5
6
...
12
13
14
15
16
 
 
 
 
17
18
19
...
1
2
 
3
4
5
...
11
12
13
 
 
14
15
16
17
18
19
20
0
@@ -1,6 +1,5 @@
0
 = SOON
0
   * fix duplication of routes/methods to accommodate file extensions
0
- * per-page bookmarklets: save bookmark of current page (Instapaper),
0
   * working launchd plist
0
   * deleting pages
0
   * pushing repo
0
@@ -12,7 +11,9 @@
0
   * repo stats/info/maintenance page
0
   
0
 = DONE
0
- * "append selected text to page" bookmarklet (shamelessly cribbed from Trsly)
0
- * allow "code pages" by supporting file extensions, applying syntax highlighting
0
+ * "append selected text/link to page" bookmarklet (shamelessly cribbed
0
+ from Trsly/Instapaper)
0
+ * allow "code pages" by supporting file extensions, applying syntax
0
+ highlighting
0
   * next/previous commit links on pages
0
   * pretty stylesheet
0
\ No newline at end of file
...
24
25
26
27
 
28
29
30
...
24
25
26
 
27
28
29
30
0
@@ -24,7 +24,7 @@
0
       document.write(time_ago_in_words(<%= @page.updated_at.for_time_ago_in_words %>) + ' ago');
0
     </script>
0
     <br />
0
- <a href="javascript:var q; if (window.getSelection) q=window.getSelection(); else if (document.selection) q=document.selection.createRange().text; if (q) location.href='<%= @page_url %>/append?text='+encodeURIComponent(q+' (from &quot;'+document.title+'&quot;:'+location.href+')'); else alert('Nothing Selected.');">append bookmarklet</a>
0
+ <a href="javascript:var q; if (window.getSelection) q=window.getSelection(); else if (document.selection) q=document.selection.createRange().text; if (q != '') location.href='<%= @page_url %>/append?text='+encodeURIComponent(q+' (from &quot;'+document.title+'&quot;:'+location.href+')'); else location.href='<%= @page_url %>/append?text='+encodeURIComponent('&quot;'+document.title+'&quot;:'+location.href);">append bookmarklet</a>
0
   </div>
0
 </div>
0
 

Comments

    No one has commented yet.