Нашлось некоторое решение:
в файле custom.js
jQuery('#ascensorBuilding').ascensor({direction:"x",time:1300,childType:"article",loop:false,overflow:'hidden'});
if (jQuery(window).width() > 1024) {
jQuery('#ascensorBuilding').stellar();
}
jQuery(window).load(function () {
"use strict";
if (jQuery(window).width() > 800) {
jQuery('body').find('header').stop().animate({
'marginTop': '0px'
}, 500);
setTimeout(function () {
jQuery('body').find('#main-menu ul').stop().animate({
'marginLeft': '0px'
}, 500);
jQuery('body').find('#sub-menu ul').stop().animate({
'marginLeft': '0px'
}, 900);
}, 500 );
}
var menuheight = jQuery('body').find('#main-menu').height();
if (jQuery(window).width() < 640) {
if (jQuery(window).height() > 320) {
jQuery('body').find('#sub-menu').css('top', menuheight + 90);
}
else {
jQuery('body').find('#sub-menu').css('top', menuheight + 50);
}
}
else
{
if (jQuery(window).height() > 320) {
jQuery('body').find('#sub-menu').css('top', menuheight);
}
else {
jQuery('body').find('#sub-menu').css('top', menuheight + 50);
}
}
});
jQuery(window).resize(function () {
"use strict";
var menuheight = jQuery('body').find('#main-menu').height();
if (jQuery(window).width() > 800) {
jQuery('body').find('header').css('margin-top', '0px');
jQuery('body').find('nav ul').css('margin-left', '0px');
jQuery('body').find('#main-menu').css('display', 'block');
jQuery('body').find('#sub-menu').css('display', 'block');
jQuery('body').find('#sub-menu').css('top', menuheight);
}
if (jQuery(window).width() < 640) {
jQuery('body').find('#main-menu').css('display', 'none');
jQuery('body').find('#sub-menu').css('display', 'none');
jQuery('body').find('#mobile-menu').removeClass('menu-close');
if (jQuery(window).height() > 320) {
jQuery('body').find('#sub-menu').css('top', menuheight + 90);
}
else {
jQuery('body').find('#sub-menu').css('top', menuheight + 50);
}
}
else
{
if (jQuery(window).height() > 320) {
jQuery('body').find('#sub-menu').css('top', menuheight);
}
else {
jQuery('body').find('#sub-menu').css('top', menuheight + 50);
}
jQuery('body').find('#main-menu').css('display', 'block');
jQuery('body').find('#sub-menu').css('display', 'block');
}
});
jQuery("body").find('#mobile-menu').on("click", function (e) {
"use strict";
e.preventDefault();
jQuery('body').find('#main-menu').toggle();
jQuery('body').find('#sub-menu').toggle();
jQuery('body').find('#mobile-menu').toggleClass('menu-close');
});
if (jQuery(window).width() < 640) {
jQuery("body").find('nav li a').on("click", function () {
"use strict";
jQuery('body').find('#main-menu').toggle();
jQuery('body').find('#sub-menu').toggle();
jQuery('body').find('#mobile-menu').toggleClass('menu-close');
});
}
/////////////////* ACCORDION */////////////////////////
jQuery(document).ready(function () {
"use strict";
jQuery('.accordion-header').toggleClass('inactive-header');
jQuery('.accordion-content').css({ 'width': '100%' });
jQuery('.accordion-header').click(function () {
if (jQuery(this).is('.inactive-header')) {
jQuery('.active-header').toggleClass('active-header').toggleClass('inactive-header').next().slideToggle().toggleClass('open-content');
jQuery(this).toggleClass('active-header').toggleClass('inactive-header');
jQuery(this).next().slideToggle().toggleClass('open-content');
}
else {
jQuery(this).toggleClass('active-header').toggleClass('inactive-header');
jQuery(this).next().slideToggle().toggleClass('open-content');
}
});
return false;
});
jQuery('body').find('iframe').wrap('<div class="flex-video"></div>');
jQuery('body').find('.hasTooltip').removeClass('hasTooltip');
первая строка:
jQuery('#ascensorBuilding').ascensor({direction:"x",time:1300,childType:"article",loop:false,overflow:'hidden'});
была заменена на:
if(window.location.hash=="#foto") {jQuery('#ascensorBuilding').ascensor({windowsOn: 1,direction:"x",time:1300,childType:"article",loop:false,overflow:'hidden'});}
else {jQuery('#ascensorBuilding').ascensor({direction:"x",time:1300,childType:"article",loop:false,overflow:'hidden'});}
Проблема в том, что всё хорошо работает как надо на локалке, а вот на хостинге не срабатывает. Странно, но не могу понять что может мешать работе скрипта. Может ли быть проблема в самом хосте??