| Current Path : /var/www/iplanru/data/www/i-plan.ru/templates/yoo_everest/js/ |
| Current File : /var/www/iplanru/data/www/i-plan.ru/templates/yoo_everest/js/theme.js |
/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */
jQuery(function($) {
var config = $('html').data('config') || {};
// Social buttons
$('article[data-permalink]').socialButtons(config);
});
jQuery(document).ready(function() {
var m = [];
m[0]=jQuery(".tm-main-bottom3 .uk-panel-box .zoo-item-list > li:first-child").height();
m[1]=jQuery(".tm-main-bottom3 .uk-panel-box .zoo-item-list > li:last-child").height();
m[2]=jQuery(".tm-main-bottom3 .project-experience .zoo-items .zoo-item:first-child").height();
m[3]=jQuery(".tm-main-bottom3 .project-experience .zoo-items .zoo-item:last-child").height();
m[4]=jQuery(".tm-main-bottom4 .bottom41 .zoo-item-list > li:first-child").height();
m[5]=jQuery(".tm-main-bottom4 .bottom41 .zoo-item-list > li:last-child").height();
m[6]=jQuery(".tm-main-bottom4 .bottom42 .zoo-item-list > li:first-child").height();
m[7]=jQuery(".tm-main-bottom4 .bottom42 .zoo-item-list > li:last-child").height();
var helement=Math.max.apply({},m);
jQuery(".tm-main-bottom3 .uk-panel-box .zoo-item-list > li:first-child").height(helement);
jQuery(".tm-main-bottom3 .uk-panel-box .zoo-item-list > li:last-child").height(helement);
jQuery(".tm-main-bottom3 .project-experience .zoo-items .zoo-item:first-child").height(helement);
jQuery(".tm-main-bottom3 .project-experience .zoo-items .zoo-item:last-child").height(helement);
jQuery(".tm-main-bottom4 .bottom41 .zoo-item-list > li:first-child").height(helement);
jQuery(".tm-main-bottom4 .bottom41 .zoo-item-list > li:last-child").height(helement);
jQuery(".tm-main-bottom4 .bottom42 .zoo-item-list > li:first-child").height(helement);
jQuery(".tm-main-bottom4 .bottom42 .zoo-item-list > li:last-child").height(helement);
});
/*jQuery(window).on("scroll", function() {
if (jQuery(this).scrollTop() > 100)
jQuery('.tm-totop-scroller').css('display', 'block');
else
jQuery('.tm-totop-scroller').css('display', 'none');
});*/
jQuery(document).ready(function(){
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() > 100) {
jQuery('.tm-totop-scroller').fadeIn();
} else {
jQuery('.tm-totop-scroller').fadeOut();
}
});
jQuery('.tm-totop-scroller').click(function () {
jQuery('body,html').animate({
scrollTop: 0
}, 400);
return false;
});
});
jQuery(document).ready(function(){
jQuery('li.caption a').dblclick(function (event) {
event.preventDefault();
alert("111");
});
});