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
require.config({ | |
paths: { | |
'jQuery': '../vendors/jquery/jquery-1.11.0.min', | |
'carousel': '../vendors/bootstrap/js/carousel', | |
'transition': '../vendors/bootstrap/js/transition', | |
'swipe': '../vendors/jquery-swipe/jquery.touchSwipe.min', | |
'select' : '../vendors/select-0.5.0/select.min' | |
}, | |
shim: { | |
'jQuery': { |
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
alias preprod='sshpass -p 'pwd' ssh user@host -t "cd /var/www/preprod; bash"' |
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
/* click event & slide */ | |
/* http://alex-d.fr/blog/ordre-des-evenements-javascript-click-touch-focus-et-confreres */ | |
var click = false; | |
$('#menu li a').click( function() { | |
click = true; | |
var openMe = $(this).next(); | |
var mySiblings = $(this).parent().siblings().find('ul'); | |
if (openMe.is(':visible')) { |
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
/* | |
* Less | |
*/ | |
// without JS I display each carousel item | |
.carousel-inner > .item { display: block; } | |
// if JS is actived then hide other items | |
.js .carousel-inner > .item { | |
display: none; |
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
http://codepen.io/gaetanark/pen/cwxoG |
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
body:before { | |
content: "000"; | |
position: fixed; | |
bottom: 0; | |
background-color: #333; | |
padding: .5em; | |
color: #fff; | |
opacity: .3; | |
z-index: 100000; | |
} |
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 | |
if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) | |
header('X-UA-Compatible: IE=edge,chrome=1'); | |
?> |
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
/* ======================================================================== | |
* Bootstrap: carousel.js v3.0.0 | |
* http://twbs.github.com/bootstrap/javascript.html#carousel | |
* ======================================================================== | |
* Copyright 2012 Twitter, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
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
/** | |
* SVG not supported ? png fallback | |
*/ | |
if (!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1")) { | |
$('img[src*="svg"]').attr('src', function() { | |
return $(this).attr('src').replace('.svg', '.png'); | |
}); | |
} |