Skip to content

Commit

Permalink
added location.search
Browse files Browse the repository at this point in the history
  • Loading branch information
bohyunkim committed Apr 3, 2013
1 parent e6afd2a commit 252a4f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bkmklt.html
Expand Up @@ -8,7 +8,8 @@ <h1>EZproxy Bookmarklet</h1>
<a href="javascript:(function(){
var host=location.host;
var path=location.pathname;
var newlink='http://'+host+'.ezproxy.fiu.edu'+path;
var srch=location.search;
var newlink='http://'+host+'.ezproxy.fiu.edu'+path+srch;
window.open(newlink);
})();">Full-Text from FIU Library</a>
(Drag the link to the bookmark toolbar!)
Expand Down Expand Up @@ -49,9 +50,9 @@ <h2>Make One for Your Library</h2>
<script type="text/javascript">
$(document).ready(function(){
$("#b1").click(function(){
var pre="&lt;html&gt; &lt;head&gt; &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js&quot;&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;a href=&quot;javascript:(function(){ var hst=location.host; var path=location.pathname; var newlink='http://'+hst";
var pre="&lt;html&gt; &lt;head&gt; &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js&quot;&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;a href=&quot;javascript:(function(){ var hst=location.host; var path=location.pathname; var srch=location.search; var newlink='http://'+hst";
var link1=$('#link1').val();
var post="'+path; window.open(newlink); })();&quot;&gt;";
var post="'+path+srch; window.open(newlink); })();&quot;&gt;";
var title=$("#title1").val();
var end="&lt;/a&gt; &lt;/body&gt; &lt;/html&gt;";
var final=$('<div />').html(pre+"+'."+link1+post+title+end).text()
Expand Down

0 comments on commit 252a4f7

Please sign in to comment.