remotes/origin/1203
Назар Котюк 11 years ago
commit 62ade1c538
  1. 14
      templates/client/base_catalog.html
  2. 2
      templates/client/exposition.html
  3. 10
      templates/client/includes/announces.html
  4. 26
      templates/client/includes/conference/conference_list.html
  5. 26
      templates/client/includes/exposition/exposition_list.html
  6. 26
      templates/client/includes/exposition/exposition_object.html
  7. 54
      templates/client/includes/footer.html
  8. 15
      templates/client/includes/header.html
  9. 7
      templates/client/includes/menu.html
  10. 5
      templates/client/includes/online_consult.html
  11. 6
      templates/client/index.html
  12. 5
      templates/client/main_page.html
  13. 23
      templates/client/static_client/css/main.css
  14. 2
      templates/client/static_client/css_min/main.min.css
  15. BIN
      templates/client/static_client/img/soc-medias/sm-icon-youtube.png
  16. 2
      templates/client/static_client/js/_modules/page.profile.calendar.js
  17. 2
      templates/client/static_client/js_min/_modules/page.profile.calendar.min.js

@ -32,12 +32,16 @@
{% include 'client/includes/announces.html' %}
{% block asside_banner2 %}
<div class="sbnr">
<div class="sbnr-wrap">
<a href="#"><img src="{% static 'client/img/_del-temp/bnrs.jpg' %}" alt="" /></a>
{% comment %}
<!-- task EXPO-145-->
<div class="sbnr">
<div class="sbnr-wrap">
<a href="#"><img src="{% static 'client/img/_del-temp/bnrs.jpg' %}" alt="" /></a>
</div>
</div>
</div>
{% endblock %}
{% endcomment %}
{% endblock %}
{% include 'client/includes/side_confs.html' %}
<hr />
<div class="s-news-list">

@ -191,6 +191,7 @@
</dl>
</div>
{% if exposition.company.all %}
<hr />
<div class="i-members clearfix">
@ -310,6 +311,7 @@
</div>
</div>
</li>
{% endfor %}
</ul>
</div>

@ -1,13 +1,15 @@
{% load i18n %}
{% comment %}
<!-- task EXPO-145-->
<div id="subscribe-sm" class="subscribe-sm">
<header>{% trans 'получать анонсЫ' %}</header>
<ul>
<li><a class="icon-big-email" href="#">{% trans 'по e-mail' %}</a></li>
<li><a class="icon-big-rss" href="#">{% trans 'через RSS' %}</a></li>
<li><a class="icon-big-twitter" href="#">{% trans 'на twitter' %}</a></li>
{% comment %}
<li><a class="icon-big-ical" href="#">{% trans 'в iCal' %}</a></li>
{% endcomment %}
<!--<li><a class="icon-big-ical" href="#">{% trans 'в iCal' %}</a></li>-->
</ul>
</div>
</div>
{% endcomment %}

@ -90,6 +90,32 @@
</div>
</footer>
</li>
{% if forloop.counter == 8 %}
<!-- Яндекс.Директ -->
<script type="text/javascript">
yandex_partner_id = 58151;
yandex_site_bg_color = 'FFFFFF';
yandex_ad_format = 'direct';
yandex_font_size = 1;
yandex_direct_type = 'horizontal';
yandex_direct_border_type = 'block';
yandex_direct_limit = 3;
yandex_direct_title_font_size = 3;
yandex_direct_border_radius = true;
yandex_direct_links_underline = false;
yandex_direct_header_bg_color = 'FEEAC7';
yandex_direct_bg_color = 'FFF9F0';
yandex_direct_border_color = 'FBE5C0';
yandex_direct_title_color = '666666';
yandex_direct_url_color = '000000';
yandex_direct_text_color = '000000';
yandex_direct_hover_color = 'FF3333';
yandex_direct_sitelinks_color = '0000CC';
yandex_direct_favicon = false;
yandex_no_sitelinks = false;
document.write('<scr'+'ipt type="text/javascript" src="//an.yandex.ru/system/context.js"></scr'+'ipt>');
</script>
{%endif %}
{% endfor %}
{% endwith %}
</ul>

