Skip to content

Commit

Permalink
removed KaiAds
Browse files Browse the repository at this point in the history
  • Loading branch information
GP4Flo authored Oct 30, 2020
1 parent 193af96 commit 240209a
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions application/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,6 @@ let file_path;
let storage_name;

$(document).ready(function() {

document.addEventListener("DOMContentLoaded", () => {
// request an ad when the DOM is loaded
getKaiAd({
publisher: '6c03d2e1-0833-4731-aac0-801acfc4eb6e',
app: 'Topo Map',
test: 0,
onready: ad => {
ad.call('display')
ad.on('display', () => document.getElementsByClassName( 'leaflet-control-attribution' )[0].style.display = 'none' )
ad.on('display', () => document.getElementsByClassName( 'leaflet-control-scale' )[0].style.display = 'none' )
ad.on('close', () => document.getElementsByClassName( 'leaflet-control-attribution' )[0].style.display = 'block' )
ad.on('close', () => document.getElementsByClassName( 'leaflet-control-scale' )[0].style.display = 'block' )
}
})
});

//welcome message
$('div#message div').text("Welcome");
Expand Down Expand Up @@ -467,4 +451,4 @@ $(document).ready(function() {
});
}

});
});

0 comments on commit 240209a

Please sign in to comment.