Changeset 29 in bookmarks for trunk


Ignore:
Timestamp:
05/23/13 16:41:22 (11 years ago)
Author:
peter
Message:

added the javascript bookmarklet link to the bottom of the list view

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.cgi

    r23 r29  
    11#!/usr/bin/perl -w 
    22use strict; 
    3  
    4 # bookmarklet to add a bookmark via the browser 
    5 # javascript:(function(){window.open("http://grim.ath.cx/~peter/bookmarks?uri="+document.location+"&title="+document.title,"edit_bookmark","width=800,height=250")})() 
    63 
    74package BookmarkApp::Dispatch; 
  • trunk/list.tt

    r22 r29  
    4848} 
    4949.cotags { 
    50     height: 100%; 
     50    height: 75%; 
    5151    border-top: 1px dotted #999; 
    5252    border-bottom: 1px dotted #999; 
     
    149149      </form> 
    150150    </div> 
     151    <p> 
     152      <a class="bookmarklet" href="javascript:(function(){window.open(%22[% base_url %]?uri=%22+encodeURIComponent(document.location)+%22&title=%22+encodeURIComponent(document.title),%22edit_bookmark%22,%22width=800,height=250%22)})()" title="Javascript Bookmarklet">Make Bookmark</a> 
     153    </p> 
    151154  </body> 
    152155</html> 
Note: See TracChangeset for help on using the changeset viewer.