Ad stuff.
parent
fd57739c06
commit
5deb065aea
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2807,6 +2807,7 @@ body.jobs {
|
|||
|
||||
div.exclusive-ad {
|
||||
color: #666666;
|
||||
height: 192px;
|
||||
margin: 0 0 30px 15px;
|
||||
padding: 10px;
|
||||
padding-top: 0;
|
||||
|
@ -2833,15 +2834,7 @@ div.exclusive-ad {
|
|||
img {
|
||||
display: inline-block;
|
||||
margin: 10px 0;
|
||||
max-height: 100px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body .one .bsa_it_ad { background: transparent; border: none; font-family: inherit; padding: 0 15px 0 10px; margin: 0; text-align: center; }
|
||||
body .one .bsa_it_ad:hover img { -moz-box-shadow: 0 0 3px #000; -webkit-box-shadow: 0 0 3px #000; box-shadow: 0 0 3px #000; }
|
||||
body .one .bsa_it_ad .bsa_it_i { display: block; padding: 0; float: none; margin: 0 0 5px; }
|
||||
body .one .bsa_it_ad .bsa_it_i img { padding: 0; border: none; }
|
||||
body .one .bsa_it_ad .bsa_it_t { padding: 6px 0; }
|
||||
body .one .bsa_it_ad .bsa_it_d { padding: 0; font-size: 12px; color: #333; }
|
||||
body .one .bsa_it_p { display: none; }
|
||||
body #bsap_aplink, body #bsap_aplink:hover { display: block; font-size: 10px; margin: 12px 15px 0; text-align: center; }
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 9.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
|
@ -132,7 +132,7 @@ if(root.location.pathname==='/account/stats/'){root.mixpanel.track('Viewing stat
|
|||
if(root.location.pathname==='/pro/'){root.mixpanel.track('Viewing Pro page');}
|
||||
if(root.location.pathname==='/pro/signup/'){root.mixpanel.track('Viewing Pro signup page');}
|
||||
if(root.location.pathname==='/jobs/'){root.mixpanel.track('Viewing jobs page');}
|
||||
root.mixpanel.track_links('#hate-ads','"Hate ads" link clicked');root.mixpanel.track_links('#post-job','"Post a job" link clicked');root.mixpanel.track_links('a.download','Downloading snipt');}).call(this);
|
||||
root.mixpanel.track_links('#hate-ads','"Hate ads" link clicked');root.mixpanel.track_links('#post-job','"Post a job" link clicked');root.mixpanel.track_links('a.download','Downloading snipt');app.controller('AppController',function($scope){$scope.ads=[{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://showroom.is/?from=snipt',image:'/static/img/logo-showroom.png',company:'Showroom.is',title:'New-car research for the modern web.'},{url:'http://bruce-springsteen-the-e-street-band.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/bruce-springsteen-bf99a8/4275/huge.jpg',company:'Gigs.is',title:'Bruce Springsteen & The E Street Band on tour.'},{url:'http://beyonce.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/beyonce-b28ec9/37/huge.jpg',company:'Gigs.is',title:'Beyonce on tour. View current tour dates on:'},{url:'http://paul-mccartney.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/paul-mccartney-0ab8df/1408/huge.jpg',company:'Gigs.is',title:'Paul McCartney on tour. View current tour dates on:'},{url:'http://rolling-stones.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/rolling-stones-73ab94/2597/huge.jpg',company:'Gigs.is',title:'Rolling Stones on tour. View current tour dates on:'},{url:'http://justin-timberlake.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/justin-timberlake-c30b82/1019/huge.jpg',company:'Gigs.is',title:'Justin Timberlake on tour. View current tour dates on:'},{url:'http://billy-joel.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/billy-joel-254023/303/huge.jpg',company:'Gigs.is',title:'Billy Joel on tour. View current tour dates on:'},{url:'http://taylor-swift.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/taylor-swift-1cdf83/35/huge.jpg',company:'Gigs.is',title:'Taylor Swift on tour. View current tour dates on:'},{url:'http://one-direction.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/one-direction-a22937/12586/huge.jpg',company:'Gigs.is',title:'One Direction on tour. View current tour dates on:'},{url:'http://george-strait.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/george-strait-92a4b8/780/huge.jpg',company:'Gigs.is',title:'George Strait on tour. View current tour dates on:'},{url:'http://pearl-jam.gigs.is/?from=snipt',image:'http://cdn.chairnerd.com/images/performers-landscape/pearl-jam-fb4480/1416/huge.jpg',company:'Gigs.is',title:'Pearl Jam on tour. View current tour dates on:'}];var randomIndex=Math.floor(Math.random()*(($scope.ads.length-1)-0+1))+0;$scope.randomAd=$scope.ads[randomIndex];});}).call(this);
|
||||
(function(Site){var Snipt=snipt.module('snipt');Backbone.oldSync=Backbone.sync;Backbone.Model.prototype.idAttribute='resource_uri';var addSlash=function(str){return str+((str.length>0&&str.charAt(str.length-1)==='/')?'':'/');};Backbone.sync=function(method,model,options){options.headers=_.extend({'Authorization':'ApiKey '+window.user+':'+window.api_key},options.headers);return Backbone.oldSync(method,model,options);};Backbone.Model.prototype.url=function(){var url=this.id;if(!url){url=this.urlRoot;url=url||this.collection&&(_.isFunction(this.collection.url)?this.collection.url():this.collection.url);if(url&&this.has('id')){url=addSlash(url)+this.get('id');}}
|
||||
url=url&&addSlash(url);if(typeof url==='undefined'){url='/api/private/snipt/';this.unset('id',{'silent':true});this.unset('user',{'silent':true});}
|
||||
return url||null;};Site.SiteView=Backbone.View.extend({el:'body',initialize:function(opts){this.$body=$(this.el);this.$html=$('html');this.$html_body=this.$body.add(this.$html);this.$aside_main=$('aside.main',this.$body);this.$aside_nav=$('aside.nav',this.$body);this.$aside_nav_ul=$('ul',this.$aside_nav);this.$search_form=$('form.search',this.$body);this.$search_query=$('input#search-query',this.$body);this.$search_page_query=$('input.search-query',this.$body);this.$search_queries=this.$search_query.add(this.$search_page_query);this.$snipts=$('section#snipts article.snipt',this.$body);this.$modals=$('div.modal',this.$snipts);this.$main_edit=$('section#main-edit');this.$main=$('section#main');this.$keyboard_shortcuts=$('#keyboard-shortcuts',this.$body);this.keyboardShortcuts();this.inFieldLabels();var SniptListView=Snipt.SniptListView;this.snipt_list=new SniptListView({'snipts':this.$snipts});var that=this;this.$body.click(function(){if(!window.ui_halted&&!window.from_modal&&window.$selected){window.$selected.trigger('deselect');}
|
||||
|
|
|
@ -67,4 +67,162 @@ jQuery(function($) {
|
|||
root.mixpanel.track_links('#post-job', '"Post a job" link clicked');
|
||||
root.mixpanel.track_links('a.download', 'Downloading snipt');
|
||||
|
||||
app.controller('AppController', function($scope) {
|
||||
$scope.ads = [
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://showroom.is/?from=snipt',
|
||||
image: '/static/img/logo-showroom.png',
|
||||
company: 'Showroom.is',
|
||||
title: 'New-car research for the modern web.'
|
||||
},
|
||||
{
|
||||
url: 'http://bruce-springsteen-the-e-street-band.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/bruce-springsteen-bf99a8/4275/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'Bruce Springsteen & The E Street Band on tour.'
|
||||
},
|
||||
{
|
||||
url: 'http://beyonce.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/beyonce-b28ec9/37/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'Beyonce on tour. View current tour dates on:'
|
||||
},
|
||||
{
|
||||
url: 'http://paul-mccartney.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/paul-mccartney-0ab8df/1408/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'Paul McCartney on tour. View current tour dates on:'
|
||||
},
|
||||
{
|
||||
url: 'http://rolling-stones.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/rolling-stones-73ab94/2597/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'Rolling Stones on tour. View current tour dates on:'
|
||||
},
|
||||
{
|
||||
url: 'http://justin-timberlake.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/justin-timberlake-c30b82/1019/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'Justin Timberlake on tour. View current tour dates on:'
|
||||
},
|
||||
{
|
||||
url: 'http://billy-joel.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/billy-joel-254023/303/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'Billy Joel on tour. View current tour dates on:'
|
||||
},
|
||||
{
|
||||
url: 'http://taylor-swift.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/taylor-swift-1cdf83/35/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'Taylor Swift on tour. View current tour dates on:'
|
||||
},
|
||||
{
|
||||
url: 'http://one-direction.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/one-direction-a22937/12586/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'One Direction on tour. View current tour dates on:'
|
||||
},
|
||||
{
|
||||
url: 'http://george-strait.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/george-strait-92a4b8/780/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'George Strait on tour. View current tour dates on:'
|
||||
},
|
||||
{
|
||||
url: 'http://pearl-jam.gigs.is/?from=snipt',
|
||||
image: 'http://cdn.chairnerd.com/images/performers-landscape/pearl-jam-fb4480/1416/huge.jpg',
|
||||
company: 'Gigs.is',
|
||||
title: 'Pearl Jam on tour. View current tour dates on:'
|
||||
}
|
||||
];
|
||||
|
||||
var randomIndex = Math.floor(Math.random() * (($scope.ads.length - 1) - 0 + 1)) + 0;
|
||||
$scope.randomAd = $scope.ads[randomIndex];
|
||||
});
|
||||
|
||||
}).call(this);
|
||||
|
|
|
@ -1,27 +1,13 @@
|
|||
<div class="exclusive-ad">
|
||||
<h3>Communicate personally with every single customer.</h3>
|
||||
<p>
|
||||
Try <a href="https://www.intercom.io/" title="Intercom">Intercom</a>.
|
||||
</p>
|
||||
<a class="logo" href="https://www.intercom.io/" title="Sifter: Simple issue tracking for big projects and small teams.">
|
||||
<img src="{{ STATIC_URL }}img/intercom.png" alt="Sifter: Simple issue tracking for big projects and small teams." />
|
||||
</a>
|
||||
</div>
|
||||
<section class="ad">
|
||||
<div id="carbonads-container">
|
||||
<div class="carbonad">
|
||||
<div id="azcarbon"></div>
|
||||
<script type="text/javascript">
|
||||
var z = document.createElement("script");
|
||||
z.type = "text/javascript";
|
||||
z.async = true;
|
||||
z.src = "https://engine.carbonads.com/z/52572/azcarbon_2_1_0_VERT";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(z, s);
|
||||
</script>
|
||||
</div>
|
||||
<div ng-cloak>
|
||||
<div ng-repeat="ad in ads" ng-show="randomAd == ad">
|
||||
<h3>{[{ ad.title }]}</h3>
|
||||
<p>
|
||||
<a href="{[{ ad.url }]}" title="{[{ ad.company }]}">{[{ ad.company }]} »</a>
|
||||
</p>
|
||||
<a class="logo" href="{[{ ad.url }]}" title="{[{ ad.title }]}">
|
||||
<img ng-src="{[{ ad.image }]}" alt="{[{ ad.title }]}" />
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
<div class="go-pro">
|
||||
<a href="/pro/" id="hate-ads" class="btn btn-success">Hate ads? Go Pro »</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -78,18 +78,7 @@
|
|||
</script>
|
||||
<!-- end Mixpanel -->
|
||||
</head>
|
||||
<body class="{% block body-class %}{% endblock %} {% if request.user.profile.is_pro %}is-pro{% endif %}">
|
||||
<!-- AdPacks.com Ad Code -->
|
||||
<script type="text/javascript">
|
||||
(function(){
|
||||
var bsa = document.createElement('script');
|
||||
bsa.type = 'text/javascript';
|
||||
bsa.async = true;
|
||||
bsa.src = '//s3.buysellads.com/ac/bsa.js';
|
||||
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
|
||||
})();
|
||||
</script>
|
||||
<!-- End AdPacks.com Ad Code -->
|
||||
<body class="{% block body-class %}{% endblock %} {% if request.user.profile.is_pro %}is-pro{% endif %}" ng-controller="AppController">
|
||||
{% block header %}
|
||||
<header class="main">
|
||||
<div class="inner">
|
||||
|
|
Loading…
Reference in New Issue