Project

General

Profile

Test » History » Version 12

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

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