code
stringlengths
1
2.08M
language
stringclasses
1 value
var fdLocale = { /* Uncomment the following line if the first day of the week does not start on Monday */ //firstDayOfWeek:0, fullMonths:["Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December"], monthAbbrs:["Jan", "Feb", "Mar", "Apr", "Maj", "Jun",...
JavaScript
var fdLocale = { /* Uncomment the following line if the first day of the week does not start on Monday */ //firstDayOfWeek:0, fullMonths:["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"], monthAbbrs:["Ene", "Feb", "Mar", "Abr", "May", "Jun"...
JavaScript
/* Please save this file using the appropriate two letter language code e.g. fr.js and send it to frequency.decoder at gmail d0t com - thanks! */ var fdLocale = { /* Uncomment the following line if the first day of the week does not start on Monday */ //firstDayOfWeek:0, fullMonths:["Jaanuar", "Veebruar", "M\u00...
JavaScript
/* Please save this file using the appropriate two letter language code e.g. fr.js and send it to frequency.decoder at gmail d0t com - thanks! */ var fdLocale = { /* Uncomment the following line if the first day of the week does not start on Monday */ //firstDayOfWeek:0, fullMonths:["Janeiro", "Fevereiro", "Mar\...
JavaScript
var fdLocale = { /* Uncomment the following line if the first day of the week does not start on Monday */ //firstDayOfWeek:0, fullMonths:["Stycze\u0144", "Luty", "Marzec", "Kwiecie\u0144", "Maj", "Czerwiec", "Lipiec", "Sierpie\u0144", "Wrzesie\u0144", "Pa\u017Adziernik", "Listopad", "Grudzie\u0144"], monthAbbrs:["S...
JavaScript
var fdLocale = { fullMonths:["January","February","March","April","May","June","July","August","September","October","November","December"], monthAbbrs:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"], fullDays: ["Monday","Tuesday","Wednesday"...
JavaScript
/* * Copyright 2005 Joe Walker * * 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 i...
JavaScript
/* http://www.JSON.org/json_parse.js 2009-04-18 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. This file creates a json_parse function. json_parse(text, reviver) This method parses a JSON text to produce an object or array. It can throw a S...
JavaScript
var MD5 = function (string) { function RotateLeft(lValue, iShiftBits) { return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits)); } function AddUnsigned(lX,lY) { var lX4,lY4,lX8,lY8,lResult; lX8 = (lX & 0x80000000); lY8 = (lY & 0x80000000); lX4 = (lX & 0x40000000); lY4 = (lY & 0x40000000);...
JavaScript
function Cookies() { this.setCookie = function (name, value, seconds) { if (typeof(seconds) != 'undefined') { var date = new Date(); date.setTime(date.getTime() + (seconds*1000)); var expires = "; expires=" + date.toGMTString(); } else { var expires = ""; } document.cookie = na...
JavaScript
function SHA256(s){ var chrsz = 8; var hexcase = 0; function safe_add (x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xFFFF); } function S (X, n) { return ( X >>> n ) | (X << (32 - n)); } function R (X, n) { retu...
JavaScript
/** * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * **SWFObject is the SWF embed script formerly known as FlashObject. The name was ch...
JavaScript
/** * The "classic" theme markup for Shadowbox. * * This file is part of Shadowbox. * * Shadowbox is an online media viewer application that supports all of the * web's most popular media publishing formats. Shadowbox is written entirely * in JavaScript and CSS and is highly customizable. Using Shadowbox, websit...
JavaScript
function showPopup(element_id,event){ var div = createElement("div"); div.id = "popup"; //div.style.display="none"; var popup = $(element_id); var evt = event ? event : (window.event ? window.event : null); var x = Event.pointerX(evt)+5; var y = Event.pointerY(evt)+5; div.innerHTML='\ ...
JavaScript
alert('IMPORTANT: Remove this line from json2.js before deployment.'); /* 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 This code should be minified before deployment. See http://javascript....
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ dataProcessor.prototype._o_init = dataProcessor.prototype.init; dataPro...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ /** * @desc: constructor, data processor object * @param: serverPr...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ function dataProcessor(serverProcessorURL){this.serverProcessor = serv...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ dhtmlxAjax={ get:function(url,callback){ var t=new dtmlXMLLoaderObj...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ dhtmlXCombo.prototype.attachChildCombo = function(_chcombo,xml){ if(!t...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ /** * @desc: enables or disables options auto positioning * @p...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ dhtmlXCombo_imageOption = function(){ this.init(); } dhtmlXComb...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ /*_TOPICS_ @0:Initialization @1:Selection control @2:Add/delete @3...
JavaScript
if (window.dhtmlXGridObject){ dhtmlXGridObject.prototype._init_point_connector=dhtmlXGridObject.prototype._init_point; dhtmlXGridObject.prototype._init_point=function(){ var clear_url=function(url){ url=url.replace(/(\?|\&)connector[^\f]*/g,""); return url+(url.indexOf("?")!=-1?"&":"?")+"connector=true";...
JavaScript
function dhx_init_tabbars(){ var z=document.getElementsByTagName("div"); for (var i=0; i<z.length; i++) if(z[i].className.indexOf("dhtmlxTabBar")!=-1){ var n=z[i]; var id=n.id; var k=new Array(); for (var j=0; j<n.childNodes.length; j++) ...
JavaScript
var timer=500; var data; var table; var hide_timer; var show_timer; var last_zone; var last_shown_zone; var lastnode=null; var fm={ space:"<span class='spacer'>&nbsp;</span>", gt:"{{span class='bracket'}}&gt;{{/span}}", lt:"{{span class='bracket'}}&lt;$1{{/span}}{{span class='tag'}}$...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ /*_TOPICS_ @0:Initialization @1:Selection control @2:Add/delete @3:P...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ dhtmlxAjax={ get:function(url,callback){ var t=new dtmlXMLLoaderObj...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ var _all_used_trees=new Array(); dhtmlXTreeObject.prototype._createSelf...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ function dhtmlXTreeFromHTML(obj){ if (typeof(obj)!="object") ob...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ /** * @desc: adds drag-n-drop capabilities (with possibility to dro...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ function jsonPointer(data,parent){ this.d=data; this.dp=parent; } ...
JavaScript
//v.2.1 build 90226 /* Copyright DHTMLX LTD. http://www.dhtmlx.com You allowed to use this component or parts of it under GPL terms To use it on other terms or get Professional edition of the component please contact us at sales@dhtmlx.com */ /* Purpose: item edit extension */ /** * @desc: enable editi...
JavaScript
[[1,0,"first"], [2,0,"middle"], [3,0,"last"], [4,2,"child"]]
JavaScript
var imf = function () { var lf = 0; var instances = []; function getElementsByClass (object, tag, className) { var o = object.getElementsByTagName(tag); for ( var i = 0, n = o.length, ret = []; i < n; i++) if (o[i].className == className) ret.push(o[i]); if (ret.length == 1) ret = ret[0]; return r...
JavaScript
if (typeof Date.add == 'undefined') { // 加减时间的字段 Date.Year = 0; Date.Month = 1; Date.Day = 2; Date.Hour = 3; Date.Minute = 4; Date.Second = 5; /** * 加减时间 */ Date.prototype.add = function(field, amount) { switch (field) { case 0: this.setFullYear(this.getFullYear() + amount); break;...
JavaScript
/****************************************** * Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html) * Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code * Last updated Nov 9th, 05' by DD. This notice must stay intact for use *******************************...
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.ope...
JavaScript
/* Speed Plug-in Features: *Adds several properties to the 'file' object indicated upload speed, time left, upload time, etc. - currentSpeed -- String indicating the upload speed, bytes per second - averageSpeed -- Overall average upload speed, bytes per second - movingAverageSpeed -- Speed over a...
JavaScript
var Ajax; if (Ajax && (Ajax != null)) { Ajax.Responders.register({ onCreate: function() { if($('spinner') && Ajax.activeRequestCount>0) Effect.Appear('spinner',{duration:0.5,queue:'end'}); }, onComplete: function() { if($('spinner') && Ajax.activeRequestCount==0) Effect.Fad...
JavaScript
var Ace3D = /^u/.test(typeof exports) ? Ace3D || {} : exports; void function(exports){ /* * see http://www.bitstorm.it/blog/en/2011/05/3d-sphere-html5-canvas/ */ var math = Math, sin = math.sin, cos = math.cos, rotate_changes = [[1, 2], [0, 2], [0, 1]]; function rotate(point, radians, index){ if (!poin...
JavaScript
var AceEvent = AceEvent || {}; void function(exports){ /** * Ace Engine Event * 一套简单的事件代理系统 * @see http://code.google.com/p/ace-engine/wiki/AceEvent * @author 王集鹄(wangjihu,http://weibo.com/zswang) 鲁亚然(luyaran,http://weibo.com/zinkey) * @version 1.0 * @copyright www.baidu.com */ /* Debug Start */ var l...
JavaScript
var AceDate = /^u/.test(typeof exports) ? AceDate || {} : exports; void function(exports){ function formatDate(date, separator) { date = date ? new Date(date) : new Date(); separator = separator || "$1-$2-$3 $4:$5:$6"; return String([ date.getFullYear(), (date.getMonth() + 101), (date.getDate() + 100), ...
JavaScript
var AceCore = /^u/.test(typeof exports) ? AceCore || {} : exports; void function(exports){ /** * @author 王集鹄(wangjihu,http://weibo.com/zswang) 李学健(lixuejian,http://weibo.com/poppyrr) * @fileoverview 内核 注册模块、事件管理、类库引用 * @version 1.0.2 * @copyright www.baidu.com */ /** * 监听事件集合 */ var listeners = {}, /...
JavaScript
var AceHeatmap = /^u/.test(typeof exports) ? AceHeatmap || {} : exports; void function(exports){ /** * Ace Engine Heatmap * 热力图组件 * @link http://www.patrick-wied.at/static/heatmapjs * @see http://code.google.com/p/ace-engine/wiki/AceHeatmap * @author 王集鹄(wangjihu,http://weibo.com/zswang) ...
JavaScript
var AceTemplate = /^u/.test(typeof exports) ? AceTemplate || {} : exports; void function(exports){ /** * Ace Engine Template Simple * 一套基于HTML和JS语法自由穿插的模板系统 * 特殊版(只考虑“<>”为html、无xss防止的版本) * @see http://code.google.com/p/ace-engine/wiki/AceTemplate * @author 王集鹄(wangjihu,http://weibo.com/zswang) 鲁亚然(luyaran,h...
JavaScript
var AceClass = /^u/.test(typeof exports) ? AceClass || {} : exports; void function(exports){ /** * 运行上级方法 */ function base(){ var m = arguments.callee.caller; // 获得调用者 if (!m.__parentMethod) return; return m.__parentMethod.apply(this, arguments) } /** * 查询绑定关系 * @param {Function} parent 父类构造函数 ...
JavaScript
var AcePath = AcePath || {}; void function(exports){ /** * Ace Engine Path * 一套展示矢量图路径的控件 * @see http://code.google.com/p/ace-engine/wiki/AcePath * @author 王集鹄(wangjihu,http://weibo.com/zswang) * @version 1.0 * @copyright www.baidu.com */ var ie = document.all && win...
JavaScript
/* 模板样本: <script type="text/template" id="demo2"> 嵌套的"#{title}" </script> 生成结果: function anonymous(_output_, _encode_, helper) { with(this) { _output_.push("\t\t\t\u5D4C\u5957\u7684\"", typeof title == "undefined" ? "" : _encode_(title), "\""); } } ---------------------- 模板样本: <script type="text/te...
JavaScript
var AceInteger = /^u/.test(typeof exports) ? AceInteger || {} : exports; void function(exports){ /** * Ace Engine Integer * 无限进制转换 * @see http://code.google.com/p/ace-engine/wiki/AceInteger * @author 王集鹄(wangjihu,http://weibo.com/zswang) * @version 1.0 * @copyright www.baidu.com */ /** * 进制字符串 */ ...
JavaScript
var AceTree = AceTree || {}; void function(exports){ /** * Ace Engine Tree * 一套基于模板和事件代理的通用树形控件 * @see http://code.google.com/p/ace-engine/wiki/AceTree * @author 王集鹄(wangjihu,http://weibo.com/zswang) * @version 1.0 * @copyright www.baidu.com */ /* Debug Start */ var logger = { log: function(text){ ...
JavaScript
var AceString = /^u/.test(typeof exports) ? AceString || {} : exports; void function(exports){ /** * Ace Engine String * 字符串编码处理 * @see http://code.google.com/p/ace-engine/wiki/AceString * @author 王集鹄(wangjihu,http://weibo.com/zswang) * @version 1.0 * @copyright www.baidu.com */ ...
JavaScript
// Javascript library basic 3d rendering using text. // v0.1a // // Copyright (C) 2007 W. Xavier Snelgrove // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of ...
JavaScript
[{ "text": "美国", "nodes": [{ "text": "华盛顿" }, { "text": "纽约" }] }, { "text": "英国" }, { "text": "法国", "nodes": [{ "text": "巴黎" }, { "text": "马赛" }] }]
JavaScript
module("matchSelector", { setup: function () { this.fixture_ = document.getElementById('fixture'); this.matching_selector_ = '#fixture'; this.mismatching_selector_ = '#not-fixture'; } }); test("nodes are the same", function () { equal(axs.browserUtils.matchSelector(this.fixture_, this.matching_selecto...
JavaScript
module("Contrast Ratio", { setup: function () { this.fixture_ = document.getElementById('fixture'); this.black_ = {"red": 0, "green": 0, "blue": 0, "alpha": 1}; this.white_ = {"red": 255, "green": 255, "blue": 255, "alpha": 1}; } }); test("Black and white.", function () { equal(axs.utils.calculateCont...
JavaScript
/** * QUnit v1.7.0pre - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * * Copyright (c) 2012 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * or GPL (GPL-LICENSE.txt) licenses. */ (function( window ) { var QUnit, config, testId = 0, toString = Object.proto...
JavaScript
module("BadAriaRole"); test("No elements === no problems.", function() { // Setup fixture var fixtures = document.getElementById('qunit-fixture'); deepEqual( axs.AuditRules.getRule('badAriaRole').run([], fixtures), { result: axs.constants.AuditResult.NA } ); }); test("No roles === no problems.", funct...
JavaScript
module("NonExistentAriaLabelledby"); test("Element exists, single aria-labelledby value", function() { var fixture = document.getElementById('fixture'); var labelElement = document.createElement('div'); labelElement.textContent = 'label'; labelElement.id = 'theLabel'; fixture.appendChild(labelEleme...
JavaScript
module('ControlsWithoutLabel'); test('Button with type="submit" or type="reset" has label', function() { // Setup fixture var fixture = document.getElementById('qunit-fixture'); var submitInput = document.createElement('input'); submitInput.type = 'submit'; fixture.appendChild(submitInput); va...
JavaScript
var COMPILED = !0, goog = goog || {}; goog.global = this; goog.exportPath_ = function(a, b, c) { a = a.split("."); c = c || goog.global; !(a[0] in c) && c.execScript && c.execScript("var " + a[0]); for(var d;a.length && (d = a.shift());) { !a.length && void 0 !== b ? c[d] = b : c = c[d] ? c[d] : c[d] = {} ...
JavaScript
// Copyright 2013 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2013 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2013 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...
JavaScript
// Copyright 2013 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2013 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2013 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2013 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2012 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...
JavaScript
// Copyright 2006 The Closure Library Authors. All Rights Reserved. // // 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 requ...
JavaScript
function formatDate(value){ return value ? value.dateFormat('M d, Y') : ''; }; // shorthand alias var fm = Ext.form; // custom column plugin example var checkColumn = new Ext.grid.CheckColumn({ header: "Indoor?", dataIndex: 'indoor', width: 55 }); // the column model has information about gr...
JavaScript
function getGrid() { var myData = [ ['3m Co',71.72,0.02,0.03,'9/1 12:00am'], ['Alcoa Inc',29.01,0.42,1.47,'9/1 12:00am'], ['Altria Group Inc',83.81,0.28,0.34,'9/1 12:00am'], ['American Express Company',52.55,0.01,0.02,'9/1 12:00am'], ['American International Group, ...
JavaScript
/* * Simplified Chinese translation * By DavidHu * 09 April 2007 */ Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>'; if(Ext.View){ Ext.View.prototype.emptyText = ""; } if(Ext.grid.Grid){ Ext.grid.Grid.prototype.ddText = "{0} 选择行"; } if(Ext.TabPanelItem){ Ext.Tab...
JavaScript
/* * Ext JS Library 2.0 * Copyright(c) 2006-2007, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.DomHelper = function(){ var tempTableEl = null; var emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i; var tableRe = /^table|tbody|...
JavaScript
Ext.define("Account.view.AccountGrid", { extend: "Ext.grid.Panel", alias: "widget.PositionsPanel", title: "Account Grid", frame: true, collapsible: true, store: "AccountStore", initComponent: function() { this.columns = [ {header: "Account#", dataIndex: "id_acc", type: "st...
JavaScript
/* // Override Ext.util.Filter Ext.override(Ext.util.Filter, { createFilterFn: function() { var me = this, matcher = me.createValueMatcher(), property = !Ext.isArray(me.property) ? me.property.split(",") : me.property; return function(item) { var hasMatch = false; if(matcher === nu...
JavaScript
Ext.define("Account.store.TypeAheadStore", { extend: "Ext.data.Store", model: "Account.model.AccountModel", autoLoad: false, // autoSync: true, proxy: { type: "ajax", extraParams: { key: key }, url: "rest/account", reader: { type: "json", root: "accountModel" } } /...
JavaScript
Ext.define("Account.store.AccountStore", { extend: "Ext.data.Store", model: "Account.model.AccountModel", autoLoad: true, autoSync: true, proxy: { type: "ajax", url: "rest/account/all", format: "json", reader: { type: "json", root: "accountModel" } } // End of proxy }); //...
JavaScript
Ext.define("Account.controller.AccountController", { extend: "Ext.app.Controller", views: ["AccountGrid", "TypeAheadCombo"], stores: ["AccountStore", "TypeAheadStore"], models: ["AccountModel"], init: function() { console.log("-----------------------"); console.log("[echo] Account Console"); co...
JavaScript
Ext.require("Ext.data.proxy.Ajax"); Ext.define("Account.model.AccountModel", { extend: "Ext.data.Model", fields: [ "id_acc", "nm_client", "amount_usd", "typ_acc" ] }); // End of AccountModel.js
JavaScript
Ext.require("Ext.container.Viewport"); Ext.application({ name: "Account", // Namespace appFolder: "app", controllers: ["AccountController"], launch: function() { Ext.create("Ext.container.Viewport", { layout: "border", items: [ { xtype: "panel", region...
JavaScript
/** * A base class for all menu items that require menu-related functionality such as click handling, * sub-menus, icons, etc. * * @example * Ext.create('Ext.menu.Menu', { * width: 100, * height: 100, * floating: false, // usually you want this set to True (default) * r...
JavaScript