Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 9 Следующий »

Для этого размера креатива недоступен вывод цен.

JavaScript
/* 728x90 (8) */

/* Переменная 'info' необходима для указания юридической информации о компании */

var info =
  '<strong>ООО «Рога и копыта»</strong><br>ИНН 1234567891, ОКВЭД 47.19<br><a href="rogaikopyta.ru">rogaikopyta.ru</a><br>Pb3XmBtztBP1WD7TdxPB8oGjqYoZf1wf8Gznbup';

var trimLength = 38;

/* Ниже этой строчки код редактировать не рекомендуется */

var linkFont=document.createElement("LINK");linkFont.rel="stylesheet",linkFont.href="https://fonts.googleapis.com/css2?family=PT+Sans&display=swap",document.getElementById(elementId).appendChild(linkFont);var custom_script=document.createElement("SCRIPT");custom_script.onload=function(){$(document).ready((function(){function enlarge(item){var that=$(item);$(that).addClass("item--upper"),$(that).addClass("item--fullsize")}function squeeze(item){var that=$(item);$(that).removeClass("item--fullsize"),setTimeout((function(){$(that).removeClass("item--upper")}),500)}if("ontouchstart"in document.documentElement)$(".item").click((function(){if($(this).hasClass("item--fullsize"))squeeze(this);else enlarge(this)}));else $(".item").on("mouseenter",(function(){var that=$(this),timer=setTimeout((function(){enlarge(that)}),600);$(that).on("mouseleave",(function(){if(clearTimeout(timer),$(that).hasClass("item--fullsize"))squeeze(that)}))}))}))},custom_script.type="text/javascript",custom_script.src="https://cdn.adhigh.net/jquery-3.6.0.min.js",custom_script.defer="defer",document.getElementById(elementId).appendChild(custom_script);var creative=function(){var container=document.createElement("div");return container.innerHTML='<div class="wrapper"><a class="logo" href="[[LANDING_PAGE]]" target="_blank"><img src="https://[[SITE_LOGO]]"></a><div class="content">'+goods(0,8)+'</div><div class="footer"><a class="footer__logo" href="https://getintent.com/" target="_blank"><span>Реклама</span><img class="pic" src="https://cdn.adhigh.net/banners/dynamic-template/logo-getintent.svg"></a><div class="footer__about"><span>Рекламодатель</span></div><div class="footer__disclaimer">'+info+"</div></div></div>",container.firstChild};function goods(i,count){for(var goods="",c=0;c<count;c++){var itemName="no name model g:title";if(products[i+c].hasOwnProperty("name"))if(products[i+c].name)itemName=products[i+c].name;if(products[i+c].hasOwnProperty("model"))if(products[i+c].model)itemName=products[i+c].model;if(products[i+c].hasOwnProperty("g:title"))if(products[i+c]["g:title"])itemName=products[i+c]["g:title"];var shortenName=itemName;if(itemName.length>=trimLength)shortenName=itemName.substring(0,trimLength).trim()+"...";goods+='<a class="item" href="'+products[i+c].url+'" target="_blank"><div class="top"><img src="'+products[i+c].picture+'"/></div><div class="bottom"><div class="button">'+shortenName+'</div><div class="button button--blue">Посмотреть</div></div></a>'}return goods}document.getElementById(elementId).appendChild(creative());
CSS
/* В переменных можно указывать произвольные цвета */

:root {
  --itemBackgroundColor: #373737;
  --itemAccentColor: #56ccf2;
}

/* Ниже этой строчки код редактировать не рекомендуется */

