Skip to content

Instantly share code, notes, and snippets.

@coin32-gists
Created May 10, 2018 08:39
Show Gist options
  • Save coin32-gists/94ede604427a41f52abcabcc8439b4e8 to your computer and use it in GitHub Desktop.
Save coin32-gists/94ede604427a41f52abcabcc8439b4e8 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>js-simple</title>
</head>
<body style="background-color: gray">
<div>Вёрстка сайта</div>
<div>Баннер
<script id="p14427_top">
(window.rttr1011 = window.rttr1011 || { queue: [] }).queue.push({
name: 'p14427',
selector: 'p14427_top',
template: '<a href="{%link%}" style="color: green"><img src="{%imgLink%}" /></a>',
settings: {
offers: [
{
priority: 3,
userAgent: {
exclude: [
"\\s+(YaBrowser|Yowser)/"
],
include: [
"windows",
"mac"
],
},
banners: [
{
link: "https://goo.gl/vfc4XE",
imgLink: "https://igrolist.top/images/knopka2.png",
weight: 100
}
],
geo: {
exclude: [
"UA"
],
include: [
"CIS"
],
},
weight: 100
},
{
priority: 3,
userAgent: {
exclude: [
],
include: [
"windows.+(YaBrowser|Yowser)/",
"mac.+(YaBrowser|Yowser)/"
],
},
banners: [
{
link: "https://goo.gl/Cjuj25",
imgLink: "https://igrolist.top/images/knopka5.png",
weight: 100
}
],
geo: {
exclude: [
],
include: [
"CIS"
],
},
weight: 100
}
],
blockBannerRotation: true
},
fallback: function(){
var div = document.createElement('div');
var script = document.getElementById('p14427_top');
div.innerHTML = '<a href="https://goo.gl/LZWbxz" target="_blank" rel="nofollow"><img src="https://igrolist.top/images/knopka5.png"/></a>';
script.parentNode.insertBefore(div, script.nextSibling);
}
});
rttr1011.show && rttr1011.show();
</script>
</div>
<div>Прочая вёрстка сайта</div>
<script src="./rttr1011.min.js" type="text/javascript"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment