This file contains hidden or 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
| jQuery.validator.addMethod( 'passwordMatch', function(value, element) { | |
| // The two password inputs | |
| var password = $("#register-password").val(); | |
| var confirmPassword = $("#register-pass-confirm").val(); | |
| // Check for equality with the password inputs | |
| if (password != confirmPassword ) { | |
| return false; | |
| } else { |
This file contains hidden or 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
| // Disable Hover on Scroll Class | |
| // Add these helpers to your utlity.css | |
| // http://www.thecssninja.com/javascript/pointer-events-60fps | |
| .disable-hover, | |
| .disable-hover * { | |
| pointer-events: none !important; | |
| } | |
| // ---------------------------------------------------------------------- |
This file contains hidden or 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
| // ---------------------------------------------------------------------- | |
| // =Fancybox | |
| // ---------------------------------------------------------------------- | |
| $('.fancybox').fancybox({ | |
| // Options | |
| padding : 6, | |
| openEffect : 'elastic', // elastic, fade | |
| closeEffect : 'elastic', // elastic, fade | |
| openSpeed : 325, // default 250 |
This file contains hidden or 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
| // https://github.com/gruntjs/grunt-contrib-compass | |
| compass: { | |
| dist: { | |
| options: { | |
| httpPath: '/', | |
| httpImagesPath: 'httpPath + "/" + imagesDir', | |
| cssDir: 'app/webroot/css', | |
| sassDir: 'app/webroot/scss', | |
| javascriptsDir: 'app/webroot/js', | |
| imagesDir: 'app/webroot/img', |
This file contains hidden or 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
| sudo vim /etc/init/httpd-start.conf | |
| description "start httpd service after shared folder is mounted" | |
| start on vagrant-mounted | |
| #restart if die | |
| respawn | |
| #creates child processes | |
| expect fork |
This file contains hidden or 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
| .q-as > li { | |
| opacity: 0; | |
| $delay: 0ms; | |
| @for $i from 1 through 4 { | |
| $delay: $delay + 40; | |
| &:nth-child(#{$i}) { @include transition-delay($delay); } | |
| } | |
| .visible & { opacity: 1; } |
This file contains hidden or 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() { | |
| var Person = { | |
| init: function() { | |
| this.form = $('#form'); | |
| this.bindEvents(); | |
| }, | |
| bindEvents: function() { |
This file contains hidden or 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
| if('classList' in document.createElement('p')) { | |
| console.log('classlist supported'); | |
| } else { | |
| console.log('classlist not supported'); | |
| } |
This file contains hidden or 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
| /** | |
| * @about | |
| * Binding arguments to a function passed through | |
| * an event listener as a named function. | |
| * | |
| * @reference | |
| * http://jsfiddle.net/toddmotto/D3tgu | |
| */ | |
This file contains hidden or 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
| @import "suitcss-base"; | |
| @import "suitcss-utils-align"; | |
| @import "suitcss-utils-display"; | |
| @import "suitcss-utils-layout"; | |
| @import "suitcss-utils-link"; | |
| @import "suitcss-utils-offset"; | |
| @import "suitcss-utils-position"; | |
| @import "suitcss-utils-size"; | |
| @import "suitcss-utils-text"; |