Skip to content

Instantly share code, notes, and snippets.

@meritt
Last active December 17, 2015 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meritt/5561743 to your computer and use it in GitHub Desktop.
Save meritt/5561743 to your computer and use it in GitHub Desktop.
<div style="width:100%;padding:7px 0 11px;background:#09c;color:#fff;font-size:18px;text-align:center">Приглашаем на нашу конференцию по маркетингу &laquo;<a href="http://digitaleconf.ru/?code=serenity" style="color:#fff">Digitale</a>&raquo; с 10% скидкой. <span id="d3"></span></div><script>!function(t){"use strict";try{var e=function(t,e){t=Math.abs(t)%100;var n=t%10;return t>10&&20>t?e[2]:n>1&&5>n?e[1]:1==n?e[0]:e[2]},n=new Date,a=new Date(2013,5,3),r=parseInt((a-n)/86400000,10)+1;if(r>0){t.getElementById("d3").innerHTML="До конференции осталось "+r+" "+e(r,["день","дня","дней"])+"."}}catch(c){}}(document);</script>
@meritt
Copy link
Author

meritt commented May 11, 2013

Нужно положить этот код сразу после <body>.

Ссылку на партнёрскую программу и размер скидки можно изменить в тексте.

Демонстрация.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment