'reddit this ad' to 'discuss this ad on reddit'

Also delete a static ad file that's no longer used
This commit is contained in:
Chad Birch
2013-03-11 17:21:38 -06:00
parent ebb1e2d568
commit 6976b8d4e6
3 changed files with 2 additions and 55 deletions

View File

@@ -1,53 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<style type="text/css">
#ad {
background-color: white; width: 100%; text-align: center;
font: normal small verdana, arial, sans-serif}
#adlink {
background-color: white; width: 100%; text-align: center;
font: normal small verdana, arial, sans-serif}
#adlink {width: 100%; text-align: center;}
#adlink a {color: #336699; text-decoration: none}
#adlink a:hover {text-decoration: underline}
</style>
<script language="javascript" type="text/javascript">
function rwt(a) {
var ad = document.getElementById("ad")
var s = ad.getElementsByTagName("embed")[0]
if (!s) s = ad.getElementsByTagName("iframe")[0]
if (!s) s = ad.getElementsByTagName("img")[0]
if (s) a.href = "http://ads.reddit.com/submit?url=" + encodeURIComponent(s.src);
else a.target = ""
return true;
}
</script>
</head>
<body style="padding: 0; margin: 0;">
<div id="ad">
<!-- begin ad tag (tile=1) -->
<script language="JavaScript" type="text/javascript">
//<![CDATA[
ord=Math.random()*10000000000000000;
document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj/reddit.dart/homepage;kw=homepage;tile=1;dcopt=ist;sz=300x250;ord=' + ord + '?" type="text/javascript"></scr' + 'ipt>');
//]]>
</script>
<noscript><a href="http://ad.doubleclick.net/jump/reddit.dart/homepage;kw=homepage;tile=1;sz=300x250;ord=123456789?" target="_blank"><img src="http://ad.doubleclick.net/ad/reddit.dart/homepage;kw=homepage;tile=1;sz=300x250;ord=123456789?" width="300" height="250" border="0" alt=""/></a></noscript>
</div>
<div id="adlink">
<a target="_top" href="#" onclick="rwt(this)">reddit this ad</a>
</div>
</body>
</html>

View File

@@ -86,7 +86,7 @@ document.write('<script language="JavaScript" src="http://ad.doubleclick.net/adj
</div>
<div id="adlink">
<a target="_top" href="#" onmousedown="rwt(this)">
${_("reddit this ad")}
${_("discuss this ad on reddit")}
</a>
</div>
<script language="JavaScript" type="text/javascript">

View File

@@ -51,7 +51,7 @@
</div>
<div id="adlink">
<a target="_top" href="${thing.submit_link}">
${_("reddit this ad")}
${_("discuss this ad on reddit")}
</a>
</div>
</body>