code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/**
* Login
*/
ahoy.page_login = {
init: function() {
ahoy.validate.bind($('#form_login'), 'partial_site_login_form', function() {
return ahoy.post($('#form_login')).action('user:on_login').send();
});
$('#user_login').change(function() { $('#user_password').val(''); })
}
};
/**
* ... | JavaScript |
/*
@require ../frameworks/utility/jquery.gmap3.js;
@require ../frameworks/utility/jquery.utility.gmap.js;
@require ../behaviors/behavior_upload.js;
@require ../behaviors/behavior_provide_hours.js;
@require ../behaviors/behavior_provide_radius.js;
@require ../behaviors/behavior_field_editor... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Ahoy module
*/
var Ahoy = (function(ahoy, $){
ahoy.version = 1.1... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Form Validation
*
* Overrides the core ahoy.validate default options,
... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Provider work hours behavior
*/
ahoy.behaviors.provide_hours = function... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Autogrow Textarea behavior
*
* Usage: ahoy.behavior('#textarea', 'autogr... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Profile field editing behavior
*
* Hot swappable label / fields.
*
... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Provider work hours behavior
*/
;(function ($, window, document, unde... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Request submit behavior
*/
ahoy.behaviors.request_submit = function(e... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Upload single image behavior
*/
ahoy.behaviors.upload_image = function(... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Map Marker behavior (extension of Google Map behavior)
*
* Usage:
*
... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Google Maps behavior
*/
ahoy.behaviors.map = function(element, config) ... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Request quotes behavior
*/
ahoy.behaviors.request_quotes = function(e... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Select country behavior
*
* Usage: ahoy.behavior('#country_id', 'select_... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Job quote behavior
*/
ahoy.behaviors.job_quote = function(element, co... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Portfolio behavior
*/
ahoy.behaviors.portfolio = function(element, conf... | JavaScript |
/**
* Popup behavior
*
* Usage: ahoy.behavior('#popup', 'popup', { trigger: '#button' });
*
*/
ahoy.behaviors.popup = function(element, config) {
var self = this;
element = $(element);
var defaults = {
on_open: null, // Callback when popup opens
on_... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Map Bubble behavior (extension of Google Map behavior)
*
* Usage:
*
... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Map Locator behavior (extension of Google Map behavior)
*
* Usage:
* ... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Role select behavior
*/
ahoy.behaviors.role_select = function(element,... | JavaScript |
/**
* Ajax interface
*
* Usage: ahoy.post('#form').action('core:on_null').success(function(){ alert('Success!'); }).send();
*/
var Ahoy = (function(ahoy, $){
ahoy.post = function(obj) {
return new ahoy.post_object(obj);
};
ahoy.post_object = function(obj) {
this._data ... | JavaScript |
// General
//
jQuery.validator.addMethod("phoneUS", function (phone_number, element) {
phone_number = phone_number.replace(/\s+/g, "");
return this.optional(element) || phone_number.length >= 5 && phone_number.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/);
}, "Please specify a valid ph... | JavaScript |
/**
* Form helper
*
* Usage:
*
* // Define single field
* Ahoy.form.define_field('user:register_form', 'email').required("This is required!");
*
* // Define multiple fields
* Ahoy.form.define_fields('user:register_form', function() {
* this.define_field('email').required('This is required!').e... | JavaScript |
/**
* Form definition and validation
*
* ahoy.validation('#form').code('user:login_form').success(function() { alert('Pass!'); }).bind();
*
* // Append rules to an exisiting form
* ahoy.validation('#form').add_rules('user:register_form');
*
*/
var Ahoy = (function(ahoy, $){
ahoy.validation ... | JavaScript |
/*
=require foundation/modernizr.foundation
=require foundation/jquery.placeholder
=require foundation/jquery.foundation.alerts
=require foundation/jquery.foundation.accordion
=require foundation/jquery.foundation.buttons
=require foundation/jquery.foundation.tooltips
=require foundation/jquery.foundation.forms
... | JavaScript |
;(function ($, window, undefined){
'use strict';
$.fn.foundationAccordion = function (options) {
var $accordion = $('.accordion');
if ($accordion.hasClass('hover') && !Modernizr.touch) {
$('.accordion li', this).on({
mouseenter : function () {
console.log('due');
... | JavaScript |
/*
* jQuery Foundation Tooltips 2.0.2
* http://foundation.zurb.com
* Copyright 2012, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, undefined) {
'use strict';
var settin... | JavaScript |
/*
* jQuery Foundation Clearing 1.1
* http://foundation.zurb.com
* Copyright 2012, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, undefined) {
'use strict';
var defaults... | JavaScript |
/*
* jQuery Foundation Magellan 0.0.1
* http://foundation.zurb.com
* Copyright 2012, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, undefined) {
'use strict';
$.fn.found... | JavaScript |
;(function ($, window, undefined) {
'use strict';
$.fn.foundationAlerts = function (options) {
var settings = $.extend({
callback: $.noop
}, options);
$(document).on("click", ".alert-box a.close", function (e) {
e.preventDefault();
$(this).closest(".alert-box").fadeOu... | JavaScript |
;(function ($, window, undefined) {
'use strict';
var $doc = $(document),
Modernizr = window.Modernizr;
$(document).ready(function() {
$.fn.foundationAlerts ? $doc.foundationAlerts() : null;
$.fn.foundationButtons ? $doc.foundationButtons() : null;
$.fn.foundationAc... | JavaScript |
/*
* jQuery Reveal Plugin 1.1
* www.ZURB.com
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*globals jQuery */
(function ($) {
'use strict';
//
// Global variable.
// Helps us determine if the current modal is being queued ... | JavaScript |
;(function (window, document, $) {
// Set the negative margin on the top menu for slide-menu pages
var $selector1 = $('#topMenu'),
events = 'click.fndtn';
if ($selector1.length > 0) $selector1.css("margin-top", $selector1.height() * -1);
// Watch for clicks to show the sidebar
var $selector2 = $('... | JavaScript |
;(function ($, window, document, undefined) {
'use strict';
var settings = {
callback: $.noop,
init: false
},
methods = {
init : function (options) {
settings = $.extend({}, options, settings);
return this.each(function () {
if (!s... | JavaScript |
/*
* jQuery Foundation Top Bar 2.0.2
* http://foundation.zurb.com
* Copyright 2012, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, undefined) {
'use strict';
var setting... | JavaScript |
/*
* jQuery Orbit Plugin 1.4.0
* www.ZURB.com/playground
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($) {
'use strict';
$.fn.findFirstImage = function () {
return this.first()
.find('img')
... | JavaScript |
/*! http://mths.be/placeholder v2.0.7 by @mathias */
;(function(window, document, $) {
var isInputSupported = 'placeholder' in document.createElement('input'),
isTextareaSupported = 'placeholder' in document.createElement('textarea'),
prototype = $.fn,
valHooks = $.valHooks,
hooks,
pl... | JavaScript |
;(function ($, window, undefined) {
'use strict';
$.fn.foundationMediaQueryViewer = function (options) {
var settings = $.extend(options,{toggleKey:77}), // Press 'M'
$doc = $(document);
$doc.on("keyup.mediaQueryViewer", ":input", function (e){
if (e.which === settings.toggleKey) {... | JavaScript |
/*
* jQuery Foundation Joyride Plugin 2.0.2
* http://foundation.zurb.com
* Copyright 2012, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, undefined) {
'use strict';
var ... | JavaScript |
// jQuery.event.swipe
// 0.5
// Stephen Band
// Dependencies
// jQuery.event.move 1.2
// One of swipeleft, swiperight, swipeup or swipedown is triggered on
// moveend, when the move has covered a threshold ratio of the dimension
// of the target node, or has gone really fast. Threshold and velocity
// sensi... | JavaScript |
// jquery.event.move
//
// 1.3.1
//
// Stephen Band
//
// Triggers 'movestart', 'move' and 'moveend' events after
// mousemoves following a mousedown cross a distance threshold,
// similar to the native 'dragstart', 'drag' and 'dragend' events.
// Move events are throttled to animation frames. Move event objec... | JavaScript |
/*!
* jQuery Cookie Plugin v1.3
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function ($, document, undefined) {
... | JavaScript |
/*
* jQuery Custom Forms Plugin 1.0
* www.ZURB.com
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function( $ ){
/**
* Helper object used to quickly adjust all hidden parent element's, display and visibility properties.
* T... | JavaScript |
;(function ($, window, undefined) {
'use strict';
$.fn.foundationButtons = function (options) {
var $doc = $(document),
config = $.extend({
dropdownAsToggle:true,
activeClass:'active'
}, options),
// close all dropdowns except for the dropdown passed
closeDropd... | JavaScript |
;(function ($, window, undefined) {
'use strict';
$.fn.foundationNavigation = function (options) {
var lockNavBar = false;
// Windows Phone, sadly, does not register touch events :(
if (Modernizr.touch || navigator.userAgent.match(/Windows Phone/i)) {
$(document).on('click.fndtn touchsta... | JavaScript |
/**
* Popup widget
*
* Usage:
* $('#popup').popup({ trigger: '#button' });
* $('body').popup({ trigger: '#button', partial: 'partial:name' });
*/
;(function ($, window, document, undefined) {
$.widget("utility.popup", {
version: '1.2.1',
options: {
on_open: ... | JavaScript |
/**
* Star widget
*
* Usage:
* <div class="rating-selector">
* <select name="rating">
* <option value="0">0</option>
* <option value="1">1</option>
* <option value="2">2</option>
* <option value="3">3</option>
* <option value="4">4</option>
* <o... | JavaScript |
;(function ($, window, document, undefined) {
$.widget("utility.scrollbar", {
version: '1.0',
options: {
axis: 'vertical', // Vertical or horizontal scrollbar?
wheel: 40, // How many pixels to scroll at a time
scroll: true, ... | JavaScript |
(function($) {
/**
* Runs functions given in arguments in series, each functions passing their results to the next one.
* Return jQuery Deferred object.
*
* @example
* $.waterfall(
* function() { return $.ajax({url : first_url}) },
* function() { return $.ajax({url : second_url}) },
* function... | JavaScript |
/**
* Custom Forms Widget
*/
;(function ($, window, document, undefined) {
$.widget("utility.forms", {
version: '1.0.0',
options: { },
_create: function () {
this.refresh();
},
refresh: function() {
this.build_quantity_input();
... | JavaScript |
;(function ($, window, undefined) {
'use strict';
var $doc = $(document),
Modernizr = window.Modernizr;
$(document).ready(function() {
$.utility.statusbar && $doc.statusbar();
$.utility.forms && $doc.forms();
// Tweak to foundation's topbar.js
$('.top-bar u... | JavaScript |
// Toggle text between current and data-toggle-text contents
$.fn.extend({
toggleText: function() {
var self = $(this);
var text = self.text();
var ttext = self.data('toggle-text');
var tclass = self.data('toggle-class');
self.text(ttext).data('toggle-text', text).to... | JavaScript |
;(function ($, window, document, undefined) {
$.widget("utility.gmap_locator", $.utility.gmap, {
version: '1.0.4',
options: {
bubble_on_hover: true,
autofit_markers: true,
bubble_id_prefix: '#bubble_',
container: '#browse_sidebar_content ul' ... | JavaScript |
;(function ($, window, document, undefined) {
$.widget("utility.gmap", {
version: '1.0.1',
options: {
start_address: null,
start_position: [-34.397, 150.644], // Australia ;)
start_zoom: 2, // Initial map zoom
... | JavaScript |
/**
* Portfolio behavior
*
* Usage:
* <div id="portfolio">
* <img src="fullsize.jpg" data-image-id="1" data-image-thumb="thumb.jpg" />
* <img src="fullsize2.jpg" data-image-id="1" data-image-thumb="thumb2.jpg" />
* </div>
* <script> $('portfolio').portfolio(); </script>
*
*/
;(function ($, wi... | JavaScript |
/*!
* GMAP3 Plugin for JQuery
* Version : 5.0b
* Date : 2012-11-17
* Licence : GPL v3 : http://www.gnu.org/licenses/gpl.html
* Author : DEMONTE Jean-Baptiste
* Contact : jbdemonte@gmail.com
* Web site : http://gmap3.net
*
* Copyright (c) 2010-2012 Jean-Baptiste DEMONTE
*... | JavaScript |
/**
* Popup widget
*
* Usage:
* $('#popup').popup({ trigger: '#button' });
* $('body').popup({ trigger: '#button', partial: 'partial:name' });
*/
;(function ($, window, document, undefined) {
$.widget("utility.statusbar", {
version: '1.0.2',
options: {
inject_... | JavaScript |
/*
Masked Input plugin for jQuery
Copyright (c) 2007-@Year Josh Bush (digitalbush.com)
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
Version: @version
*/
(function($) {
var pasteEventName = ($.browser.msie ? 'paste' : 'input') + ".mask";
v... | JavaScript |
/*
=require foundation/modernizr.foundation
=require foundation/jquery.placeholder
=require foundation/jquery.foundation.alerts
=require foundation/jquery.foundation.accordion
=require foundation/jquery.foundation.buttons
=require foundation/jquery.foundation.tooltips
=require foundation/jquery.foundation.forms
... | JavaScript |
;(function ($, window, undefined){
'use strict';
$.fn.foundationAccordion = function (options) {
var $accordion = $('.accordion');
if ($accordion.hasClass('hover') && !Modernizr.touch) {
$('.accordion li', this).on({
mouseenter : function () {
console.log('due');
... | JavaScript |
/*
* jQuery Foundation Tooltips 2.0.1
* http://foundation.zurb.com
* Copyright 2012, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, undefined) {
'use strict';
var settin... | JavaScript |
;(function ($, window, undefined) {
'use strict';
$.fn.foundationAlerts = function (options) {
var settings = $.extend({
callback: $.noop
}, options);
$(document).on("click", ".alert-box a.close", function (e) {
e.preventDefault();
$(this).closest(".alert-box").fadeOu... | JavaScript |
;jQuery(document).ready(function($) {
'use strict';
var $doc = $(document),
Modernizr = window.Modernizr;
$.fn.foundationAlerts ? $doc.foundationAlerts() : null;
$.fn.foundationButtons ? $doc.foundationButtons() : null;
$.fn.foundationAccordion ? $doc.foundationAccor... | JavaScript |
/*
* jQuery Reveal Plugin 1.1
* www.ZURB.com
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*globals jQuery */
(function ($) {
'use strict';
//
// Global variable.
// Helps us determine if the current modal is being queued ... | JavaScript |
;(function (window, document, $) {
// Set the negative margin on the top menu for slide-menu pages
var $selector1 = $('#topMenu'),
events = 'click.fndtn';
if ($selector1.length > 0) $selector1.css("margin-top", $selector1.height() * -1);
// Watch for clicks to show the sidebar
var $selector2 = $('... | JavaScript |
;(function ($, window, undefined) {
'use strict';
$.fn.foundationTabs = function (options) {
var settings = $.extend({
callback: $.noop
}, options);
var activateTab = function ($tab) {
var $activeTab = $tab.closest('dl').find('dd.active'),
target = $tab.children('a').... | JavaScript |
/*
* jQuery Foundation Top Bar 2.0.1
* http://foundation.zurb.com
* Copyright 2012, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, undefined) {
'use strict';
var setting... | JavaScript |
/*
* jQuery Orbit Plugin 1.4.0
* www.ZURB.com/playground
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($) {
'use strict';
$.fn.findFirstImage = function () {
return this.first()
.find('img')
... | JavaScript |
/*! http://mths.be/placeholder v2.0.7 by @mathias */
;(function(window, document, $) {
var isInputSupported = 'placeholder' in document.createElement('input'),
isTextareaSupported = 'placeholder' in document.createElement('textarea'),
prototype = $.fn,
valHooks = $.valHooks,
hooks,
pl... | JavaScript |
;(function ($, window, undefined) {
'use strict';
$.fn.foundationMediaQueryViewer = function (options) {
var settings = $.extend(options,{toggleKey:77}), // Press 'M'
$doc = $(document);
$doc.on("keyup.mediaQueryViewer", ":input", function (e){
if (e.which === settings.toggleKey) {... | JavaScript |
/*
* jQuery Custom Forms Plugin 1.0
* www.ZURB.com
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function( $ ){
/**
* Helper object used to quickly adjust all hidden parent element's, display and visibility properties.
* T... | JavaScript |
;(function ($, window, undefined) {
'use strict';
$.fn.foundationButtons = function(options) {
var $doc = $(document);
// Prevent event propagation on disabled buttons
$doc.on('click.fndtn', '.button.disabled', function (e) {
e.preventDefault();
});
$('.button.dropdown > ul', t... | JavaScript |
;(function ($, window, undefined) {
'use strict';
$.fn.foundationNavigation = function (options) {
var lockNavBar = false;
// Windows Phone, sadly, does not register touch events :(
if (Modernizr.touch || navigator.userAgent.match(/Windows Phone/i)) {
$(document).on('click.fndtn touchsta... | JavaScript |
// Toggle text between current and data-toggle-text contents
$.fn.extend({
toggleText: function() {
var self = $(this);
var text = self.text();
var ttext = self.data('toggle-text');
var tclass = self.data('toggle-class');
self.text(ttext).data('toggle-text', text).to... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
ahoy.common = {};
/**
* Settings
*/
ahoy.settings = {
date_format: "dd/m... | JavaScript |
/**
* Loading Panel
*/
window.site = {
message: {
remove: function() {
$.removebar();
},
custom: function(message, params) {
if(!message)
return;
var params = $.extend({
position: 'top',
... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/*
// Foundation
@require frameworks/foundation/modernizr.foundation.js;
@require... | JavaScript |
var Ahoy_Page = (function(page, $){
page.constructor = $(function() {
$('#featured_providers').orbit({
animation: 'horizontal-push',
bullets: true,
captions: true,
directionalNav: false,
fluid: true
});
$('#ba... | JavaScript |
ahoy.page_dashboard = {
init: function() {
var self = ahoy.page_dashboard;
$('#p_dash_offers .sub-nav a').live('click', function(){
var type = $(this).data('filter-type');
self.filter_job_offers(type);
});
},
filter_job_offers: function(type) {
... | JavaScript |
/*
@require ../behaviors/behavior_upload.js;
*/
// TODO: Deprecate in favour of behavior
ahoy.page_request = {
active_step: 'create',
init: function() {
var self = ahoy.page_request;
// Initialize
self.style_form();
self.validate_form();
self.bind_required_by();
// Alter... | JavaScript |
/*
@require ../frameworks/utility/jquery.gmap3.js;
@require ../frameworks/utility/jquery.utility.gmap.js;
*/
ahoy.page_job_booking = {
map: null,
address: null,
init: function() {
var self = ahoy.page_job_booking;
// Low priority load
$(window).load(self.b... | JavaScript |
/*
@require ../behaviors/behavior_upload.js;
@require ../behaviors/behavior_portfolio.js;
@require ../behaviors/behavior_request_quotes.js;
*/
ahoy.page_request_manage = {
init: function() {
var self = ahoy.page_request_manage;
// Quotes
$('#p_quotes').behavior(ahoy.behaviors.request_... | JavaScript |
/*
@require ../frameworks/utility/jquery.gmap3.js;
@require ../frameworks/utility/jquery.utility.gmap.js;
@require ../behaviors/behavior_upload.js;
@require ../behaviors/behavior_portfolio.js;
@require ../behaviors/behavior_field_editor.js;
@require ../behaviors/behavior_provide_hours.js;
... | JavaScript |
/**
* Account
*/
ahoy.page_account = {
init: function() {
var self = ahoy.page_account;
self.bind_work_history();
self.bind_notifications();
},
toggle_edit: function(element) {
jQuery(element).parents('.block:first').find('.view:first').slideToggle().next('.edit').slideToggle();
},... | JavaScript |
/*
@require ../behaviors/behavior_field_editor.js;
*/
ahoy.page_pay = {
init: function() {
var self = ahoy.page_pay;
// Invoice field editing
ahoy.behavior('#form_invoice_details', 'field_editor', { implode_char: ' ', on_set_field:
function() {
... | JavaScript |
/*
@require ../behaviors/behavior_job_quote.js;
*/
ahoy.page_job = {
init: function() {
var self = ahoy.page_job;
$('#link_edit_quote').live('click', self.click_edit_quote);
$('#link_delete_quote').live('click', self.click_delete_quote);
// Init others
self.bind_ask_question();
self.b... | JavaScript |
/*
@require ../frameworks/utility/jquery.gmap3.js;
@require ../frameworks/utility/jquery.utility.gmap.js;
@require ../frameworks/utility/jquery.utility.gmap_locator.js;
*/
ahoy.page_profile = {
init: function() {
var self = ahoy.page_profile;
// Init others
self.bi... | JavaScript |
ahoy.page_messages = {
init: function() {
var self = ahoy.page_messages;
self.bind_message_link();
self.bind_search_form();
self.bind_delete_link();
},
bind_message_link: function() {
$('#page_messages .message_link').live('click', function() {
... | JavaScript |
ahoy.page_directory = {
init: function() {
var self = ahoy.page_directory;
// Dress up breadcrumb
$('ul.breadcrumbs li:last').addClass('current');
self.bind_request_popup();
self.bind_search_form();
self.bind_request_form();
},
select_letter: ... | JavaScript |
/**
* Login
*/
ahoy.page_login = {
init: function() {
ahoy.validate.bind($('#form_login'), 'partial_site_login_form', function() {
return ahoy.post($('#form_login')).action('user:on_login').send();
});
$('#user_login').change(function() { $('#user_password').val(''); })
}
};
/**
* ... | JavaScript |
/*
@require ../frameworks/utility/jquery.gmap3.js;
@require ../frameworks/utility/jquery.utility.gmap.js;
@require ../behaviors/behavior_upload.js;
@require ../behaviors/behavior_provide_hours.js;
@require ../behaviors/behavior_provide_radius.js;
@require ../behaviors/behavior_field_editor... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Ahoy module
*/
var Ahoy = (function(ahoy, $){
ahoy.version = 1.1... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Form Validation
*
* Overrides the core ahoy.validate default options,
... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Provider work hours behavior
*/
ahoy.behaviors.provide_hours = function... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Autogrow Textarea behavior
*
* Usage: ahoy.behavior('#textarea', 'autogr... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Profile field editing behavior
*
* Hot swappable label / fields.
*
... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Provider work hours behavior
*/
;(function ($, window, document, unde... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Request submit behavior
*/
ahoy.behaviors.request_submit = function(e... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Upload single image behavior
*/
ahoy.behaviors.upload_image = function(... | JavaScript |
/**
* Scripts Ahoy! Software
*
* Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com)
* All terms, conditions and copyrights as defined
* in the Scripts Ahoy! License Agreement
* http://www.scriptsahoy.com/license
*
*/
/**
* Map Marker behavior (extension of Google Map behavior)
*
* Usage:
*
... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.