Код: Выделить всё
<!-- JS Plugins Init. -->
<script>
$(document).on('ready', function () {
// Header
$.HSCore.components.HSHeader.init($('#js-header'));
$.HSCore.helpers.HSHamburgers.init('.hamburger');
// Initialization of HSMegaMenu plugin
$('.js-mega-menu').HSMegaMenu({
event: 'hover',
pageContainer: $('.container'),
breakpoint: 991
});
// Init popups with media
$.HSCore.components.HSPopup.init('.js-fancybox');
$.HSCore.components.HSPopup.init('.js-fancybox-media', {
helpers: {
media: {},
overlay: {
css: {
'background': 'rgba(255, 255, 255, .8)'
}
}
}
});
// Slick Carousel
$.HSCore.components.HSCarousel.init('.js-carousel');
// initialization of text animation (typing)
$(".u-text-animation.u-text-animation--typing").typed({
strings: ["an awesome template", "perfect template", "just like a boss"],
typeSpeed: 60,
loop: true,
backDelay: 1500,
});
// Parallax
dzsas_init('#as0', {
settings_mode: 'onlyoneitem',
design_arrowsize: '0',
settings_swipe: 'on',
settings_swipeOnDesktopsToo: 'on',
settings_slideshow: 'on',
settings_slideshowTime: '300',
settings_autoHeight: 'off',
settings_transition: 'fade',
settings_centeritems: false
});
});
</script>
Но конкретные блоки из этого нужны только если в виде он используется. Например на некоторой странице это блок:
Код: Выделить всё
// initialization of text animation (typing)
$(".u-text-animation.u-text-animation--typing").typed({
strings: ["an awesome template", "perfect template", "just like a boss"],
typeSpeed: 60,
loop: true,
backDelay: 1500,
});
Код: Выделить всё
<!-- JS Plugins Init. -->
<script>
$(document).on('ready', function () {
// initialization of text animation (typing)
$(".u-text-animation.u-text-animation--typing").typed({
strings: ["an awesome template", "perfect template", "just like a boss"],
typeSpeed: 60,
loop: true,
backDelay: 1500,
});
});
</script>