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
html.locked { | |
overflow:visible!important; | |
body { | |
overflow:hidden!important; | |
} | |
} |
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
<div class="noe-cutted-text-wrapper"> | |
<div class="noe-cutted-text-short"> | |
Mon text d'introduction qui donne envi d'en savoir plus | |
</div> | |
<a class="noe-cutted-text-readmore">En savoie +</a> | |
<div class="noe-cutted-text-more"> | |
Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années 1500, quand un peintre anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen de polices de texte. Il n'a pas fait que survivre cinq siècles, mais s'est aussi adapté à la bureautique informatique, sans que son contenu n'en soit modifié. Il a été popularisé dans les années 1960 grâce à la vente de feuilles Letraset contenant des passages du Lorem Ipsum, et, plus récemment, par son inclusion dans des applications de mise en page de texte, comme Aldus PageMaker. | |
</div> | |
</div> |
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
//you need to load | |
//http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenLite.min.js | |
//http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/CSSPlugin.min.js | |
if(window.TweenLite) { // smoother animation with TweenLite | |
$.fn.animate = function(params, duration, onComplete) { | |
if(onComplete) params.onComplete = onComplete; | |
TweenLite.to(this, duration/1000, params); | |
}; | |
} |
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($, $w){ | |
var timeout; | |
$w.on('resize', function() { | |
if(timeout) { clearTimeout(timeout); timeout = null; } | |
timeout = setTimeout(function() { $w.trigger('endresize');}, 200); | |
}); | |
})(jQuery, jQuery(window)); | |
//dispatch un event endresize à la fin du resize, plutot que une centaine d'event pendant que l'user resize : | |
$(window).on('endresize', function() { |
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
//si le browser ne supporte pas l'attribut placeholder, | |
//ce JS va charger un polyfill et l'appliquer sur tous les inputs de la page | |
//https://github.com/mathiasbynens/jquery-placeholder | |
yepnope({ | |
test:'placeholder' in document.createElement('input'), | |
nope: namespace.themeUrl+'/js/libs/jquery.placeholder.js', | |
callback: function(url, result, key) { | |
$.fn.placeholder && $('input').placeholder(); | |
} | |
}); |
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
<div id="wrapper"> | |
<div class="foo"> | |
<span class="bar"></span> | |
</div> | |
<div class="foo"> | |
<span class="bar"></span> | |
</div> | |
<div class="foo"> | |
<span class="bar"></span> | |
</div> |
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
<div id="map" style="width:300px;height:400px"> | |
</div> |