This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======= Ajax - Magnific Popap ======= | |
$('.simple-ajax-popup').magnificPopup({ | |
type: 'ajax', | |
tLoading: '<img src="/components/com_jshopping/images/cartajax-loading.gif" />', | |
closeOnContentClick: false, | |
showCloseBtn: false | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======= Animate Anchor ======= | |
$(".arrow-go-down").click(function() { | |
$("html, body").animate({ | |
scrollTop: $($(this).attr("href")).offset().top + "px" | |
}, { | |
duration: 500 | |
}); | |
return false; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======= Scroll Spy Menu ======= | |
var lastId, | |
topMenu = jQuery("#main-menu"), | |
topMenuHeight = topMenu.outerHeight(), | |
menuItems = topMenu.find("a"), | |
scrollItems = menuItems.map(function() { | |
var item = jQuery(jQuery(this).attr("href")); | |
if (item.length) { | |
return item; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======= Enquire JS ======= | |
enquire.register("screen and (max-width:1170px)", { | |
match: function() { | |
$('.menu-nav-wrapper').dropdownMenu(); | |
}, | |
unmatch: function() { | |
$('.menu-nav-wrapper').dropdownMenu({ | |
destroy: true | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======= Одинаковая высота колонок ======= | |
var max_col_height = 0; | |
$('.list_product .block_product').each(function() { | |
if ($(this).height() > max_col_height) { | |
max_col_height = $(this).height(); | |
} | |
}); | |
$('.list_product .block_product').height(max_col_height); | |
// Close Alert |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################## Адаптивное видео Youtube | |
.myvideo { | |
position:relative; | |
padding-bottom:56.25%; | |
padding-top:30px; | |
height:0; | |
overflow:hidden; | |
border:1px solid #ccc; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Условие - на главной или нет | |
if (JURI::current() == JURI::base()) {echo "делать то то на главной"}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //вывод позиции модулей | |
$document = JFactory::getDocument(); | |
$renderer = $document->loadRenderer('modules'); | |
$options = array('style' => 'xhtml'); | |
$position = 'user1'; | |
echo $renderer->render($position, $options, null); | |
?> | |
<!-- или --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (-ms-high-contrast: active), | |
(-ms-high-contrast: none) { | |
#page { | |
display: block; | |
} | |
.item-title { | |
font-size: 24px; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======= Input Field Mask ======= | |
$(".telMask").inputMask("+7 (999) 999-99-99"); |