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
window.onload = boxer; | |
window.onresize = boxer; | |
function boxer(){ | |
var cols = document.getElementsByClassName('col'); | |
for (var i = 0; i < cols.length; i++){ | |
var style = window.getComputedStyle(cols[i], null).getPropertyValue('width'); | |
cols[i].style.height=style; | |
} |
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
$('#submit').click(function(){ | |
var emailAddress = $('#email').val(); | |
var NewSignUp = Parse.Object.extend("NewSignUp"); | |
var newSignUp = new NewSignUp(); | |
newSignUp.save({email: emailAddress}).then(function(success) { | |
if(success){ | |
$('#signup').addClass('done'); | |
$('#form-success').addClass('show'); | |
} else { | |
$('#signup').addClass('done'); |
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
<?php $the_query = new WP_Query('showposts=3'); ?> | |
<?php if ( $the_query->have_posts() ) : ?> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
<div class="recent-post-wrapper"> | |
<?php if (has_post_thumbnail()): ?> | |
<div class="recent-post-img"> | |
<?php the_post_thumbnail('', array('class' => 'img-responsive')); ?> | |
</div> | |
<div class="recent-post-copy"> | |
<h4><?php the_title(); ?></h4> |
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 headline = $("#headline"); | |
var copy = ['Entrepreneurs', 'Innovators', 'Industrialists', 'Disruptors']; | |
var position = -1; | |
!function loop() { | |
position = (position + 1) % copy.length; | |
headline.html(copy[position]) | |
.fadeIn(1000) | |
.delay(3000) |
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
.carousel-fade .carousel-inner .item { | |
opacity: 0; | |
-webkit-transition-property: opacity; | |
-moz-transition-property: opacity; | |
-o-transition-property: opacity; | |
transition-property: opacity; | |
} | |
.carousel-fade .carousel-inner .active { | |
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
<section class="carousel"> | |
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> | |
<!-- Indicators --> | |
<?php $the_slides_query_ol = new WP_Query('post_type=slides&showposts=3'); ?> | |
<?php if ( $the_slides_query_ol->have_posts() ) : ?> | |
<ol class="carousel-indicators"> | |
<?php while ( $the_slides_query_ol->have_posts() ) : $the_slides_query_ol->the_post(); ?> | |
<li data-target="#slide-<?php the_id(); ?>" data-slide-to="<?php echo $the_slides_query_ol->current_post ?>" class="<?php if( $the_slides_query_ol->current_post == 0 ) echo 'active' ?>"></li> | |
<?php wp_reset_postdata(); ?> |
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 quotes() { | |
blockquotes = document.getElementsByTagName('blockquote'); | |
if (blockquotes) { | |
for (var i = 0; i < blockquotes.length; i++){ | |
var blockquote = blockquotes[i]; | |
var currentId = 'block-' + i; | |
blockquote.id = currentId; | |
paragraphs = blockquote.getElementsByTagName('p'); | |
if ( 1 < paragraphs.length ){ | |
var citation = document.getElementById(currentId); |
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
destroyMembersSubjectLine: function(data, cb){ | |
console.log('destroy members'); | |
// Get Addresses from Body | |
var destroyText = data.bodyText; | |
var bodyAddresses = []; | |
parser.addRule(/([A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]+)/gi, function(tag) { | |
var cleanTag = tag; |
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
/Users/jordancauley/projects/group/api/controllers/MainController.js:9 | |
exec("git reset --hard HEAD && git pull origin | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
SyntaxError: Unexpected token ILLEGAL | |
at Module._compile (module.js:439:25) | |
at Object.Module._extensions..js (module.js:474:10) | |
at Module.load (module.js:356:32) | |
at Function.Module._load (module.js:312:12) | |
at Module.require (module.js:364:17) | |
at require (module.js:380:17) |
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
/** | |
* MailController.js | |
* | |
* @description :: | |
* @docs :: http://sailsjs.org/#!documentation/controllers | |
*/ | |
var async = require('async'); | |
var nodemailer = require('nodemailer'); | |
var smtpTransport = nodemailer.createTransport("SMTP",{ | |
service: "Mandrill", |