Skip to content

Commit

Permalink
Shifts to github cdn https is better
Browse files Browse the repository at this point in the history
  • Loading branch information
apsdehal committed Aug 15, 2014
1 parent 5822506 commit 272bf6f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 32 deletions.
9 changes: 1 addition & 8 deletions bookmarklet/bookmarklet.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@
<br/><br/>
<p>Drag this bookmarklet to your bookmark bar to launch Wikidata Web Annotator on any Web site.</p>
<span class="easy_RDFa_bookmarklet">
<a title="Bookmark this link" href="javascript:(function(){
var h = document.getElementsByTagName('head')[0],
d = document.createElement('script');
d.type = 'text/javascript';
d.src = 'http://apsdehal.in/WAFBookmarklet/bookmarklet//src/InitBookmarklet.js?'+Math.random()*4;
d.async = false;
h.appendChild(d);
})()">
<a title="Bookmark this link" href="javascript:(function(){var h = document.getElementsByTagName('head')[0],d = document.createElement('script');d.type = 'text/javascript';d.src = 'https://cdn.rawgit.com/apsdehal/WAFBookmarklet/master/bookmarklet/src/InitBookmarklet.js?'+Math.random()*4;d.async = false;h.appendChild(d);})()">
<span>Wikidata Web Annotator</span>
</a>
</span>
Expand Down
6 changes: 3 additions & 3 deletions bookmarklet/src/InitBookmarklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
l = document.createElement('link');

l.rel = 'stylesheet';
l.href = 'http://apsdehal.in/WAFBookmarklet/bookmarklet//css/pundit.css';
l.href = 'https://cdn.rawgit.com/apsdehal/WAFBookmarklet/master/bookmarklet/css/pundit.css';
l.type = 'text/css';
l.media = 'screen';
l.charset = 'utf-8';
Expand Down Expand Up @@ -192,11 +192,11 @@
djConfig = {
afterOnLoad: true,
useXDomain: true,
baseUrl: "http://apsdehal.in/WAFBookmarklet/bookmarklet//dojo/",
baseUrl: "https://cdn.rawgit.com/apsdehal/WAFBookmarklet/master/bookmarklet/dojo/",
require: ["dojo.Bookmarklet"]
};
d.type = 'text/javascript';
d.src = 'http://apsdehal.in/WAFBookmarklet/bookmarklet//dojo/dojo.xd.js';
d.src = 'https://cdn.rawgit.com/apsdehal/WAFBookmarklet/master/bookmarklet/dojo/dojo.xd.js';
h.appendChild(d);

})();
2 changes: 1 addition & 1 deletion bookmarklet_build/build_bookmarklet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ver=`head -1 ../VERSION.txt`
# - dojo/ folder with the compiled bookmarklet
# - css/ folder
## WITHOUT trailing slash (/)
bmpath=http://apsdehal.in/WAFBookmarklet/bookmarklet/
bmpath=https://cdn.rawgit.com/apsdehal/WAFBookmarklet/master/bookmarklet

###########################################
### Dont touch anything below this line ###
Expand Down
11 changes: 2 additions & 9 deletions examples/bookmarklet.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,9 @@

<div id = "pundit-main-content" style="margin-left:5px">
<br/><br/>
<p>Drag this bookmarklet to your bookmark bar to launch Wikidata Web Annotator on every Web site.</p>
<p>Drag this bookmarklet to your bookmark bar to launch Wikidata Web Annotator on any Web site.</p>
<span class="easy_RDFa_bookmarklet">
<a title="Bookmark this link" href="javascript:(function(){
var h = document.getElementsByTagName('head')[0],
d = document.createElement('script');
d.type = 'text/javascript';
d.src = 'http://apsdehal.in/WAFBookmarklet/bookmarklet//src/InitBookmarklet.js?'+Math.random()*4;
d.async = false;
h.appendChild(d);
})()">
<a title="Bookmark this link" href="javascript:(function(){var h = document.getElementsByTagName('head')[0],d = document.createElement('script');d.type = 'text/javascript';d.src = 'https://cdn.rawgit.com/apsdehal/WAFBookmarklet/master/bookmarklet/src/InitBookmarklet.js?'+Math.random()*4;d.async = false;h.appendChild(d);})()">
<span>Wikidata Web Annotator</span>
</a>
</span>
Expand Down
9 changes: 1 addition & 8 deletions examples/bookmarklet.html-template
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@
<br/><br/>
<p>Drag this bookmarklet to your bookmark bar to launch Wikidata Web Annotator on any Web site.</p>
<span class="easy_RDFa_bookmarklet">
<a title="Bookmark this link" href="javascript:(function(){
var h = document.getElementsByTagName('head')[0],
d = document.createElement('script');
d.type = 'text/javascript';
d.src = '{bm-abs-path}/src/InitBookmarklet.js?'+Math.random()*4;
d.async = false;
h.appendChild(d);
})()">
<a title="Bookmark this link" href="javascript:(function(){var h = document.getElementsByTagName('head')[0],d = document.createElement('script');d.type = 'text/javascript';d.src = '{bm-abs-path}/src/InitBookmarklet.js?'+Math.random()*4;d.async = false;h.appendChild(d);})()">
<span>Wikidata Web Annotator</span>
</a>
</span>
Expand Down
6 changes: 3 additions & 3 deletions src/InitBookmarklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
l = document.createElement('link');

l.rel = 'stylesheet';
l.href = 'http://apsdehal.in/WAFBookmarklet/bookmarklet//css/pundit.css';
l.href = 'https://cdn.rawgit.com/apsdehal/WAFBookmarklet/master/bookmarklet/css/pundit.css';
l.type = 'text/css';
l.media = 'screen';
l.charset = 'utf-8';
Expand Down Expand Up @@ -192,11 +192,11 @@
djConfig = {
afterOnLoad: true,
useXDomain: true,
baseUrl: "http://apsdehal.in/WAFBookmarklet/bookmarklet//dojo/",
baseUrl: "https://cdn.rawgit.com/apsdehal/WAFBookmarklet/master/bookmarklet/dojo/",
require: ["dojo.Bookmarklet"]
};
d.type = 'text/javascript';
d.src = 'http://apsdehal.in/WAFBookmarklet/bookmarklet//dojo/dojo.xd.js';
d.src = 'https://cdn.rawgit.com/apsdehal/WAFBookmarklet/master/bookmarklet/dojo/dojo.xd.js';
h.appendChild(d);

})();

0 comments on commit 272bf6f

Please sign in to comment.