Project

General

Profile

Test » History » Version 14

Dan Smith, 04/24/2024 02:52 PM

1 11 Dan Smith
<a href="#" onClick="do_download();">click here</a>
2 9 Dan Smith
3 14 Dan Smith
<script src="/foo.js"></script>
4
5 1 Dan Smith
<script>
6 11 Dan Smith
function do_download() {
7
var blockdiv = $(".adsbygoogle")[0];
8
console.log($(blockdiv).data());
9 12 Dan Smith
if ($(blockdiv).data('adStatus') != "filled") {
10
console.log("REJECT");
11
} else {
12
document.location = "https://archive.chirpmyradio.com/download?stream=next";
13 9 Dan Smith
}
14 13 Dan Smith
}
15 1 Dan Smith
</script>