/[Frey]/trunk/lib/Frey/Bookmarklet.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Bookmarklet.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 205 by dpavlin, Tue Oct 28 22:13:08 2008 UTC revision 206 by dpavlin, Thu Oct 30 22:35:11 2008 UTC
# Line 24  sub markup { Line 24  sub markup {
24          $js =~ s/\s\s+/ /gs;          $js =~ s/\s\s+/ /gs;
25    
26          my $html = qq|          my $html = qq|
                 <h1>Bookmarklets for developers</h1>  
27                  <ul>                  <ul>
28                  <li><a href="javascript:void($js);">xpath</a> inspector</li>                          <li>Inspectors</li>
29                  <li><a href="javascript:prefFile='';void(z=document.body.appendChild(document.createElement('script')));void(z.language='javascript');void(z.type='text/javascript');void(z.src='http://slayeroffice.com/tools/modi/v2.0/modi_v2.0.js');void(z.id='modi');">MODIv2</li>                          <ul>
30                                    <li><a href="javascript:void($js);">xpath</a> (click again to inspect any element)</li>
31                                    <li><a href="javascript:prefFile='';void(z=document.body.appendChild(document.createElement('script')));void(z.language='javascript');void(z.type='text/javascript');void(z.src='http://slayeroffice.com/tools/modi/v2.0/modi_v2.0.js');void(z.id='modi');">MODIv2</a></li>
32                            </ul>
33                            <li>Frames management</li>
34                            <ul>
35                                    <li><a href="javascript:f='';for(x=0;x<window.frames.length;x++){f+=x+':'+window.frames[x].name+'\n';};d=prompt('Frame?\n'+f,'');if (!d) { d=0 };window.location=window.frames[d].location;">x</a> close frame (with alert selector)</li>
36                                    <li><a href="javascript:document.write('<HTML><HEAD></HEAD><FRAMESET ROWS=\'50%,*\'><FRAME SRC=' + location.href + '><FRAME SRC=' + location.href + '></FRAMESET></HTML>');">h</a> horizontal split</li>
37                                    <li><a href="javascript:document.write('<HTML><HEAD></HEAD><FRAMESET COLS=\'50%,*\'><FRAME SRC=' + location.href + '><FRAME SRC=' + location.href + '></FRAMESET></HTML>');">v</a> vertical split</li>
38    <!--
39                                    <li><a href=""></a></li>
40    -->
41                            </ul>
42                    </ul>
43          |;          |;
44    
45          return $self->page( body => $html );          return $self->page(
46                    title => 'Bookmarklets for developers',
47                    body => $html,
48            ) if $self->can('page');
49            
50            return $html;
51  }  }
52    
53  1;  1;

Legend:
Removed from v.205  
changed lines
  Added in v.206

  ViewVC Help
Powered by ViewVC 1.1.26