:root{--footerDuration:0.2s;--itemLightTextColor:#ebebeb;--buttonTextColor:#fff}*,:after,:before{box-sizing:border-box}body,html{margin:0;padding:0}.wrapper{border:1px solid var(--itemBackgroundColor);font-family:PT Sans,Arial,sans-serif;height:100%;left:50%;overflow:hidden;top:50%;transform:translate(-50%,-50%);width:100%;z-index:0}.logo,.wrapper{background-color:#fff;position:absolute}.logo{font-size:0;height:60px;right:10px;top:10px;transition:width .5s ease;width:100px;z-index:1}.logo.logo--centered{width:92%}.logo img{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.content{align-items:center;display:flex;height:60px;justify-content:space-between;left:10px;position:absolute;top:10px;width:calc(100% - 130px)}@-webkit-keyframes pic{0%{transform:translateY(-50%)}25%{transform:translateY(-75%)}75%{transform:translateY(-25%)}to{transform:translateY(-50%)}}@keyframes pic{0%{transform:translateY(-50%)}25%{transform:translateY(-75%)}75%{transform:translateY(-25%)}to{transform:translateY(-50%)}}.item{display:flex;flex-direction:column;height:60px;justify-content:space-between;position:absolute;text-decoration:none;transition:all .5s ease;width:60px}.item:focus .top,.item:hover .top{border-color:var(--itemBackgroundColor)}.item:focus .top:before,.item:hover .top:before{max-width:52px;opacity:1;width:calc(100% - 8px)}.item.item--upper{z-index:1}.item.item--fullsize{height:100%;left:0!important;width:100%}.item.item--fullsize .top{border-color:#fff}.item.item--fullsize .top img{-webkit-animation-duration:5s;animation-duration:5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:pic;animation-name:pic;-webkit-animation-timing-function:linear;animation-timing-function:linear;height:auto;position:absolute;top:50%;transform:translateY(-50%);width:180px}.item.item--fullsize .top:before{opacity:0;z-index:0}.item.item--fullsize .bottom{opacity:1;top:10px}.item:first-child{left:0;top:0}.item:nth-child(2){left:76.57143px;top:0}.item:nth-child(3){bottom:0;left:153.14286px}.item:nth-child(4){bottom:0;left:229.71429px}.item:nth-child(5){bottom:0;left:306.28571px}.item:nth-child(6){bottom:0;left:382.85714px}.item:nth-child(7){bottom:0;left:459.42857px}.item:nth-child(8){bottom:0;left:536px}.top{background-color:#fff;border:1px solid var(--itemForegroundColor);border-radius:5px;height:100%;overflow:hidden;position:relative;transition:height .5s ease,border .5s ease}.top:before{background-color:var(--itemAccentColor);border-radius:4px;content:" ";height:4px;left:4px;opacity:0;position:absolute;top:4px;transition:all .6s ease;width:4px;z-index:1}.top img{height:60px;-o-object-fit:contain;object-fit:contain;position:absolute;top:50%;transform:translateY(-50%);transition:all .5s ease;width:60px}.bottom{height:60px;left:239.71429px;opacity:0;position:fixed;top:100px;transition:opacity .5s ease;width:366.28571px}.bottom,.button{align-items:center;display:flex}.button{background-color:var(--itemBackgroundColor);color:var(--itemLightTextColor);font-size:10px;height:42px;justify-content:center;line-height:15px;padding:5px 32px 6px;text-align:center;width:50%}.button.button--blue{background-color:var(--itemAccentColor);color:var(--buttonTextColor);font-size:13px;line-height:42px;padding:0;text-transform:uppercase}.footer{align-items:flex-end;bottom:0;color:var(--itemLightTextColor);display:flex;font-size:9px;justify-content:space-between;left:0;line-height:16px;position:absolute;text-align:center;width:100%;z-index:3}.footer.footer--shorten:before{width:calc(100% - 185px)}.footer:before{bottom:0;content:" ";height:10px;left:0;position:absolute;transition:width var(--footerDuration) ease;width:100%;z-index:-1}.footer:before,.footer__logo{background-color:var(--itemBackgroundColor)}.footer__logo{border-top-right-radius:8px;color:inherit;height:16px;line-height:16px;overflow:hidden;padding:0 6px;position:relative;text-decoration:none;transition:all var(--footerDuration) ease;width:50px}.footer__logo:focus,.footer__logo:hover{height:28px;width:110px}.footer__logo:focus span,.footer__logo:hover span{line-height:28px;opacity:0}.footer__logo:focus .pic,.footer__logo:hover .pic{opacity:1}.footer__logo span{line-height:16px;transition:all var(--footerDuration) ease}.footer__logo .pic{left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--footerDuration) ease;width:66%}.footer__about{background-color:var(--itemBackgroundColor);border-top-left-radius:8px;height:16px;line-height:16px;padding:0 6px;text-align:center;width:80px}.footer__about:focus,.footer__about:hover{opacity:0}.footer__about:focus+.footer__disclaimer,.footer__about:hover+.footer__disclaimer{opacity:1;transform:translate(0,0)}.footer__disclaimer{bottom:0;color:transparent;font-size:7px;line-height:10px;opacity:0;padding:12px 12px 16px;position:absolute;right:0;transform:translate(calc(100% - 80px),calc(100% - 16px));transition:all var(--footerDuration) ease,opacity .1s ease;width:185px;z-index:1}.footer__disclaimer:before{background-color:var(--itemBackgroundColor);border-top-left-radius:8px;content:" ";height:100%;left:0;opacity:.85;position:absolute;top:0;width:100%;z-index:-1}.footer__disclaimer:focus,.footer__disclaimer:hover{color:var(--itemLightTextColor);opacity:1;transform:translate(0,0)}.footer__disclaimer strong{font-size:9px;font-weight:400}.footer__disclaimer a{-webkit-font-smoothing:antialiased;color:#56ccf2}


  • Нет меток