Skip to content

Instantly share code, notes, and snippets.

View roseg43's full-sized avatar

Gabriel Rose roseg43

View GitHub Profile
@roseg43
roseg43 / navimate.js
Created December 2, 2014 13:15
Animated nav for single-page navigations
$(function() {
var $navItems = $('li');
var $offsets = new Array();
var $widths = new Array();
var $activeOffset,
$activeWidth,
newPos;
$navItems.each(function() {
@roseg43
roseg43 / slicky.js
Created September 3, 2014 22:04
Basic slider designed to be integrated with WordPress Visual Composer.
/**
* @author Gabe Rose (gabe.s.rose@gmail.com)
* Plugin Description:
* This is a simple slider plugin designed to be used in WordPress Visual Composer to make easily customizable sliders.
* @TODO: Reduce specifity so it can actually be used separate builds.
*/
var index = 1,
maxIndex = 3,
newIndex,
<?php
/* When a form is submitted, create two custom posts */
function after_gform_submit($entry, $form) {
$isInteraction = false;
$interaction_type_id;
$supporter_email_id;
foreach($form["fields"] as $field) {
if ( $field["label"] == "Interaction Type" ) {
jQuery(function($) {
var page = 1,
loading = true,
$window = $(window),
$content = $('body.page-template-page-browse-php #content');
var load_posts = function() {
console.log('load_posts():: INIT');
$.ajax({
type : "GET",