code
stringlengths
1
2.08M
language
stringclasses
1 value
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Contains the second part of the {@link CKEDITOR} object * definition, which defines the basic editor features to be available in * the root ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.tools} object, which contains * utility functions. */ (function() { var functions = []; CKEDITOR.on( 'r...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.focusManager} class, which is used * to handle the focus on editor instances.. */ /** * Manages the focus ac...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Contains the first and essential part of the {@link CKEDITOR} * object definition. */ // #### Compressed Code // Must be updated on chang...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.themes} object, which is used to * manage themes registration and loading. */ /** * Manages themes registrat...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dtd} object, which holds the DTD * mapping for XHTML 1.0 Transitional. This file was automatically * generated f...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom} object, which contains DOM * manipulation objects and function. */ /** * DOM manipulation objects and f...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.loader} objects, which is used to * load core scripts and their dependencies from _source. */ if ( typeof CKED...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the "virtual" {@link CKEDITOR.pluginDefinition} class, which * contains the defintion of a plugin. This file is for documentation * ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.config} object, which holds the * default configuration settings. */ CKEDITOR.ENTER_P = 1; CKEDITOR.ENTER_BR =...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.plugins} object, which is used to * manage plugins registration and loading. */ /** * Manages plugins regist...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.env} object, which constains * environment and browser information. */ if ( !CKEDITOR.env ) { /** * Envi...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.skins} object, which is used to * manage skins loading. */ /** * Manages skins loading. * @namespace * @...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var loaded = {}; var loadImage = function( image, callback ) { var doCallback = function() { img.removeAllListeners(); loaded[ i...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.xml} class, which represents a * loaded XML document. */ /** * Represents a loaded XML document. * @constr...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ if ( !CKEDITOR.editor ) { /** * No element is linked to the editor instance. * @constant * @example */ CKEDITOR.ELEMENT_MODE_NONE = 0; /** * The...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the "virtual" {@link CKEDITOR.eventInfo} class, which * contains the defintions of the event object passed to event listeners. * Thi...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * Contains UI features related to an editor instance. * @constructor * @param {CKEDITOR.editor} editor The editor instance. * @example */ CKEDITOR.ui = f...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.command = function( editor, commandDefinition ) { this.uiItems = []; this.exec = function( data ) { if ( this.state == CKEDITOR.TRISTATE_DISABLED )...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * A lightweight representation of an HTML comment. * @constructor * @example */ CKEDITOR.htmlParser.comment = function( value ) { /** * The comment t...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { CKEDITOR.htmlParser.filter = CKEDITOR.tools.createClass( { $ : function( rules ) { this._ = { elementNames : [], attributeNam...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { /** * A lightweight representation of HTML text. * @constructor * @example */ CKEDITOR.htmlParser.cdata = function( value ) { /** ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var spacesRegex = /[\t\r\n ]{2,}|[\t\r\n]/g; /** * A lightweight representation of HTML text. * @constructor * @example */ CKEDITOR....
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.htmlParser.basicWriter = CKEDITOR.tools.createClass( { $ : function() { this._ = { output : [] }; }, proto : { /** * Writes th...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * A lightweight representation of an HTML DOM structure. * @constructor * @example */ CKEDITOR.htmlParser.fragment = function() { /** * The nodes con...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * A lightweight representation of an HTML element. * @param {String} name The element name. * @param {Object} attributes And object holding all attributes def...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the "virtual" {@link CKEDITOR.commandDefinition} class, * which contains the defintion of a command. This file is for * documentatio...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * HTML text parser. * @constructor * @example */ CKEDITOR.htmlParser = function() { this._ = { htmlPartsRegex : new RegExp( '<(?:(?:\\/([^>]+)>)|(?...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.ajax} object, which holds ajax methods for * data loading. */ /** * Ajax methods for data loading. * @name...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var loadedLangs = {}; CKEDITOR.lang = { /** * The list of languages available in the editor core. * @type Object * @example * ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview API initialization code. */ (function() { // Disable HC detaction in WebKit. (#5429) if ( CKEDITOR.env.webkit ) { CKEDITOR.env.hc =...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.comment} class, which represents * a DOM comment node. */ CKEDITOR.dom.comment = CKEDITOR.tools.createClas...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.editor} class, which is the base * for other classes representing DOM objects. */ /** * Represents a DOM obj...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.node} class, which is the base * class for classes that represent DOM nodes. */ /** * Base class for cla...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * DocumentFragment is a "lightweight" or "minimal" Document object. It is * commonly used to extract a portion of a document's tree or to create a new * fragmen...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.text} class, which represents * a DOM text node. */ /** * Represents a DOM text node. * @constructor ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dom.range = function( document ) { this.startContainer = null; this.startOffset = null; this.endContainer = null; this.endOffset = null; this.colla...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.document} class, which * represents a DOM document. */ /** * Represents a DOM window. * @constructor ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dom.nodeList = function( nativeList ) { this.$ = nativeList; }; CKEDITOR.dom.nodeList.prototype = { count : function() { return this.$.length; ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.document} class, which * represents a DOM document. */ /** * Represents a DOM document. * @constructor...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { // This function is to be called under a "walker" instance scope. function iterate( rtl, breakOnFalse ) { // Return null if we have reached the ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.element} class, which * represents a DOM element. */ /** * Represents a DOM element. * @constructor ...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { // Elements that may be considered the "Block boundary" in an element path. var pathBlockElements = { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.event} class, which * represents the a native DOM event object. */ /** * Represents a native DOM event o...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.resourceManager} class, which is * the base for resource managers, like plugins and themes. */ /** * Base c...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.editor} class, which represents an * editor instance. */ (function() { // The counter for automatic instanc...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.event} class, which serves as the * base for classes and objects that require event handling features. */ if (...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the "virtual" {@link CKEDITOR.dataProcessor} class, which * defines the basic structure of data processor objects to be * set to {@l...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.themes.add( 'default', (function() { function checkSharedSpace( editor, spaceName ) { var container, element; // Try to retrieve the target el...
JavaScript
function findSWF(movieName) { if (navigator.appName.indexOf("Microsoft")!= -1) { return window[movieName]; } else { return document[movieName]; } } /** * @param index as integer. * * Returns a CLONE of the chart with one of the elements removed */ function chart_remove_element(chart, i...
JavaScript
function ofc_chart() { this.elements = []; this.set_title = function(title) { this.title = title; }; this.add_element = function(new_element) { this.elements.push(new_element); }; this.set_x_axis = function(axis) { this.x_axis = axis; }; this.set_y_axis = function(axis) { this.y_axis = axis; }; } f...
JavaScript
/* http://www.JSON.org/json2.js 2008-03-24 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This file creates a global JSON object containing three methods: stringify, parse, and quote. JSON.stringify(value, replacer, space)...
JavaScript
function createTab(id){ $('#' + id ).tabs({ cache: true }); resizePageP(id); $(window).resize(function(){ resizePageP(id); }); } function resizePageP(id) { var h = $('#' + id ).parent().parent().parent().height(); $('#' + id).height(...
JavaScript
/* * Flexigrid for jQuery - New Wave Grid * * Copyright (c) 2008 Paulo P. Marinas (webplicity.net/flexigrid) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2008-07-14 00:09:43 +0800 (Tue, 14 Jul 2008) $ */ (function($){ $.addFlex = function(t...
JavaScript
// Title: Tigra Calendar // URL: http://www.softcomplex.com/products/tigra_calendar/ // Version: 3.3 (American date format) // Date: 09/01/2005 (mm/dd/yyyy) // Note: Permission given to use this script in ANY kind of applications if // header lines are left unchanged. // Note: Script consists of two files: calendar...
JavaScript
// File function.js: chua cac ham dung chung /** * checkDate(): kiểm tra FromDate có lơn hơn ToDate không, nếu lớn hơn trả về true. * **/ //========================================== /** * Hàm kiểm tra FromDate có lơn hơn ToDate một lượng day ngày hay không * Input: * From: ngày bắt đầu * To: ngày kết thúc. * day : k...
JavaScript
/* * * TableSorter 2.0 - Client-side table sorting with ease! * Version 2.0.3 * @requires jQuery v1.2.3 * * Copyright (c) 2007 Christian Bach * Examples and docs at: http://tablesorter.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.o...
JavaScript
(function($) { $.extend({ tablesorterPager: new function() { function updatePageDisplay(c) { var s = $(c.cssPageDisplay,c.container).val((c.page+1) + c.seperator + c.totalPages); } function setPageSize(table,size) { var c = table.config; c.size = size; c.totalPages = Math...
JavaScript
// Title: Tigra Calendar // URL: http://www.softcomplex.com/products/tigra_calendar/ // Version: 3.3 (American date format) // Date: 09/01/2005 (mm/dd/yyyy) // Note: Permission given to use this script in ANY kind of applications if // header lines are left unchanged. // Note: Script consists of two files: calendar...
JavaScript
// File function.js: chua cac ham dung chung /** * checkDate(): kiểm tra FromDate có lơn hơn ToDate không, nếu lớn hơn trả về true. * **/ //========================================== /** * Hàm kiểm tra FromDate có lơn hơn ToDate một lượng day ngày hay không * Input: * From: ngày bắt đầu * To: ngày kết thúc. * day : k...
JavaScript
/** * Ajax upload * Project page - http://valums.com/ajax-upload/ * Copyright (c) 2008 Andris Valums, http://valums.com * Licensed under the MIT license (http://valums.com/mit-license/) * Version 3.5 (23.06.2009) */ /** * Changes from the previous version: * 1. Added better JSON handling that allows ...
JavaScript
var firefox=document.getElementById&&!document.all; document.onmousemove=mouseMove; function mouseMove(e){ var str; var x,y; if (firefox) { x = e.clientX; y = e.clientY; } else { x = event.clientX; y = event.clientY; } } function call_user_func_array(cb, parameters) { var func; ...
JavaScript
var is_alert = false; $(document).ready(function(){ var str1 = '<div style="width: 100%;style="padding:0px">'+ '<table width="100%"><tr valign="top"><td width="50%" align="bottom" style="padding:0px;">'+ '<div id="instant_report" style="width: 100%;height: 450px;"></div></td><td width="50%"><div style...
JavaScript
/** * @license * jQuery Tools 1.2.0 Overlay - Overlay base. Extend it. * * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. * * http://flowplayer.org/tools/overlay/ * * Since: March 2008 * Date: Tue Apr 20 19:26:58 2010 +0000 */ (function($) { // static constructs $.tools = $.tools || {version: '1.2.0'...
JavaScript
jQuery.fn.extend({ everyTime: function(interval, label, fn, times, belay) { return this.each(function() { jQuery.timer.add(this, interval, label, fn, times, belay); }); }, oneTime: function(interval, label, fn) { return this.each(function() { jQuery.timer.add(this, interval, label, fn, 1); }); }, sto...
JavaScript
/* * jQuery Tooltip plugin 1.3 * * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ * http://docs.jquery.com/Plugins/Tooltip * * Copyright (c) 2006 - 2008 Jörn Zaefferer * * $Id: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer $ * * Dual licensed under the MIT and GPL licenses: * ht...
JavaScript
/** * @license * jQuery Tools 1.2.0 / Mask - Dim the lights * * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. * * http://flowplayer.org/tools/toolbox/mask.html * * Since: Mar 2010 * Date: Tue Apr 20 19:26:58 2010 +0000 */ (function($) { // static constructs $.tools = $.tools || {version: '1.2.0'}; ...
JavaScript
function openToolTip(t,i,n) { //var des = '<br/><div></div>'; var strdevid = "div"+n; var des = '<div>' + document.getElementById(strdevid).innerHTML + '</div>'; var img="<div onmouseout='UnTip();' align='center'><img src='"+i+"' style='border: 3px solid #DBDBDB' /></div>"; var btn = "<...
JavaScript
/* * Autocomplete - jQuery plugin 1.1pre * * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, 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...
JavaScript
/* * LabeledMarker Class, v1.2 * * Copyright 2007 Mike Purvis (http://uwmike.com) * * 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...
JavaScript
/* * jQuery UI 1.6rc2 * * Copyright (c) 2008 Paul Bakaus (ui.jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;(function($) { /** jQuery core modifications and additions **/ var _remove = $.fn.remove; $.fn.remove = function() {...
JavaScript
$(function(){ // Accordion $("#accordion").accordion({ header: "h3" }); // Tabs $('#tabs').tabs(); // Dialog $('#dialog').dialog({ autoOpen: false, width: 600, buttons: { "Ok": function() { $(this).dialog("close"); }, "Cancel": function() { $(this).dialog("close"); ...
JavaScript
function HighLight(TheTR, sClassName) { TheTR.className = sClassName; } function ShowDiv(sDivName, sFocusName) { var MItem = document.getElementById(sDivName); if(MItem) { MItem.style.display = "block"; var objFocus = document.getElementById(sFocusName); if(objFocus)...
JavaScript
var UPPERCHARCODE = new Array(65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90); var LOWERCHARCODE = new Array(97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122); var NUMBERCHARCODE = new Array(48,49,50,51,52,53,54,55,56,57); var SPECIEL...
JavaScript
var xxx=1; function addnewtab() { var $tab_title_input = $( "#tab_title"), $tab_content_input = $( "#tab_content" ); var tab_counter = 2; // tabs init with a custom tab template and an "add" callback filling in the content var $tabs = $( "#tabs").tabs({ t...
JavaScript
// add indexOf function in array for IE if (!Array.indexOf) { Array.prototype.indexOf = function (obj, start) { for (var i = (start || 0); i < this.length; i++) { if (this[i] == obj) { return i; } } return -1; } } // end add indexOf function in array for IE // Nhom cac ha...
JavaScript
/* * jquery.layout 1.2.0 * * Copyright (c) 2008 * Fabrizio Balliano (http://www.fabrizioballiano.net) * Kevin Dalman (http://allpro.net) * * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html) * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses. * * $Date: 200...
JavaScript
const TEXT_REQUIRED = "Bắt buộc nhập." ; const CBB_REQUIRED = "Bắt buộc Chọn." ; const NUMBER_REQUIRED = "Chỉ nhập số." ; const EMAIL_REQUIRED = "Nhập theo định dạng email ví dụ: example@yahoo.com " ; const NAME_REQUIRED = "Nhập các kí tự từ a...z A...Z 0...9 hoặc các kí tự @ _ ; . , - "; const CHAR_REQUIRED...
JavaScript
/* * * TableSorter 2.0 - Client-side table sorting with ease! * Version 2.0.3 * @requires jQuery v1.2.3 * * Copyright (c) 2007 Christian Bach * Examples and docs at: http://tablesorter.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.o...
JavaScript
(function($) { $.extend({ tablesorterPager: new function() { function updatePageDisplay(c) { var s = $(c.cssPageDisplay,c.container).val((c.page+1) + c.seperator + c.totalPages); } function setPageSize(table,size) { var c = table.config; c.size = size; c.totalPages = Math...
JavaScript
/* =============================================================================== Chili is the jQuery code highlighter plugin ............................................................................... Copyright 2007 / Andrea Ercolino --------------------------...
JavaScript
/* Stop IE flicker */ if ($.browser.msie == true) document.execCommand('BackgroundImageCache', false, true); ChiliBook.recipeFolder = "js/chili/"; ChiliBook.stylesheetFolder = "js/chili/" jQuery.fn.antispam = function() { return this.each(function(){ var email = $(this).text().toLowerCase().replace(/\...
JavaScript
//system var MSG_SYS_ACCESS_DENIED = "You have not authority to access this feature."; var MSG_SYS_ERR_INPUT_DATA = "Error when you input data.Please review." ; //var MSG_SYS_FORMAT_EMAIL = "Email chưa đúng định dạng." ; var MSG_SYS_FORMAT_EMAIL = "Email is not correct format(Vd : example@yahoo.com)." ; var MSG...
JavaScript
/* * jquery.layout 1.2.0 * * Copyright (c) 2008 * Fabrizio Balliano (http://www.fabrizioballiano.net) * Kevin Dalman (http://allpro.net) * * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html) * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses. * * $Date: 200...
JavaScript
var outerLayout, innerLayout; var dataTableObj = new dataTableObj(); $(document).ready(function (){ try { $("body select").msDropDown(); } catch(e) { alert(e.message); } $('.clear').live('click',function(){ var parent = $(this).parents('table:eq(0)'); $(par...
JavaScript
/** * @author RainChen @ Fri Jul 28 17:06:37 CST 2006 * @uses xajax file upload extend * @access public * @param null * @return null * @version 0.1 */ function xajax_extend() { if(typeof(xajax) == 'undefined') { return false; } xajax.newSessionID = function() { ...
JavaScript
/* xajax Javascript library :: version 0.2.4 */ Array.prototype.containsValue=function(valueToCheck){for(var i=0;i<this.length;i++){if(this[i]==valueToCheck)return true;} return false;} function Xajax(){this.DebugMessage=function(text){if(text.length > 1000)text=text.substr(0,1000)+"...\n[long response]\n...";try{if(th...
JavaScript
/** * ADAGPS V3 Website layout script * Author: Phan Van Dam * Created Date: May 7, 2010 * Last updated: May 8, 2010 **/ /* var outerLayout, middleLayout, innerLayout, northWestLayout, outerCenter; $(document).ready(function () { outerLayout = $('body').layout({ center__paneSelector: ".outer-center...
JavaScript
/** * jQuery jEC (jQuery Editable Combobox) 1.3.0 * http://code.google.com/p/jquery-jec * * Copyright (c) 2008-2009 Lukasz Rajchel (lukasz@rajchel.pl | http://rajchel.pl) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.ph...
JavaScript
// Validator Object var valid = new Object(); // REGEX Elements // Match Integer valid.Integer = /^(\d)+$/; valid.Float = /^(\d)+(.(\d)+)*$/; //Match Name valid.Name = /^(\w)+$/; // matches 05:04 or 12:34 but not 75:83 valid.Time24 = /^(([0-1][0-9])|(2[0-4])):[0-5][0-9]$/; //matches email valid.Email = /^(\w)...
JavaScript
function dataTableObj() { var obj=new Object(); obj.CreatDataTable=function(id,bsort,e) { if($.trim(e)==''||!ExpInteger.test(e)){ e = htable; } if(bsort!=true){ bsort=false; } oTable = $('#'+id).data...
JavaScript
/* Create Date : Author : Pham Van Dam Copyright(c) 2009 A.D.A Solution. All rights reserved ===================================================== Update History: Ver. TRB# Date Author Note 1 V001 2010/02/04 Toannn Thêm chức năng cập nhật lại Phương tiện khi Tracking ...
JavaScript
//Are you sure you want to delete this place? var strdelete = LOCATIONS_DELETE; var obj_show = LOCATIONS_SHOW; var not_data = LOCATIONS_DATA; function Locations() { var obj=new Object(); obj.arrOld=new Object(); obj.arrLocation = new Array(); // tat ca cac diem cua user duoc load vao mang nay ob...
JavaScript
// JScript File function DeviceInfo() { var obj=new Object(); obj.name="Aaaaa";// : Phương tiện; obj.driver="Tan Tan";// : Tài xế obj.time="2009-09-12 15:2:11";// : Thời điểm obj.speed=54;//: Vận tốc obj.distance=0.34;//: khoảng cách. obj.position="Cong hoa";// : vị trí xe. obj.lati...
JavaScript
/* Create Date : Author : Nguyen Duy Tan Copyright(c) 2009 A.D.A Solution. All rights reserved ===================================================== Update History: Ver. TRB# Date Author Note 1 V001 2010/01/12 Toannn ...
JavaScript
var muststop = VDBFUNCS_MUST_STOP; var showlist = VDBFUNCS_SHOW_LIST; var hidelist = VDBFUNCS_HIDE_LIST; var sorryg = VDBFUNCS_SORRY_G; var alldevice = VDBFUNCS_ALL_DEVICE; var f30t999 = VDBFUNCS_30_999; var connect = VDBFUNCS_CONNECT; var nodata = VDBFUNCS_NO_DATA; var dataerr = VDBFUNCS_DATA_ERR; var stop...
JavaScript
/* Create Date : Author : Nguyen Duy Tan Copyright(c) 2009 A.D.A Solution. All rights reserved ===================================================== Update History: Ver. TRB# Date Author Note 1 V001 2010/01/12 Toannn ...
JavaScript
/* Create Date : Author : Pham Van Dam Copyright(c) 2009 A.D.A Solution. All rights reserved ===================================================== Update History: Ver. TRB# Date Author Note 1 V001 2010/01/12 Toannn Review lần 2 bị lổi 1 V002 2010/02/04 Toan...
JavaScript
MPolyDragControl = function(MOptions) { MOptions = MOptions ? MOptions : {}; this.map = MOptions.map ? MOptions.map : null; this.type = MOptions.type ? MOptions.type : 'rectangle'; this.unitDivisor = 2589988.11; this.initialize() }; MPolyDragControl.prototype.initialize = function() { ...
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 Licenses. ...
JavaScript