code
stringlengths
1
2.08M
language
stringclasses
1 value
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* * glfx.js * http://evanw.github.com/glfx.js/ * * Copyright 2011 Evan Wallace * Released under the MIT license */ var fx = (function() { var exports = {}; // src/OES_texture_float_linear-polyfill.js // From: https://github.com/evanw/OES_texture_float_linear-polyfill (function() { // Uploads a 2x2 floating-po...
JavaScript
// A modified version of bitmap.js from http://rest-term.com/archives/2566/ var Class = { create : function() { var properties = arguments[0]; function self() { this.initialize.apply(this, arguments); } for(var i in properties) { self.prototype[i] = properties[i]; } if(!self.proto...
JavaScript
/* Base.js, version 1.1 Copyright 2006-2007, Dean Edwards License: http://www.opensource.org/licenses/mit-license.php */ var Base = function() { // dummy }; Base.extend = function(_instance, _static) { // subclass var extend = Base.prototype.extend; // build the prototype Base._prototyping = true; var proto...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
/* Copyright 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
JavaScript
// Spectrum: The No Hassle Colorpicker // https://github.com/bgrins/spectrum // Author: Brian Grinstead // License: MIT // Requires: jQuery, spectrum.css (function (window, $, undefined) { var defaultOpts = { // Events beforeShow: noop, move: noop, change: noop, sho...
JavaScript
/** * A class to parse color values * @author Stoyan Stefanov <sstoo@gmail.com> * @link http://www.phpied.com/rgb-color-parser-in-javascript/ * @license Use it if you like it */ function RGBColor(color_string) { this.ok = false; // strip any leading # if (color_string.charAt(0) == '#') { ...
JavaScript
/* * canvg.js - Javascript SVG parser and renderer on Canvas * MIT Licensed * Gabe Lerner (gabelerner@gmail.com) * http://code.google.com/p/canvg/ * * Requires: rgbcolor.js - http://www.phpied.com/rgb-color-parser-in-javascript/ */ if(!window.console) { window.console = {}; window.console.log = func...
JavaScript
/** JSZip - A Javascript class for generating Zip files <http://jszip.stuartk.co.uk> (c) 2009 Stuart Knightley <stuart [at] stuartk.co.uk> Licenced under the GPLv3 and the MIT licences Usage: zip = new JSZip(); zip.add("hello.txt", "Hello, World!").add("tempfile", "nothing"); zip.folder("images").add("smile...
JavaScript
/* * Port of a script by Masanao Izumo. * * Only changes : wrap all the variables in a function and add the * main function to JSZip (DEFLATE compression method). * Everything else was written by M. Izumo. * * Original code can be found here: http://www.onicos.com/staff/iz/amuse/javascript/expert/inflate.txt *...
JavaScript
/* * QUnit - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * * Copyright (c) 2009 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. */ (function(window) { var QUnit = { // Initialize the configuration options init: funct...
JavaScript
$(document).ready(function(){ $('.showApplication').each(function() { $(this).bind('click', showApp ); }); }); var showApp = function (){ var alt = $(this).prop('alt'); var callback = function(responseText) { $('#currentApplication').html(responseText); }; $.get('showApplication', { student_id :...
JavaScript
// VT100.js -- JavaScript based terminal emulator // Copyright (C) 2008-2010 Markus Gutschke <markus@shellinabox.com> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This p...
JavaScript
// Demo.js -- Demonstrate some of the features of ShellInABox // Copyright (C) 2008-2009 Markus Gutschke <markus@shellinabox.com> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. ...
JavaScript
// VT100.js -- JavaScript based terminal emulator // Copyright (C) 2008-2010 Markus Gutschke <markus@shellinabox.com> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This p...
JavaScript
// ShellInABox.js -- Use XMLHttpRequest to provide an AJAX terminal emulator. // Copyright (C) 2008-2010 Markus Gutschke <markus@shellinabox.com> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Softw...
JavaScript
jQuery(document).ready(function(){ // Country event jQuery('#User_country_id').bind('change', function(){ $('User_country_id').getForm().sendPhpr( 'onUpdateStatesList', { loadIndicator: {show: false} } ) }); });
JavaScript
var url_modified = false; jQuery(document).ready(function($){ var page_title_field = $('#Cms_Page_name'); if (page_title_field.length > 0 && $('#new_flag').length > 0) { page_title_field.bind('keyup', function() { update_url_title(page_title_field) }); page_title_field.bind('change', function() { upd...
JavaScript
function menus_selected() { return $('listCms_Menus_index_list_body').getElements('tr td.checkbox input').some(function(element){return element.checked}); } function delete_selected() { if (!menus_selected()) { alert('Please select layouts to delete.'); return false; } $('listCms_Menus_index_lis...
JavaScript
// Set these vars on the controller pages var cms_name_field = null; var cms_file_name_field = null; var cms_file_name_modified = false; var cms_page = false; jQuery(document).ready(function($){ if ( cms_name_field && ($(cms_name_field).length > 0) && ($('#new_flag').length > 0) && ($(cms_file_n...
JavaScript
function themes_selected() { return $('listCms_Themes_index_list_body').getElements('tr td.checkbox input').some(function(element){return element.checked}); } function delete_selected() { if (!themes_selected()) { alert('Please select theme(s) to delete.'); return false; } $('listCms_Themes_ind...
JavaScript
/** * Helpers */ function root_url(url) { if (typeof root_dir === 'undefined' || !root_dir) return url; if (url.substr(0,1) == '/') url = url.substr(1); return root_dir + url; } function asset_url(url) { if (typeof asset_dir === 'undefined' || !asset_dir) return url; if (url.sub...
JavaScript
jQuery(document).ready(function($) { var gateway_field = $('#Sms_Config_class_name'); if (gateway_field.length > 0) { gateway_field.live('change', function() { $('#Sms_Config_class_name').get(0).getForm().sendPhpr( 'index_onUpdateGatewayType', { loadIndicator: { show: false }, onB...
JavaScript
var formTabManager = null; var url_modified = false; function save_code() { $('form_element').sendPhpr('onSave', { prepareFunction: function(){phprTriggerSave();}, extraFields: {redirect: 0}, loadIndicator: {show: false}, onBeforePost: LightLoadingIndicator.show.pass('Saving...'), onComplete: ...
JavaScript
function update_comment_status(element, comment_id, confirm_str, status_code) { return $(element).getForm().sendPhpr('preview_onSetCommentStatus', {update: 'comment_list', confirm: confirm_str, 'extraFields': {'id': comment_id, 'status': status_code}, onFailure: popupAjaxError, loadIndicator: {show: false}, onBefore...
JavaScript
var url_modified = false; function update_url_title(field_element) { if (!url_modified) $('Blog_Category_url_name').value = convert_text_to_url(field_element.value); } window.addEvent('domready', function(){ var title_field = $('Blog_Category_name'); if (title_field && $('new_record_flag')) { tit...
JavaScript
jQuery(document).ready(function(){ jQuery('#Service_Provider_country_id').bind('change', function(){ $('Service_Provider_country_id').getForm().sendPhpr( 'onUpdateStatesList', { loadIndicator: {show: false} } ) }); });
JavaScript
jQuery(document).ready(function(){ jQuery('#Service_Request_country_id').bind('change', function(){ $('Service_Request_country_id').getForm().sendPhpr( 'onUpdateStatesList', { loadIndicator: {show: false} } ) }); });
JavaScript
function make_providers_sortable() { if ($('group_providers_list')) { $('group_providers_list').makeListSortable('onSetOrders', 'provider_order', 'provider_id', 'sort_handle'); $('group_providers_list').addEvent('dragComplete', fix_orders); } } function fix_orders(sortable_list_orders) { $('group_pr...
JavaScript
function bind_action_event() { var action_select = jQuery('#Payment_Fee_action_class_name'); if (action_select.length > 0) { action_select.not('.fee_binded').addClass('fee_binded').bind('change', function(){ action_select.get(0).getForm().sendPhpr('on_update_action', { lo...
JavaScript
window.addEvent('phpr_recordfinder_update', function() { $('Payment_Invoice_user_id').getForm().sendPhpr('on_user_change', { loadIndicator: {show: false}, update:'multi' }); }) jQuery(document).ready(function(){ jQuery('#Payment_Invoice_billing_country_id').bind('change', function(){ $('Payment...
JavaScript
jQuery(document).ready(function($) { fee_bind_sort(); }); function fee_after_drag() { var list = jQuery('#fee_list'); var items = list.find('> li'); var last_index = items.length - 1; items.each(function(index, val) { var item = jQuery(this); item.css('z-index', 10...
JavaScript
var UnloadManagerClass = new Class({ data_changed_flag: false, unload_message: 'Form data was changed.', verbose: false, initialize: function() { window.addEvent('domready', this.bind_inputs.bind(this)); window.addEvent('phpr_codeeditor_changed', this.data_changed.bind(t...
JavaScript
jQuery(document).ready(function($){ $("#main_nav ul ul").not('li.current ul').hide(); $("#main_nav > ul > li > a").each(function() { var submenu = $(this).parent().find('ul'); if ((submenu).length > 0) { $(this).append('<span class="expand"></span>'); $(this).click(function() ...
JavaScript
jQuery(document).ready(function($) { if ($('#login').length > 0) $('#login').focus(); $(".fieldContainer input").focus(function(){ $(this).addClass('active'); }); $(".fieldContainer input").blur(function(){ $(this).removeClass('active'); }); });
JavaScript
/* * Initialize tips */ window.addEvent('domready', function(){ init_tooltips(); }); function init_tooltips() { (function( $ ){ if ($.fn.tipsy !== undefined) { $('a.tooltip, span.tooltip, li.tooltip').tipsy({ live: true, delayIn: 500, html: true, gravity: $.fn.tipsy.autoWE ...
JavaScript
var checkbox_states = { }; jQuery(document).ready(function(){ // Permissions update_permissions(); jQuery('#form_field_container_rightsAdmin_User input.checkbox').click(update_permissions); }); function update_permissions() { var is_admin_checkbox = jQuery('#form_field_container_rightsA...
JavaScript
/* * Tipsy */ jQuery(function(){ jQuery('.tips').tipsy({gravity: 's',html: true}); jQuery('.tips-right').tipsy({gravity: 'w',html: true}); jQuery('.tips-left').tipsy({gravity: 'e',html: true}); jQuery('.tips-bottom').tipsy({gravity: 'n',html: true}); }); /* * Commmon functions */ ...
JavaScript
function select_countries(select_type) { switch (select_type) { case 'all': jQuery('#listLocation_Countries_index_list_body tr td.checkbox input').each(function(){ jQuery(this).get(0).cb_check(); }); break; case 'none': jQuery('#listLocation_Countries_index_list_body tr td.checkbox input').each(fu...
JavaScript
jQuery(document).ready(function($) { var reply_to_address_field = $('#Email_Template_reply_to_address'); if (reply_to_address_field.length > 0) { reply_to_address_field.attr('disabled', !$('#Email_Template_reply_to_mode_4').is(':checked')); $('#Email_Template_reply_to_mode, #Email_Template_reply_to_mode_...
JavaScript
function set_authorization_status() { var smtp_auth_checked = !(jQuery('#Email_Config_smtp_authorization').is(':checked')); jQuery('#Email_Config_smtp_user').attr('disabled', smtp_auth_checked); jQuery('#Email_Config_smtp_password').attr('disabled', smtp_auth_checked); } function set_email_method() { var se...
JavaScript
/* Script: Slider.js Class for creating horizontal and vertical slider controls. License: MIT-style license. */ var Slider = new Class({ Implements: [Events, Options], options: {/* onChange: $empty, onComplete: $empty,*/ onTick: function(position){ if(this.options.snap) position = this....
JavaScript
/* * URL functions */ function root_url(url) { if (typeof application_root_dir === 'undefined' || !application_root_dir) return url; if (url.substr(0,1) == '/') url = url.substr(1); return application_root_dir + url; } function phpr_url(url) { if (typeof phpr_root_dir === 'undefined' |...
JavaScript
/* * Popup modal windows */ var Overlay = new Class({ Implements: [Options, Events], options: { opacity: 0.1, className: 'overlay', background: '', zIndex: 1600, closeByClick: false, autoCenter: true }, initialize: function(options) { this.setOptions(options); this.overl...
JavaScript
/* Script: Moo.js My Object Oriented javascript. Author: Valerio Proietti, <http://mad4milk.net> License: MIT-style license. Mootools Credits: - Class is slightly based on Base.js <http://dean.edwards.name/weblog/2006/03/base/> (c) 2006 Dean Edwards, License <http://creativecommons.org/licenses/LGPL/2...
JavaScript
(function( $, undefined ) { jQuery.widget( "ui.pagination", { options: { pageSize: 20, recordCount: 0 }, getFirstPageRowIndex: function() { return this.options.pageSize*this.pageIndex; }, getLastPageRowIndex: function() { var index = this.getFirstPageRowIndex(); index +=...
JavaScript
// jQuery Object Oriented Class // // Version 1.0.2 // // Create By Hassan Jodat Shandi // http://doob.ir/ // 27 Feb 2010 // jQuery.extend({ // define class core object Class: function () { }, // define interface core object Interface: function () { } }); jQuery.extend(jQuery...
JavaScript
/* * jQuery Caret Range plugin * Copyright (c) 2009 Matt Zabriskie * Released under the MIT and GPL licenses. */ (function($) { $.extend($.fn, { caret: function (start, end) { var elem = this[0]; if (elem) { // get caret range if (typeof start == "undefined") { if (elem.se...
JavaScript
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and ...
JavaScript
/* Script: Core.js MooTools - My Object Oriented JavaScript Tools. License: MIT-style license. Copyright: Copyright (c) 2006-2007 [Valerio Proietti](http://mad4milk.net/). Code & Documentation: [The MooTools production team](http://mootools.net/developers/). Inspiration: - Class implementation in...
JavaScript
/** * This script contains the grid control. * The plugin should be applied to a DIV element. * Grid table will be built inside this element. * The options object should be specified in the followingi format: * { * columns: [ * {title: 'Id', field: 'id', type: 'text', width: '170'}, * {title: ...
JavaScript
/** * This script contains grid control column editor classes. */ (function( $, undefined ) { jQuery.ui.grid = {editors: {}}; jQuery.ui.grid.editors.editorBase = jQuery.Class.create({ initialize: function() { }, /** * Initializes the cell content during the table building procedure. *...
JavaScript
/** * This script contains the grid control. * The plugin should be applied to a DIV element. * Grid table will be built inside this element. * The options object should be specified in the followingi format: * { * columns: [ * {title: 'Id', field: 'id', type: 'text', width: '170'}, * {title: ...
JavaScript
/** * This script contains grid control column editor classes. */ (function( $, undefined ) { jQuery.ui.grid = {editors: {}}; jQuery.ui.grid.editors.editorBase = jQuery.Class.create({ initialize: function() { }, /** * Initializes the cell content during the table building procedure. *...
JavaScript
/* Redactor v8.0.3 Updated: September 3, 2012 http://redactorjs.com/ Copyright (c) 2009-2012, Imperavi Inc. License: http://redactorjs.com/license/ Usage: $('#content').redactor(); */ // selection mechanism var _0xf6db=["(6(){11 49=24;11 14={50:6(8,10){5 10.58(8)\x2692},57:6(8,10){7(8.58!=12){...
JavaScript
/** * This script contains the grid control. * The plugin should be applied to a DIV element. * Grid table will be built inside this element. * The options object should be specified in the followingi format: * { * columns: [ * {title: 'Id', field: 'id', type: 'text', width: '170'}, * {title: ...
JavaScript
/** * This script contains grid control column editor classes. */ (function( $, undefined ) { jQuery.ui.grid = {editors: {}}; jQuery.ui.grid.editors.editorBase = jQuery.Class.create({ initialize: function() { }, /** * Initializes the cell content during the table building procedure. *...
JavaScript
/** * Swiff.Uploader - Flash FileReference Control * * @version 1.2 * * @license MIT License * * @author Harald Kirschner <mail [at] digitarald [dot] de> * @copyright Authors */ Swiff.Uploader = new Class({ Extends: Swiff, Implements: Events, options: { path: 'Swiff.Uploader.swf', ...
JavaScript
/* * jQuery UI Tag-it! * * @version v2.0 (06/2011) * * Copyright 2011, Levy Carneiro Jr. * Released under the MIT license. * http://aehlke.github.com/tag-it/LICENSE * * Homepage: * http://aehlke.github.com/tag-it/ * * Authors: * Levy Carneiro Jr. * Martin Rehfeld * Tobias Schmidt * Skylar Chal...
JavaScript
/** * * Date picker * Author: Stefan Petre www.eyecon.ro * */ (function ($) { var DatePicker = function () { var ids = {}, tpl = { wrapper: '<div class="datepicker"><div class="datepickerBorderT" /><div class="datepickerBorderB" /><div class="datepickerBorderL" /><div class="datepickerBorderR" /...
JavaScript
var AceWrapper = new Class({ Implements: [Options, Events], options: { showInvisibles: true, highlightActiveLine: true, showGutter: true, showPrintMargin: true, highlightSelectedWord: false, hScrollBarAlwaysVisible: false, useSoftTabs: true, tabSize: 4, fontSize: 12, wrapMode: 'off'...
JavaScript
function multi_textarea_init(field_id, set_value) { // Spool exisiting data try { if (set_value != "") jQuery.each(jQuery.parseJSON(set_value), function(k,v){ multi_textarea_build_shell(field_id, v); }); } catch(e) { }; // Bind events jQuery('#multi_textarea'+field_id+' ...
JavaScript
var FileUploader = new Class({ Extends: FancyUpload2, initialize: function(fieldId, options) { this.files = []; this.fieldId = fieldId; var defaultOptions = { instantStart: true, allowDuplicates: true, processResponse: true, fieldName: 'file', debug: false, path: phpr_url('modul...
JavaScript
/** * FancyUpload - Flash meets Ajax for powerful and elegant uploads. * * @version 2.1 * * @license MIT License * * @author Harald Kirschner <mail [at] digitarald [dot] de> * @copyright Authors */ var FancyUpload2 = new Class({ Extends: Swiff.Uploader, options: { limitSize: false, l...
JavaScript
/** * Fx.ProgressBar * * @version 1.0 * * @license MIT License * * @author Harald Kirschner <mail [at] digitarald [dot] de> * @copyright Authors */ Fx.ProgressBar = new Class({ Extends: Fx, options: { text: null, transition: Fx.Transitions.Circ.easeOut, link: 'cancel' }, i...
JavaScript
var GridControlManagerClass = new Class({ controls: null, initialize: function(table) { this.controls = new Hash(); }, register_control: function(id, control_obj) { this.controls.set(id, control_obj); }, get_control: function(id) { return this.controls.get(id); } }); var GridCont...
JavaScript
function filter_add_record(link_element) { /* * Find record ID and description */ link_element = $(link_element); var record_id = link_element.getParent().getElement('input.record_id').value; var cells = link_element.getParent().getParent().getChildren(); var record_name = []; cells.each(functi...
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