code
stringlengths
1
2.08M
language
stringclasses
1 value
/* http://keith-wood.name/countdown.html * Malayalam/(Indian>>Kerala) initialisation for the jQuery countdown extension * Written by Harilal.B (harilal1234@gmail.com) Feb 2013. */ (function($) { $.countdown.regional['ml'] = { labels: ['വര്‍ഷങ്ങള്‍', 'മാസങ്ങള്‍', 'ആഴ്ചകള്‍', 'ദിവസങ്ങള്‍', 'മണിക്കൂറുക...
JavaScript
/* http://keith-wood.name/countdown.html * Serbian Cyrillic initialisation for the jQuery countdown extension * Written by Predrag Leka lp@lemurcake.com (2010) */ (function($) { $.countdown.regional['sr'] = { labels: ['Година', 'Месеци', 'Недеља', 'Дана', 'Часова', 'Минута', 'Секунди'], labels1: ['Година', 'мес...
JavaScript
/* http://keith-wood.name/countdown.html Simplified Chinese initialisation for the jQuery countdown extension Written by Cloudream (cloudream@gmail.com). */ (function($) { $.countdown.regional['zh-CN'] = { labels: ['年', '月', '周', '天', '时', '分', '秒'], labels1: ['年', '月', '周', '天', '时', '分', '秒'], compactLa...
JavaScript
/* http://keith-wood.name/countdown.html * Galician initialisation for the jQuery countdown extension * Written by Moncho Pena ramon.pena.rodriguez@gmail.com (2009) and Angel Farrapeira */ (function($) { $.countdown.regional['gl'] = { labels: ['Anos', 'Meses', 'Semanas', 'Días', 'Horas', 'Minutos', 'Segundos'], ...
JavaScript
/* http://keith-wood.name/countdown.html Countdown for jQuery v1.6.3. Written by Keith Wood (kbwood{at}iinet.com.au) January 2008. Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license. Please attribute the author if you use it. */ /* Display a countdown timer. ...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'f>r><'table-scrollable't><'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>", // horizobtal scrollable datatable //"sDom": "<'row'<'col-md-6 col-sm-12'l><'co...
JavaScript
/*! * Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/ * Dual-licensed under the BSD or MIT licenses */ ;(function($, window, document, undefined) { var hasTouch = 'ontouchstart' in window; /** * Detect CSS pointer-events property * events are normally disabled on t...
JavaScript
/*! * FullCalendar v1.6.1 Google Calendar Plugin * Docs & License: http://arshaw.com/fullcalendar/ * (c) 2013 Adam Shaw */ (function($) { var fc = $.fullCalendar; var formatDate = fc.formatDate; var parseISO8601 = fc.parseISO8601; var addDays = fc.addDays; var applyAll = fc.applyAll; fc.sourceNormalizers.push...
JavaScript
/*! * FullCalendar v1.6.1 * Docs & License: http://arshaw.com/fullcalendar/ * (c) 2013 Adam Shaw */ /* * Use fullcalendar.css for basic styling. * For event drag & drop, requires jQuery UI draggable. * For event resizing, requires jQuery UI resizable. */ (function($, undefined) { ;; var defaults = { // ...
JavaScript
/** * @license Input Mask plugin for jquery * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - 2014 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 2.4.18 */ (function ($) { if ($.fn.inputmask === undefined) { //helper fun...
JavaScript
 /** * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time at http://ckeditor.com/builder to build CKEditor aga...
JavaScript
/** * @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. // For the complete reference: // http://docs.ckeditor.com/#...
JavaScript
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript
/** * Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ // This file contains style definitions that can be used by CKEditor plugins. // // The most common use for it is the "stylescombo" plugin, which shows a comb...
JavaScript
/** * Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'myDialog', function( editor ) { return { title: 'My Dialog', minWidth: 400, minHeight: 200, contents: [ { id: 'tab1...
JavaScript
/** Address editable input. Internally value stored as {city: "Moscow", street: "Lenina", building: "15"} @class address @extends abstractinput @final @example <a href="#" id="address" data-type="address" data-pk="1">awesome</a> <script> $(function(){ $('#address').editable({ url: '/post', title: '...
JavaScript
/** Bootstrap wysihtml5 editor. Based on [bootstrap-wysihtml5](https://github.com/jhollingworth/bootstrap-wysihtml5). You should include **manually** distributives of `wysihtml5` and `bootstrap-wysihtml5`: <link href="js/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css" rel="styleshee...
JavaScript
/** * @author Will Steinmetz * * jQuery notification plug-in inspired by the notification style of Windows 8 * * Copyright (c)2013, Will Steinmetz * Licensed under the BSD license. * http://opensource.org/licenses/BSD-3-Clause */ ;(function($) { var settings = { life: 10000, theme: 'teal', sticky: fals...
JavaScript
/** * Clockface - v1.0.0 * Clockface timepicker for Twitter Bootstrap * * Confusion with noon and midnight: * http://en.wikipedia.org/wiki/12-hour_clock * Here considered '00:00 am' as midnight and '12:00 pm' as noon. * * Author: Vitaliy Potapov * Project page: http://github.com/vitalets/clockface * Copyright (c) 2012...
JavaScript
// Ion.RangeSlider // version 1.7.2 Build: 134 // © 2013 Denis Ineshin | IonDen.com // // Project page: http://ionden.com/a/plugins/ion.rangeSlider/ // GitHub page: https://github.com/IonDen/ion.rangeSlider // // Released under MIT licence: // http://ionden.com/a/plugins/licence-en.html // ============...
JavaScript
/*! * jQuery twitter bootstrap wizard plugin * Examples and documentation at: http://github.com/VinceG/twitter-bootstrap-wizard * version 1.0 * Requires jQuery v1.3.2 or later * Supports Bootstrap 2.2.x, 2.3.x, 3.0 * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.p...
JavaScript
/* jQuery Tags Input Plugin 1.3.3 Copyright (c) 2011 XOXCO, Inc Documentation for this plugin lives here: http://xoxco.com/clickable/jquery-tags-input Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php ben@xoxco.com */ (function($) { var delimiter = new Array(); var t...
JavaScript
/** * @preserve * bootpag - jQuery plugin for dynamic pagination * * Copyright (c) 2013 botmonster@7items.com * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Project home: * http://botmonster.com/jquery-bootpag/ * * Version: 1.0.5 * */ (function($, window...
JavaScript
/*! Backstretch - v2.0.3 - 2012-11-30 * http://srobbin.com/jquery-plugins/backstretch/ * Copyright (c) 2012 Scott Robbin; Licensed MIT */ ;(function ($, window, undefined) { 'use strict'; /* PLUGIN DEFINITION * ========================= */ $.fn.backstretch = function (images, options) { // We need at le...
JavaScript
/* Flot plugin for selecting regions of a plot. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin supports these options: selection: { mode: null or "x" or "y" or "xy", color: color, shape: "round" or "miter" or "bevel", minSize: number of pixels } Selection support is ena...
JavaScript
/* Flot plugin for showing crosshairs when the mouse hovers over the plot. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin supports these options: crosshair: { mode: null or "x" or "y" or "xy" color: color lineWidth: number } Set the mode to one of "x", "y" or "xy". ...
JavaScript
/* Flot plugin for plotting textual data or categories. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Consider a dataset like [["February", 34], ["March", 20], ...]. This plugin allows you to plot such a dataset directly. To enable it, you must specify mode: "categories" on the axis w...
JavaScript
/* Flot plugin for computing bottoms for filled line and bar charts. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The case: you've got two series that you want to fill the area between. In Flot terms, you need to use one as the fill bottom of the other. You can specify the bottom of e...
JavaScript
// Copyright 2006 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 wr...
JavaScript
/* Flot plugin for automatically redrawing plots as the placeholder resizes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. It works by listening for changes on the placeholder div (through the jQuery resize event plugin) - if the size changes, it will redraw the plot. There are no opt...
JavaScript
/* Flot plugin for thresholding data. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin supports these options: series: { threshold: { below: number color: colorspec } } It can also be applied to a single series, like this: $.plot( $("#placeholder"), [{ data: [...
JavaScript
/* Flot plugin that adds some extra symbols for plotting points. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The symbols are accessed as strings through the standard symbol options: series: { points: { symbol: "square" // or "diamond", "triangle", "cross" } } */ (function...
JavaScript
/* Plugin for jQuery for working with colors. * * Version 1.1. * * Inspiration from jQuery color animation plugin by John Resig. * * Released under the MIT license by Ole Laursen, October 2009. * * Examples: * * $.color.parse("#fff").scale('rgb', 0.25).add('a', -0.5).toString() * var c = $.color.extrac...
JavaScript
/* Flot plugin for stacking data sets rather than overlyaing them. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin assumes the data is sorted on x (or y if stacking horizontally). For line charts, it is assumed that if a line has an undefined gap (from a null point), then the ...
JavaScript
/* Flot plugin for rendering pie charts. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The plugin assumes that each series has a single data value, and that each value is a positive integer or zero. Negative numbers don't make sense for a pie chart, and have unpredictable results. Th...
JavaScript
/* Pretty handling of time axes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Set axis.mode to "time" to enable. See the section "Time series data" in API.txt for details. */ (function($) { var options = { xaxis: { timezone: null, // "browser" for local to the client or time...
JavaScript
/* Flot plugin for adding the ability to pan and zoom the plot. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The default behaviour is double click and scrollwheel up/down to zoom in, drag to pan. The plugin defines plot.zoom({ center }), plot.zoomOut() and plot.pan( offset ) so you ea...
JavaScript
/* Javascript plotting library for jQuery, version 0.8.2. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.1. * * Inspiration fr...
JavaScript
// ----- // The `timezoneJS.Date` object gives you full-blown timezone support, independent from the timezone set on the end-user's machine running the browser. It uses the Olson zoneinfo files for its timezone data. // // The constructor function and setter methods use proxy JavaScript Date objects behind the scenes, ...
JavaScript
/* Flot plugin for plotting images. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. The data syntax is [ [ image, x1, y1, x2, y2 ], ... ] where (x1, y1) and (x2, y2) are where you intend the two opposite corners of the image to end up in the plot. Image must be a fully loaded Javascript ...
JavaScript
/* Flot plugin for plotting error bars. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Error bars are used to show standard deviation and other statistical properties in a plot. * Created by Rui Pereira - rui (dot) pereira (at) gmail (dot) com This plugin allows you to plot error-ba...
JavaScript
/* Flot plugin for drawing all elements of a plot on the canvas. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Flot normally produces certain elements, like axis labels and the legend, using HTML elements. This permits greater interactivity and customization, and often looks better, du...
JavaScript
/** * jquery.Jcrop.js v0.9.12 * jQuery Image Cropping Plugin - released under MIT License * Author: Kelly Hallman <khallman@gmail.com> * http://github.com/tapmodo/Jcrop * Copyright (c) 2008-2013 Tapmodo Interactive LLC {{{ * * Permission is hereby granted, free of charge, to any person * obtaining a copy of th...
JavaScript
/*! * jQuery Color Animations v2.0pre * http://jquery.org/ * * Copyright 2011 John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license */ (function( jQuery, undefined ){ var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor col...
JavaScript
/** * @version: 1.3 * @author: Dan Grossman http://www.dangrossman.info/ * @date: 2014-01-14 * @copyright: Copyright (c) 2012-2014 Dan Grossman. All rights reserved. * @license: Licensed under Apache License v2.0. See http://www.apache.org/licenses/LICENSE-2.0 * @website: http://www.improvely.com/ */ !function ($) { ...
JavaScript
// moment.js // version : 2.1.0 // author : Tim Wood // license : MIT // momentjs.com (function (undefined) { /************************************ Constants ************************************/ var moment, VERSION = "2.1.0", round = Math.round, i, // internal storage for...
JavaScript
/*! * MockJax - jQuery Plugin to Mock Ajax requests * * Version: 1.5.0pre * Released: * Home: http://github.com/appendto/jquery-mockjax * Author: Jonathan Sharp (http://jdsharp.com) * License: MIT,GPL * * Copyright (c) 2011 appendTo LLC. * Dual licensed under the MIT or GPL licenses. * http:...
JavaScript
(function() { var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, avgAmplitude, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNativ...
JavaScript
/* * Gritter for jQuery * http://www.boedesign.com/ * * Copyright (c) 2012 Jordan Boesch * Dual licensed under the MIT and GPL licenses. * * Date: February 24, 2012 * Version: 1.7.4 */ (function($){ /** * Set it up as an object under the jQuery namespace */ $.gritter = {}; /** * Set up global optio...
JavaScript
/* * jQuery Iframe Transport Plugin 1.8.2 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* global define, window, document */ (function (factory) { 'use strict'; ...
JavaScript
/* * jQuery File Upload jQuery UI Plugin 8.7.0 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* jshint nomen:false */ /* global define, window */ (function (factory) { ...
JavaScript
/* * jQuery XDomainRequest Transport Plugin 1.1.3 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT * * Based on Julian Aubourg's ajaxHooks xdr.js: * https://github.com/jaubou...
JavaScript
/* * jQuery postMessage Transport Plugin 1.1.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* global define, window, document */ (function (factory) { 'use strict...
JavaScript
#!/usr/bin/env node /* * jQuery File Upload Plugin Node.js Example 2.1.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2012, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* jshint nomen:false */ /* global require, __dirn...
JavaScript
/* * MultiSelect v0.9.10 * Copyright (c) 2012 Louis Cuny * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar....
JavaScript
/*! * typeahead.js 0.10.0 * https://github.com/twitter/typeahead.js * Copyright 2013 Twitter, Inc. and other contributors; Licensed MIT */ (function($) { var _ = { isMsie: function() { return /(msie|trident)/i.test(navigator.userAgent) ? navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)...
JavaScript
// jquery.pjax.js // copyright chris wanstrath // https://github.com/defunkt/jquery-pjax (function($){ // When called on a container with a selector, fetches the href with // ajax into the container or with the data-pjax attribute on the link // itself. // // Tries to make sure the back button and ctrl+click work the...
JavaScript
/* ************************************************************************** _____ _____ _ _ | ____| | _ \ | | / / | |__ | | | | | |/ / | __| | | | | | |\ \ | |___ | |_| | | | \ \ |_____| |_____/ |_| \_\ Version: 0.1.2 Author: Frank Cheung Email: frank@ajaxjs.c...
JavaScript
/** --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 用法: <%@language=jscript codepage=65001%> <script src="/edk/common/edk.js" language="JavaScript" runat="server"></script> <script src="/edk/common...
JavaScript
$$.Server.protect = function(){ /// 获取客户端IP /// @return {String} IP this.getIp = function(){ var proxy = $("HTTP_X_FORWARDED_FOR", "serv"); ip = proxy && proxy.indexOf("unknown") != -1 ? proxy.split(/,;/g)[0] : $("REMOTE_ADDR", "serv"); ip = ip.trim().substring(0, 15); return "::1" === ip ? "...
JavaScript
$$.Server.request = function(){ /** * 是否POST提交数据。 * @return {Boolean} */ this.isPOST = function(){ return Request.ServerVariables('HTTP_METHOD')() == "POST"; } /** * 返回是否Raw 的POST。这个方法在某种场合必须使用,例如Ext.Direct。 * 约定:凡application/json的提交均视作Raw POST。 * @return {Boolean} */ this.isR...
JavaScript
/** * DeepCMS中,一个路由是一个HTTP方法与URL匹配范式的配对。每个路由都与一个代码块关联: get '/' do .. 显示一些事物 .. end post '/' do .. 创建一些事物 .. end put '/' do .. 更新一些事物 .. end delete '/' do .. 消灭一些事物 .. end 路由按照它们被定义的顺序进行匹配。第一个与请求匹配的路由会被调用。 * oute根据请求的url等信息去获取获取controller和action的信息, * 如果获取到,则通过动态调用调用action方法,如果没有匹配的...
JavaScript
/** * @class $$.sql.reader.Querist bar = { select : [news.id, news.title, newsclass.title, newsclass.id, user.id, user.title] } */ $$.sql.Parser = function(){ var data = this.data; if(!data) { data = this.data = {}; } data.mainTable = ''; data.top = {}; data.top.value = 0; data.t...
JavaScript
$$.sql.Pagination = function(){ /** * 每页显示记录笔数,或者说读取多少笔的记录。如不指定则为pageSize。 * @type {Number} pageSize */ this.pageSize = Number(Request.QueryString('start')()) || 8; /** * 如不指定则为零,表示从第一笔记录开始。 * @type {Number} startNum */ this.startNum = Number(Request.QueryString('start')()) || 0; /** ...
JavaScript
$$.sql = new function(){ // 数据库连接对象,只设置一次,无须重复创建,多次创建则浪费。 var connectObj; function connectDB(cfg){ var dbType // 链接数据库的类型,是 Access 呢?MySQL 呢?还是 SQLServer? ,dbPath // 数据库文件的路径,如果通过磁盘访问的话。 ,connectStr // 链接数据库的字符串。 // 数据库对象,同前面的 var connectObj; 的对象 ,connectObj = new ActiveXObject("...
JavaScript
/** * @class SQL搜索器。 */ $$.sql.Searcher = { /** * 简易分词生成器 * @cfg {Array} targetField 选择要搜索的字段(最多两个) * @cfg {Boolean} isPreSearch 可选的 默认false 返回找到的记录集SQL语句 * @cfg {String} tablename 选择的表名 * @return {String} SQL字符串 */ searchParser: function (config){ var keyword = config.keyword; if (!key...
JavaScript
; (function() { // basePanel goes here. // @private var actions = { close : { text : '关闭', iconCls : 'icon16-quit', handler : function(btn) { Ext.Msg.confirm(document.title, '是否关闭页面?', function(text) { if (text == 'yes') { this.ownerCt.remove(this); this.removeAll(t...
JavaScript
/** * 利用最快出错即最快响应站点的做法,实现多线路、多镜像下选择最快的速度。 * 参数 sites 形如: var sites = []; autourl[1] = "http://www.cidianwang.com" autourl[2] = "http://www.aspxhome.com" autourl[3] = "http://www.llkyx.com" autourl[4] = "http://tool.aspxhome.com" autourl[5] = "http://baike.aspxhome.com" autourl[6] = "http://yohoo.com/i...
JavaScript
;(function(){ // @private function toggleButtons(smObj){ if(smObj.hasSelection()){ $$.every(this, function(action){ action.enable(); }); }else{ $$.every(this, function(action){ action.disable(); }); ...
JavaScript
Ext.ns('Edk.attachment.action', 'Edk.attachment.uploadWin'); Edk.attachment.action = { // 上传的动作。每执行一次upload action,创建一次uploadWin的对话框。 // 换句话说,每个formPanel可以对应多个上传对话框为formPanel服务。 // this = formPanel upload: { text : '上传图片' ,iconCls : 'icon16-attachment' ,handler : function(btn){ // btn是按钮对象 ...
JavaScript
;(function(){ $$.catalogTreeNode = Ext.extend(Ext.tree.AsyncTreeNode, { constructor: function(config, ItemTable){ var storeObj = ItemTable.getStore(); ItemTable.catalogTreeNode = this; this.loader = new Ext.tree.TreeLoader({ directFn : blogService.getCatalog ...
JavaScript
// 禁止选择,形成可复制的选区 document.onselectstart = function(){ var el = event.srcElement; if (!((el.tagName == "INPUT" && el.type.toLowerCase() == "text") || el.tagName == "TEXTAREA"|| el.tagName == "SELECT")){ return false; } } // for FF if(window.Event){ Ext.onReady(function(){ document.getElementsByTagName(...
JavaScript
$$.form = (function(){ var select = /select-(one|multiple)/i ,btns = /file|undefined|reset|button/i ,radio = /radio|checkbox/i ,submit = /submit/i; /** * 修改按钮的样式。 */ function addClassToBtn(cmp){ var btns = cmp.el.select('button'); btns.addCls('btnUp'); } /** * 设置焦点在用户输入框。...
JavaScript
/** * id生成器。 * @return {String} */ $$.genId = function(){ var thisFn = arguments.callee; if(!thisFn.seed){ thisFn.seed = 0; }; return 'edk_id_' + (thisFn.seed++); } Edk.base ={ browser : (function(){ var ua = navigator.userAgent.toLowerCase(); $$.apply($$, { ...
JavaScript
/** * 网页模板是把动态的数据和静态的表现组装到一起的工具,使得内容与表现方式可以分离,是Web开发中的重要技术手段。 * 早期的Web开发很简单,没有“模板 ”的概念。 * 只需把数据提取出来,放在HTML里面显示就达到程序的目的。 * HTML代码混合于逻辑代码之中,HTML就是直接显示的内容,内嵌在HMTL 中<% ... %>表示为后台(服务端)执行代码, * 但很多情况<% ... %>中又有HTML的片段,至于怎么拼凑出HTML片段的方式方法各式各样、与多种的后台语言掺杂一起(ASP、PHP、JSP)各显神通。 */ $$.tpl = (function(){ // 匹配闭合tag的正则...
JavaScript
;(function(){ // fso不存在 rename(),只有通过 move() 来完成。 function renName(){} })(); /** * 打开文件,读取其内容,返回文本的格式。 * @static * @param {String} path 文件路径 * @param {Boolean} isMapPath 是否送入相对路径。True 的话把虚拟路径还原为真实的磁盘路径。 * @return {String} 文本内容 */ $$.fs.File.read = function(path){ with(new ActiveXObjec...
JavaScript
var $$ = $$ || {}; /** * @class * @singleton * 兼容浏览器与服务端的XML加载器。 */ $$.XML = new (function(){ /** * 把 XML 格式转换为 JSON 输出。MS ONLY 暂时。 * @param {IXMLDOMNode} n * @return {Object} JSON */ this.xml2json = function (node){ var obj = {}; var element = node.firstChild; while (element) { ...
JavaScript
// 日期功能 by Liu Shuan Core.lib.date = function() { // 格式化日期 this.formatDate = function(date, style) { style = style || "yyyy-MM-ddThh:mm:ss"; return style.replace(/y+|M+|d+|h+|m+|s+|w+|q+|S/g, function($0) { var temp = 0; switch ($0.charAt(0)) { case "y" : return String(date.getFullYear())...
JavaScript
/* json2.js 2011-10-19 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM S...
JavaScript
/* SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/ SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilzén and Mammon Media and is released under the MIT License: http://www.opensource.org/licen...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
var FCKDragTableHandler = { "_DragState" : 0, "_LeftCell" : null, "_RightCell" : null, "_MouseMoveMode" : 0, // 0 - find candidate cells for resizing, 1 - drag to resize "_ResizeBar" : null, "_OriginalX" : null, "_MinimumX" : null, "_MaximumX" : null, "_LastX" : null, "_TableMap" : null, "_doc" ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript