Skip to content

Instantly share code, notes, and snippets.

@redomar
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redomar/cdfeb4474a9b9f213239 to your computer and use it in GitHub Desktop.
Save redomar/cdfeb4474a9b9f213239 to your computer and use it in GitHub Desktop.
/*
FILE ARCHIVED ON 0:04:14 Nov 2, 2013 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 10:44:43 Aug 13, 2014.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
// iLovePalestine.com - Code Copyright by Stephen Chapman
function getURL(uri) {
uri.dir = location.href.substring(0,location.href.lastIndexOf('\/'));
uri.dom = uri.dir; if (uri.dom.substr(0,7) == 'http:\/\/') uri.dom = uri.dom.substr(7);
uri.path = ''; var pos = uri.dom.indexOf('\/'); if (pos > -1) {uri.path = uri.dom.substr(pos+1); uri.dom = uri.dom.substr(0,pos);}
uri.page = location.href.substring(uri.dir.length+1,location.href.length+1);
pos = uri.page.indexOf('?');if (pos > -1) {uri.page = uri.page.substring(0, pos);}
pos = uri.page.indexOf('#');if (pos > -1) {uri.page = uri.page.substring(0, pos);}
uri.ext = ''; pos = uri.page.indexOf('.');if (pos > -1) {uri.ext =uri.page.substring(pos+1); uri.page = uri.page.substr(0,pos);}
uri.file = uri.page;
if (uri.ext != '') uri.file += '.' + uri.ext;
if (uri.file == '') uri.page = 'index';
uri.args = location.search.substr(1).split("?");
return uri;
}
var uri = new Object();
getURL(uri);
document.write('<style><!-- @import url(http://web.archive.org/web/20131102000414/http://www.ilovepalestine.com/campgain/campgain.css); --></style>'
+ '<div class="ILPBlackBandLeft"><img src="http://web.archive.org/web/20131102000414/http://www.ilovepalestine.com/campgain/ilovep_campgain.gif" width="163" height="163" border="0" usemap="#ILPLinkMapLeft"></div>'
+ '<map name="ILPLinkMapLeft"><area shape="poly" coords="163,0,0,163,0,133,133,0" href="/web/20131102000414/http://www.ilovepalestine.com/?&referrer=' + uri.dom + '" target="_blank"></map>'
);
@redomar
Copy link
Author

redomar commented Aug 13, 2014

Copy this code into your website to get the banner

<script type="text/javascript" src="https://gist.github.com/redomar/cdfeb4474a9b9f213239#file-campaignl_black-js">
</script><noscript><a href="https://gist.github.com/redomar/cdfeb4474a9b9f213239">iLovePalestine.com</a></noscript>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment