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
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
type = cat-file -t | |
dump = cat-file -p |
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 setEvListeners(navTitles){ | |
for (var i = 0; i < navTitles.length; i++){ | |
navTitles.eq(i).click(setTo(i)); | |
} | |
} | |
function setTo(i){ | |
return function(){ | |
scrollTo($('main.desktop-main .simple-title').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
{ | |
"name": "testmock", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build": "webpack-dev-server" | |
}, | |
"author": "", |
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 isNumeric(n) { | |
return !isNaN(parseFloat(n)) && isFinite(n); | |
} |
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
// HIDDEN INFO ICON SLIDE DOWN | |
$(window).click(function(){ | |
$('.subtask-wrapper .module-header > .hidden-info').slideUp(); | |
}); | |
$(document).delegate('.subtask-wrapper .module-header > .icon', "click", function(e){ | |
e.stopImmediatePropagation(); | |
$(this).siblings('.hidden-info').slideToggle(); | |
}); |
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
var renderModule = (function() { | |
return { | |
addToCart: function(cartArray, id, productArray, cartBadge){ | |
cartArray.push(productArray[id]); | |
productArray[id].isFavorite = false; | |
this.refreshCart(cartBadge, cartArray); | |
}, | |
deleteFromCart: function(cartArray, id, idx, productArray, cartBadge){ | |
console.log(productArray); |
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 scrollTo(el) { | |
$('.hamburger').removeClass('is-active'); | |
$('.hidden-mobile-nav').slideUp(); | |
$('body').css({ | |
'overflow': 'auto', | |
}); | |
document.ontouchmove = function(e){ return true; }; | |
$('html, body').animate({ | |
scrollTop: el.offset().top - 50 | |
}, 400); |
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
$('.rating-block .item').click(function(){ | |
$(this).toggleClass('selected').siblings('.item').removeClass('selected'); | |
}); |
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
// HAMBURGER | |
$('.hamburger').click(function(){ | |
$(this).toggleClass('is-active'); | |
$('.hidden-mobile-nav').slideToggle(); | |
document.ontouchmove = function(event){ | |
event.preventDefault(); | |
} | |
if($(this).hasClass('is-active')) { | |
$('body').css({ | |
'overflow': 'hidden', |