☐ item
✔ item done
☐ use 'use strict';
/* | |
* 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; |
/* 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')) { |
alias preprod='sshpass -p 'pwd' ssh user@host -t "cd /var/www/preprod; bash"' |
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': { |
var myModule = (function($, window) { | |
// private property | |
var myProp = "hello"; | |
// private methods | |
function myPrivateMethod() { | |
alert($('*').length); | |
}; | |
// public methods | |
return { | |
init: function() { |
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<div class="container"> | |
<h1> | |
Lorem ipsum | |
</h1> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Neque, suscipit velit nihil deleniti cumque reiciendis ea expedita commodi aut nemo assumenda asperiores harum dolorum ipsum at quidem ad iste fugiat. consectetur adipisicing elit. Neque, suscipit velit nihil deleniti cumque reiciendis ea expedita commodi aut nemo assumenda asperiores harum dolorum ipsum at quidem ad iste fugiat. </p> |
// | |
// .important touch/click event | |
// ========================================================================== | |
/** | |
* Event factory | |
*/ | |
var eventFactory = function($elt, callback) { | |
var flag = true; | |
var touchStartPos; |
#baseline.show-grid { | |
background: -webkit-linear-gradient(top,rgba(50,50,50, 0.2)0,rgba(50,50,50, 0.2)1px,rgba(255, 255, 255, 0)1px,rgba(255, 255, 255, 0)2px); | |
background: -webkit-gradient(linear,left top,left bottom,color-stop(0px,rgba(50,50,50,.2)),color-stop(1px,rgba(50,50,50,.2)),color-stop(1px,rgba(255,255,255,0)),color-stop(2px,rgba(255,255,255,0))); | |
background: linear-gradient(to bottom,rgba(50,50,50, 0.2)0,rgba(50,50,50, 0.2)1px,rgba(255, 255, 255, 0)1px,rgba(255, 255, 255, 0)2px); | |
background-size: 100% 1rem; | |
} |
drush vset cache 0 | |
drush vset preprocess_css 0 | |
drush vset preprocess_js 0 |