This file contains 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
// Button go Top | |
$(window).on('scroll' ,function (event) { | |
var el = $(".region-footer"); | |
var elTop = el.offset().top; | |
var windowTop = $(window).scrollTop(); | |
var windowHeight = $(window).height(); | |
var windowBottom = windowTop + windowHeight; | |
var elVisible = windowBottom - elTop; |
This file contains 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
@mixin rtl() { | |
html[dir=rtl] & { | |
@content; | |
} | |
} | |
// float element right in rtl | |
@mixin float-columns-right($class, $i: 1, $list: ".col-#{$class}-#{$i}") { | |
@for $i from (1 + 1) through $grid-columns { | |
$list: "#{$list}, .col-#{$class}-#{$i}"; |
This file contains 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
// desactivate call option in non mobile device | |
$(document).on('click', '[href^="tel:"]', function(e){ | |
if( !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { | |
e.preventDefault(); | |
e.stopPropagation(); | |
} | |
}); |
This file contains 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
$(window).scroll(function () { | |
if ($(this).scrollTop() > 200) { | |
$('.go-top').fadeIn(200); | |
} else { | |
$('.go-top').fadeOut(200); | |
} | |
}); |
This file contains 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 the scroll to top. | |
$('.go-top').click(function (event) { | |
event.preventDefault(); | |
$('html, body').animate({scrollTop: 0}, 300); | |
}) |
This file contains 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
IE6 Only | |
================== | |
_selector {...} | |
IE6 & IE7 | |
================== | |
*html or { _property: } | |
IE7 Only | |
================== |
This file contains 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
fixColHeight = function () { | |
if ($('.page-search.page-search-node').length) { | |
var $container = $(".node-search-results"); | |
var $cols = $container.find(".row > div").detach(); | |
$container.empty(); | |
for(var i = 0; i < $cols.length; i++) { | |
if (i % 3 == 0) { | |
$container.append($("<div>").addClass("row")); | |
} | |
$container.find(".row").last().append($cols.eq(i)); |
This file contains 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
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |
This file contains 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
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |
This file contains 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
(function($){ | |
"use strict"; | |
if ( /^((?!chrome|android).)*safari/i.test(navigator.userAgent)) { | |
$("html").addClass("safari-detected"); | |
} | |
})(jQuery); |
OlderNewer