code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * $Id: om-button.js,v 1.61 2012/07/03 08:58:21 wangfan Exp $ * operamasks-ui omButton @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * om...
JavaScript
/* * $Id: om-grid.js,v 1.164 2012/06/29 09:20:32 chentianzhen Exp $ * operamasks-ui omGrid @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * ...
JavaScript
/* * $Id: om-scrollbar.js,v 1.9 2012/06/18 02:55:14 chentianzhen Exp $ * operamasks-ui omPanel @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: ...
JavaScript
/* * $Id: om-grid-headergroup.js,v 1.9 2012/06/13 05:37:55 chentianzhen Exp $ * operamasks-ui omGrid @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * De...
JavaScript
/* * $Id: om-grid-sort.js,v 1.5 2012/05/29 00:52:30 chentianzhen Exp $ * operamasks-ui omGrid @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: ...
JavaScript
/* * $Id: om-Container.js,v 1.14 2012/03/15 06:14:47 linxiaomin Exp $ * operamasks-ui omProgressbar @VERSION * * Copyright 2012, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ ...
JavaScript
/* * $Id: om-suggestion.js,v 1.86 2012/06/27 07:25:10 chentianzhen Exp $ * operamasks-ui omSuggestion @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * De...
JavaScript
/* * $Id: om-tree.js,v 1.114 2012/06/20 02:29:10 wangfan Exp $ * operamasks-ui omTree @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * om-co...
JavaScript
/* * $Id: om-progressbar.js,v 1.14 2012/03/15 06:14:47 linxiaomin Exp $ * operamasks-ui omProgressbar @VERSION * * Copyright 2012, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * De...
JavaScript
/* * $Id: om-tabs.js,v 1.111 2012/07/04 02:29:40 chentianzhen Exp $ * operamasks-ui omTabs @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * ...
JavaScript
/* * $Id: om-panel.js,v 1.47 2012/06/20 08:29:10 chentianzhen Exp $ * operamasks-ui omPanel @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * ...
JavaScript
/* * $Id: om-combo.js,v 1.175 2012/06/26 08:39:27 linxiaomin Exp $ * operamasks-ui omCombo @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * ...
JavaScript
/* * $Id: om-slider.js,v 1.35 2012/04/11 01:54:33 licongping Exp $ * operamasks-ui omSlider @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * ...
JavaScript
/* * $Id: om-borderlayout.js,v 1.19 2012/06/18 08:40:56 licongping Exp $ * operamasks-ui omBorderLayout @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * ...
JavaScript
/* * $Id: om-itemselector.js,v 1.15 2012/06/18 08:43:54 wangfan Exp $ * operamasks-ui omCombo @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: ...
JavaScript
/* * $Id: om-accordion.js,v 1.69 2012/06/20 08:30:31 chentianzhen Exp $ * operamasks-ui omAccordion @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depe...
JavaScript
/* * $Id: om-resizable.js,v 1.7 2012/06/11 01:17:03 linxiaomin Exp $ * operamasks-ui omResizable @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depend...
JavaScript
/* * $Id: om-tooltip.js,v 1.14 2012/06/26 07:07:03 luoyegang Exp $ * operamasks-ui omTooltip @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: *...
JavaScript
/* * $Id: om-dialog.js,v 1.34 2012/06/18 08:49:06 linxiaomin Exp $ * operamasks-ui omDialog @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: * ...
JavaScript
/* * $Id: om-sortable.js,v 1.9 2012/05/18 09:26:42 wangfan Exp $ * operamasks-ui omSortable @VERSION * * Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about) * Dual licensed under the MIT or LGPL Version 2 licenses. * http://ui.operamasks.org/license * * http://ui.operamasks.org/docs/ * * Depends: *...
JavaScript
/* http://www.JSON.org/json2.js 2010-11-17 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 EX...
JavaScript
//处理键盘事件 禁止后退键(Backspace)密码或单行、多行文本框除外 function banBackSpace(e) { var ev = e || window.event;//获取event对象 var obj = ev.target || ev.srcElement;//获取事件源 var t = obj.type || obj.getAttribute('type');//获取事件源类型 //获取作为判断条件的事件类型 var vReadOnly = obj.readOnly; var vDisabled = obj.disabled; //...
JavaScript
if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = 'Page'; $.fn.pagination.defaults.afterPageText = 'of {pages}'; $.fn.pagination.defaults.displayMsg = 'Displaying {from} to {to} of {total} items'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = 'Processing, please wait ...'; } if ($.fn....
JavaScript
if ($.fn.pagination){ $.fn.pagination.defaults.beforePageText = '第'; $.fn.pagination.defaults.afterPageText = '共{pages}页'; $.fn.pagination.defaults.displayMsg = '显示{from}到{to},共{total}记录'; } if ($.fn.datagrid){ $.fn.datagrid.defaults.loadMsg = '正在处理,请稍待。。。'; } if ($.fn.treegrid && $.fn.datagrid){ $.fn.tre...
JavaScript
Wami = function() { } Wami.utils = function() { } Wami.utils.debug = function(message) { if (typeof console == 'undefined') { // No Firebug console, so no logging. } else { console.log(message); } } Wami.utils.gup = function(name) { var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp(regexS);...
JavaScript
///////////////////////////////////////////////////////////////// //// Public WamiApp API //// ///////////////////////////////////////////////////////////////// // Create a new Wami.App object. Note, you should never create more than one // Wami.App object on your page. // // ...
JavaScript
jQuery.validator.addMethod( "newRoom", function(value) { return $(".listRoomName").filter( function() { return $(this).text() == $.trim(value); }).size() == 0; }, "Room already exists!" ); $().ready(function() { FB.init( { appId: '126564364026625', xfbml : false }); $("#cr...
JavaScript
function handleSessionResponse(response) { if (!response.session) { return; } else { window.location.href = "http://delta-tomcat-vm.cs.tau.ac.il:40767//lobby.html"; } } $(document).ready(function() { FB.init( { appId: '126564364026625', status : true, cookie : true, xfbml : true });...
JavaScript
/** * @license * jQuery Tools 1.2.2 Tooltip - UI essentials * * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. * * http://flowplayer.org/tools/tooltip/ * * Since: November 2008 * Date: Wed May 19 06:53:17 2010 +0000 */ (function($) { /* removed: oneInstance, lazy, tip must next to the trigger ...
JavaScript
// jQuery Alert Dialogs Plugin // // Version 1.1 // // Cory S.N. LaViska // A Beautiful Site (http://abeautifulsite.net/) // 14 May 2009 // // Visit http://abeautifulsite.net/notebook/87 for more information // // Usage: // jAlert( message, [title, callback] ) // jConfirm( message, [title, callback] ) //...
JavaScript
function facebookURL(params) { var clean = false; var prefix = window.location.toString().substring((window.location.toString().indexOf('?', 0) + 1)); if (prefix.indexOf('#', 0) != -1) { clean = true; } if (clean) { prefix = prefix.substring(0, prefix.length-1); } var suffix = "&" + $.param(pa...
JavaScript
jQuery.validator.addMethod( "evenNumber", function(value) { return parseInt(value) % 2 == 0; }, "Enter an even number!" ); var currentlyPlaying = false; var endOfGame = false; var currentSelectedTile; $(document).ready(function() { $('#dataHolder').data('actionCounter', -1); $('#dataH...
JavaScript
function getRooms() { $.get("GetRooms", facebookURL({ type: "getCurrentRooms" }), function(data) { var currentlySelected = $("#rooms > tr.selected"); if (currentlySelected.size() > 0) { currentlySelected = currentlySelected[0].id; } $("#rooms").html(""); $("#currentRoom")....
JavaScript
// Script for NiftyPlayer 1.7, by tvst from varal.org // Released under the MIT License: http://www.opensource.org/licenses/mit-license.php var FlashHelper = { movieIsLoaded : function (theMovie) { if (typeof(theMovie) != "undefined") return theMovie.PercentLoaded() == 100; else return false; }, ...
JavaScript
/* * SimpleModal 1.3.5 - jQuery Plugin * http://www.ericmmartin.com/projects/simplemodal/ * Copyright (c) 2010 Eric Martin (http://twitter.com/EricMMartin) * Dual licensed under the MIT and GPL licenses * Revision: $Id: jquery.simplemodal.js 245 2010-03-25 20:41:15Z emartin24 $ */ /** * SimpleModal is a lightwe...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
/** * Creates a new Floor. * @constructor * @param {google.maps.Map=} opt_map */ function Floor(opt_map) { /** * @type Array.<google.maps.MVCObject> */ this.overlays_ = []; /** * @type boolean */ this.shown_ = true; if (opt_map) { this.setMap(opt_map); } } /** * @param {google.maps.M...
JavaScript
/** * Creates a new level control. * @constructor * @param {IoMap} iomap the IO map controller. * @param {Array.<string>} levels the levels to create switchers for. */ function LevelControl(iomap, levels) { var that = this; this.iomap_ = iomap; this.el_ = this.initDom_(levels); google.maps.event.addList...
JavaScript
/** * @license * * Copyright 2011 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 l...
JavaScript
// Copyright 2011 Google /** * 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 wri...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','he',{placeholder:{title:'מאפייני שומר מקום',toolbar:'צור שומר מקום',text:'תוכן שומר המקום',edit:'ערוך שומר מקום',textMissing:'שו...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','en',{placeholder:{title:'Placeholder Properties',toolbar:'Create Placeholder',text:'Placeholder Text',edit:'Edit Placeholder',te...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('docprops',{init:function(a){var b=new CKEDITOR.dialogCommand('docProps');b.modes={wysiwyg:a.config.fullPage};a.addCommand('docProps',b);CKEDITOR.d...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','he',{uicolor:{title:'בחירת צבע ממשק משתמש',preview:'תצוגה מקדימה',config:'הדבק את הטקסט הבא לתוך הקובץ config.js',predefined:'קבוצות...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefi...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','en',{devTools:{title:'Element Information',dialogName:'Dialog window name',tabName:'Tab name',elementId:'Element ID',elementType:'E...
JavaScript
/* Copyright (c) 2003-2010, 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 example: // config.language = 'fr'; // config.uiColor = '#AADC6...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',vers...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',vers...
JavaScript
/*! * jQuery UI Timepicker 0.2.1 * * Copyright (c) 2009 Martin Milesich (http://milesich.com/) * * Some parts are * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * * $Id: timepicker.js 28 2009-08-11 20:31:23Z majlo $ * * Depends: * ui.core.js * ui.datepicker.js * ui.slider.js */ (functio...
JavaScript
function _MaskAPI(){ this.version = "0.4b"; this.instances = 0; this.objects = {}; } MaskAPI = new _MaskAPI(); function Mask(m, t){ this.mask = m; this.type = (typeof t == "string") ? t : "string"; this.error = []; this.errorCodes = []; this.value = ""; this.strippedValue = ""; this.allowPartia...
JavaScript
/** * Author: http://forrst.com/posts/jQuery_plugin_to_automatically_create_slug_from-g2T * Modified by 9webdesigns.com */ (function ($) { jQuery.fn.makeSlug = function (options, i) { if (this.length > 1) { var a = new Array(); this.each( ...
JavaScript
/** * Ajax Autocomplete for jQuery, version 1.1.3 * (c) 2010 Tomas Kirda * * Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license. * For details, see the web site: http://www.devbridge.com/projects/autocomplete/jquery/ * * Last Review: 04/19/2010 */ /*jslint oneva...
JavaScript
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and deltaY * *...
JavaScript
/* * FancyBox - jQuery Plugin * Simple and fancy lightbox alternative * * Examples and documentation at: http://fancybox.net * * Copyright (c) 2008 - 2010 Janis Skarnelis * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support i...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
$(document).ready(function(){ /** * Submit FORM */ $(".submit").click( function () { $(this).closest("form").submit(); } ); //Sidebar Accordion Menu: $("#main-nav li ul").hide(); // Hide all sub menus $("#main-nav li a.current").parent().find("ul").slideToggle("slow"); //...
JavaScript
/* * Treeview 1.4 - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-li...
JavaScript
/** * DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>. * Author: Drew Diller * Email: drew.diller@gmail.com * URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/ * Version: 0.0.7a * Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#licens...
JavaScript
/* * Autocomplete - jQuery plugin 1.1pre * * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.autocomplete...
JavaScript
/* Tokenizer for JavaScript code */ var tokenizeJavaScript = (function() { // Advance the stream until the given character (not preceded by a // backslash) is encountered, or the end of the line is reached. function nextUntilUnescaped(source, end) { var escaped = false; while (!source.endOfLine()...
JavaScript
var SparqlParser = Editor.Parser = (function() { function wordRegexp(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); } var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri", "isblank", "isliteral", "union", "a"]); ...
JavaScript
// Minimal framing needed to use CodeMirror-style parsers to highlight // code. Load this along with tokenize.js, stringstream.js, and your // parser. Then call highlightText, passing a string as the first // argument, and as the second argument either a callback function // that will be called with an array of SP...
JavaScript
/* This file defines an XML parser, with a few kludges to make it * useable for HTML. autoSelfClosers defines a set of tag names that * are expected to not have a closing tag, and doNotIndent specifies * the tags inside of which no indentation should happen (see Config * object). These can be disabled by passi...
JavaScript
/* String streams are the things fed to parsers (which can feed them * to a tokenizer if they want). They provide peek and next methods * for looking at the current character (next 'consumes' this * character, peek does not), and a get method for retrieving all the * text that was consumed since the last time ...
JavaScript
/* CodeMirror main module * * Implements the CodeMirror constructor and prototype, which take care * of initializing the editor frame, and providing the outside interface. */ // The CodeMirrorConfig object is used to specify a default // configuration. If you specify such an object before loading this // ...
JavaScript
/* Parse function for JavaScript. Makes use of the tokenizer from * tokenizejavascript.js. Note that your parsers do not have to be * this complicated -- if you don't want to recognize local variables, * in many languages it is enough to just look for braces, semicolons, * parentheses, etc, and know when you a...
JavaScript
/** * Storage and control for undo information within a CodeMirror * editor. 'Why on earth is such a complicated mess required for * that?', I hear you ask. The goal, in implementing this, was to make * the complexity of storing and reverting undo information depend * only on the size of the edited or restor...
JavaScript
var DummyParser = Editor.Parser = (function() { function tokenizeDummy(source) { while (!source.endOfLine()) source.next(); return "text"; } function parseDummy(source) { function indentTo(n) {return function() {return n;}} source = tokenizer(source, tokenizeDummy); var space = 0; ...
JavaScript
/* A few useful utility functions. */ // Capture a method on an object. function method(obj, name) { return function() {obj[name].apply(obj, arguments);}; } // The value used to signal the end of a sequence in iterators. var StopIteration = {toString: function() {return "StopIteration"}}; // Apply a fun...
JavaScript
/* Functionality for finding, storing, and restoring selections * * This does not provide a generic API, just the minimal functionality * required by the CodeMirror system. */ // Namespace object. var select = {}; (function() { select.ie_selection = document.selection && document.selection.createRang...
JavaScript
/* Simple parser for CSS */ var CSSParser = Editor.Parser = (function() { var tokenizeCSS = (function() { function normal(source, setState) { var ch = source.next(); if (ch == "@") { source.nextWhileMatches(/\w/); return "css-at"; } else if (ch == "/" && source....
JavaScript
// A framework for simple tokenizers. Takes care of newlines and // white-space, and of getting the text from the source stream into // the token object. A state is a function of two arguments -- a // string stream and a setState function. The second can be used to // change the tokenizer's state, and can be ignor...
JavaScript
var HTMLMixedParser = Editor.Parser = (function() { if (!(CSSParser && JSParser && XMLParser)) throw new Error("CSS, JS, and XML parsers must be loaded for HTML mixed mode to work."); XMLParser.configure({useHTMLKludges: true}); function parseMixed(stream) { var htmlParser = XMLParser.make(stream)...
JavaScript
/* Demonstration of embedding CodeMirror in a bigger application. The * interface defined here is a mess of prompts and confirms, and * should probably not be used in a real project. */ function MirrorFrame(place, options) { this.home = document.createElement("DIV"); if (place.appendChild) place.ap...
JavaScript
/* The Editor object manages the content of the editable frame. It * catches events, colours nodes, and indents lines. This file also * holds some functions for transforming arbitrary DOM structures into * plain sequences of <span> and <br> elements */ var internetExplorer = document.selection && window.Act...
JavaScript
/* Copyright (c) 2008-2010 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed by Yahoo! Inc. under the BSD (revised) open source license @author Dan Vlad Dascalescu <dandv@yahoo-inc.com> Parse function for PHP. Makes use of the tokenizer from tokenizephp.js. B...
JavaScript
/* Copyright (c) 2008-2010 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed by Yahoo! Inc. under the BSD (revised) open source license @author Vlad Dan Dascalescu <dandv@yahoo-inc.com> Tokenizer for PHP code References: + http://php.net/manual/en/reser...
JavaScript
/* Copyright (c) 2008-2010 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed by Yahoo! Inc. under the BSD (revised) open source license @author Dan Vlad Dascalescu <dandv@yahoo-inc.com> Based on parsehtmlmixed.js by Marijn Haverbeke. */ var PHPHTMLMixedParse...
JavaScript
CKFinder.addPlugin( 'fileeditor', function( api ) { var regexExt = /^(.*)\.([^\.]+)$/, regexTextExt = /^(txt|css|html|htm|js|asp|cfm|cfc|ascx|php|inc|xml|xslt|xsl)$/i, regexCodeMirrorExt = /^(css|html|htm|js|xml|xsl|php)$/i, codemirror, file, fileLoaded = false, doc; var codemirrorPath = CKFi...
JavaScript
CKFinder.addPlugin( 'imageresize', { connectorInitialized : function( api, xml ) { var node = xml.selectSingleNode( 'Connector/PluginsInfo/imageresize/@smallThumb' ); if ( node ) CKFinder.config.imageresize_thumbSmall = node.value; node = xml.selectSingleNode( 'Connector/PluginsInfo/imageresize/@mediu...
JavaScript
/** * Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license * * CKFinder 2.x - sample "dummy" plugin. * * To enable it, add the following line to config.js: * config.extraPlugins = 'dummy'; */ /** * See http...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKFinder.setPluginLang( 'dummy', 'pl', { dummy : { title : 'Testowe okienko', menuItem : 'Otwórz okienko dummy', typeText : 'Podaj jakiś tekst...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKFinder.setPluginLang( 'dummy', 'en', { dummy : { title : 'Dummy dialog', menuItem : 'Open dummy dialog', typeText : 'Please type some text.' } });
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckfinder.com/license */ CKFinder.customConfig = function( config ) { // Define changes to default configuration here. For example: // config.skin = 'v1'; // config.language = 'fr'; }; ...
JavaScript
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2010 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . All rights reserved.<br /><br />' ; document.body.appendChild( document.createElement( '...
JavaScript
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2010 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . Todos los derechos reservados.<br /><br />' ; document.body.appendChild( document.create...
JavaScript
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2010 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . Todos los derechos reservados.<br /><br />' ; document.body.appendChild( document.create...
JavaScript
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2010 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . Wszystkie prawa zastrzeżone.<br /><br />' ; document.body.appendChild( document.createEl...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript