UP TO 55% OFF SELECT BUCK KNIVES Details
UP TO 55% OFF SELECT BUCK KNIVES Details
Advanced Search Options
Country of Origin:
More Options:
Designers:
Blade Steel:
Lock Type:
Blade Style:
Blade Length:
1 result
ry is blackl!]x*x* = blacklist.length; i < o; i++ ) { if ( countryName.toLowerCase() == blacklist[i].toLowerCase() ) isBlacklisted = true; } countryObj = { countryName: countryName, countryCode: countryCode, blacklisted: isBlacklisted }; $('.freeshipping.hidden-phone').html(template(countryObj)); $('.mobile-shipping-info').html(template(countryObj)); } }); Handlebars.registerHelper('bold', function (options) { return new Handlebars.SafeString( '' + options.fn(this) + ''); }); Handlebars.registerHelper('capitalize', function (str) { str = str.toLowerCase().split(' '); // will split the string delimited by space into an array of words for ( var i = 0; i < str.length; i++ ) { // str.length holds the number of occurrences of the array... str[i] = str[i].split(''); // splits the array occurrence into an array of letters str[i][0] = str[i][0].toUpperCase(); // converts the first occurrence of the array to uppercase str[i] = str[i].join(''); // converts the array of letters back into a word. } return str.join(' '); }); Handlebars.registerHelper('uppercase', function (str) { return str.toUpperCase(); });