code
stringlengths
1
2.08M
language
stringclasses
1 value
// Usage: // // var myConverter = new Markdown.Editor(myConverter, null, { strings: Markdown.local.fr }); (function () { Markdown.local = Markdown.local || {}; Markdown.local.fr = { bold: "Gras <strong> Ctrl+B", boldexample: "texte en gras", italic: "Italique <em> Ctrl+I", ...
JavaScript
exports.Converter = require("./Markdown.Converter").Converter; exports.getSanitizingConverter = require("./Markdown.Sanitizer").getSanitizingConverter;
JavaScript
(function () { var output, Converter; if (typeof exports === "object" && typeof require === "function") { // we're in a CommonJS (e.g. Node.js) module output = exports; Converter = require("./Markdown.Converter").Converter; } else { output = window.Markdown; Converter = outpu...
JavaScript
// NOTE: This is just a demo -- in a production environment, // be sure to spend a few more thoughts on sanitizing user input. // (also, you probably wouldn't use a get request) var http = require("http"), url = require("url"), querystring = require("querystring"), Converter = require("../../Markdown.Conve...
JavaScript
/* * Copyright (c) 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
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* * Copyright (c) 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
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* * Copyright (c) 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
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
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 ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* * Copyright (c) 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
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
//<debug> Ext.Loader.setConfig({enabled:true}); Ext.Loader.setPath('Ext.ux', 'app/ux'); //</debug> // Ext.application({ name: 'Lan', // MVC components are specified models: ['activity','user'], views: ['activityMain','activityTab','culturalActivity','sportActivity','carpoolActivity', 'home'...
JavaScript
var http = require('http'); var fs = require('fs'); var util = require('util'); var express = require('express'); var app = express(); var server = app.listen(8080); var io = require('socket.io').listen(server); var server = http.createServer(app); //déclaration des dossiers utilisés app.use(express.static(__dirname...
JavaScript
/** Socket.IO 0.6 - Built with build.js */ /** * Socket.IO client * * @author Guillermo Rauch <guillermo@learnboost.com> * @license The MIT license. * @copyright Copyright (c) 2010 LearnBoost <dev@learnboost.com> */ this.io = { version: '0.6', setPath: function(path){ if (window.console && console.error) ...
JavaScript
/** Socket.IO 0.6 - Built with build.js */ /** * Socket.IO client * * @author Guillermo Rauch <guillermo@learnboost.com> * @license The MIT license. * @copyright Copyright (c) 2010 LearnBoost <dev@learnboost.com> */ this.io = { version: '0.6', setPath: function(path){ if (window.console && console.error) ...
JavaScript
Ext.define('Lan.model.user', { extend: 'Ext.data.Model', xtype: 'user', config: { // specify the id field as the identifier idProperty: 'id', // specify universal unique id policy identifier: 'uuid', fields: [ {name:'id', type:'auto', isUnique: true}, ...
JavaScript
Ext.define('Lan.model.activity', { extend: 'Ext.data.Model', xtype: 'activity', config: { // specify the id field as the identifier idProperty: 'id', // specify universal unique id policy identifier: 'uuid', fields: [ {name:'id', type:'auto', isU...
JavaScript
var carpoolStore; var culturalStore; var sportStore; var myCarpoolStore; var myCulturalStore; var mySportStore; var jsonReceived; var jsonModel; var activity_id; Ext.define('Lan.controller.controller', { extend: 'Ext.app.Controller', config: { refs: { createsportactivi...
JavaScript
Ext.define("Lan.view.createCarpoolActivity", { extend: 'Ext.form.Panel', xtype: 'createcarpoolactivity', config: { title: 'Home', iconCls: 'user', scrollable: 'vertical', items: [ { xtype: 'textfield', name: 'date_activity', ...
JavaScript
Ext.define("Lan.view.sportActivity", { extend: 'Ext.List', xtype: 'sportactivity', requires: ['Lan.store.sportActivityStore'], config: { grouped: true, itemTpl: '<div class="myPicture">' + '<img src="http://img15.hostingpics.net/pics/15716613966994logoduspor...
JavaScript
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ Ext.define("Lan.view.myCarpoolActivity", { extend: 'Ext.List', xtype: 'mycarpoolactivity', requires: ['Lan.store.myCarpo...
JavaScript
Ext.define('Lan.view.activityMain', { extend: 'Ext.ux.slidenavigation.collapsible.View', xtype: 'maincontainer', requires: [ 'Ext.Container', 'Ext.MessageBox', 'Ext.Panel', 'Ext.tab.Panel', 'Ext.Toolbar', 'Ext.event.publisher.Dom', 'Ext.Ti...
JavaScript
Ext.define('Lan.view.login', { extend: 'Ext.form.Panel', alias: "widget.loginview", xtype:"login", requires: ['Ext.form.FieldSet', 'Ext.form.Password', 'Ext.Label', 'Ext.Img', 'Ext.util.DelayedTask'], config: { title: 'Login', items: [ { xtype: 'i...
JavaScript
Ext.define("Lan.view.culturalActivity", { extend: 'Ext.List', xtype: 'culturalactivity', requires: ['Lan.store.culturalActivityStore'], config: { grouped: true, itemTpl: '<div class="myPicture">' + '<img src="http://img15.hostingpics.net/pics/144423logocin.p...
JavaScript
Ext.define("Lan.view.detailMyCulturalActivity", { extend: 'Ext.form.Panel', xtype: 'detailmyculturalactivity', config: { title: 'Titre de l\'activité', id: 'idMyCulturalDetail', layout: { type: 'vbox', align : 'stretch', pack : 'start',...
JavaScript
Ext.define("Lan.view.detailSportActivity", { extend: 'Ext.form.Panel', xtype: 'detailsportactivity', config: { title: 'Titre de l\'activité', id: 'idSportDetail', scrollable : { direction : 'vertical', directionLock : true }, layo...
JavaScript
Ext.define("Lan.view.createSportActivity", { extend: 'Ext.form.Panel', xtype: 'createsportactivity', requires: [ 'Ext.form.FieldSet', 'Ext.field.Spinner', 'Ext.field.DatePicker' ], config: { title: 'Home', iconCls: 'user', scrollable: '...
JavaScript
Ext.define("Lan.view.detailMyCarpoolActivity", { extend: 'Ext.form.Panel', xtype: 'detailmycarpoolactivity', config: { title: 'Titre de l\'activité', id: 'idMyCarpoolDetail', layout: { type: 'vbox', align : 'stretch', pack : 'start', ...
JavaScript
Ext.define("Lan.view.mySportActivity", { extend: 'Ext.List', xtype: 'mysportactivity', requires: ['Lan.store.mySportActivityStore'], config: { grouped: true, itemTpl: '<div class="myPicture">' + '<img src="http://img15.hostingpics.net/pics/15716613966994logodusport....
JavaScript
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ Ext.define("Lan.view.myCarPoolActivity", { extend: 'Ext.List', xtype: 'mycarpoolactivity', requires: ['Lan.store.activit...
JavaScript
Ext.define("Lan.view.detailMySportActivity", { extend: 'Ext.form.Panel', xtype: 'detailmysportactivity', config: { title: 'Titre de l\'activité', id: 'idMySportDetail', scrollable: 'vertical', layout: { type: 'vbox', align : 'stretch', pack ...
JavaScript
Ext.define("Lan.view.carpoolActivity", { extend: 'Ext.List', xtype: 'carpoolactivity', requires: ['Lan.store.carpoolActivityStore'], config: { grouped: true, itemTpl: '<div class="myPicture">' + '<img src="http://img15.hostingpics.net/pics/677458covoiturage2...
JavaScript
Ext.define("Lan.view.detailCarpoolActivity", { extend: 'Ext.form.Panel', xtype: 'detailcarpoolactivity', config: { title: 'Titre de l\'activité', id: 'idCarpoolDetail', layout: { type: 'vbox', align : 'stretch', pack : 'start', anima...
JavaScript
Ext.define("Lan.view.createCulturalActivity", { extend: 'Ext.form.Panel', xtype: 'createculturalactivity', config: { title: 'Home', iconCls: 'user', scrollable: 'vertical', items: [ { xtype: 'textfield', name: 'title', labe...
JavaScript
Ext.define("Lan.view.createActivity", { extend: 'Ext.form.Panel', xtype: 'createactivity', config: { title: 'Home', iconCls: 'user', scrollable : { direction : 'vertical', directionLock : true }, items: [ { ...
JavaScript
Ext.define("Lan.view.carPoolActivity", { extend: 'Ext.dataview.List', xtype: 'carpoolingactivity', config: { title: 'List', iconCls: 'bookmarks', itemTpl: '<div class="user">Name: <strong>{name} </strong><br/>{email} {age}</div>', } }); /*Ext.define('J...
JavaScript
Ext.define("Lan.view.home", { extend: 'Ext.tab.Panel', xtype: 'home', requires: [ 'Ext.TitleBar' ], config: { tabBarPosition: 'top', tabBar : { // To center the tab in the tab bar layout : { pack : 'center' ...
JavaScript
Ext.define("Lan.view.detailCulturalActivity", { extend: 'Ext.form.Panel', xtype: 'detailculturalactivity', config: { title: 'Titre de l\'activité', id: 'idCulturalDetail', layout: { type: 'vbox', align : 'stretch', pack : 'start', an...
JavaScript
Ext.define("Lan.view.activityTab", { extend: 'Ext.tab.Panel', xtype: 'activitytab', requires: [ 'Ext.TitleBar' ], config: { tabBarPosition: 'top', tabBar : { // To center the tab in the tab bar layout : { pack : 'center' ...
JavaScript
Ext.define("Lan.view.myCulturalActivity", { extend: 'Ext.List', xtype: 'myculturalactivity', requires: ['Lan.store.myCulturalActivityStore'], config: { grouped: true, itemTpl: '<div class="myPicture">' + '<img src="http://img15.hostingpics.net/pics/144423logocin.png...
JavaScript
/** * {@link Ext.ux.slidenavigation.collapsible.View} is a subclass of {@link Ext.Container} * that provides a sliding main view with an underlying navigation list. The * concept was inspired by Facebook's mobile app. * * @author Weston Nielson <wnielson@github> */ Ext.define('Ext.ux.slidenavigation.collapsi...
JavaScript
Ext.define('Lan.store.culturalActivityStore', { extend: 'Ext.data.Store', xtype: 'culturalactivitystore', config: { model: 'Lan.model.activity', // specify the store id fields: ['id_user', 'start_time'], storeId: 'culturalActivityStore', autoLoad: true, autoSy...
JavaScript
Ext.define('Lan.store.activityStore', { extend: 'Ext.data.Store', xtype: 'activitystore', config: { model: 'Lan.model.activity', // specify the store id fields: ['id_user', 'start_time'], storeId: 'activityStore', autoLoad: true, autoSync: true, so...
JavaScript
Ext.define('Lan.store.mySportActivityStore', { extend: 'Ext.data.Store', xtype: 'mysportactivitystore', config: { model: 'Lan.model.activity', // specify the store id fields: ['id_user', 'start_time'], storeId: 'mySportActivityStore', autoLoad: true, autoS...
JavaScript
Ext.define('Lan.store.myCulturalActivityStore', { extend: 'Ext.data.Store', xtype: 'myculturalactivitystore', config: { model: 'Lan.model.activity', // specify the store id fields: ['id_user', 'start_time'], storeId: 'myCulturalActivityStore', autoLoad: true, ...
JavaScript
Ext.define('Lan.store.userStore', { extend: 'Ext.data.Store', xtype: 'userstore', config: { model: 'Lan.model.user', // specify the store id storeId: 'userStore', autoLoad: true, autoSync: true, sorters: [{ property: 'name', direction: ...
JavaScript
Ext.define('Lan.store.carpoolActivityStore', { extend: 'Ext.data.Store', xtype: 'carpoolactivitystore', config: { model: 'Lan.model.activity', // specify the store id fields: ['id_user', 'start_time'], storeId: 'carpoolActivityStore', autoLoad: true, autoSync:...
JavaScript
Ext.define('Lan.store.myCarpoolActivityStore', { extend: 'Ext.data.Store', xtype: 'mycarpoolactivitystore', config: { model: 'Lan.model.activity', // specify the store id fields: ['id_user', 'start_time'], storeId: 'myCarpoolActivityStore', autoLoad: true, ...
JavaScript
Ext.define('Lan.store.sportActivityStore', { extend: 'Ext.data.Store', xtype: 'sportactivitystore', config: { model: 'Lan.model.activity', // specify the store id fields: ['id_user', 'start_time'], storeId: 'sportActivityStore', autoLoad: true, autoSync: true,...
JavaScript
/** Socket.IO 0.6 - Built with build.js */ /** * Socket.IO client * * @author Guillermo Rauch <guillermo@learnboost.com> * @license The MIT license. * @copyright Copyright (c) 2010 LearnBoost <dev@learnboost.com> */ this.io = { version: '0.6', setPath: function(path){ if (window.console && console.error) ...
JavaScript
Ext.util.MD5 = function(s,raw,hexcase,chrsz) { raw = raw || false; hexcase = hexcase || false; chrsz = chrsz || 8; 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 bit_rol(num, cnt){ return (num...
JavaScript
Ext.ns('App.util'); /** * Socket.io wrapper class * @class App.util.Socketio * @extends Ext.util.Observable */ App.util.Socketio = Ext.extend(Ext.util.Observable, { constructor: function(host, options){ options = options || {}; App.util.Socketio.superclass.constructor.call( this ); this.socket = n...
JavaScript
/** * Module dependencies. */ var express = require('express'); var bodyParser = require('body-parser'); var http = require('http'); var path = require('path'); //load user route var user = require('./routes/user'); var activity = require('./routes/activity'); var app = express(); var connection = require('express-my...
JavaScript
var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', user : 'root', //password: 'alphanicolala', database: 'amra_mmma' }); // Log any errors connected to the connection connection.connect(function(err){ if (err) { console.error('error connect...
JavaScript
var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', user : 'root', //password: 'alphanicolala', database: 'amra_mmma' }); // Log any errors connected to the connection connection.connect(function(err){ if (err) { console.error('error connecting: ' + ...
JavaScript
function doAjax() { ///BolsaTrabajoWeb/ alert("dentro de la funcion doAjax.."); /* $.ajax({ url: myurl, data: mydata, dataType: 'json', type: 'get', contentType : 'application/json', cache: false, success: function () }); */ var usuario=$('#txtUsuario...
JavaScript
/* * Copyright (C) 2011 The XDocReport Team <xdocreport@googlegroups.com> * * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, inc...
JavaScript
(function($) { $.fn.tipsy = function(options) { options = $.extend({}, $.fn.tipsy.defaults, options); return this.each(function() { var opts = $.fn.tipsy.elementOptions(this, options); $(this).hover(function() { $.data(this...
JavaScript
function cb_nextForm (rText, sText, xhr, form) { formid=$('form').find("input[name=__formid__]").val() if ($("ul#progress").children("#form-" + formid).hasClass("selected")){ $("ul#progress").children("#form-" + formid).addClass("invalid"); } else { $("ul#progress").children(".selected").addClass("valid")...
JavaScript
var deform = { callbacks: [], addCallback: function (oid, callback) { deform.callbacks.push([oid, callback]) }, clearCallbacks: function () { deform.callbacks = []; }, load: function() { $(function() { deform.processCallbacks(); deform.focusFir...
JavaScript
/*! * jQuery Form Plugin * version: 2.43 (12-MAR-2010) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(functi...
JavaScript
//http://localhost/bmw/service.php?site=null&overdue=null&aftertime=null&counter=0 var delay = 60000; var timer; var counter; var scrollerInterval; $(document).ready(function(){ getData(2); counter = 0; //autoResize(); $(window).resize(function() { //autoResize(); }); function autoResize() {...
JavaScript
/* Copyright (c) 2006-2007 Mathias Bank (http://www.mathias-bank.de) * 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 2.1 * * Thanks to * Hinnerk Ruemenapf - http://hinnerk.ruemenapf....
JavaScript
/** * JSSpec * * Copyright 2007 Alan Kang * - mailto:jania902@gmail.com * - http://jania.pe.kr * * http://jania.pe.kr/aw/moin.cgi/JSSpec * * Dependencies: * - diff_match_patch.js ( http://code.google.com/p/google-diff-match-patch ) * * This library is free software; you can redistribute it an...
JavaScript
/** * amok * * Copyright 2008 Chris Brown * - chrisincambo@gmail.com * - http://chrisincambo.wordpress.com * * http://code.google.com/p/amok/ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
JavaScript
//////////////////////////////////////////////////////////////////////////////// // // ADOBE SYSTEMS INCORPORATED // Copyright 2006-2007 Adobe Systems Incorporated // All Rights Reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file // in accordance with the terms of the license ...
JavaScript
//////////////////////////////////////////////////////////////////////////////// // // ADOBE SYSTEMS INCORPORATED // Copyright 2006-2007 Adobe Systems Incorporated // All Rights Reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file // in accordance with the terms of the license ...
JavaScript
BrowserHistoryUtils = { addEvent: function(elm, evType, fn, useCapture) { useCapture = useCapture || false; if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent) { var r = elm.att...
JavaScript
// Flash Player Version Detection - Rev 1.6 // Detect Client Browser type // Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved. var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var...
JavaScript
/** * jquery.meio.mask.js * @author: fabiomcosta * @version: 1.1.3 * * Created by Fabio M. Costa on 2008-09-16. Please report any bug at http://www.meiocodigo.com * * Copyright (c) 2008 Fabio M. Costa http://www.meiocodigo.com * * The MIT License (http://www.opensource.org/licenses/mit-license.php) * * Permi...
JavaScript
alert('win sauce');
JavaScript
alert('plugin one nested js file');
JavaScript
alert("Test App");
JavaScript
alert('I am a root level file!');
JavaScript
root theme js file
JavaScript
nested theme js file
JavaScript
/** * Normalize the browser animation API across implementations. This requests * the browser to schedule a repaint of the window for the next animation frame. * Checks for cross-browser support, and, failing to find it, falls back to setTimeout. * @param {function} callback Function to call when it's time to u...
JavaScript
/* * scaleWindow, ballAnimte for banner * */ //var scaleWindow = function() { function scaleWindow(){ var windowWidth = $(window).width(); //var windowHeight = $(window).height(); var minWidth = 1000; var defaultWidth = 1222; var defaultHeight = 458; if(windowWidth>=minWidth){ $sca...
JavaScript
function Ball (radius, color) { if (radius === undefined) { radius = 40; } if (color === undefined) { color = "#ff0000"; } this.x = 0; this.y = 0; this.radius = radius; this.vx = 0; this.vy = 0; this.rotation = 0; this.scaleX = 1; this.scaleY = 1; this.color = utils.parseColor(color); this.lineW...
JavaScript
/** * JSSpec * * Copyright 2007 Alan Kang * - mailto:jania902@gmail.com * - http://jania.pe.kr * * http://jania.pe.kr/aw/moin.cgi/JSSpec * * Dependencies: * - diff_match_patch.js ( http://code.google.com/p/google-diff-match-patch ) * * This library is free software; you can redistribute it an...
JavaScript
///<reference path="../control.js" /> (function() { amp.UI.Offset = function(left, top) { this.left = left; this.top = top; this[0] = left; this[1] = top; } amp.UI.Size = function(width, height) { this.width = width; this.height = height; this[0] = width; this[1] = h...
JavaScript
///<reference path="ajax.js" />
JavaScript
///<reference path="dom.js" /> (function() { var E = Sys.UI.DomEvent; var Handle = function(element, type, handler, data) { this.element = element; this.type = type; this.handler = handler; this.data = data || false; } var Point = function(x, y) { this.x = x; this.y = y; }...
JavaScript
///<reference path="system.js" /> /* Copyright (c) 2008, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 2.5.2 modified. */ /** * The selector module provides helper methods allowing CSS3 Selectors to be used with DOM elements. * @modul...
JavaScript
///<reference path="events.js" /> (function() { var Request = Sys.Net.WebRequest; var Ajax = { post: function(url, params) { params["method"] = "POST"; this.ajax(url, params); }, get: function(url, params) { params["method"] = "GET"; this.ajax(url, params); }, ...
JavaScript
///<reference path="microsoftajax.debug.js" /> // System (function() { var amp = function(selector) { ///<returns type="amp.UI.Dom"></returns> return (selector.get) ? selector : new amp.UI.Dom(selector); } window.amp = amp; amp.UI = { __type: "amp.UI", __namespace: true }; amp.Thread...
JavaScript
///<reference path="selector.js" /> (function() { var $S = amp.Cache.Selector; var $D = Sys.UI.DomElement; amp.byId = function(elementId) { return amp.isString(elementId) ? document.getElementById(elementId) : elementId; } amp.UI.Offset = function(left, top) { this.left = left; this...
JavaScript
///<reference path="adapters/jquery/ajax.js" /> (function() { var control = function() { } control.prototype = { style: {}, query: "", manual: false, ctor: function(params) { this.configure(params); }, configure: function(params) { if (amp.isString(params)) ...
JavaScript
///<reference path="form.js" />
JavaScript
 ///<reference path="../adapters/jquery/ajax.js" /> (function() { function getOptionValue(option) { return (option.value == null) ? option.text : option.value; } var formObj = { setValue: function(element, value) { element = amp.byId(element); switch (element.tagName.toLowerCase()) { ...
JavaScript
/** * JSSpec * * Copyright 2007 Alan Kang * - mailto:jania902@gmail.com * - http://jania.pe.kr * * http://jania.pe.kr/aw/moin.cgi/JSSpec * * Dependencies: * - diff_match_patch.js ( http://code.google.com/p/google-diff-match-patch ) * * This library is free software; you can redistribute it an...
JavaScript
// Copyright 2012 Google Inc. 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 required by applicable l...
JavaScript