This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var item = items[Math.floor(Math.random()*items.length)]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.adfoxVars = { | |
| bannerUrl: source_url + '/' + company + '/' + campaign, | |
| clickUrl: 'http://example.com/', | |
| pixel: 'http://content.adfox.ru/transparent.gif', | |
| user1: '', | |
| user2: '', | |
| user3: '', | |
| user4: '', | |
| user5: '', | |
| user6: '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.callEvent = (eventID, scope='banner', remove=false) -> | |
| eventID = parseInt eventID | |
| return false unless window.adfox[scope].events[eventID] | |
| eventUrl = window.adfox[scope].events[eventID] | |
| $img = $('<img src="' + eventUrl + '" />') | |
| $('#adfox-events').append $img | |
| $img.on 'load', -> | |
| console.log "event #{scope}: #{eventID} called" | |
| $img.remove() | |
| delete window.adfox[scope].events[eventID] if remove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| out = { | |
| currency:{ | |
| usd: '50,01', // нам достаточно двух знаков после запятой (с округлением) | |
| eur: '78,84' | |
| }, | |
| weather:{ | |
| now:{ | |
| temp: '+9', // прошу обрезать цельсии, но оставить знак + - | |
| wind: 10, // обрезать метры в секунду | |
| direction: 3, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "CAAG2jp0rsV0BAPetplVIHukq7u2KhZA6Qgpi3h52K4Wmvp9BAMnZC3TGEYHyQBtDXiIV8dertIX70HRYvmtTLacW3fGpvTDVhXNh2EB9Oul6e4TTyXJ4lX5asXEIaHnM6Hv5NsgGdHEkD3LVUGL8id6LISmiY4TEycYI53VmDOhEAX34s1128oZBWcTC8dp4tkOT1WHgXcK2CZCOhlFw" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 076ad18cd3f093e70bb17d15b8d2147a89e268d19641527c24d2a30a8f2265d73d861cec09429115463ea |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| /* cyrillic-ext */ | |
| @font-face { | |
| font-family: 'PT Sans'; | |
| font-style: normal; | |
| font-weight: 700; | |
| src: local('PT Sans Bold'), local('PTSans-Bold'), url(./assets/kTYfCWJhlldPf5LnG4ZnHAsYbbCjybiHxArTLjt7FRU.woff2) format('woff2'); | |
| unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){var ca=void 0,j=!0,k=null,n=!1,da=encodeURIComponent,p=window,ea=Object,ha=Infinity,s=document,w=Math,ia=Number,ja=navigator,oa=parseInt,pa=parseFloat;function qa(O,x){return O.width=x}function ra(O,x){return O.innerHTML=x}function sa(O,x){return O.speed=x}function ta(O,x){return O.left=x}function ua(O,x){return O.loop=x}function wa(O,x){return O.play=x}function xa(O,x){return O.zIndex=x}function ya(O,x){return O.length=x}function za(O,x){return O.position=x} | |
| function Aa(O,x){return O.className=x}function Ba(O,x){return O.pause=x}function Da(O,x){return O.MozPerspective=x}function Ea(O,x){return O.backgroundImage=x}function Ia(O,x){return O.display=x}function Ja(O,x){return O.height=x} | |
| var Ka="appendChild",y="push",La="direction",Ma="lastPosition",Pa="clearTimeout",Qa="width",Ra="round",Sa="slice",Ta="replace",Ua="toFixed",Va="timestamp",ab="ceil",bb="floor",F="getElementById",cb="offsetWidth",db="concat",eb="list",hb="extend",ib="charAt",jb="preventDefault",kb="region",lb="indexOf",mb="speed",nb= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| Данный файл будет располагаться по адресу: | |
| http://cdn.vmet.ro/html5_bnr/dettol/dettol/index.html | |
| где dettol/dettol - идентификатор этой конкретной рекламной кампании | |
| Остальные файлы располагайте как удобно, | |
| корневой директорией для вас в рамках этой рекламной кампании | |
| будет http://cdn.vmet.ro/html5_bnr/dettol/dettol/ | |
| --> |