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
| driverInputs.each(function(i){ | |
| var data = $(this).getParams(); | |
| app.data.drivers.push(data); | |
| if(!app.saved['drivers']){ | |
| app.saved['drivers'] = []; | |
| } | |
| var newCopy = app.model.driver.slice(0); | |
| console.log(newCopy); |
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($, Cookies, undefined){ | |
| var dateObj = new Date(), | |
| month = dateObj.getUTCMonth() + 1, | |
| day = dateObj.getUTCDate(), | |
| year = dateObj.getUTCFullYear(), | |
| currentDate = year + "" + month + "" + day, | |
| currentSession = {}, | |
| trimData = {}, | |
| visits = localStorage.getItem("foVisit"); |
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 | |
| /* | |
| Plugin Name: MINC | |
| */ | |
| require_once('lib/CMB2/init.php'); | |
| class MINC_Fields { | |
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
| var request = $.ajax({ | |
| url: cardinal.apiURL + cardinal.namespace + '/campaign/', | |
| cache: false, | |
| crossDomain: true, | |
| method: "GET", | |
| dataType: "json" | |
| }); | |
| request.done(function( response ) { | |
| cardinal.data = response; |
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
| unpack_form($post_id){ | |
| $data = get_field('membership_registration_form', $post_id); | |
| print_r('<pre>'); | |
| print_r($data); | |
| print_r('<pre>'); | |
| } | |
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 is_even($number) { | |
| $isEven = false; | |
| if (is_numeric ($number)) { | |
| if ( $number % 2 == 0) $isEven = true; | |
| } | |
| return $isEven; | |
| } |
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 admin_scripts($hook) { | |
| if ( 'post.php' != $hook ) { | |
| return; | |
| } | |
| wp_enqueue_style('os/admin_style', get_template_directory_uri() . '/assets/admin/main.css', false, null); | |
| wp_enqueue_script( 'os/admin_script', get_template_directory_uri() . '/assets/admin/main.js'); | |
| } | |
| add_action( 'admin_enqueue_scripts', 'admin_scripts'); |
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 | |
| namespace Roots\Sage\Assets; | |
| /** | |
| * Scripts and stylesheets | |
| * | |
| * Enqueue stylesheets in the following order: | |
| * 1. /theme/dist/styles/main.css | |
| * |
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 ($, undefined) { | |
| $.fn.gfSelect = function () { | |
| var Selects = this; | |
| Selects.each(function(i){ | |
| var GFSelect = $(this), | |
| btnHtml = '<div class="btn-group">'; | |
| btnHtml += '<button type="button" class="btn btn-default btn-gf-select dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Select One <span class="caret"></span></button>'; | |
| btnHtml += '<ul class="dropdown-menu">'; | |
| $(this).find('option').each(function(j){ |
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 ($, undefined) { | |
| $.fn.matchBox = function () { | |
| var Boxes = this, | |
| tallest = 0, | |
| height; | |
| Boxes.each(function(i){ | |
| height = $(this).height(); | |
| if(height > tallest){ | |
| tallest = height; | |
| } |