code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Inventory == 'undefined')
Mods.Inventory = {};
var NumRow = 1;
Mods.Inventory.AdjustStockEntry = {
ServiceUrl: '../Mods/Inventory/Service/AdjustmentStockService.asmx',
Init: function () {
this.Event();
// this.... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Inventory == 'undefined')
Mods.Inventory = {};
Mods.Inventory.AdjustStock = {
ServiceUrl: '../Mods/Inventory/Service/AdjustmentStockService.asmx',
ControlIDs: {
/*
txtInwardNo: '#AdjustmentStock-txtInwardNo',
t... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Inventory == 'undefined')
Mods.Inventory = {};
var NumRow = 1;
var Precision = 0;
var Groupseparator = ',';
Mods.Inventory.TranferStockEntry = {
ServiceUrl: '../Mods/Inventory/Service/TranferStockService.asmx',
ServiceCoreUrl: '../Mods... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Inventory == 'undefined')
Mods.Inventory = {};
var NumRow = 1;
var Precision = 0;
var Groupseparator = ',';
Mods.Inventory.CoreStock[INSTANT] = {
ServiceUrl: '../Mods/Inventory/Service/CStockService.asmx',
ServerOptions: CoreStock_Inst... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Inventory == 'undefined')
Mods.Inventory = {};
Mods.Inventory.CoreStock[INSTANT] = {
ServiceUrl: '../Mods/Inventory/Service/CStockService.asmx',
ServerOptions: CoreStock_Instant['[INSTANT]'],
Init: function () {
this.Creat... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Inventory == 'undefined')
Mods.Inventory = {};
Mods.Inventory.InwardDetailEntry = {
ServiceUrl: '../Mods/Inventory/Service/InwardStockService.asmx',
DefaultInit: function () {
var windowID = "#" + $('#InwardDetailEntry-Conten... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Inventory == 'undefined')
Mods.Inventory = {};
var NumRow = 1;
var Precision = 0;
var Groupseparator = ',';
Mods.Inventory.InwardStockEntry = {
GridID: '#InwardStockEntry_Grid',
ServiceUrl: '../Mods/Inventory/Service/InwardStockService... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.Inventory == 'undefined')
Mods.Inventory = {};
Mods.Inventory.TranferStock = {
ServiceUrl: '../Mods/Inventory/Service/TranferStockService.asmx',
ServiceCoreUrl: '../Mods/Inventory/Service/CStockService.asmx',
Init: function () {
... | JavaScript |
if (typeof Mods == 'undefined') Mods = {};
if (typeof Mods.AR == 'undefined') Mods.AR = {};
$.extend($.fn.datagrid.defaults.editors, {
combogrid: {
init: function (container, options) {
var input = $('<input type="text" class="datagrid-editable-input">').appendTo(container);
... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.VouchersExt == 'undefined')
Mods.VouchersExt = {};
Mods.VouchersExt.AReceipt[INSTANT] = {
ServiceUrl: '../Mods/Inventory/Service/CStockService.asmx',
ServiceReceipt: '../Mods/VouchersExt/Service/Receipt.asmx',
ServerOptions: Receip... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.VouchersExt == 'undefined')
Mods.VouchersExt = {};
Mods.VouchersExt.ReceiptReport = {
init: function () {
var filterID = '';
if (FWS.Web.CTemplateController.CurrentContentOptions != null)
filterID = FWS.Web.CTe... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.VouchersExt == 'undefined')
Mods.VouchersExt = {};
Mods.VouchersExt.AppendixEntry = {
ServiceUrl: '../Mods/Inventory/Service/CStockService.asmx',
ServiceAppendix: '../Mods/VouchersExt/Service/Appendix.asmx',
RefType: 22,
DataP... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.VouchersExt == 'undefined')
Mods.VouchersExt = {};
Mods.VouchersExt.RegisterAppendix = {
ServiceUrl: '../Mods/Inventory/Service/CStockService.asmx',
RefType: 21,
DataPayment: [],
ControlIDs: {
MainTab: "#RegisterAppen... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.VouchersExt == 'undefined')
Mods.VouchersExt = {};
Mods.VouchersExt.AppendixReport = {
init: function () {
var filterID = '';
if (FWS.Web.CTemplateController.CurrentContentOptions != null)
filterID = FWS.Web.CT... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.VouchersExt == 'undefined')
Mods.VouchersExt = {};
Mods.VouchersExt.Receipt = {
ServiceUrl: '../Mods/Inventory/Service/CStockService.asmx',
ServiceReceipt: '../Mods/VouchersExt/Service/Receipt.asmx',
RefType: 23,
ControlIDs: {... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.VouchersExt == 'undefined')
Mods.VouchersExt = {};
Mods.VouchersExt.ResetReceiptNumber = {
ServiceUrl: '../Mods/Inventory/Service/CStockService.asmx',
ControlIDs: {
btnResetReceiptTM: "#btnResetReceiptTM",
btnResetRec... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.VouchersExt == 'undefined')
Mods.VouchersExt = {};
Mods.VouchersExt.ARegisterAppendix[INSTANT] = {
ServiceUrl: '../Mods/Inventory/Service/CStockService.asmx',
ServiceAppendix: '../Mods/VouchersExt/Service/Appendix.asmx',
RefType: 2... | JavaScript |
if (typeof Mods == 'undefined')
Mods = {};
if (typeof Mods.VouchersExt == 'undefined')
Mods.VouchersExt = {};
Mods.VouchersExt.Appendix = {
Init: function () {
this.Event();
this.Grid.Load();
},
ControlIDs: {
btnAddNew: "#Appendix-btnAddNew",
contentID: ... | JavaScript |
//
// main.js
//
// A project template for using arbor.js
//
(function($){
var Renderer = function(canvas){
var canvas = $(canvas).get(0)
var ctx = canvas.getContext("2d");
var particleSystem
var that = {
init:function(system){
//
// the particle system will call the init fu... | JavaScript |
//
// echolalia.js
//
// Created by Christian Swinehart on 2010-12-15.
// Copyright (c) 2011 Samizdat Drafting Co. All rights reserved.
//
(function($){
DeadSimpleRenderer = function(canvas){
var canvas = $(canvas).get(0)
var ctx = canvas.getContext("2d");
var particleSystem = null
var that = {
... | JavaScript |
(function(){
//
// the popup menu/button at the top of the editor textarea
//
IO = function(elt){
var dom = $(elt)
var _dialog = dom.find('.dialog')
var _animating = false
var that = {
init:function(){
dom.find('.ctrl > a').live('click', that.menuClick)
_di... | JavaScript |
//
// halfviz.js
//
// instantiates all the helper classes, sets up the particle system + renderer
// and maintains the canvas/editor splitview
//
(function(){
trace = arbor.etc.trace
objmerge = arbor.etc.objmerge
objcopy = arbor.etc.objcopy
var parse = Parseur().parse
var HalfViz = function(elt){
var... | JavaScript |
(function(){
//
// quick, incomplete (and surely buggy) ‘parser’ for reading in the halftone source
//
Parseur = function(){
var strip = function(s){ return s.replace(/^[\s\t]+|[\s\t]+$/g,'') }
var recognize = function(s){
// return the first {.*} mapping in the string (or "" if none)
... | JavaScript |
(function(){
//
// the parameter-setting ui at the top of the screen
//
Dashboard = function(elt, sys){
var dom = $(elt)
var _ordinalize_re = /(\d)(?=(\d\d\d)+(?!\d))/g
var ordinalize = function(num, hint){
var norm = ""+num
if (hint=="friction"){
norm = Math.floor(100*nu... | JavaScript |
(function(){
//
// the scrollable popup window with the halftone docs in it
//
HelpPanel = function(elt){
var dom = $(elt)
var _dragOffset = {x:0, y:0}
var _mode = 'basics'
var _animating = false
var that = {
init:function(){
dom.find('h1').mousedown(that.beginMove... | JavaScript |
(function(){
Renderer = function(canvas){
var canvas = $(canvas).get(0)
var ctx = canvas.getContext("2d");
var gfx = arbor.Graphics(canvas)
var particleSystem = null
var that = {
init:function(system){
particleSystem = system
particleSystem.screenSize(canvas.width, canvas... | JavaScript |
(function(){
Renderer = function(canvas){
canvas = $(canvas).get(0)
var ctx = canvas.getContext("2d")
var particleSystem = null
var palette = {
"Africa": "#D68300",
"Asia": "#4D7A00",
"Europe": "#6D87CF",
"North America": "#D4E200",
"Oceania": "#4F2170",
"Sout... | JavaScript |
//
// tween.js
//
// interpolator of .data field members for nodes and edges
//
var Tween = function(){
var _tweens = {}
var _done = true
var that = {
init:function(){
return that
},
busy:function(){
var busy = false
for (var k in _tweens){ busy=true;... | JavaScript |
//
// easing.js
// the world-famous penner easing equations
//
/*
*
* TERMS OF USE - EASING EQUATIONS
*
* Open source under the BSD License.
*
* Copyright © 2001 Robert Penner
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted prov... | JavaScript |
//
// hermetic.js
//
// the parts of jquery i can't live without (e.g., while in a web worker)
//
$ = {
each:function(obj, callback){
if ($.isArray(obj)){
for (var i=0, j=obj.length; i<j; i++) callback(i, obj[i])
}else{
for (var k in obj) callback(k, obj[k])
}
},
map:function(arr, fn){
... | JavaScript |
//
// dev.js
//
// module wrapper for running from the un-minified src files
//
//
// to run from src, make sure your html includes look like:
// <script src="js/src/etc.js"></script>
// <script src="js/src/kernel.js"></script>
// <script src="js/src/graphics/colors.js"></script>
// <script src="js/src/graphics... | JavaScript |
//
// primitives
//
// Created by Christian Swinehart on 2010-12-08.
// Copyright (c) 2011 Samizdat Drafting Co. All rights reserved.
//
var Primitives = function(ctx, _drawStyle, _fontStyle){
///MACRO:primitives-start
var _Oval = function(x,y,w,h,style){
this.x = x
this.y = y
this.w = w... | JavaScript |
var Colors = (function(){
var iscolor_re = /#[0-9a-f]{6}/i
var hexrgb_re = /#(..)(..)(..)/
var d2h = function(d){
// decimal to hex
var s=d.toString(16);
return (s.length==2) ? s : '0'+s
}
var h2d = function(h){
// hex to decimal
return parseInt(h,16);
}
var _isRGB = function(col... | JavaScript |
//
// graphics.js
//
// Created by Christian Swinehart on 2010-12-07.
// Copyright (c) 2011 Samizdat Drafting Co. All rights reserved.
//
var Graphics = function(canvas){
var dom = $(canvas)
var ctx = $(dom).get(0).getContext('2d')
var _bounds = null
var _colorMode = "rgb" // vs hsb
var _coordMode = "or... | JavaScript |
//
// physics.js
//
// the particle system itself. either run inline or in a worker (see worker.js)
//
var Physics = function(dt, stiffness, repulsion, friction, updateFn){
var bhTree = BarnesHutTree() // for computing particle repulsion
var active = {particles:{}, springs:{}}
var free = {particles:{}}
... | JavaScript |
//
// atoms.js
//
// particle system- or physics-related datatypes
//
var Node = function(data){
this._id = _nextNodeId++; // simple ints to allow the Kernel & ParticleSystem to chat
this.data = data || {}; // the user-serviceable parts
this._mass = (data.mass!==undefined) ? data.mass : 1
this._fixed = (data.fixe... | JavaScript |
//
// system.js
//
// the main controller object for creating/modifying graphs
//
var ParticleSystem = function(repulsion, stiffness, friction, centerGravity, targetFps, dt, precision){
// also callable with ({stiffness:, repulsion:, friction:, timestep:, fps:, dt:, gravity:})
var _changes=[]
var _no... | JavaScript |
//
// barnes-hut.js
//
// implementation of the barnes-hut quadtree algorithm for n-body repulsion
// http://www.cs.princeton.edu/courses/archive/fall03/cs126/assignments/barnes-hut.html
//
// Created by Christian Swinehart on 2011-01-14.
// Copyright (c) 2011 Samizdat Drafting Co. All rights reserved.
//
var B... | JavaScript |
//
// worker.js
//
// wraps physics.js in an onMessage/postMessage protocol that the
// Kernel object can deal with
//
importScripts('atoms.js');
importScripts('barnes-hut.js');
importScripts('physics.js');
// alias over the missing jquery utils so we can run in a worker
$ = {
each:function(obj, callback){
if... | JavaScript |
//
// kernel.js
//
// run-loop manager for physics and tween updates
//
var Kernel = function(pSystem){
// in chrome, web workers aren't available to pages with file:// urls
var chrome_local_file = window.location.protocol == "file:" &&
navigator.userAgent.toLowerCase().indexO... | JavaScript |
//
// etc.js
//
// misc utilities
//
var trace = function(msg){
if (typeof(window)=='undefined' || !window.console) return
var len = arguments.length
var args = []
for (var i=0; i<len; i++) args.push("arguments["+i+"]")
eval("console.log("+args.join(",")+")")
}
var dirname = function(path)... | JavaScript |
//
// main.js
//
// A project template for using arbor.js
//
// data test
var data_test = {
"nodes": {
"Phiếu thu": {
"color": "#ccc",
"width": 30,
"shape": "circle",
"image": "icon.png",
"onclick": "function (dragged) { }"
... | JavaScript |
(function (d) {
var nL = "zh-Hant",
zlb = "bosanski",
nV = "es-US",
mV = "es-PR",
lV = "es-NI",
kV = "es-HN",
ylb = "English (Singapore)",
jV = "en-SG",
iV = "es-SV",
xlb = "dddd, d MMMM, yyyy h:mm:ss tt",
wlb = "dddd, d MMMM... | JavaScript |
/*
* jQuery Globalization plugin
* http://github.com/nje/jquery-glob
*/
(function ($) {
var localized = { en: {} };
localized["default"] = localized.en;
$.extend({
findClosestCulture: function (name) {
var match;
if (!name) {
match = $.culture |... | JavaScript |
/**
* jQuery EasyUI 1.3.3
*
* Copyright (c) 2009-2013 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL or commercial licenses
* To use it on other terms please contact us: info@jeasyui.com
* http://www.gnu.org/licenses/gpl.txt
* http://www.jeasyui.com/license_commercial.php
*
*/
(... | JavaScript |
/*
* jQuery Hotkeys Plugin
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Based upon the plugin by Tzury Bar Yochay:
* http://github.com/tzuryby/hotkeys
*
* Original idea by:
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
*/
(functi... | JavaScript |
/*********************************************************************************************
** Jquery extend
*********************************************************************************************/
$.HtmlEncode = function (text) {
var ret = "";
if (typeof text == "string") {
ret = text
... | JavaScript |
$.CCore = {
Service: {
Get: function (pUrl, pOptions, pCallback) {
if (typeof pOptions == "undefined") {
return false;
}
var options = {
RootName: "InputValue",
LanguageID: $.CCore.Cookie.LanguageID()
}... | JavaScript |
/*!
* Globalize
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
(function( window, undefined ) {
var Globalize,
// private variables
regexHex,
regexInfinity,
regexParseFloat,
re... | JavaScript |
(function($) {
var cultures = $.global.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["en-US"] = $.extend(true, {}, en, {
}, cultures["en-US"]);
culture.calendar = culture.calendars.standard;
})(jQuery); | JavaScript |
/*!
* jQuery globalization Plugin v1.0.0pre
* http://github.com/jquery/jquery-global
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
(function() {
var globalization = {}, localized = { en: {} };
localized["de... | JavaScript |
/*********************************************************************************************
** Jquery extend
*********************************************************************************************/
$.HtmlEncode = function (text) {
var ret = "";
if (typeof text == "string") {
ret = text
... | JavaScript |
if (typeof (FWS) == 'undefined')
FWS = {};
if (typeof (FWS.Web) == 'undefined')
FWS.Web = {};
FWS.Web.Core = {
URL: {
//ContextData: '/FWS.VnAccounting.Service.Data/Core/CoreService.asmx/GetContextData',
//ExecuteAction: '/FWS.VnAccounting.Service.Data/Core/CoreService.asmx/ExecuteAc... | JavaScript |
//===============================================================================================
// Mod: Core
// Author: thien.l.do
// Ref: http://splitterjsobj.sourceforge.net/
// Use: jquery.splitter.js
// Edit:
// Create: 2011-06-22
// Modify: yyyy-MM-dd
//==============... | JavaScript |
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version: 0.5.0
*
*/
(function($) {
jQuery.fn.extend({
slimScroll: function(options) {
... | JavaScript |
/*
* jQuery Plugin: Tokenizing Autocomplete Text Entry
* Version 1.6.0
*
* Copyright (c) 2009 James Smith (http://loopj.com)
* Licensed jointly under the GPL and MIT licenses,
* choose which one suits your project best!
*
*/
(function ($) {
// Default settings
var DEFAULT_SETTINGS = {
// Search se... | JavaScript |
/*
### jQuery XML to JSON Plugin v1.0 - 2008-07-01 ###
* http://www.fyneworks.com/ - diego@fyneworks.com
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
###
Website: http://www.fyneworks.com/jquery/xml-to-json/... | JavaScript |
;(function($) {
/*
* ui.dropdownchecklist
*
* Copyright (c) 2008-2009 Adrian Tosca
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*http://dropdown-check-list.googlecode.com/svn/trunk/doc/ddcl-tests.html
*/
// The dropdown check list jQu... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function ($) {
var _1 = false;
function _2(e) {
var _3 = $.data(e.data.target, "draggable").options;
var _4 = ... | JavaScript |
;(function($){
/**
* jqGrid English Translation
* Tony Tomov tony@trirand.com
* http://trirand.com/blog/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
**/
$.jgrid = {
defaults : {
recordtext: "View {0} - {... | JavaScript |
(function($) {
var culture, cultures = $.cultures,
en = cultures.en,
standard = en.calendars.standard;
culture = cultures["ar"] = $.extend(true, {}, en, {
name: "ar",
englishName: "Arabic",
nativeName: "العربية",
language: "ar",
isRTL: true,
numberFormat:... | JavaScript |
/*
* jQuery Hotkeys Plugin
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Based upon the plugin by Tzury Bar Yochay:
* http://github.com/tzuryby/hotkeys
*
* Original idea by:
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
*/
(function(jQuery){
... | JavaScript |
/*
* Globalization
* http://github.com/nje/jquery-glob
*/
(function() {
var Globalization = {},
localized = { en: {} };
localized["default"] = localized.en;
Globalization.extend = function( deep ) {
var target = arguments[ 1 ] || {};
for ( var i = 2, l = arguments.length; i < l; i++ ) {
var sou... | JavaScript |
//====CFilter ============//
function CFilter(options) {
var self = this;
this.Dialog = null;
this.FilterView = null;
this.ContentID = '';
this.DialogContentID = '';
this.btnFilter = 'btnFilterDisplay';
this.btnExit = 'btnFilterExit';
this.IsFirst = true;
this.Options = {
... | JavaScript |
/*************************************************
Required:
1. jquery.maskedInput.js
**************************************************/
function CMaskDate(opts) {
var self = this;
this.container;
this.options = {
changeMonth: true,
changeYear: true,
yearRa... | JavaScript |
function CTabs(pOptions) {
var self = this;
this.container = "";
this.options = {
active: null,
collapsible: false,
event: "click",
heightStyle: "content",
hide: null,
show: null,
// callbacks
activate: null,
beforeActivate: null,
... | JavaScript |
//LỚP NÀY ĐANG DÙNG CHO FILTER >> NÊN BỎ ĐI DÙNG TRONG jquery.extend.js
function CXML(tagName, pairValues, childXml) {
this.tagName = tagName;
this.pairValues = pairValues;
this.childXml = childXml;
this.init = function () {
}
this.getXml = function () {
var self = this;
... | JavaScript |
//===============================================================================================
// Mod: Core
// Author: thien.l.do
// Ref: http://splitterjsobj.sourceforge.net/
// Use: jquery.splitter.js
// Edit:
// Create: 2011-06-22
// Modify: yyyy-MM-dd
//==============... | JavaScript |
CGrid = function (pOptions) {
var self = this;
//todo: variable
this.container = '';
this.instance = null;
this.options = {
colHeaders: true,
rowHeaders: true,
startRows: 1,
startCols: 1,
width: 400,
height: 200,
minSpareRows: 0
... | JavaScript |
function CDialog(options) {
var self = this;
this._dialog = {};
this._count = 0;
this._container = "";
this._options = {
autoOpen: true,
buttonFocus: 0,
buttons: "",
closeOnEscape: false,
closeText: 'close',
closeHide: false,
frame... | JavaScript |
// ┌────────────────────────────────────────────────
// │ control :: required
// │ 1 :: jquery.min.js
// │ 2 :: jquery.extend.js
// │ 3 :: jquery.jqx-all.js
// │ 4 :: jquery.glob.js ... | JavaScript |
/* Required:
1. jquery.slimScroll.js
*/
function CScroll(opts) {
var self = this;
this.container = "";
this.options = {
wheelStep: 20,
width: 'auto',
height: '250px',
size: '7px',
color: '#000',
position: 'right',
distance: '1px',
... | JavaScript |
$.CFormat = {
Culture: function () {
return "en-US";
},
ParseFloat: function (value, culture) {
var thisObj = this;
culture = culture || "en-US";
var ret = "";
if (value != "") {
ret = $.parseFloat(value, "n", culture);
}
retu... | JavaScript |
var Person = function(first, last, middle) {
this.first = first;
this.middle = middle;
this.last = last;
};
Person.prototype = {
whoAreYou : function() {
return this.first + (this.middle ? ' ' + this.middle: '') + ' ' + this.last;
}
}; | JavaScript |
TestCase('PersonTest', {
testWhoAreYou : function() {
var p = new Person('John', 'Doe', 'P.');
assertEquals('Should have responded with full name', 'John P. Doe', p.whoAreYou());
},
testWhoAreYouWithNoMiddleName : function() {
var p = new Person('John', 'Doe');
assertEqual... | JavaScript |
// ┌────────────────────────────────────────────────
// │ control class :: requirement
// │ 1 :: rms.core.js
// │ 2 ::
// │ 3 ::
// │ 4 ::
// │ 5 ::
// └────────────────────────────────────────────────
//========================================================================... | JavaScript |
// ┌────────────────────────────────────────────────
// │ control class :: requirement
// │ 1 :: rms.core.js
// └────────────────────────────────────────────────
//=====================================================================================================
// Class Base Control Contructor
//==========... | JavaScript |
// ┌────────────────────────────────────────────────
// │ control class :: requirement
// │ 1 :: rms.core.js
// │ 2 ::
// │ 3 ::
// │ 4 ::
// │ 5 ::
// └────────────────────────────────────────────────
//==================================================================================================... | JavaScript |
// ┌────────────────────────────────────────────────
// │ filter class :: requirement
// │ 1 :: rms.control.js
// │ 2 :: rms.dialog.js
// │ 3 ::
// │ 4 ::
// │ 5 ::
// └────────────────────────────────────────────────
//=========================================================... | JavaScript |
//===============================================================================================
// Mod: Core
// Author: thien.l.do
// Ref: http://splitterjsobj.sourceforge.net/
// Use: jquery.splitter.js
// Edit:
// Create: 2011-06-22
// Modify: yyyy-MM-dd
//==============... | JavaScript |
(function (RMS) {
var Control = RMS.BaseControl.prototype.extend(),
defaults = {
id: RMS.pub.randomGuid(),
width: 100,
height: 200,
controlType: '1'
},
instance;
Control.prototype.init = function (settings) {
//default ... | JavaScript |
/* File Created: May 12, 2014 */ | JavaScript |
/*
RMS Constructor Class
Global define
*/
var RMS = {};
/*
RMS Custom function defination
*/
RMS.consts = {
meta: 'data-meta',
request: 'data-request',
settings: 'data-settings'
};
RMS.pub = {
//string utilities
string: {
Format: function (text) {
if (argume... | JavaScript |
// ┌────────────────────────────────────────────────
// │ control class :: requirement
// │ 1 :: rms.core.js
// └────────────────────────────────────────────────
//=====================================================================================================
// Class Base Control Contructor
//==========... | JavaScript |
/* File Created: May 12, 2014 */ | JavaScript |
// ┌────────────────────────────────────────────────
// │ control class :: requirement
// │ 1 :: rms.all.js
// │ 2 :: rms.control.js
// │ 3 ::
// │ 4 ::
// │ 5 ::
// └────────────────────────────────────────────────
//=====================================================================================... | JavaScript |
//=====================================================================================================
// ┌────────────────────────────────────────────────
// │ control class :: requirement
// │ 1 :: rms.core.js
// │ 2 :: rms.basecontrol.js
// │ 3 ::
// │ 4 ::
// │ 5 ::
// └───────────────────────────... | JavaScript |
/*!
* Globalize
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
(function( window, undefined ) {
var Globalize,
// private variables
regexHex,
regexInfinity,
regexParseFloat,
re... | JavaScript |
| JavaScript |
// name: sammy
// version: 0.7.0
// Sammy.js / http://sammyjs.org
(function ($, window) {
var Sammy,
PATH_REPLACER = "([^\/]+)",
PATH_NAME_MATCHER = /:([\w\d]+)/g,
QUERY_STRING_MATCHER = /\?([^#]*)$/,
// mainly for making `arguments` an Array
_makeArray = func... | JavaScript |
// Some of the Knockout examples use this data
var sampleProductCategories = [
{
"products": [
{
"name": "1948 Porsche 356-A Roadster",
"price": 53.9
},
{
"name": "1948 Porsche Type 356 Roadster",
"price": 62.16
},
... | JavaScript |
/**
* syncHeight - jQuery plugin to automagically Sync the heights of columns
* Made to seemlessly work with the CCS-Framework YAML (yaml.de)
* @requires jQuery v1.0.3 or newer
*
* http://blog.ginader.de/dev/syncheight/
*
* Copyright (c) 2007-2013
* Dirk Ginader (ginader.de)
* Dirk Jesse (yaml.de)
* Dual lice... | JavaScript |
/**
* Accessible Tabs - jQuery plugin for accessible, unobtrusive tabs
* Build to seemlessly work with the CCS-Framework YAML (yaml.de) not depending on YAML though
* @requires jQuery - tested with 1.9.1, 1.7 and 1.4.2 but might as well work with older versions
*
* english article: http://blog.ginader.de/arch... | JavaScript |
/**
* "Yet Another Multicolumn Layout" - YAML CSS Framework
*
* (en) Workaround for IE8 und Webkit browsers to fix focus problems when using skiplinks
* (de) Workaround für IE8 und Webkit browser, um den Focus zu korrigieren, bei Verwendung von Skiplinks
*
* @note inspired by Paul Ratcliffe's article
* ... | JavaScript |
/*
* jQuery Hotkeys Plugin
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Based upon the plugin by Tzury Bar Yochay:
* http://github.com/tzuryby/hotkeys
*
* Original idea by:
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
*/
/*
*... | JavaScript |
/*!
PURE Unobtrusive Rendering Engine for HTML
Licensed under the MIT licenses.
More information at: http://www.opensource.org
Copyright (c) 2013 Michael Cvilic - BeeBole.com
Thanks to Rog Peppe for the functional JS jump
revision: 2.83
*/
var $p = function(){
var args = arguments,
sel = args[0],
ctxt = ... | JavaScript |
// ┌────────────────────────────────────────────────
// │ control class :: requirement
// │ 1 :: rms.core.js
// │ 2 ::
// │ 3 ::
// │ 4 ::
// │ 5 ::
// └────────────────────────────────────────────────
//========================================================================... | JavaScript |
// ┌────────────────────────────────────────────────
// │ control class :: requirement
// │ 1 :: rms.core.js
// └────────────────────────────────────────────────
//=====================================================================================================
// Class Base Control Contructor
//==========... | JavaScript |
//=====================================================================================
//Class name: CHierarchyNavigation
//Created date: 2014/06
//=====================================================================================
function CHierarchyNavigation(options) {
//----------------------... | JavaScript |
// ┌────────────────────────────────────────────────
// │ control class :: requirement
// │ 1 :: rms.core.js
// │ 2 ::
// │ 3 ::
// │ 4 ::
// │ 5 ::
// └────────────────────────────────────────────────
//==================================================================================================... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.