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 win = $(window); | |
var allMods = $(".box_blog_post"); | |
win.scroll(function(event) { | |
allMods.each(function(i, el) { | |
if (el.visible(true)) { | |
el.addClass("visible"); | |
} | |
}); | |
}); |
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
<input type="text" title="email" required pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}" /> |
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
$(".real-content") | |
.find (':contains("@")') | |
.each (function (index, element) { | |
var emailPattern = /[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}/; | |
var corrected = $(element).html(); | |
var remainder = corrected; | |
while ( emailPattern.test (remainder)) { | |
var email = emailPattern.exec (remainder); | |
remainder = remainder.replace (email, ''); | |
corrected = corrected.replace (email, '<a href="mailto:' + email + '">' + email + '</a>'); |
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
// (¯`·.¸¸.·´¯`·.¸¸.-> COLORS <-.¸¸.·´¯`·.¸¸.·´¯) | |
@naranjo: #ff9100; | |
@sandia: #f34b4b; | |
@azul: #2d3c7b; | |
// ¸,ø¤º°`°º¤ø,¸¸,ø¤º° JUST FOR DEBUGGING | |
.out(@color:red){outline:1px solid @color;} | |
// (¯`·.¸¸.·´¯`·.¸¸.-> MIXINS <-.¸¸.·´¯`·.¸¸.·´¯) |
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 characterCountdown() { | |
var characterLeft = 140 - jQuery('textarea').val().length; | |
jQuery('.message').text(characterLeft + ' characters left.'); | |
} | |
$(function() { | |
characterCountdown(); | |
$('textarea').change(characterCountdown); | |
$('textarea').keyup(characterCountdown); | |
}); |
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: | |
.triangle(direction,width,height,color); | |
Example: | |
@square: 50px; | |
@color: red; | |
.triangle(bottomright,@square,@square/2,@color); | |
*/ |
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($) { | |
var imgList = []; | |
$.extend({ | |
preload: function(imgArr, option) { | |
var setting = $.extend({ | |
init: function(loaded, total) {}, | |
loaded: function(img, loaded, total) {}, | |
loaded_all: function(loaded, total) {} | |
}, option); | |
var total = imgArr.length; |
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
selector:nth-child(4) { | |
property: 4px; | |
} | |
selector:nth-child(3) { | |
property: 3px; | |
} | |
selector:nth-child(2) { | |
property: 2px; | |
} | |
selector:nth-child(1) { |
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
font-family: Arial, Helvetica, sans-serif; | |
font-family: 'Arial Black', Gadget, sans-serif; | |
font-family: 'Bookman Old Style', serif; | |
font-family: 'Comic Sans MS', cursive; | |
font-family: Courier, monospace; | |
font-family: 'Courier New', Courier, monospace; | |
font-family: Garamond, serif; | |
font-family: Georgia, serif; | |
font-family: Impact, Charcoal, sans-serif; | |
font-family: 'Lucida Console', Monaco, monospace; |
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 gulp = require('gulp'); | |
var less = require('gulp-less'); | |
var uglify = require('gulp-uglify'); | |
var watch = require('gulp-watch'); | |
var imagemin = require('gulp-imagemin'); | |
var EXPRESS_PORT = 4000; | |
var EXPRESS_ROOT = __dirname; | |
var LIVERELOAD_PORT = 35729; | |