code
stringlengths
1
2.08M
language
stringclasses
1 value
var iPanel = { i$ : window.parent.jQuery, userApi : { setCommentsData : "appAudit_updateAppComments.do" }, setComments : function(getUrl, pars){ $.ajax({ type : "post", url : getUrl, cache: false, data : pars, success : function(data) { if(data.code == 0){ if(hudMsg_ti...
JavaScript
/** * WYSIWYG - jQuery plugin 0.6 * * Copyright (c) 2008-2009 Juan M Martinez * http://plugins.jquery.com/project/jWYSIWYG * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Id: $ */ (function( $ )...
JavaScript
/*! * jQuery Cookie Plugin * 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($) { $.cookie = function(ke...
JavaScript
function go(k) { var div = document.getElementById("right"); div.innerHTML = "<img src='../admin/images/loading.gif' /> \u52a0\u8f7d\u4e2d......"; var url = k; url = encodeURI(url);// 两次,很关键 url = encodeURI(url); var myAjax = new Ajax.Updater("right", url, { method : "post" }); } function goSiteright(k) { $("...
JavaScript
/** * @package Joomla.Administrator * @subpackage templates.bluestork * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ var Joomla = Joomla || {}; /** * Joomla Menu javascript behavior */ Joomla.M...
JavaScript
/** * @package Hathor * @copyright Copyright (C) 2005 - 2009 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * Functions */ /** * Set focus to username on the login screen */ function setFocus() { if (document.id("login-page"))...
JavaScript
function AzrulCommunity() { this.resetprivacy = function(){ var profilePrivacy = joms.jQuery('input[name=privacyprofile]:checked').val(); var friendPrivacy = joms.jQuery('input[name=privacyfriends]:checked').val(); var photoPrivacy = joms.jQuery('input[name=privacyphotos]:checked').val(); var privacyvideos = j...
JavaScript
/*global window, localStorage, fontSizeTitle, bigger, reset, smaller, biggerTitle, resetTitle, smallerTitle, Cookie */ var prefsLoaded = false; var defaultFontSize = 100; var currentFontSize = defaultFontSize; var fontSizeTitle; var bigger; var smaller; var reset; var biggerTitle; var smallerTitle; var resetTitle; Obj...
JavaScript
// Angie Radtke 2009 // /*global window, localStorage, Cookie, altopen, altclose, big, small, rightopen, rightclose, bildauf, bildzu */ Object.append(Browser.Features, { localstorage: (function() { return ('localStorage' in window) && window.localStorage !== null; })() }); function saveIt(name) { var x = docume...
JavaScript
/* Javscript Document */
JavaScript
/* --- script: NivooSlider.js description: A nice image slider for MooTools. license: MIT-style license authors: - Johannes Fischer requires: - core/1.3: '*' provides: - NivooSlider ... */ var NivooSlider = new Class({ Implements: [Events, Options], caption: null, children:...
JavaScript
/*global window, localStorage, fontSizeTitle, bigger, reset, smaller, biggerTitle, resetTitle, smallerTitle, Cookie */ var prefsLoaded = false; var defaultFontSize = 100; var currentFontSize = defaultFontSize; var fontSizeTitle; var bigger; var smaller; var reset; var biggerTitle; var smallerTitle; var resetTitle; Obj...
JavaScript
// Angie Radtke 2009 // /*global window, localStorage, Cookie, altopen, altclose, big, small, rightopen, rightclose, bildauf, bildzu */ Object.append(Browser.Features, { localstorage: (function() { return ('localStorage' in window) && window.localStorage !== null; })() }); function saveIt(name) { var x = docume...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ var plg_quickicon_jupdatecheck_ajax_structure = {}; window.addEvent('domready', function(){ plg_quickicon_jupdatecheck_ajax_structure = { onSucc...
JavaScript
/* Demonstration of embedding CodeMirror in a bigger application. The * interface defined here is a mess of prompts and confirms, and * should probably not be used in a real project. */ function MirrorFrame(place, options) { this.home = document.createElement("div"); if (place.appendChild) place.appendChild...
JavaScript
var HTMLMixedParser = Editor.Parser = (function() { // tags that trigger seperate parsers var triggers = { "script": "JSParser", "style": "CSSParser" }; function checkDependencies() { var parsers = ['XMLParser']; for (var p in triggers) parsers.push(triggers[p]); for (var i in parsers) { ...
JavaScript
/* Simple parser for CSS */ var CSSParser = Editor.Parser = (function() { var tokenizeCSS = (function() { function normal(source, setState) { var ch = source.next(); if (ch == "@") { source.nextWhileMatches(/\w/); return "css-at"; } else if (ch == "/" && source.equals("*")...
JavaScript
/* Functionality for finding, storing, and restoring selections * * This does not provide a generic API, just the minimal functionality * required by the CodeMirror system. */ // Namespace object. var select = {}; (function() { select.ie_selection = document.selection && document.selection.createRangeCollection...
JavaScript
/* A few useful utility functions. */ // Capture a method on an object. function method(obj, name) { return function() {obj[name].apply(obj, arguments);}; } // The value used to signal the end of a sequence in iterators. var StopIteration = {toString: function() {return "StopIteration"}}; // Apply a function to ea...
JavaScript
var SparqlParser = Editor.Parser = (function() { function wordRegexp(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); } var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri", "isblank", "isliteral", "union", "a"]); var ...
JavaScript
/* Copyright (c) 2008-2009 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed by Yahoo! Inc. under the BSD (revised) open source license @author Dan Vlad Dascalescu <dandv@yahoo-inc.com> Parse function for PHP. Makes use of the tokenizer from tokenizephp.js. Based on pa...
JavaScript
/* This file defines an XML parser, with a few kludges to make it * useable for HTML. autoSelfClosers defines a set of tag names that * are expected to not have a closing tag, and doNotIndent specifies * the tags inside of which no indentation should happen (see Config * object). These can be disabled by passing th...
JavaScript
/* Tokenizer for JavaScript code */ var tokenizeJavaScript = (function() { // Advance the stream until the given character (not preceded by a // backslash) is encountered, or the end of the line is reached. function nextUntilUnescaped(source, end) { var escaped = false; while (!source.endOfLine()) { ...
JavaScript
// A framework for simple tokenizers. Takes care of newlines and // white-space, and of getting the text from the source stream into // the token object. A state is a function of two arguments -- a // string stream and a setState function. The second can be used to // change the tokenizer's state, and can be ignored fo...
JavaScript
/* The Editor object manages the content of the editable frame. It * catches events, colours nodes, and indents lines. This file also * holds some functions for transforming arbitrary DOM structures into * plain sequences of <span> and <br> elements */ var internetExplorer = document.selection && window.ActiveXObj...
JavaScript
/* Copyright (c) 2008-2009 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed by Yahoo! Inc. under the BSD (revised) open source license @author Dan Vlad Dascalescu <dandv@yahoo-inc.com> Based on parsehtmlmixed.js by Marijn Haverbeke. */ var PHPHTMLMixedParser = Editor....
JavaScript
/* CodeMirror main module (http://codemirror.net/) * * Implements the CodeMirror constructor and prototype, which take care * of initializing the editor frame, and providing the outside interface. */ // The CodeMirrorConfig object is used to specify a default // configuration. If you specify such an object before ...
JavaScript
// Minimal framing needed to use CodeMirror-style parsers to highlight // code. Load this along with tokenize.js, stringstream.js, and your // parser. Then call highlightText, passing a string as the first // argument, and as the second argument either a callback function // that will be called with an array of SPAN no...
JavaScript
/* The Editor object manages the content of the editable frame. It * catches events, colours nodes, and indents lines. This file also * holds some functions for transforming arbitrary DOM structures into * plain sequences of <span> and <br> elements */ var internetExplorer = document.selection && window.ActiveXObj...
JavaScript
/* String streams are the things fed to parsers (which can feed them * to a tokenizer if they want). They provide peek and next methods * for looking at the current character (next 'consumes' this * character, peek does not), and a get method for retrieving all the * text that was consumed since the last time get w...
JavaScript
/** * Storage and control for undo information within a CodeMirror * editor. 'Why on earth is such a complicated mess required for * that?', I hear you ask. The goal, in implementing this, was to make * the complexity of storing and reverting undo information depend * only on the size of the edited or restored con...
JavaScript
/* Parse function for JavaScript. Makes use of the tokenizer from * tokenizejavascript.js. Note that your parsers do not have to be * this complicated -- if you don't want to recognize local variables, * in many languages it is enough to just look for braces, semicolons, * parentheses, etc, and know when you are in...
JavaScript
var DummyParser = Editor.Parser = (function() { function tokenizeDummy(source) { while (!source.endOfLine()) source.next(); return "text"; } function parseDummy(source) { function indentTo(n) {return function() {return n;}} source = tokenizer(source, tokenizeDummy); var space = 0; var ite...
JavaScript
/* Copyright (c) 2008-2009 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed by Yahoo! Inc. under the BSD (revised) open source license @author Vlad Dan Dascalescu <dandv@yahoo-inc.com> Tokenizer for PHP code References: + http://php.net/manual/en/reserved.php + ...
JavaScript
/** * Tinymce template_list.js sample file * @version tinymce 3.3.9 * @package Joomla * @copyright Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License...
JavaScript
var FinderProgressBar = new Class({ Implements: [Events, Options], options: { container: document.body, boxID: 'progress-bar-box-id', percentageID: 'progress-bar-percentage-id', displayID: 'progress-bar-display-id', startPercentage: 0, displayText: false, speed: 10, step: 1, allowMore: false, onCo...
JavaScript
var Observer = new Class({ Implements: [Options, Events], options: { periodical: false, delay: 1000 }, initialize: function (el, onFired, options) { this.element = document.id(el) || $document.id(el); this.addEvent('onFired', onFired); this.setOptions(options); this.bound = this.changed.bind(this); th...
JavaScript
FinderFilter = new Class({ Extends: Fx.Elements, options: { onActive: Class.empty, onBackground: Class.empty, height: false, width: true, opacity: true, fixedHeight: false, fixedWidth: 220, wait: true }, initialize: function (togglers, elements, container, frame) { this.togglers = togglers || [...
JavaScript
window.addEvent('domready', function () { sm = document.id('system-message'); if (sm) { sm.addEvent('check', function () { open = 0; messages = this.getElements('li'); for (i = 0, n = messages.length; i < n; i++) { if (messages[i].getProperty('hidden') != 'hidden') { open++; } } if (open...
JavaScript
var Highlighter = new Class({ options: { autoUnhighlight: true, caseSensitive: false, startElement: false, endElement: false, elements: new Array(), className: 'highlight', onlyWords: true, tag: 'span' }, initialize: function (options) { this.setOptions(options); this.getElements(this.options.sta...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * JMediaManager behavior for media component * * @package Joomla.Extensions * @subpackage Media * @since 1.5 */ (function() { var Media...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * JImageManager behavior for media component * * @package Joomla.Extensions * @subpackage Media * @since 1.5 */ (function() { var Image...
JavaScript
/** * @package Joomla.JavaScript * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // Only define the Joomla namespace if not defined. if (typeof(Joomla) === 'undefined') { var Joomla = {}; } /** *...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ Object.append(Browser.Features, { localstorage: (function() { return ('localStorage' in window) && window.localStorage !== null; })() }); /** ...
JavaScript
/* --- MooTools: the javascript framework web build: - http://mootools.net/core/76bf47062d6c1983d66ce47ad66aa0e0 packager build: - packager build Core/Core Core/Array Core/String Core/Number Core/Function Core/Object Core/Event Core/Browser Core/Class Core/Class.Extras Core/Slick.Parser Core/Slick.Finder Core/Eleme...
JavaScript
/** * @package Joomla.JavaScript * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // Only define the Joomla namespace if not defined. if (typeof(Joomla) === 'undefined') { var Joomla = {}; } Joomla...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * JavaScript behavior to allow shift select in administrator grids */ (function() { Joomla = Joomla || {}; Joomla.JMultiSelect = new Class(...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ Object.append(Browser.Features, { inputemail: (function() { var i = document.createElement("input"); i.setAttribute("type", "email"); return ...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * Switcher behavior * * @package Joomla * @since 1.5 */ var JSwitcher = new Class({ Implements: [Options, Events], togglers: null, el...
JavaScript
/* Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo * ----------------------------------------------------------- * * The DHTML Calendar, version 1.0 "It is happening again" * * Details and latest version at: * www.dynarch.com/projects/calendar * * This script is developed by Dynarch.com. Visit us at...
JavaScript
/* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/ * --------------------------------------------------------------------------- * * The DHTML Calendar * * Details and latest version at: * http://dynarch.com/mishoo/calendar.epl * * This script is distributed under the GNU Lesser General Public...
JavaScript
/** * Swiff.Uploader - Flash FileReference Control * * @version 3.0 * * @license MIT License * * @author Harald Kirschner <http://digitarald.de> * @author Valerio Proietti, <http://mad4milk.net> * @copyright Authors */ Swiff.Uploader = new Class({ Extends: Swiff, Implements: Events, options: { pa...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * JCaption javascript behavior * * Used for displaying image captions * * @package Joomla * @since 1.5 * @version 1.0 */ var JCaption...
JavaScript
/** * FancyUpload - Flash meets Ajax for powerful and elegant uploads. * * Updated to latest 3.0 API. Hopefully 100% compat! * * @version 3.0 * * @license MIT License * * @author Harald Kirschner <http://digitarald.de> * @copyright Authors */ var FancyUpload2 = new Class({ Extends: Swiff.Uploader, op...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // Only define the Joomla namespace if not defined. if (typeof(Joomla) === 'undefined') { var Joomla = {}; } Joomla.editors = {}; // An object to ...
JavaScript
/* name: Fx.ProgressBar description: Creates a progressbar with WAI-ARIA and optional HTML5 support. license: MIT-style authors: - Harald Kirschner <mail [at] digitarald [dot] de> - Rouven Weßling <me [at] rouvenwessling [dot] de> requires: [Core/Fx, Core/Class, Core/Element] provides: Fx.ProgressBar */ Fx.Progre...
JavaScript
/* --- description: Form.PasswordStrength class, and basic dom methods license: MIT-style authors: - Al Kent requires: - core/1.3.1: '*' provides: - Form.PasswordStrength - Element.Events.keyupandchange - String.strength ... */ if (!this.Form) this.Form = {}; Form.PasswordStrength = new Class({ Implements...
JavaScript
/* --- script: mooRainbow.js version: 1.3 description: MooRainbow is a ColorPicker for MooTools 1.3 license: MIT-Style authors: - Djamil Legato (w00fz) - Christopher Beloch requires: [Core/*, More/Slider, More/Drag, More/Color] provides: [mooRainbow] ... */ var MooRainbow = new Class({ options: { id: 'mooR...
JavaScript
/* Script: mootree.js My Object Oriented Tree - Developed by Rasmus Schultz, <http://www.mindplay.dk> - Tested with MooTools release 1.2, under Firefox 2, Opera 9 and Internet Explorer 6 and 7. License: MIT-style license. Credits: Inspired by: - WebFX xTree, <http://webfx.eae.net/dhtml/xtree/> - Destroydrop dT...
JavaScript
/** * SqueezeBox - Expandable Lightbox * * Allows to open various content as modal, * centered and animated box. * * Dependencies: MooTools 1.4 or newer * * Inspired by * ... Lokesh Dhakar - The original Lightbox v2 * * @version 1.3 * * @license MIT-style license * @author Harald Kirschner <mail [at] ...
JavaScript
var joomlaupdate_error_callback = dummy_error_handler; var joomlaupdate_stat_inbytes = 0; var joomlaupdate_stat_outbytes = 0; var joomlaupdate_stat_files = 0; var joomlaupdate_stat_percent = 0; var joomlaupdate_factory = null; var joomlaupdate_progress_bar = null; /** * An extremely simple error handler, dumping erro...
JavaScript
window.addEvent('domready', function () { em = document.id('extraction_method'); if (em) { em.addEvent('change', function () { if(em.value == 'direct') { document.id('row_ftp_hostname').style.display = 'none'; document.id('row_ftp_port').style.display = 'none'; document.id('row_ftp_username').style.d...
JavaScript
/* * http://www.JSON.org/json2.js * 2009-09-29 * Public Domain. * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. * See http://www.JSON.org/js.html */ if(!this.JSON){this.JSON={};} (function(){function f(n){return n<10?'0'+n:n;} if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=funct...
JavaScript
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* AES implementation in JavaScript (c) Chris Veness 2005-2010 */ /* - see http://csrc.nist.gov/publications/PubsFIPS.html#197 */ /* - - - - - - - ...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * Some state variables for the overrider */ Joomla.overrider = { states : { refreshing: false, refreshed: false, counter: 0, searchst...
JavaScript
/** * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ window.addEvent('domready', function(){ var ajax_structure = { onSuccess: function(msg, responseXML) { try { var updateInfoList = JSON.d...
JavaScript
/* * jQuery Hotkeys Plugin * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * * Based upon the plugin by Tzury Bar Yochay: * http://github.com/tzuryby/hotkeys * * Original idea by: * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/ */ (functi...
JavaScript
(function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(moreRules){ allRules = { "minSize": { "regex": "none", "alertText": "* Minimum ", "alertText2": " characters...
JavaScript
(function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(moreRules){ allRules = { "minSize": { "regex": "none", "alertText": "* Minimum ", "alertText2": " caracteres requis" ...
JavaScript
/* * Inline Form Validation Engine 2.2, jQuery plugin * * Copyright(c) 2010, Cedric Dugas * http://www.position-absolute.com * * 2.0 Rewrite by Olivier Refalo * http://www.crionics.com * * Form validation engine allowing custom regex rules to be added. * Licensed under the MIT License */ (functio...
JavaScript
/** * jQuery JSON Plugin * version: 2.3 (2011-09-17) * * This document is licensed as free software under the terms of the * MIT License: http://www.opensource.org/licenses/mit-license.php * * Brantley Harris wrote this plugin. It is based somewhat on the JSON.org * website's http://www.json.org/json2.js, which...
JavaScript
/* Copyright (c) 2010,Jomsocial Team . All rights reserved. */ CKEDITOR.skins.add('jomsocial', (function() { var a = 'cke_ui_color'; return { editor: { css: ['editor.css'] }, dialog: { css: ['dialog.css'] }, templates: { ...
JavaScript
/* Copyright (c) 2010,Jomsocial Team . All rights reserved. */ CKEDITOR.editorConfig = function(config) { config.contentsLanguage = 'en'; config.resize_enabled = false; config.toolbar = 'JomSocial'; config.skin = 'jomsocial'; config.removePlugins = 'elementspath,save,font'; config.to...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','en',{placeholder:{title:'Placeholder Properties',toolbar:'Create Placeholder',text:'Placeholder Text',edit:'Edit Placeholder',te...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefi...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','he',{uicolor:{title:'בחירת צבע ממשק משתמש',preview:'תצוגה מקדימה',config:'הדבק את הטקסט הבא לתוך הקובץ config.js',predefined:'קבוצות...
JavaScript
/*! jQuery UI - v1.9.1 - 2012-10-25 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js...
JavaScript
joms.jQuery.extend( { /* * */ createUploadIframe: function(id, uri) { //create frame var frameId = 'jUploadFrame' + id; var iframeHtml = '<iframe id="' + frameId + '" name="' + frameId + '" style="position:absolute; top:-9999px; left:-9999px"'; if(window.ActiveXObject) { ...
JavaScript
/* ========= joms.ajax ========= joms.ajax = jax + jQuery.ajax(). Jax is like the protocol. jQuery.ajax() is like the transport. Process flow: Jax wraps data. | jQuery.ajax() sends the data to server. | Server returns jax responses. | jQuery.ajax() delegate jax responses. | jax.processRespons...
JavaScript
(function($) { $.jomSelect = { options: { selectClass: 'selector', focusClass: 'focus', activeClass: 'active', hoverClass: 'hover', useID: true, idPrefix: 'jomSelect', resetSelector: false, autoHide: true, spanClass: 'attend' }, elements: [] }; ...
JavaScript
joms.extend({ minitip: { id: { canvas: 'cMinitip', contentWrap: 'cMinitipContentWrap', content: 'cMinitipContent', contentOuter: 'cMinitipContentOuter' }, className: { canvas: 'cMinitipClass', canvas_add: 'dialog' }, _init: function(minitipCall, winTitle, contentWidth, contentHe...
JavaScript
joms.extend({ editLayout: { appPositions : '.app-position', appItems : '.app-item:not(.app-core)', activate: function( activityId ) { var appPositions = joms.jQuery(this.appPositions); var appItems = joms.jQuery(this.appItems); // Prevent selection of text appItems.attr...
JavaScript
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL...
JavaScript
/*! * jomsQuery JavaScript Library v1.3.2 * http://jquery.com/ * * Copyright (c) 2009 John Resig * Dual licensed under the MIT and GPL licenses. * http://docs.jquery.com/License * * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) * Revision: 6246 */ (function(){ var // Will speed up r...
JavaScript
function cValidate() { /** * Attach event to all form element with 'required' class */ this.message = ''; this.REM = 'info is required. Make sure it contains a valid value!'; //required enty missing. this.noticeTitle = 'Notice'; this.errorField = new Array(); this.customMessage = ''; this.JOINTEXT = ...
JavaScript
// jQuery List DragSort v0.5.1 // Website: http://dragsort.codeplex.com/ // License: http://dragsort.codeplex.com/license (function($) { $.fn.dragsort = function(options) { if (options == "destroy") { $(this.selector).trigger("dragsort-uninit"); return; } var opts = $.extend({}, $.fn.dragsor...
JavaScript
joms.extend({ editLayout: { sortElements: '#apps-sortable, #apps-sortable-side-top, #apps-sortable-side-bottom', start: function( activityId ){ joms.jQuery('.page-action#editLayout-start').hide(); joms.jQuery('.page-action#editLayout-stop').show(); // Hide the activity stream for a while joms.j...
JavaScript
/* * jQuery UI Sortable 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Sortables * * Depends: * ui.core.js */ (function($) { $.widget("ui.sortable", $.extend({}, $.ui.mou...
JavaScript
/* * jQuery Autocomplete plugin 1.1 * * Copyright (c) 2009 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $ */ ;(...
JavaScript
/* * imgAreaSelect jQuery plugin * version 0.9.9 * * Copyright (c) 2008-2011 Michal Wojciechowski (odyniec.net) * * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://odyniec.net/projects/imgareaselect/ * */ (function($) { /* * Math functions will be used extens...
JavaScript
// JavaScript Document // Show about box function cAppsAbout(appName){ var ajaxCall = "jax.call('community', 'apps,ajaxShowAbout', '"+appName+"');"; cWindowShow(ajaxCall, 'About', 450, 200); } // Show privacy box function cAppsPrivacy(appName){ var ajaxCall = "jax.call('community', 'apps,ajaxShowPrivacy'...
JavaScript
// JavaScript Document joms.jQuery(document).ready(function() { // Iterate through each drop-down box options and generate HTML on-the-fly // set base z-index to be 10000 , and it will be decreased as we go downwards to ensure all // dropdowns are on top var baseZIndex = 10000; joms.jQuery('select....
JavaScript
/** * Slider Kit v1.8 - Sliding contents with jQuery * http://www.kyrielles.net/sliderkit * * Copyright (c) 2010-2011 Alan Frog * Licensed under the GNU General Public License * See <license.txt> or <http://www.gnu.org/licenses/> * * Requires: jQuery v1.3+ <http://jquery.com/> * * -------...
JavaScript
joms.extend({ gallery:{ loaderTimeout: null, inputFocused: false, bindFocus: function(){ joms.jQuery('textarea, [type=text]').each( function(){ joms.jQuery( this ).focus( function(){ joms.gallery.inputFocused = true; }).blur( function(){ joms.gallery.inputFocused = false; }); }); }...
JavaScript
var mouse_is_inside = false; var cwindow_is_modeless = false; function cWindowShow(windowCall, winTitle, contentWidth, contentHeight, winType) { // Added to avoid the event bound on cMiniWindowShow joms.jQuery("body").unbind("mouseup"); joms.jQuery('#cWindow').remove(); /* Original HTML at bottom. Edit...
JavaScript
joms.$(document).ready(function() { joms.$('body').delegate('a', 'click', function(event) { var link = joms.$(event.currentTarget); if (link.attr('target')!='page') { joms.mobile.content.load(link.attr('href')); } else { document.location.href=link.attr('href'); } event.preventDefault()...
JavaScript
/* A simple class for displaying file information and progress Note: This is a demonstration only and not part of SWFUpload. Note: Some have had problems adapting this class in IE7. It may not be suitable for your application. */ // Constructor // file is a SWFUpload file object // targetID is the HTML elem...
JavaScript
/* ********************** Event Handlers These are my custom event handlers to make my web application behave the way I went when SWFUpload completes different tasks. These aren't part of the SWFUpload package. They are part of my application. Without these none of the actions SWFUpload makes...
JavaScript
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is cont...
JavaScript
(function($) { $.fn.tipsy = function(options) { options = $.extend({}, $.fn.tipsy.defaults, options); return this.each(function() { var opts = $.fn.tipsy.elementOptions(this, options); $(this).hover(function() { $.data(this...
JavaScript