summaryrefslogtreecommitdiff
path: root/doc-src
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-04-07 11:40:38 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-04-07 11:40:38 -0400
commit770788d98eb9dfca51e6299e023edab26765c0bf (patch)
tree17817163962b9c8aaea7dfdbc3cc2ed3cdd7b774 /doc-src
parent4cc6d0ea2c7bec551c7726d7a336afea17d27df8 (diff)
parent17fb51f747c023392cd6127abe9b019e693f0544 (diff)
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'doc-src')
-rw-r--r--doc-src/bookmarklet8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc-src/bookmarklet b/doc-src/bookmarklet
new file mode 100644
index 000000000..03c0e97c9
--- /dev/null
+++ b/doc-src/bookmarklet
@@ -0,0 +1,8 @@
+A bookmarklet is a small piece of javascript code used as a bookmark. This one will let you post to %%site.name%% simply by selecting some text on a page and pressing the bookmarklet.
+
+Drag-and-drop the following link to your bookmarks bar or right-click it and add it to your browser favorites to keep it handy.
+
+<MTMarkdownOptions output='raw'>
+<a href="javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://%%site.server%%/%%site.path%%/notice/new',l=d.location,e=encodeURIComponent,g=f+'?status_textarea=%22'+e(s)+'%22 from '+l.href;function%20a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=720,height=570')){l.href=g;}}a();void(0);">Post to %%site.name%%</a>
+</MTMarkdownOptions>
+