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
| // Use absolute URLs to navigate to anything not in your Router. | |
| // Only need this for pushState enabled browsers | |
| if (Backbone.history && Backbone.history._hasPushState) { | |
| // Use delegation to avoid initial DOM selection and allow all matching elements to bubble | |
| $(document).delegate("a", "click", function(evt) { | |
| // Get the anchor href and protcol | |
| var href = $(this).attr("href"); | |
| var protocol = this.protocol + "//"; |
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 | |
| /** | |
| * Is Ajax | |
| * | |
| * Returns true or false depending on if the http request was an ajax one or not. | |
| * | |
| * @return boolean | |
| */ | |
| if(!function_exists('is_ajax')){ |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * Is Ajax Class | |
| * | |
| * @package ExpressionEngine | |
| * @category Plugin | |
| * @author Abban Dunne | |
| * @copyright Copyright (c) 2012, Webtogether | |
| * @license MIT |
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
| - (void)secondPan:(UIPanGestureRecognizer *)gesture | |
| { | |
| if ((gesture.state == UIGestureRecognizerStateChanged) || | |
| (gesture.state == UIGestureRecognizerStateEnded)){ | |
| CGPoint location = [gesture locationInView:gesture.view.superview]; | |
| int topBound = gesture.view.bounds.size.height / 2.0f; | |
| float bottomBound = gesture.view.superview.bounds.size.height - topBound; | |
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
| <p>A clean responsive grid system with a typographic baseline powered by LESS/SCSS.</p> | |
| <ul> | |
| <li><strong>Clean Markup:</strong> All grid styles are applied in your CSS leaving your markup nice, clean and shiny.</li> | |
| <li><strong>CSS Normalize:</strong> No CSS reset is used, instead elements are normalised for browser consistency.</li> | |
| <li><strong>Responsive Images:</strong> Uses the power of jQuery Picture to add responsitivity to all your images.</li> | |
| <li><strong>Nested Columns:</strong> Column widths can be customised allowing for easy grid nesting and customisation.</li> | |
| <li><strong>Baseline Grid:</strong> A baseline grid is integrated into css normalize adding consistency to your typography.</li> | |
| <li><strong>Base Styles:</strong> Base form, table and typography styles are provided allowing a good jumping off point for your projects.</li> | |
| </ul> |
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 | |
| /** | |
| * logged in | |
| * | |
| * Programatically check logged in so EE doesnt parse a load of stuff if not | |
| * Redirect if a redirection cookie has been set | |
| * | |
| * Usage | |
| * |
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
| <? | |
| protected function valid_facebook_url($field){ | |
| if(!preg_match('/^(http\:\/\/|https\:\/\/)?(?:www\.)?facebook\.com\/(?:(?:\w\.)*#!\/)?(?:pages\/)?(?:[\w\-\.]*\/)*([\w\-\.]*)/', $field)){ | |
| return false; | |
| } | |
| return true; | |
| } |
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
| #loading{ | |
| position:fixed; | |
| z-index:999; | |
| top:0; | |
| left:0; | |
| width:100%; | |
| height: 100%; | |
| background:rgba(0,0,0,0.3); | |
| } |