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
@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
(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
'use strict'; | |
module.exports = { | |
dev: { | |
bsFiles: { | |
src : [ | |
'<%= paths.dist %>/css/*.css', | |
'<%= paths.dist %>/js/*.js', | |
'<%= paths.dist %>/images/**/*.svg', |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<security> | |
<authorization> | |
<remove users="*" roles="" verbs="" /> | |
<add accessType="Allow" roles="Administrators" /> | |
</authorization> | |
</security> | |
</system.webServer> |
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
// Fix old LESS syntax in Bootstrap 2. | |
#grid { | |
.core { | |
.span (@columns) { | |
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)); | |
} | |
} | |
} |
OlderNewer