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
### Keybase proof | |
I hereby claim: | |
* I am msanigar on github. | |
* I am dyze (https://keybase.io/dyze) on keybase. | |
* I have a public key ASB3WV6TYtvAmYnHV2fF0pfTPpe7wv9Eb_qajerWORXPogo | |
To claim this, I am signing this object: |
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
// general + hud | |
mat_monitorgamma_tv_enabled 1 | |
sensitivity 1.8 | |
zoom_sensitivity_ratio 1.0 | |
mat_monitorgamma 2 | |
hud_scaling "0.75" |
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 shutUp(name) { | |
var i=1; | |
setInterval(function(){ | |
console.log("%cHow about you stfu, " + name, "color: red; font-family: sans-serif; font-size: 4.5em; font-weight: bolder; text-shadow: #000 1px 1px;" + (i++)); | |
}, 100); | |
} |
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 _btn = document.getElementsByClassName("buy"), | |
_basketItems = document.getElementById("basketItems"), | |
_basketArr = []; | |
if(_basketItems !== null) { | |
_basketItems.addEventListener("click", getBtn); | |
} | |
for (var i=0; i<_btn.length; i++) { | |
_btn[i].addEventListener("click", btnClicked); |
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
/* | |
* app -> site basket item validation | |
* alert user if sku's missing, presumed out of stock | |
/ | |
/* | |
* example of multi with missing sku: ?log=22&ex=co_wizr-shopcart&mode=addmul¶m1=bulk&qtylist=2&itemlist=azz1368510520&qtylist=1&itemlist=azz2199912835&itemlist=azz111111&itemlist=azz111112 | |
* example of single sku ?log=22&ex=co_wizr-shopcart&mode=addmul¶m1=bulk&qtylist=2&itemlist=azz1368510520&qtylist=1&itemlist=azz2199912835 | |
* example of multi sku ?log=22&ex=co_wizr-shopcart&mode=addmul¶m1=bulk&qtylist=1&itemlist=azz1368510520& | |
*/ |
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 _hideStr = ["Shirts", "Jeans", "Shoes"]; | |
$.map(_hideStr, function( val, i ) { | |
$("#mm_ul .js-mm-sub li a:contains(" + val + ")" ).css( "display", "none" ); | |
}); |
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
/* | |
* size prefs up-front filter | |
*/ | |
/* | |
* test current category to establish gender, prevent test running on excluded categories | |
*/ | |
var testString = '|' + $( '#js-cattree' ).text() + '|', | |
maleTerms = /\|mens clothing\|/i, | |
femaleTerms = /\|clothing\|/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
/* | |
* mix and match js | |
*/ | |
$( document ).ready(function() { | |
/* | |
* these need to be accessible outside of the 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
/* | |
* quickbuy js - enable users to fire lightbox from category and add to basket without entering product detail page | |
*/ | |
jQuery(document).ready(function() { | |
function checkWidth() { | |
var windowSize = $(window).width(); | |
if (windowSize >= 960) { |
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
/* | |
* bottom strip promotion | |
*/ | |
jQuery(document).ready(function() { | |
( function( $, window, undefined ){ | |
var didScroll = false, | |
uped = false, |
NewerOlder