Skip to content

Commit 8cb89d0

Browse files
author
Justin Martin
committed
promote blit.
1 parent a161d81 commit 8cb89d0

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ design.svg
33
tests.js
44
node_modules
55
npm-debug.log
6+
.idea

img/blit-ad1.png

27.8 KB
Loading

img/blit-ad2.png

3.57 KB
Loading

img/blit-ad3.png

20 KB
Loading

index.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ <h2 class="left">Online JSON Compare</h2>
4949

5050
</div>
5151
<div class="ad-container">
52-
<script async type="text/javascript" src="http://cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=jsondiffcom" id="_carbonads_js"></script>
52+
<div id="carbonads">
53+
<span>
54+
<span id="ad-wrap" class="carbon-wrap">
55+
<a href="https://blitapp.com?ref=json-diff-txt" class="carbon-text" target="_blank" rel="noopener">Screenshots of websites to your inbox. Try it free.</a>
56+
</span>
57+
</span>
58+
</div>
5359
</div>
5460
<div class="made-by-text"><a href="https://blitapp.com?ref=json-diff" target="_blank" rel="noopener noreferrer">made with ♥ by <img src="img/blit_logo.svg"/></a></div>
5561
</div>
@@ -92,6 +98,7 @@ <h2 class="left">Online JSON Compare</h2>
9298

9399
</script>
94100
<script>
101+
initAd();
95102
var isLightTheme = localStorage.getItem('lighttheme');
96103
if (isLightTheme) {
97104
enableLightTheme();
@@ -119,6 +126,12 @@ <h2 class="left">Online JSON Compare</h2>
119126
$('#left-input').on('click', '.input-collapse,.input-split,.input-expand', onPaneResizeLeftClick);
120127
$('#right-input').on('click', '.input-collapse,.input-split,.input-expand', onPaneResizeRightClick);
121128

129+
function initAd() {
130+
var adNum = Math.floor(Math.random() * Math.floor(3)) + 1;
131+
var ad = $('<a href="https://blitapp.com?ref=json-diff-img'+adNum+'" class="carbon-img" target="_blank" rel="noopener"><img src="/img/blit-ad'+adNum+'.png" alt="Blit - Scheduled Website Screenshots" border="0" height="100" width="130" style="max-width: 130px;"></a>');
132+
$('#ad-wrap').prepend(ad);
133+
}
134+
122135
function toggleLightTheme() {
123136
var isLightTheme = localStorage.getItem('lighttheme');
124137
if (isLightTheme) {

0 commit comments

Comments
 (0)