@ -90,6 +90,32 @@
</div>
</footer>
</li>
{% if forloop.counter == 8 %}
<!-- Яндекс.Директ -->
<script type="text/javascript">
yandex_partner_id = 58151;
yandex_site_bg_color = 'FFFFFF';
yandex_ad_format = 'direct';
yandex_font_size = 1;
yandex_direct_type = 'horizontal';
yandex_direct_border_type = 'block';
yandex_direct_limit = 3;
yandex_direct_title_font_size = 3;
yandex_direct_border_radius = true;
yandex_direct_links_underline = false;
yandex_direct_header_bg_color = 'FEEAC7';
yandex_direct_bg_color = 'FFF9F0';
yandex_direct_border_color = 'FBE5C0';
yandex_direct_title_color = '666666';
yandex_direct_url_color = '000000';
yandex_direct_text_color = '000000';
yandex_direct_hover_color = 'FF3333';
yandex_direct_sitelinks_color = '0000CC';
yandex_direct_favicon = false;
yandex_no_sitelinks = false;
document.write('<scr'+'ipt type="text/javascript" src="//an.yandex.ru/system/context.js"></scr'+'ipt>');
</script>
{%endif %}
{% endfor %}
{% endwith %}
</ul>

@ -183,7 +183,33 @@
{% endif %}
</dl>
</div>
<div class="clearfix">
<script type="text/javascript">
yandex_partner_id = 58151;
yandex_site_bg_color = 'FFFFFF';
yandex_ad_format = 'direct';
yandex_font_size = 1;
yandex_direct_type = 'horizontal';
yandex_direct_border_type = 'block';
yandex_direct_limit = 3;
yandex_direct_title_font_size = 3;
yandex_direct_border_radius = true;
yandex_direct_links_underline = false;
yandex_direct_header_bg_color = 'FEEAC7';
yandex_direct_bg_color = 'FFF9F0';
yandex_direct_border_color = 'FBE5C0';
yandex_direct_title_color = '666666';
yandex_direct_url_color = '000000';
yandex_direct_text_color = '000000';
yandex_direct_hover_color = 'FF3333';
yandex_direct_sitelinks_color = '0000CC';
yandex_direct_favicon = false;
yandex_no_sitelinks = false;
document.write('<scr'+'ipt type="text/javascript" src="//an.yandex.ru/system/context.js"></scr'+'ipt>');
</script>
</div>
<hr />
<div class="i-members clearfix">
<div class="im-participants">
{% with companies=exposition.company.all|slice:":6" %}

@ -7,11 +7,14 @@
<aside>
<div class="copy">© 2008 — 2015 Expomap.ru</div>
<ul class="soc-media-buttons">
{% comment %}
<!-- task EXPO-145-->
<li><a href="http://expomap.ru/rss3.php/" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-rss.png' %} " title="RSS" alt="RSS" /></a></li>
<li><a href="https://www.facebook.com/Expomap" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-fb.png" title="Facebook" alt="Facebook' %} " /></a></li>
<li><a href="http://www.linkedin.com/company/expomap-ru/" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-lin.png" title="LinkedIn" alt="LinkedIn' %} " /></a></li>
<li><a href="http://vk.com/expomap" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-vk.png" title="В контакте" alt="В контакте' %} " /></a></li>
<li><a href="https://twitter.com/expomap_ru" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-twit.png" title="Twitter" alt="Twitter' %} " /></a></li>
{% endcomment %}
<li><a href="https://www.facebook.com/Expomap" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-fb.png" title="Facebook" alt="Facebook' %} " /></a></li>
<li><a href="http://www.linkedin.com/company/expomap-ru/" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-lin.png" title="LinkedIn" alt="LinkedIn' %} " /></a></li>
<li><a href="http://vk.com/expomap" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-vk.png" title="В контакте" alt="В контакте' %} " /></a></li>
<li><a href="https://twitter.com/expomap_ru" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-twit.png" title="Twitter" alt="Twitter' %} " /></a></li>
</ul>
</aside>
@ -33,21 +36,56 @@
<li><a href="/about/">{% trans 'о нас' %}</a></li>
<li><a href="/partners/">{% trans 'партнеры' %}</a></li>
<li><a href="#">{% trans 'реклама' %}</a></li>
{% comment %}
<!-- task EXPO-145-->
<li><a href="#">{% trans 'сервис' %}</a></li>
<li><a href="#">{% trans 'для партнеров' %}</a></li>
{% endcomment %}
<li><a href="/contacts/">{% trans 'контакты' %}</a></li>
</ul>
</nav>
<div class="counters">
<ul>
<li><a href="#"><img src="{% static 'client/img/_del-temp/counter-1.gif' %}" alt="" /></a></li>
<li><a href="#"><img src="{% static 'client/img/_del-temp/counter-2.gif' %}" alt="" /></a></li>
<li><a href="#"><img src="{% static 'client/img/_del-temp/counter-3.gif' %}" alt="" /></a></li>
<li>
<!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='http://www.liveinternet.ru/click' "+
"target=_blank><img src='//counter.yadro.ru/hit?t14.6;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet: number of pageviews for 24 hours,"+
" of visitors for 24 hours and for today is shown' "+
"border='0' width='88' height='31'><\/a>")
//--></script><!--/LiveInternet-->
</li>
<li>
<a href="http://yandex.ru/cy?base=0&amp;host=expomap.ru" rel="nofollow">
<img src="http://www.yandex.ru/cycounter?expomap.ru"
width="88"
height="31"
alt="Яндекс цитирования"
border="0" />
</a>
</li>
<li>
<!-- begin of Top100 code -->
<script id="top100Counter" type="text/javascript" src="http://counter.rambler.ru/top100.jcn?2916249"></script>
<noscript>
<a href="http://top100.rambler.ru/navi/2916249/">
<img src="http://counter.rambler.ru/top100.cnt?2916249" alt="Rambler's Top100" border="0" />
</a>
</noscript>
<!-- end of Top100 code -->
</li>
</ul>
</div>
</div>
</div>
</footer>
</footer>

