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
/** | |
* Insert @ into blank email inputs on focus if empty. | |
*/ | |
$('input[type="email"]').focus(function() { | |
var input = $(this); | |
if (!input.val()) { | |
input.val('@'); | |
} | |
}).blur(function() { | |
var input = $(this); |
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
/** | |
* Initialize and render customized Google map. | |
*/ | |
'use strict'; | |
var mapRendered = false; | |
function Map() {} |
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
'use strict'; | |
module.exports = function (grunt) { | |
var options = { | |
pkg: grunt.file.readJSON('package.json'), | |
paths: { | |
src: 'assets', | |
dist: 'www', |
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
# ------------------------------------------------------------------------------ | |
# | Better website experience | | |
# ------------------------------------------------------------------------------ | |
# Force Internet Explorer to render pages in the highest available | |
# mode in the various cases when it may not. | |
# https://hsivonen.fi/doctype/#ie8 |
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
// Scrolling | |
function scrollToElement(element, offset) { | |
var offsetTop = $(element).offset().top; | |
if (arguments.length === 2) { | |
offsetTop += offset; | |
} | |
$('html, body').animate({ scrollTop: offsetTop }, 500); | |
} | |
// Scroll to content |
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
# http://editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
indent_style = space |
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
@media (min-resolution: 144dpi), (-webkit-min-device-pixel-ratio: 1.5) { | |
} |
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
'use strict'; | |
module.exports = { | |
options: { | |
browsers: [ | |
'Android 2.3', | |
'Android >= 4', | |
'Chrome >= 20', | |
'Firefox >= 24', // Firefox 24 is the latest ESR |
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 ($) { | |
$(document).ready(function(){ | |
// Your code goes here! | |
}); | |
}(jQuery)); |
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
/* | |
* Replaces SVG images in img elements with PNG alternative | |
* | |
* The PNG file must have the same URL as the SVG file, up to the extension. | |
*/ | |
$(function () { | |
'use strict'; | |
function supportsSvg() { |
OlderNewer