JSFiddle - React, Tailwind, and code Playground
Referral Advertising Javascript
by Anov Siradj
HTML
<div class="simplead"></div>
<div class="simplead"></div>
<div class="simplead"></div>
<div class="simplead"></div>
<script>avirtualzr_simplead();</script>
CSS
.simplead:after {
content: '';
display: block;
height: 4px;
}
JavaScript
;(function(undefined) {
var id = 'simplead';
var adsed = {};
var ads = {
WindscribeAffiliate: { // get-paid 1/2
url: 'https://windscribe.com/?affid=hlwcesmd',
title: 'VPN Aman dan Terjangkau',
headline: 'Udah bosen, karena gak bisa buka website kesukaan kamu...,',
description: 'Install aplikasinya sekarang, dan dapatkan trial-bandwidth secara gratis sebesar 10GB!'
},
WindscribeRefer: { // get-free-quote 1/gb
url: 'https://windscribe.com/?friend=hlwcesmd',
title: 'Bingung, cara buka website yang di blokir?',
description: 'Dapatkan aplikasinya sekarang, Gak pake lama! Bisa langsung pasang di browser kamu! atau di smartphone android kamu! Buruan! supaya dapat bandwidth GRATIS sebesar 10GB!'
},
//https://windscribe.com/?friend=hlwcesmd
CashTree: {
url: 'https://goo.gl/Giv1mD',
icon: 'https://www.cashtree.id/favicon.ico',
title: 'Kamu Mau Pulsa Gratis?',
description: 'Hanya Lewat Smartphone Android Kamu. Install Aplikasinya dan Dapatkan Saldo Awal 2000 Poin. Jika beruntung, kamu bisa mendapatkan Smartphone GRATIS juga!'
},
NiagaHoster: {
url: 'https://panel.niagahoster.co.id/ref/12399',
title: 'Dapatkan Hosting Tanpa Batas Sekarang!',
banner: 'https://panel.niagahoster.co.id/banners/Set1-niagahoster-728x90.jpg'
}
};
var css = {width: 600};
css.height = css.height / 12;
var components = {
title: function(root, ad) {
if(ad.title === undefined) return;
if(ad.banner) {
root.title = ad.title;
} else {
root.insertAdjacentElement('beforeend', dom_create_element('p', {
className: (id + '-title'),
innerHTML: ad.title,
style: 'font-size: 14px; margin: 0; padding: 0; font-weight: 600;'
}));
}
},
headline: function(root, ad) {
if(ad.headline === undefined) return;
if(ad.banner) return;
root.insertAdjacentElement('beforeend', dom_create_element('p', {
className: (id + '-headline'),
innerHTML: ad.headline,
style: 'font-size: 12px; margin: 0; padding: 0; font-weight: 600;' // sama...