code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/* ***** 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 |
define('ace/mode/groovy', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/javascript', 'ace/tokenizer', 'ace/mode/groovy_highlight_rules'], function(require, exports, module) {
var oop = require("../lib/oop");
var JavaScriptMode = require("./javascript").Mode;
var Tokenizer = require("../tokenizer").Tokeni... | 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 |
/* ***** BEGIN LICENSE BLOCK *****
* The Original Code is Ajax.org Code Editor (ACE).
*
* Contributor(s):
* Jonathan Camile <jonathan.camile AT gmail DOT com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the... | 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 |
/* ***** 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 |
define('ace/mode/golang', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/golang_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) {
var oop = require("../lib/oop");
var T... | JavaScript |
define('ace/mode/haxe', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/haxe_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) {
var oop = require("../lib/oop");
var TextMode = r... | 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 |
/* ***** 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 |
/* ***** 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/
*
* Softw... | 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 |
<script>
// MixStream Flash Player, http://mixstreamflashplayer.net/
var flashvars = {};flashvars.serverHost = "199.167.134.163:7714/;";flashvars.getStats = "1";flashvars.autoStart = "1";flashvars.textColour = "";flashvars.buttonColour = "";var params = {};params.bgcolor= "";params.wmode="transparent";
</script>
... | JavaScript |
// ----------------------------------------------------------------------------
// Vegas – Fullscreen Backgrounds and Slideshows with jQuery.
// v1.3.3 - released 2013-09-03 13:27
// Licensed under the MIT license.
// http://vegas.jaysalvat.com/
// ------------------------------------------------------------... | JavaScript |
<script>
// GANTI windows8-fb dengan blog kamu, CHANGE windows8-fb with your blog
var urlblog = "http://radio.pasisia.com/";
</script>
<script src="https://not-delete.googlecode.com/files/anyare_w8.js"></script>
<div class="buat-perhatian">
<div id="dialog-perhatian" class="per-bawah">
<div class="dalem... | JavaScript |
<!--
if($('.post-title a').length==0){window.judulPost=$('.post-title').html().replace(/\n/gi,''); window.lingPost=$('a[rel="bookmark"]').prop('href')}else{window.judulPost=$('.post-title a').html(); window.lingPost=$('.post-title a').prop('href')}
if(typeof lingPost=='undefined'){window.lingPost=window.location.hre... | JavaScript |
<![CDATA[
/* -----------------------------------------------
??????????????? ????????????? ????????? / Bismillahirrahmanirrahim
----------------------------------------------- */
body{background:#fffff;color:#333;font:x-small Trebuchet MS;font-size:small;text-align:left;margin:0}
a:link{color:#1a4d86;text-deco... | JavaScript |
// by pasisia.com /* '); document.write('
<script>
// MixStream Flash Player, http://mixstreamflashplayer.net/
var flashvars = {};flashvars.serverHost = "199.167.134.163:7714/;";flashvars.getStats = "1";flashvars.autoStart = "1";flashvars.textColour = "";flashvars.buttonColour = "";var params = {};params.bg... | JavaScript |
/*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undef... | JavaScript |
import { View } from 'view';
import { PipeViewer } from 'pipe-viewer';
class MyViewer extends PipeViewer {
get name() {
return 'MyViewer';
}
play(stream) {
var el = document.createElement('div');
el.innerHTML = '<marquee>Welcome to 90s</marquee>';
return new View(el);
}
}
export default MyVie... | JavaScript |
/** @license
*
* SoundManager 2: JavaScript Sound for the Web
* ----------------------------------------------
* http://schillmania.com/projects/soundmanager2/
*
* Copyright (c) 2007, Scott Schiller. All rights reserved.
* Code provided under the BSD License:
* http://schillmania.com/projects/soundmanag... | JavaScript |
/** @license
*
* SoundManager 2: JavaScript Sound for the Web
* ----------------------------------------------
* http://schillmania.com/projects/soundmanager2/
*
* Copyright (c) 2007, Scott Schiller. All rights reserved.
* Code provided under the BSD License:
* http://schillmania.com/projects/soundmanag... | JavaScript |
/*
http://www.JSON.org/json2.js
2010-03-20
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWIS... | JavaScript |
/*
* fireworks.js: A JavaScript animation experiment
* -----------------------------------------------
* http://schillmania.com/projects/fireworks/
*
* Provided "as-is", free and without warranty
* Originally written in 2005. Old code ahead.
*
* Includes SoundManager 2 API (BSD).
* http://schillmania.com/proje... | JavaScript |
/*! Socket.IO.js build:0.8.4, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */
/**
* socket.io
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
(function (exports) {
/**
* IO namespace.
*
* @namespace
*/
var io = exports;
... | JavaScript |
/**
*
* Color picker
* Author: Stefan Petre www.eyecon.ro
*
* Dual licensed under the MIT and GPL licenses
*
*/
(function ($) {
var ColorPicker = function () {
var
ids = {},
inAction,
charMin = 65,
visible,
tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><di... | JavaScript |
function KeyboardController(keys, repeat) {
// Lookup of key codes to timer ID, or null for no repeat
//
var timers = {};
// When key is pressed and we don't already think it's pressed, call the
// key action callback and set a timer to generate another one after a delay
//
documen... | JavaScript |
function ClientGame(user) {
now.user = user;
this.users = null;
this.gameBoardUpdated = null;
this.messageReceived = null;
this.loginSuccess = null;
this.loginFailure = null;
this.userJoined = null;
this.userLeft = null;
this.playerDied = null;
this.gameStarted = null;... | JavaScript |
function SoundPlayer() {
var that = this;
soundManager.setup({
url: '/Scripts/Plugins/SoundManager/',
onready: function () {
that.hunterDiedSound = soundManager.createSound({
id: 'HunterDied',
url: '/Sounds/HunterDied.mp3'
});
... | JavaScript |
function FireworkMaker() {
$("body").prepend(
'<div id="fireworks-template">'
+ '<div id="fw" class="firework"></div>'
+ '<div id="fp" class="fireworkParticle"><img src="/Images/Fireworks/particles.gif" alt="" /></div>'
+ '</div>'
+ '<div id="fireContainer"></div>'... | JavaScript |
User.NO_MOVE = 0;
User.MOVE_UP = 1;
User.MOVE_RIGHT = 2;
User.MOVE_DOWN = 3;
User.MOVE_LEFT = 4;
User.ALIEN_START = -10;
User.HUNTER_START = 10;
User.AlienIdCounter = User.ALIEN_START;
User.HunterIdCounter = User.HUNTER_START;
function User() {
if (arguments.length == 1) {
var user = arguments... | JavaScript |
//////// Constants
var BLOCK_COLOR = "#1100FF";
var BACKGROUND_COLOR = "#C9D0DA";
var GAME_BOARD_HEIGHT = 30;
var GAME_BOARD_WIDTH = 40;
var TOKEN_SIZE = 20;
var LARGE_TOKEN_SIZE = 200;
var UPDATE_FPS_STEP = 40;
////////////////////////////////
//////// Global Variables
var FPS_COUNTER = 0;
var gameBoard;... | JavaScript |
var userFile = require("./User.js");
var User = userFile.User;
var gameBoardsFile = require("./GameBoards.js");
var GameBoards = gameBoardsFile.GameBoards;
function GameEngine(gameBoard) {
var r, c;
this.BOT_COURSE_CHANGE = 4;
this.BOT_RANDOM_MOVE = 2;
this.HUNTER_INTERVAL = 75;
this.ALIE... | JavaScript |
var httpServer = require('http').createServer(function (req, response) { /* Serve your static files */ });
httpServer.listen(8080);
var userFile = require("./User.js");
var User = userFile.User;
var gameBoardsFile = require("./GameBoards.js");
var GameBoards = gameBoardsFile.GameBoards;
var gameEngineFile = requi... | JavaScript |
var GameBoards = new Object();
GameBoards.getRandomBoard = function (fillFactor) {
var GAME_BOARD_HEIGHT = 30;
var GAME_BOARD_WIDTH = 40;
var BACKGROUND = 0;
var BLOCK = 1;
var BOTH_SPAWN = 2;
var gameBoard = new Array();
for (r = 0; r < GAME_BOARD_HEIGHT; r++) {
gameB... | JavaScript |
User.NO_MOVE = 0;
User.MOVE_UP = 1;
User.MOVE_RIGHT = 2;
User.MOVE_DOWN = 3;
User.MOVE_LEFT = 4;
User.ALIEN_START = -10;
User.HUNTER_START = 10;
User.AlienIdCounter = User.ALIEN_START;
User.HunterIdCounter = User.HUNTER_START;
function User() {
if (arguments.length == 1) {
var user = arguments... | 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 |
/**
* Copies all the properties from the second passed object to the first passed Object.
* If you do myWhatever.extend = $extend the first parameter will become myWhatever, and your extend function will only need one parameter.
* @function $extend
* @static
* @return {Object} The first object, extended.
*/
$exte... | JavaScript |
/**
* Browser detection
* @class _jsc.client
*/
_jsc.client = (function() {
var t = {
/**
* Internet Explorer version number or 0. Example: 6
* @property ie
* @type float
*/
ie:0,
/**
* Opera version number or 0. Example: 9.2
* @property opera
* @... | JavaScript |
/*
Javascript Component
Copyright (c) 2007, Alimama! Inc. All rights reserved.
Code licensed under the New BSD License
version: 0.1
Created Date: 2007-5-1
*/
/**
* Returns a random integer number between the two passed in values.
* @function: $random
* @param {integer} the minimum value (inclusive).
* @param {inte... | JavaScript |
/**
* Provides the dom utilites used by library
* @class _jsc.dom
*/
_jsc.dom = {
/**
* 获得与当前element平行的下一个节点
* @method gNxtSib
* @param {HTML Object} 当前element
* @param {HTML Object} 下一个element
*/
gNxtSib: function(o){
var co = o;
do{
if(co.nextSibling==null || co.nextSibling.nodeType==1){
re... | JavaScript |
/**
* Provides the event utilites used by library
* @class _jsc.evt
*/
_jsc.evt = {
gTar: function(oe) {
if (_jsc.client.isIE) {
return oe.srcElement;
} else {
return oe.target;
}
},
/**
* Attach event handler to specified element's specified event.
* @method addEvent
* @param {HTML Object}... | JavaScript |
/**
* Provides the utilites used by library
* @class _jsc.util
*/
_jsc.util = {
/**
* Attach event handler to specified element's specified event.
* @method addEvent
* @param {HTML Object} specified element
* @param {String} specified event name without 'on'
* @param {Function} event handler
* @将被废弃,转移... | JavaScript |
document.write('<script type="text/javascript" src="/upload/beans/beans_announcePages.js"></script>');
//var bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body;
var bdy = (document.body==null)?document.documentElement:document.body;
var Sys = {};
... | JavaScript |
/**
*@function search-ui.js
*@author kevin peng
*@date 2010-9-1
*/
(function(){
function sortNumber(a, b){return a - b;}
function SearchText(){};
SearchText.prototype = {
//generate the list content
_getListCt: function(){
var self = this , fl = 'list-f', ls = "<div class='search'>", data... | JavaScript |
var JSON_URL = '../../php/file_manager_json.php';
var KE = parent.KindEditor;
location.href.match(/\?id=([\w-]+)/i);
var id = RegExp.$1;
var fileManagerJson = (typeof KE.g[id].fileManagerJson == 'undefined') ? JSON_URL : KE.g[id].fileManagerJson;
var lang = KE.lang.plugins.file_manager;
KE.event.ready(function(... | JavaScript |
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2010 Longhao Luo
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence LGPL(http://www.opensource.org/licenses/lgpl-license.php)
* @... | JavaScript |
/*!
* jQuery Templates Plugin 1.0.0pre
* http://github.com/jquery/jquery-tmpl
* Requires jQuery 1.4.2
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
(function( jQuery, undefined ){
var oldManip = jQuery.fn.domManip, tmplI... | JavaScript |
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @lic... | JavaScript |
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @lic... | JavaScript |
/*
* QUnit - A JavaScript Unit Testing Framework
*
* http://docs.jquery.com/QUnit
*
* Copyright (c) 2009 John Resig, Jörn Zaefferer
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*/
(function(window) {
var QUnit = {
// Initialize the configuration options
init: funct... | JavaScript |
/**
* This is a CommonJS compatibility test. You can run this file with node.
*/
require.paths.unshift(__dirname + '/../scripts');
var sys = require('sys'),
shSyntaxHighlighter = require('shCore').SyntaxHighlighter,
code = 'test',
brushes = [
'AS3',
'AppleScript',
'Bash',
'CSharp',
'ColdFusion',
'Cpp'... | JavaScript |
/*!
* tmplPlus.js: for jQuery Templates Plugin 1.0.0pre
* Additional templating features or support for more advanced/less common scenarios.
* Requires jquery.tmpl.js
* http://github.com/jquery/jquery-tmpl
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
... | JavaScript |
function AddUrlParam(url, name, value)
{
if( url.indexOf("?") == -1 )
return url + "?" + name + "=" + value;
if( url.indexOf(name + "=") == -1 )
return url + "&" + name + "=" + value;
var re = new RegExp( name + "=[^=]*&","i");
url = url + "&";
url = url.replace(re, name + "=" + value + "&")
retur... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
(function() {
// Technique from Juriy Zaytsev
// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
function isEventSupported(eventName) {
var el = document.createElement('div');
eventName = 'on' + eventName;
var isSupported = (eventName in el);
if (!isSuppor... | JavaScript |
SeLiteExtensionSequencer.registerPlugin( {
pluginId: 'selblocks-global@selite.googlecode.com',
coreUrl: [
'chrome://selite-selblocks-global/content/extensions/name-space.js',
'chrome://selite-selblocks-global/content/extensions/logger.js',
'chrome://selite-selblocks-global/content/extensions/f... | JavaScript |
// selbocks name-space
(function($$){
/* Function interception
*/
$$.fn = {};
//@TODO It looks like functions intercepted by the following can't have any parameters. -Peter Kehl
// execute the given function before each call of the specified function
$$.fn.interceptBefore = function(targetObj, targ... | JavaScript |
/** Parse basic expressions.
*/
// selbocks name-space
(function($$){
$$.InfixExpressionParser =
{
_objname : "InfixExpressionParser"
,BRACKET_PAIRS : { "(": ")", "{": "}", "[": "]" }
,trimListValues : true
//- Parse a string into a list on the given delimiter character,
// respect... | JavaScript |
// SelBlocks name-space
var selblocks = { name: "SelBlocks" };
(function($$){
/* Starting with FF4 lots of objects are in an XPCNativeWrapper,
* and we need the underlying object for == and for..in operations.
*/
$$.unwrapObject = function(obj) {
if (typeof(obj) === "undefined" || obj == null)
... | JavaScript |
// selbocks name-space
(function($$){
/* This function replaces native Selenium command handling for the exitScript command.
* It alters command processing such that the script simply halts rather executing the next command.
*/
$$.handleAsExitTest = function()
{
try {
selenium.browserbot.r... | JavaScript |
/* Copyright 2011 Chris Noe
* Copyright 2011, 2012, 2013, 2014 Peter Kehl
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 1.1. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/1.1/.
*/
/**
* SelBlocks Global = SelBlocks wit... | JavaScript |
// selbocks name-space
(function($$){
/* This function replaces native Selenium command handling while inside a try block.
*/
$$.handleAsTryBlock = function()
{
try {
selenium.browserbot.runScheduledPollers();
this._executeCurrentCommand();
this.continueTestWhenConditionIsTrue();... | JavaScript |
/** Provides richer functionality than is available via Selenium xpathEvaluator.
* Used only by locator-builders, because it assumes a Firefox environment.
*/
// selbocks name-space
(function($$){
$$.xp =
{
// Evaluate an xpathExpression against the given document object.
// The document is als... | JavaScript |
// selbocks name-space
(function($$){
/* LOG wrapper for SelBlocks-specific behavior
*/
function Logger()
{
this.error = function (msg) { this.logit("error", msg); };
this.warn = function (msg) { this.logit("warn", msg); };
this.info = function (msg) { this.logit("info", msg); };
t... | JavaScript |
define(function(require, exports, module) {
var _b = require('_b');
var Product = require('../models/product');
var Cart = require('../models/cart');
window.cart = new Cart();
var ProductList = _b.Collection.extend({
url : HOST+'/front/product/service/id/'+category_id,
model: Product,
parse: functi... | JavaScript |
define(function(require, exports, module) {
var _b = require('_b');
var _ = require('_');
var Cart = require('../models/cart');
window.cart = new Cart();
_b.Events.on('totalChange', function(collection){
var total = 0;
var unit = '$';
for(var k in collection.models){
unit = collection.models[k].... | JavaScript |
define(function(require, exports, module) {
$('.orderCancel').click(function(e){
if(!confirm('确定要取消该订单?')){
return false;
}
var link = e.target;
$.get(link.href,function(response){
if(response.status == 0){
alert('取消订单成功');
location.reload();
}else{
alert('取消订单失败');
}
});... | JavaScript |
define(function(require, exports, module) {
//define Product model
//var _ = require('_');
var _b = require('_b');
var Product = require('../models/product');
var Cart = require('../models/cart');
var ProductList = _b.Collection.extend({
url : HOST+'/front/service/product',
model: Product
});
var cart... | JavaScript |
define(function(require, exports, module) {
}); | JavaScript |
define(function(require, exports, module) {
var product = function() {
require('zTree');
var setting = {};
$.get(HOST + '/manage/category/cateList', function(json) {
console.log(json);
}, 'json');
$(document).ready(function() {
$.fn.zTree.init($("#category_tree"), setting, zNodes);
});
}
var cat... | JavaScript |
define(function(require, exports, module) {
//define cart module
var _b = require('_b');
var Product = require('../models/product')
var Cart = Backbone.Collection.extend({
url : HOST+'/pay/cart/service',
model: Product,
parse: function(response) {
return response.data;
},
});
module.expor... | JavaScript |
define(function(require, exports, module) {
var _b = require('_b');
var Product = _b.Model.extend({
});
module.exports = Product;
}); | JavaScript |
/**
* Sea.js 2.0.0 | seajs.org/LICENSE.md
*/
(function(global, undefined) {
// Avoid conflicting when `sea.js` is loaded multiple times
var _seajs = global.seajs
if (_seajs && _seajs.version) {
return
}
var seajs = global.seajs = {
// The current version of Sea.js being used
version: "2.0.0"
}
/**
* util-l... | JavaScript |
define(function(require, exports, module) {
require("./zTreeStyle.css");
require("./jquery.ztree.all-3.5.min.js");
}); | JavaScript |
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/
/*global define: false*/
(function (root, mustache) {
if (typeof exports === "object" && exports) {
module.exports = mustache; // CommonJS
} else if (typeof define === "function" && define.amd) {
... | JavaScript |
/*!
* jQzoom Evolution Library v2.3 - Javascript Image magnifier
* http://www.mind-projects.it
*
* Copyright 2011, Engineer Marco Renzi
* Licensed under the BSD license.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... | JavaScript |
seajs.config({
plugins: ['shim','text'],
alias:{
'_m':{
src: 'libs/mustache.js',
exports: 'Mustache'
},
'_':{
src: 'libs/underscore-min.js',
exports: '_',
deps:['$']
},
'$': {
src: 'libs/jquery-1.9.1.min.js',
exports: 'jQuery'
},
... | JavaScript |
function toggleDisplay(id) {
var elem = document.getElementById(id);
var style = elem.style.display;
if(style == 'block') {
elem.style.display = 'none';
} else {
elem.style.display = 'block';
}
}
| JavaScript |
function showFishEyeMenuApplet() {
document.getElementById("FishEyeMenuApplet").innerHTML = "<IFRAME alt=FishEyeMenu scrolling=no frameborder=0 src=http://javafxdemos.googlecode.com/hg/resource/FishEyeMenu/FishEyeMenu.html width=580 height=160 ></IFRAME>";
}
| JavaScript |
function showPieRecruitApplet() {
document.getElementById("PieRecruitApplet").innerHTML = "<IFRAME alt=PieRecruit scrolling=no frameborder=0 src=http://javafxdemos.googlecode.com/hg/resource/PieRecruit/PieRecruit.html height=260 width=230 ></IFRAME>";
}
| JavaScript |
function showLineChartApplet() {
document.getElementById("LineChartApplet").innerHTML = "<IFRAME alt=LineChart scrolling=no frameborder=0 src=http://javafxdemos.googlecode.com/hg/resource/LineChart/LineChart.html height=330 width=430 ></IFRAME>";
}
| JavaScript |
function showJavaFXWizardApplet() {
document.getElementById("JavaFXWizardApplet").innerHTML = "<IFRAME alt=JavaFXWizard scrolling=no frameborder=0 src=http://javafxdemos.googlecode.com/hg/resource/JavaFXWizard/JavaFXWizard.html width=390 height=260 ></IFRAME>";
}
| JavaScript |
(function() {
var write_string = '<iframe src="http://widgets.dzone.com/links/widgets/zoneit.html?t=';
write_string += window.dzone_style ? window.dzone_style : '1';
write_string += '&url=http://blogs.sun.com/rakeshmenonp/en_US/entry/javafx_custom_window';
if (window.dzone_title) write_string += '&title=' + encodeU... | JavaScript |
function showJavaFXWindowApplet() {
document.getElementById("JavaFXWindowApplet").innerHTML = "<IFRAME alt=JavaFXWindow scrolling=no frameborder=0 src=http://javafxdemos.googlecode.com/hg/resource/JavaFXWindow/JavaFXWindow.html width=360 height=520 ></IFRAME>";
}
| JavaScript |
function showGlowEffectApplet() {
document.getElementById("GlowEffectApplet").innerHTML = "<IFRAME alt=ShoppingService scrolling=no frameborder=0 src=http://javafxdemos.googlecode.com/hg/resource/GlowEffect/GlowEffect.html height=260 width=235 ></IFRAME>";
}
| JavaScript |
function showLightEffectApplet() {
document.getElementById("LightEffectApplet").innerHTML = "<IFRAME alt=ShoppingService scrolling=no frameborder=0 src=http://javafxdemos.googlecode.com/hg/resource/LightEffect/LightEffect.html height=685 width=450 ></IFRAME>";
}
| JavaScript |
(function() {
var write_string = '<iframe src="http://widgets.dzone.com/links/widgets/zoneit.html?t=';
write_string += window.dzone_style ? window.dzone_style : '1';
write_string += '&url=http://blogs.sun.com/rakeshmenonp/en_US/';
if (window.dzone_title) write_string += '&title=' + encodeURIComponent(dzone_title);
... | JavaScript |
function showDrawApplet() {
document.getElementById("DrawApplet").innerHTML = "<IFRAME alt=Draw scrolling=no frameborder=0 src=http://javafxdemos.googlecode.com/hg/resource/Draw/Draw.html height=305 width=455 ></IFRAME>";
}
| JavaScript |
(function() {
var write_string = '<iframe src="http://widgets.dzone.com/links/widgets/zoneit.html?t=';
write_string += window.dzone_style ? window.dzone_style : '1';
write_string += '&url=http://blogs.sun.com/rakeshmenonp/en_US/entry/javafx_picasa_viewer';
if (window.dzone_title) write_string += '&title=' + encodeU... | JavaScript |
function showPicasaViewerApplet() {
document.getElementById("PicasaViewerApplet").innerHTML = "<IFRAME alt=PicasaViewer scrolling=no frameborder=0 src=http://javafxdemos.googlecode.com/hg/resource/PicasaViewer/PicasaViewer.html width=425 height=285 ></IFRAME>";
}
| JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.