@ -42,7 +42,12 @@
<div class="ht-side">
<ul class="soc-media-buttons">
{% comment %}
<!-- task EXPO-145-->
<li><a href="http://expomap.ru/rss3.php/" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-rss.png' %} " title="RSS" alt="RSS" /></a></li>
{% endcomment %}
<li><a href="https://instagram.com/expomap/" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-inst.png" title="Instagram" alt="Instagram' %} " /></a></li>
<li><a href="https://www.youtube.com/user/expomaptv" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-youtube.png" title="Youtube" alt="Youtube' %} " /></a></li>
<li><a href="https://www.facebook.com/Expomap" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-fb.png" title="Facebook" alt="Facebook' %} " /></a></li>
<li><a href="http://www.linkedin.com/company/expomap-ru/" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-lin.png" title="LinkedIn" alt="LinkedIn' %} " /></a></li>
<li><a href="http://vk.com/expomap" target="_blank"><img src="{% static 'client/img/soc-medias/sm-icon-vk.png" title="В контакте" alt="В контакте' %} " /></a></li>
@ -95,7 +100,15 @@
<div class="abn">
{% block header_banner %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 468 на 60 -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-5242360491829403"
data-ad-slot="4482648777"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
{% endblock %}
</div>

@ -1,7 +1,7 @@
{% load i18n %}
<nav>
<ul class="main-menu">
<li class="sub"><a href="#">{% trans 'События' %}</a>
<li class="sub"><span>{% trans 'События' %}</span>
<ul>
<li><a href="{{ expo_catalog }}">{% trans 'выставки' %}</a></li>
<li><a href="/conference/">{% trans 'конференции' %}</a></li>
@ -15,8 +15,11 @@
<li><a href="/about/">{% trans 'о нас' %}</a></li>
<li><a href="/partners/">{% trans 'партнеры' %}</a></li>
<li><a href="/advertising/">{% trans 'реклама' %}</a></li>
{% comment %}
<!-- task EXPO-145-->
<li><a href="#">{% trans 'сервис' %}</a></li>
<li><a href="#">{% trans 'для партнеров' %}</a></li>
<li><a href="/contacts/">{% trans 'контакты' %}</a></li>
{% endcomment %}
<li><a href="/contacts/">{% trans 'контакты' %}</a></li>
</ul>
</nav>

@ -1,4 +1,6 @@
{% load i18n %}
{% comment %}
<!-- task EXPO-145-->
<div class="online-adviser">
<div class="oa-wrap">
<header>
@ -8,4 +10,5 @@
{% trans 'Возникли трудности?' %}<br /> {% trans 'Наши специалисты с' %}&nbsp;{% trans 'радостью помогут вам!' %}
</div>
</div>
</div>
</div>
{% endcomment %}

@ -35,7 +35,10 @@
{% include 'client/includes/online_consult.html' %}
{% comment %}
<!-- task EXPO-145-->
{% include 'client/includes/announces.html' %}
{% endcomment %}
</aside>
@ -135,9 +138,12 @@
<div class="mcl">
<div class="mp-reviews-wrap clearfix">
{% include 'client/includes/index/blogs.html' with blogs=blogs %}
{% comment %}
<!-- task EXPO-145-->
<div class="sbnr">
<div class="sbnr-wrap"><a href="#"><img src="{% static 'client/img/_del-temp/bnrs.jpg' %}" alt="" /></a></div>
</div>
{% endcomment %}
</div>
</div>
</div>

@ -82,9 +82,10 @@
{% include 'client/includes/feedback.html' %}
{% include 'client/includes/online_consult.html' %}
{% comment %}
<!-- task EXPO-145-->
{% include 'client/includes/announces.html' %}
{% endcomment %}
</aside>
<div class="mcl">

@ -966,7 +966,7 @@ aside nav > ul.main-menu > li:first-child {
display: inline-block;
}
nav > ul > li > a {
nav > ul > li > a, nav > ul > li.sub > span {
display: block;
text-decoration: none;
padding: 4px 6px 2px;
@ -1009,7 +1009,7 @@ nav .main-menu {
margin-left: 0;
}
.main-menu > li > a {
.main-menu > li > a, .main-menu > li > span {
color: #464646;
padding: 5px 9px 2px;
}
@ -1029,13 +1029,13 @@ nav .main-menu {
border-color: #ff6600;
}
.main-menu > li.sub > a {
.main-menu > li.sub > a, .main-menu > li.sub > span {
-webkit-transition: color .3s;
-o-transition: color .3s;
transition: color .3s;
}
.main-menu > li.sub:hover > a {
.main-menu > li.sub:hover > a, .main-menu > li.sub:hover > span {
color: #ff9e74;
}
@ -1043,11 +1043,11 @@ nav .main-menu {
position: relative;
}
.main-menu > li.sub:hover > a {
.main-menu > li.sub:hover > a, .main-menu > li.sub:hover > span {
background: #ff6600;
}
.main-menu li.sub > a:after {
.main-menu li.sub > a:after, .main-menu li.sub > span:after {
content: ' ';
display: inline-block;
vertical-align: middle;
@ -1057,7 +1057,7 @@ nav .main-menu {
margin: -3px 0 0 8px;
}
.main-menu .sub:hover > a:after {
.main-menu .sub:hover > a:after, .main-menu .sub:hover > span:after {
background-position: -46px -16px;
}
@ -2584,6 +2584,9 @@ a.icon-big-ical {
display: block;
}
.mp-news-list .nl-pict img{
margin-top: 11px;
}
.mp-news-list .nl-pict {
width: 80px;
height: 80px;
@ -2591,6 +2594,9 @@ a.icon-big-ical {
margin-right: 20px;
float: left;
border-radius: 4px;
text-align: center;
background: #ffffff;
box-shadow: inset 0 1px 0 #e8e8e7;
}
.mp-news-list .nl-body {
@ -12436,7 +12442,8 @@ hr + .rq-note {
color: #d80000;
}
.message-not-found{
margin-top: 60px;
margin-top: 19px;
margin-left: 40px;
padding-left: 60px;
padding-top: 18px;

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

@ -89,7 +89,7 @@ if (EXPO.profile.calendar) {
self.currentDay =currentDay;
if (result) {
//result--;
result--;
offset = onestep * result * width;
} else {

@ -1 +1 @@
var EXPO=EXPO||{};EXPO.profile=EXPO.profile||{},EXPO.profile.calendar?console.warn("WARNING: EXPO.profile.calendar is already defined!"):EXPO.profile.calendar=function(){var t=(EXPO.common,{});return t.opt={},$(function(){$("#btn_delete").on("click",function(t){t.preventDefault();var e=$("input[name=expo]:checkbox:checked").map(function(){return $(this).val()}).get(),s=$("input[name=conf]:checkbox:checked").map(function(){return $(this).val()}).get(),o=$("input[name=seminar]:checkbox:checked").map(function(){return $(this).val()}).get(),l=$("input[name=webinar]:checkbox:checked").map(function(){return $(this).val()}).get(),n={expo:JSON.stringify(e),conf:JSON.stringify(s),seminar:JSON.stringify(o),webinar:JSON.stringify(l)};$.get("/profile/calendar/remove/",n,function(t){t.success&&location.reload()})})}),t.init=function(t){$.extend(this.opt,t);var e=this,s=$("#"+this.opt.scrollBoxId),o=$("#"+this.opt.calenadrId),l=(o.find("td."+this.opt.currentDayClass).index()*this.opt.cellWidth,$("#"+this.opt.scrollLeftId)),n=$("#"+this.opt.scrollRightId),c=$("."+this.opt.noEventsClass),i=$("."+this.opt.calendarToggleClass),r=this.opt.cellWidth*this.opt.cellsToScroll,a=function(){var t,s,o=0,l=0,n=e.opt.cellWidth,c=$("#"+e.opt.calenadrId),i=c.find("."+e.opt.daysClass+" td."+e.opt.currentDayClass).index(),r=e.opt.cellsToScroll,a=c.find("."+e.opt.daysClass+" td").length;return i>0?(i++,t=a/r,s=a/i,l=Math.floor(t)-Math.floor(s),e.currentDay=i,o=l?r*l*n:0):(e.currentDay=0,o=0),o};this.$leftScroll=l,this.$rightScroll=n,this.currentOffset=a(),this.scrollStep=r,this.$scrollBox=s,this.$messages=[],this.stepWidth=e.opt.cellsToScroll*e.opt.cellWidth,$(function(){c.each(function(){var t=parseInt($(this).offset().left,10),s=$(".message",$(this));t?t-=312:t+=312,$(this).attr("colspan")&&1!=$(this).attr("colspan")?$(this).width()>e.stepWidth&&(s.width(e.stepWidth),0>t&&s.css({marginLeft:Math.abs(t+e.stepWidth)+"px"}),e.$messages.push(s)):$(this).find("."+e.opt.eventWrapClass).addClass("small")}),$("."+e.opt.eventsClass+":even").addClass("grey")}),$(window).load(function(){e.calendarWidth=e.opt.cellWidth*o.find("."+e.opt.daysClass+" td").length,s.mCustomScrollbar({axis:"y",horizontalScroll:!0,setLeft:"-"+e.currentOffset+"px",mouseWheel:{enable:!1},scrollButtons:{enable:!1},contentTouchScroll:!1,scrollInertia:1e3,timeout:0,advanced:{autoScrollOnFocus:!1,updateOnContentResize:!1,updateOnBrowserResize:!1},keyboard:{enable:!1},callbacks:{onScroll:function(){e.$leftScroll.off("click").one("click",function(){e.scrollLeft(e)}),e.$rightScroll.off("click").one("click",function(){e.scrollRight(e)})}}}),e.$leftScroll.one("click",function(){e.scrollLeft(e)}),e.$rightScroll.one("click",function(){e.scrollRight(e)})}),i.on("click",function(){var t=$(this),e=t.closest(".ep-sect"),s=e.children("div.ep-sect-body");return e.hasClass("eps-opened")?(n.hide(),l.hide(),s.stop().animate({opacity:0},300,function(){e.removeClass("eps-opened")})):(n.show(),l.show(),s.stop().animate({opacity:1},300,function(){e.addClass("eps-opened")})),!1})},t.scrollRight=function(t){return t||(t=this),t.currentOffset+t.stepWidth<t.calendarWidth?(t.currentOffset+=t.scrollStep,console.log("!!! right scroll fired!"),t.$scrollBox.mCustomScrollbar("scrollTo","-="+t.scrollStep),t.offsetMessages()):t.$rightScroll.one("click",function(){t.scrollRight(t)}),!1},t.scrollLeft=function(t){return t||(t=this),t.currentOffset>=t.stepWidth?(t.currentOffset-=t.scrollStep,console.log("!!! left scroll fired!"),t.$scrollBox.mCustomScrollbar("scrollTo","+="+t.scrollStep),t.offsetMessages(t)):t.$leftScroll.one("click",function(){t.scrollLeft(t)}),!1},t.offsetMessages=function(t){t||(t=this);for(var e=0;e<t.$messages.length;e++){var s=t.$messages[e].parent().width(),o=parseInt(t.$messages[e].parent().offset().left,10);o?o-=312:o+=312,s>t.stepWidth&&0>o&&t.$messages[e].css({marginLeft:Math.abs(o+t.stepWidth)+"px"})}},t}();
var EXPO=EXPO||{};EXPO.profile=EXPO.profile||{},EXPO.profile.calendar?console.warn("WARNING: EXPO.profile.calendar is already defined!"):EXPO.profile.calendar=function(){var t=(EXPO.common,{});return t.opt={},$(function(){$("#btn_delete").on("click",function(t){t.preventDefault();var e=$("input[name=expo]:checkbox:checked").map(function(){return $(this).val()}).get(),s=$("input[name=conf]:checkbox:checked").map(function(){return $(this).val()}).get(),o=$("input[name=seminar]:checkbox:checked").map(function(){return $(this).val()}).get(),l=$("input[name=webinar]:checkbox:checked").map(function(){return $(this).val()}).get(),n={expo:JSON.stringify(e),conf:JSON.stringify(s),seminar:JSON.stringify(o),webinar:JSON.stringify(l)};$.get("/profile/calendar/remove/",n,function(t){t.success&&location.reload()})})}),t.init=function(t){$.extend(this.opt,t);var e=this,s=$("#"+this.opt.scrollBoxId),o=$("#"+this.opt.calenadrId),l=(o.find("td."+this.opt.currentDayClass).index()*this.opt.cellWidth,$("#"+this.opt.scrollLeftId)),n=$("#"+this.opt.scrollRightId),c=$("."+this.opt.noEventsClass),i=$("."+this.opt.calendarToggleClass),r=this.opt.cellWidth*this.opt.cellsToScroll,a=function(){var t,s,o=0,l=0,n=e.opt.cellWidth,c=$("#"+e.opt.calenadrId),i=c.find("."+e.opt.daysClass+" td."+e.opt.currentDayClass).index(),r=e.opt.cellsToScroll,a=c.find("."+e.opt.daysClass+" td").length;return i>0?(i++,t=a/r,s=a/i,l=Math.floor(t)-Math.floor(s),e.currentDay=i,l?(l--,o=r*l*n):o=0):(e.currentDay=0,o=0),o};this.$leftScroll=l,this.$rightScroll=n,this.currentOffset=a(),this.scrollStep=r,this.$scrollBox=s,this.$messages=[],this.stepWidth=e.opt.cellsToScroll*e.opt.cellWidth,$(function(){c.each(function(){var t=parseInt($(this).offset().left,10),s=$(".message",$(this));t?t-=312:t+=312,$(this).attr("colspan")&&1!=$(this).attr("colspan")?$(this).width()>e.stepWidth&&(s.width(e.stepWidth),0>t&&s.css({marginLeft:Math.abs(t+e.stepWidth)+"px"}),e.$messages.push(s)):$(this).find("."+e.opt.eventWrapClass).addClass("small")}),$("."+e.opt.eventsClass+":even").addClass("grey")}),$(window).load(function(){e.calendarWidth=e.opt.cellWidth*o.find("."+e.opt.daysClass+" td").length,s.mCustomScrollbar({axis:"y",horizontalScroll:!0,setLeft:"-"+e.currentOffset+"px",mouseWheel:{enable:!1},scrollButtons:{enable:!1},contentTouchScroll:!1,scrollInertia:1e3,timeout:0,advanced:{autoScrollOnFocus:!1,updateOnContentResize:!1,updateOnBrowserResize:!1},keyboard:{enable:!1},callbacks:{onScroll:function(){e.$leftScroll.off("click").one("click",function(){e.scrollLeft(e)}),e.$rightScroll.off("click").one("click",function(){e.scrollRight(e)})}}}),e.$leftScroll.one("click",function(){e.scrollLeft(e)}),e.$rightScroll.one("click",function(){e.scrollRight(e)})}),i.on("click",function(){var t=$(this),e=t.closest(".ep-sect"),s=e.children("div.ep-sect-body");return e.hasClass("eps-opened")?(n.hide(),l.hide(),s.stop().animate({opacity:0},300,function(){e.removeClass("eps-opened")})):(n.show(),l.show(),s.stop().animate({opacity:1},300,function(){e.addClass("eps-opened")})),!1})},t.scrollRight=function(t){return t||(t=this),t.currentOffset+t.stepWidth<t.calendarWidth?(t.currentOffset+=t.scrollStep,console.log("!!! right scroll fired!"),t.$scrollBox.mCustomScrollbar("scrollTo","-="+t.scrollStep),t.offsetMessages()):t.$rightScroll.one("click",function(){t.scrollRight(t)}),!1},t.scrollLeft=function(t){return t||(t=this),t.currentOffset>=t.stepWidth?(t.currentOffset-=t.scrollStep,console.log("!!! left scroll fired!"),t.$scrollBox.mCustomScrollbar("scrollTo","+="+t.scrollStep),t.offsetMessages(t)):t.$leftScroll.one("click",function(){t.scrollLeft(t)}),!1},t.offsetMessages=function(t){t||(t=this);for(var e=0;e<t.$messages.length;e++){var s=t.$messages[e].parent().width(),o=parseInt(t.$messages[e].parent().offset().left,10);o?o-=312:o+=312,s>t.stepWidth&&0>o&&t.$messages[e].css({marginLeft:Math.abs(o+t.stepWidth)+"px"})}},t}();
Loading…
Cancel
Save