Skip to content

Commit ec22ee1

Browse files
author
Justin Martin
committed
Merge branch 'master' into gh-pages
2 parents df032d3 + 5835da1 commit ec22ee1

File tree

6 files changed

+25
-2
lines changed

6 files changed

+25
-2
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

css/main.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,19 @@ h2 {
210210
margin-left: 8px;
211211
}
212212

213+
.settings-menu-content:before {
214+
content: '';
215+
display: block;
216+
height: 40px;
217+
width: 100%;
218+
position: absolute;
219+
top: -40px;
220+
}
221+
213222
.settings-menu-content {
214223
display: none;
215224
position: absolute;
216-
z-index: 4;
225+
z-index: 5;
217226
padding: 16px;
218227
right: 0;
219228
background-color: #0f1010;

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
@@ -50,7 +50,13 @@ <h2 class="left">Online JSON Compare</h2>
5050

5151
</div>
5252
<div class="ad-container">
53-
<script async type="text/javascript" src="http://cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=jsondiffcom" id="_carbonads_js"></script>
53+
<div id="carbonads">
54+
<span>
55+
<span id="ad-wrap" class="carbon-wrap">
56+
<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>
57+
</span>
58+
</span>
59+
</div>
5460
</div>
5561
<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>
5662
</div>
@@ -93,6 +99,7 @@ <h2 class="left">Online JSON Compare</h2>
9399

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

130+
function initAd() {
131+
var adNum = Math.floor(Math.random() * Math.floor(3)) + 1;
132+
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>');
133+
$('#ad-wrap').prepend(ad);
134+
}
135+
123136
function toggleLightTheme() {
124137
var isLightTheme = localStorage.getItem('lighttheme');
125138
if (isLightTheme) {

0 commit comments

Comments
 (0)