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($){ | |
$.fn.killZoomy = function(){ | |
$(this) | |
//Unbinding any events attached | |
//be carefull not just zoomy functions | |
.removeClass('parent-zoom') | |
.unbind('click mousemove mouseover mouseleave') | |
//Removing inline style added inline from Zoomy |
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
// Probably Need | |
// It seems to be depedent off this plugin too | |
// https://github.com/cowboy/jquery-hashchange | |
// ============================================ | |
(function($){ | |
$(window).hashchange(function(){ | |
//Check you console for event | |
console.log('Changed to ' + window.location.hash); |
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
/* Tracking events in Google Analytics | |
* ============================================== | |
* with this code all you need to do is add the class 'download' to the download button | |
* Then add the a 'contact' to the contact button | |
* In you Analytics go to Content > Events > Overview The events will be displayed there | |
*/ | |
$(function(){ | |
$('.download').bind('click', function(){ |
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
<?php | |
function process(){ | |
$displayForm = true; | |
$success = false; | |
$error = array(); | |
// insert a valid email from the domain your sending | |
$headers = "From: domain.com <[email protected]>\r\n"; | |
// html emails because were bada55 | |
$headers .= "MIME-Version: 1.0\r\n"; |
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(){ | |
/* Script that compiles values of form | |
* the sends them via ajax to php script | |
* php script will send back json after validation process | |
* use the console logs for debugging | |
*/ | |
// you might need a better selector -> select your form | |
var form = $('form'), | |
// compile all values |
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
/* Services */ | |
//app | |
angular | |
.module('support', ['supportService']) | |
.config(['$routeProvider', function($routeProvider){ | |
$routeProvider | |
.when('/p/:start/', {templateUrl: '/partials/warrantyList.html', controller: SupportListController}) | |
.when('/v/:field/:id/', {templateUrl: '/partials/warrantyDetails.html', controller: SupportDetailController}) | |
.otherwise({redirectTo: '/p/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
(function(_export) { | |
var Sandbox = function(modules, callback) { | |
if (!(this instanceof Sandbox)) { | |
return new Sandbox(modules, callback); | |
} | |
// modules is an array in this instance: | |
for (var i = 0, len = modules.length; i < len; i++) { | |
this.Modules[modules[i]](this); | |
} | |
callback(this); |
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 points = [ | |
[33.950649172363335,-117.40098863840103], | |
[33.95048007651844,-117.40097254514694], | |
[33.95035992926655,-117.40098059177399], | |
[33.950355479365065,-117.4010556936264], | |
[33.95048675136076,-117.40105032920837], | |
[33.95066363449239,-117.40104496479034]]; | |
var area = function(points){ | |
var length = points.length; | |
var arr = []; |
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
<label> | |
<input type="checkbox" class="switch"/> | |
<div class="switch"></div> | |
</label> | |
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
<div class=tab-container> | |
<ul class="tabs clearfix" > | |
<li> | |
<a href=# >Users</a> | |
</li> | |
<li class=active > | |
<a href=# >Pending Lots</a> | |
</li> | |
<li> | |
<a href=# >Nearby Lots</a> |
OlderNewer