code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
test('Linear Collection', function(){
ok(
List.validPopStackSeries([1, 2, 3], [1, 2, 3]) &&
List.validPopStackSeries([1, 2, 3], [2, 3, 1]) &&
List.validPopStackSeries([1, 2, 3], [3, 2, 1]) &&
List.validPopStackSeries([1, 2, 3], [2, 1, 3]) &&
List.validPopStackSeries([1, 2, 3], [1, 3, 2]) &&
!List.validPo... | JavaScript |
test('Math.Vector constucting', function(){
var isNumber = function(x){
return !isNaN( parseFloat(x) ) && isFinite( x );
};
var isNumberArray = function(arr){
return Array.isArray(arr) && arr.every(function(x){return isNumber(x);});
};
// points
var p1 = new Math.Point([2, 3, 4]);
var p2 = new ... | JavaScript |
test('Graph constructor and properties', function(){
throws(function(){new T.Graph();}, 'error should be thrown when build graph without indicating n');
throws(function(){new T.GraphW();}, 'error should be thrown when build weighted graph without indicating n');
var g1 = new T.Graph(10);
g1.n = 13;
strictEqual(g1... | JavaScript |
/**
* QUnit v1.11.0 - A JavaScript Unit Testing Framework
*
* http://qunitjs.com
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
(function( window ) {
var QUnit,
assert,
config,
onErrorFnPrev,
testId = 0,
fileName = (sourceFromS... | JavaScript |
test('Math basic extensions', function(){
// strictEqual(Math.mod(0, 0), 0 % 0, '0 mod 0 == NaN');
strictEqual(Math.mod(17, 4), 17 % 4, '17 mod 4 == 1');
strictEqual(Math.mod(-25, 4), 3, '-25 mod 4 == 3 (-25 == -7 * 4 + 3)');
throws(function(){
Math.range();
}, 'range should have at least one args');
throws(fu... | JavaScript |
test('Test on QuickFind', function () {
'use strict'
var find = new T.QuickFind(10);
strictEqual(find.count(), 10, 'constructor of quick find');
ok(!find.connected(1, 2), '!connected(1, 2)');
find.union(1, 3);
find.union(7, 2);
find.union(9, 3);
ok(find.connected(1, 9), 'connected(1, 9)');
deepEqual(find._id... | JavaScript |
test('Tree, BST', function(){
var bst1 = new T.BinarySearchTree();
ok(!!(bst1 &&
bst1.__degree__ == 2 &&
(bst1.__root__ === null) &&
(bst1.__count__ === 0) &&
(bst1.size() === 0) &&
(bst1.search(5) === null) &&
(bst1.rSearch(5) === null)), 'basic properties of BST');
var bst1 = new T.BinarySearchTre... | JavaScript |
test('T.Queue enqueuing', function(){
ok((new T.Queue()).size() == 0, 'Construct a empty queue');
var lst1 = new T.Queue(),
length = 0,
lengthTestMsg = 'Length test success after previous method';
deepEqual(lst1.toArray(), [], 'Empty queue equals []');
strictEqual(lst1.size(), length, lengthTestMsg);... | JavaScript |
(function(type, undefined){
type.Queue = function(){
this.__innerList__ = new T.LinkedList();
};
type.Queue.prototype = {
isEmpty: function(){return this.__innerList__.isEmpty();},
enqueue: function(item){
this.__innerList__.push(item);
},
peek: function(){
if (this.__innerList__.is... | JavaScript |
(function (type, undefined) {
'use strict';
type.QuickFind = function (n) {
this._count = n;
this._id = Math.range(n);
};
var $pt = type.QuickFind.prototype;
$pt.count = function () {
return this._count;
};
// find parent of i
$pt.find = function (p) {
p = Math.mod(p, this._id.length);
... | JavaScript |
(function(Graph, undefined){
// using t.graph.js
// using t.queue.js
// labelAt (v, 'v' | 'm') for diff meaning, v: visited, m: marked
// or we can use -1 for initial label of vertex, then after, label 0 as marked, label t>0 as visited by some order
Graph.bfs = function(graph){
var g = graph.clone();
var res... | JavaScript |
(function(Graph, undefined){
// using graph.weighted.js
Graph.mstPrim = function(graph, s){
s = s || 1;
// assert is weighted, s in [1. n]
// in our heap (frontier), each x, y is formated like [u, v, w],
// where u in X, v not in X, w is weight
var frontier = new T.MinHeap(function(x, y){return x[2] - y[... | JavaScript |
(function(Dynamic, undefined){
(function(knapsack, undefined){
var capacity = 0;
var itemIndex = 0;
var items = [[0, 0]]; // each item is reprensented as [value, weight]
knapsack.__build__ = function(txt){
var lines = txt.split('\n');
// [knapsack_size][number_of_items]
// [value_1] [wei... | JavaScript |
(function(type, undefined){
type.Stack = function(){
this.__length__ = 0;
this.__innerList__ = [];
};
type.Stack.prototype = {
isEmpty: function(){
return this.__length__ == 0;
},
size: function(){
return this.__length__;
},
push: function(item){
this.__innerList__[this.__le... | JavaScript |
(function(type, undefined){
// using sorting.js
var _heap = function(compare){
// inspired by alg4p1's implementation
this.__id__ = [-1];
this.__count__ = 0;
// default compare(x, y) is x - y;
Object.defineProperty(
this,
'__compare__',
{writable: false, value: Sorting.__compareOrDefault__(compar... | JavaScript |
(function(Graph, undefined){
Graph.dijkstra = function(graph, s){
s = s || 1;
// assert is weighted, s in [1. n]
// in our heap (frontier), each x, y is formated like [v, w],
// means, for now on, shortest path from s to v is w
var frontier = new T.MinHeap(function(x, y){return x[1] - y[1];}),
g = gra... | JavaScript |
(function(type, undefined){
var _node = function(elem){
this.elem = elem;
// The height of a node is the length of the longest downward path to a leaf from that node.
// The depth of a node is the length of the path to its root (i.e., its root path)
// The root node has depth zero, leaf nodes have height... | JavaScript |
(function(Sorting, undefined){
// using x.array.js
// using sorting.js
function _deepCloneTo(arr, to, l, r){
// copy arr to to deeply from l to r inclusively
// require arr.length = to.length;
r = Math.mod(r, arr.length);
for (var i=l;i<=r;i++){
to[i] = arr[i];
}
};
var inversions ... | JavaScript |
(function(list, undefined){
// algorithm application
list.validPopStackSeries = function(pushArray, popArray){
// if we push [1, 2, 3, 4] one by one,
// can we get the series [2, 3, 4, 1] by poping after certain push?
var st = new T.Stack(),
j = 0 ;
pushArray.forEach(function(x){
st.push(x);
while(!... | JavaScript |
(function(hash, undefined){
hash.tsum = function(arr, l, r){
// we sort arr
// binary search z-x in arr for each x
var a = arr.clone(),
zeroIndex = -1,
u, v;
a.push(0);
a = Sorting.quickSort(a);
zeroIndex = Sorting.binarySearch(a, 0);
function index(target){
// O(nlgn)
return a.some(funct... | JavaScript |
window.onload = function() {
myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
} | JavaScript |
/*
moo.fx, simple effects library built with prototype.js (http://prototype.conio.net).
by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE.
for more info (http://moofx.mad4milk.net).
10/24/2005
v(1.0.2)
*/
//base
var fx = new Object();
fx.Base = function(){};
fx.Base.prototype = {
setOptions: function(option... | JavaScript |
function create_menu(basepath)
{
var base = (basepath == 'null') ? '' : basepath;
document.write(
'<table cellpadding="0" cellspaceing="0" border="0" style="width:98%"><tr>' +
'<td class="td" valign="top">' +
'<ul>' +
'<li><a href="'+base+'index.html">User Guide Home</a></li>' +
'<li><a href="'+base+'toc.... | JavaScript |
/*!
* jQuery JavaScript Library v1.4.1
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... | JavaScript |
function initArray() {
this.length = initArray.arguments.length
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i]
}
function modDate() {
var MOYArray = new initArray("Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec");
var LastModDate = new Date(document.lastModi... | JavaScript |
// JavaScript Document
$('#slide').cycle({
fx: 'fade',
speed:2000,
timeout:2000,
random:true
}); | JavaScript |
<!-- Begin POP-UP SIZES AND OPTIONS CODE
function popcontact(URL) {
var popup_width = 600
var popup_height = 200
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+pop... | JavaScript |
/*
* jQuery Cycle Plugin for light-weight slideshows
* Examples and documentation at: http://malsup.com/jquery/cycle/
* Copyright (c) 2007-2008 M. Alsup
* Version: 2.12 (04/05/2008)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/li... | JavaScript |
//统一复制
function core_copy(obj,clearobj,extend_fn){
var parents = $(obj).parents("tr:first");
var object_new = $(parents).clone().insertAfter($(parents));
$(object_new).find('#delete_link').show();
$(object_new).find(clearobj).val('');
autocomplete_load($(object_new).find('#product_name')); //autocomp... | JavaScript |
//全选
function checkAll(){
var checked = $(this).attr("checked");
var all_check;
if(checked){
all_check = true;
}else{
all_check=false;
}
$('[id="ids"]').attr("checked",all_check);
}
//检查是否选中
function checkSelect(){
var check_size = $('[id="ids"]:checked').size();
... | JavaScript |
/**
* Admin Console Reporting Console component
*/
var connector = remote.connect("alfresco");
var data = connector.get("/reportingstatus");
var fromServer = eval('(' + data + ')');
model.reportingtables = fromServer["result"];
| JavaScript |
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | JavaScript |
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | JavaScript |
<import resource="classpath:alfresco/module/org.alfresco.reporting/scripts/harvestDatabase.lib.js">
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License"); you may n... | JavaScript |
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at... | JavaScript |
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | JavaScript |
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | JavaScript |
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | JavaScript |
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | JavaScript |
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | JavaScript |
<import resource="classpath:alfresco/module/org.alfresco.reporting/scripts/harvestDatabase.lib.js">
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License"); you may n... | JavaScript |
<import resource="classpath:alfresco/module/org.alfresco.reporting/scripts/harvestDatabase.lib.js">
/**
* Copyright (C) 2011 - 2013 Alfresco Business Reporting project
*
* This file is part of the Alfresco Business Reporting project.
*
* Licensed under the GNU LGPL, Version 3.0 (the "License"); you may n... | JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/executeReportingContainerMonthly.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/executeReportingTemplate.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/harvestDatabaseMoreFrequent.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
// empty the status and the timestamp of the lasttimestamp-table
reporting.resetLastTimestampTable();
| JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/executeReportingContainerWeekly.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
<import resource="classpath:alfresco/module/org.alfresco.reporting/scripts/executeAllReports.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
}
| JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/executeReportingRoot.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/executeReportingContainer.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/executeReportingContainerDaily.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
<import resource="classpath:alfresco/module/org.alfresco.reporting/scripts/getAllTableNames.js">
// This script is part of the Alfresco Business Reporting project.
reporting.dropTables(getAllTableNames());
reporting.resetLastTimestampTable(); | JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/executeReportingContainerHourly.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/harvestDatabaseAll.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
<import resource="classpath:alfresco/module/org_alfresco_reporting/scripts/harvestDatabaseLessFrequent.js">
try{
var goBack = "<script>history.back();</script>";
goBack;
} catch (exception) {
// none
} | JavaScript |
/**
*
*/
function a1ert(str, pwd) {
var prand = "";
for ( var i = 0; i < pwd.length; i++) {
prand += pwd.charCodeAt(i).toString();
}
var sPos = Math.floor(prand.length / 5);
var mult = parseInt(prand.charAt(sPos) + prand.charAt(sPos * 2)
+ prand.charAt(sPos * 3) + prand.charAt(sPos * 4)
+ p... | JavaScript |
google.load("jquery", "1.5");
google.load("jqueryui", "1.7.2");
google.load("visualization", "1");
var domain_str = "http://localhost:8090";
var page_str = "/wordclouds";
var update_interval = 1000;
function update_domain(form) {
domain_str = form.inputbox.value;
get_top_words();
}
var term_clouds = [];
//... | JavaScript |
var domain_str = "http://bros.ml.cmu.edu:8090";
var wordcloudpage_str = "/wordclouds";
var clickpage_str= "/click";
var addtopic_str= "/addtopic";
var ldaparam_str= "/ldaparam";
var lockword_str = "/lockword";
var update_interval = 5000;
var fill = d3.scale.category20();
var basefont = 15;
var lockedwords = {};
var max... | JavaScript |
var metric_str = "/metrics_aggregate.json?name=Token%20Samples&rate=1&rounding=1&tlast=300"
var n = 61;
var margin = {top: 10, right: 10, bottom: 20, left: 40},
width = 480 - margin.left - margin.right,
height = 160 - margin.top - margin.bottom;
var x = d3.scale.linear()
.domain([0, n - 1])
.range([0, width... | JavaScript |
// install slider for alpha, beta
function update_alpha(val) {
$.get(domain_str+ldaparam_str, {"alpha": val},
function(msg) {
console.log(msg);
jSuccess(msg);
});
console.log("request change alpha to :" + val);
}
function update_beta(val) {
$.get(domain_str+ldaparam_str, {"beta": val}... | JavaScript |
// Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/
// Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf
(function(exports) {
function cloud() {
var size = [256, 256],
text = cloudText,
font = cloudFont,
fontSize = cloudFontSize,
... | JavaScript |
google.load("jquery", "1.5");
var domain_str = "http://localhost:8090";
var domain_str = "";
var page_str = "top_users.json";
// jsonp callback required
var twitter_addr = "http://api.twitter.com/1/users/lookup.json"
var current_results = [];
var user_profiles = {};
function update_domain(form) {
domain_str ... | JavaScript |
google.load("jquery", "1.5");
google.load("jqueryui", "1.7.2");
google.load("visualization", "1");
var domain_str = "http://localhost:8090";
var page_str = "/wordclouds";
var update_interval = 2000;
function update_domain(form) {
domain_str = form.inputbox.value;
get_top_words();
}
var term_clouds = [];
//... | JavaScript |
const RESET_PROB = 0.15;
var PageRank = (function(){
var cls = function(){
var last_change = 0.0;
this.gather = function(vertex, edge){
return ((1.0 - RESET_PROB) / edge.source().numOutEdges()) * edge.source().data;
};
this.apply = function(vertex, total){
var newval = total + RESET_P... | JavaScript |
google.load("jquery", "1.5");
google.load("jqueryui", "1.7.2");
google.load("visualization", "1",
{"packages":["corechart", "table", "gauge"]});
var domain_str = "http://localhost:8090";
var update_interval = 5000;
var last_minutes=5;
function update_domain(value) {
console.log("Setting domain to " ... | JavaScript |
google.load("jquery", "1.5");
google.load("jqueryui", "1.7.2");
google.load("visualization", "1",
{"packages":["corechart", "table", "gauge"]});
var domain_str = "http://localhost:8090";
var update_interval = 5000;
var last_minutes=5;
// This function is called when the update domain button is clicked
f... | JavaScript |
var cookie_namespace = 'doxygen';
var sidenav,navtree,content,header;
function readCookie(cookie)
{
var myCookie = cookie_namespace+"_"+cookie+"=";
if (document.cookie)
{
var index = document.cookie.indexOf(myCookie);
if (index != -1)
{
var valStart = index + myCookie.length;
var valE... | JavaScript |
var NAVTREE =
[
[ "Annuaire genealogique", "index.html", [
[ "Liste des classes", "annotated.html", [
[ "tp3::Annuaire", "classtp3_1_1_annuaire.html", null ],
[ "lab08::ArbreAVL< T >", "classlab08_1_1_arbre_a_v_l.html", null ],
[ "tp3::ArbreGenealogique", "classtp3_1_1_arbre_genealogique.html", ... | JavaScript |
document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
document.createElement('hgroup');
$(document).ready(function () {
$('.section-content,#status-container').addClas... | JavaScript |
(function () {
var host = window.location.hostname;
var port = window.location.port;
var videoPlugin;
var videoStream;
var audioPlugin;
var audioStream;
var error;
var volume;
function stream(object,type,done) {
var state = "idle";
return {
restart:... | JavaScript |
(function () {
var translations = {
en: {
1:"About",
2:"Return",
3:"Change quality settings",
4:"Flash/Vibrator",
5:"Click on the torch to enable or disable the flash",
6:"Play a prerecorded sound",
7:"Connect !!",
8:"... | JavaScript |
(function ($) {
var date = new Date(),
defaults = {
dateFormat: 'mm/dd/yy',
dateOrder: 'mmddy',
timeWheels: 'hhiiA',
timeFormat: 'hh:ii A',
startYear: date.getFullYear() - 100,
endYear: date.getFullYear() + 1,
mon... | JavaScript |
/*!
* jQuery MobiScroll v2.1
* http://mobiscroll.com
*
* Copyright 2010-2011, Acid Media
* Licensed under the MIT license.
*
*/
(function ($) {
function Scroller(elm, settings) {
var that = this,
e = elm,
elm = $(e),
theme,
lang,
... | JavaScript |
(function ($) {
var theme = {
defaults: {
dateOrder: 'Mddyy',
mode: 'mixed',
rows: 5,
width: 70,
height: 36,
showLabel: false
}
}
$.scroller.themes['android-ics'] = theme;
$.scroller.themes['android-ics... | JavaScript |
var jQuery = Zepto;
(function ($) {
['width', 'height'].forEach(function(dimension) {
var offset, Dimension = dimension.replace(/./, function(m) { return m[0].toUpperCase() });
$.fn['outer' + Dimension] = function(margin) {
var elem = this;
if (elem) {
... | JavaScript |
(function ($) {
$.scroller.themes.jqm = {
defaults: {
jqmBody: 'c',
jqmHeader:'b',
jqmWheel: 'd',
jqmClickPick: 'c',
jqmSet: 'b',
jqmCancel: 'c'
},
init: function(elm, inst) {
var s = inst.settin... | JavaScript |
(function ($) {
var defaults = {
inputClass: '',
invalid: [],
rtl: false,
group: false,
groupLabel: 'Groups'
}
$.scroller.presets.select = function (inst) {
var s = $.extend({}, defaults, inst.settings),
elm = $(this),
op... | JavaScript |
/*
Copyright (c) 2012 Sergio Gabriel Teves
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This ... | JavaScript |
(function ($) {
$.scroller.themes.ios = {
defaults: {
dateOrder: 'MMdyy',
rows: 5,
height: 30,
width: 55,
headerText: false,
showLabel: false
}
}
})(jQuery);
| JavaScript |
(function ($) {
$.scroller.themes.android = {
defaults: {
dateOrder: 'Mddyy',
mode: 'clickpick',
height: 50
}
}
})(jQuery);
| JavaScript |
(function ($) {
$.scroller.i18n.fr = $.extend($.scroller.i18n.fr, {
setText: 'Terminé',
cancelText: 'Annuler'
});
})(jQuery);
| JavaScript |
(function ($) {
$.scroller.i18n.es = $.extend($.scroller.i18n.es, {
setText: 'Aceptar',
cancelText: 'Cancelar'
});
})(jQuery);
| JavaScript |
(function ($) {
$.scroller.i18n.es = $.extend($.scroller.i18n.es, {
dateFormat: 'dd/mm/yy',
dateOrder: 'ddmmyy',
dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
dayNamesShort: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
dayText: ... | JavaScript |
(function ($) {
$.scroller.i18n.de = $.extend($.scroller.i18n.de, {
setText: 'OK',
cancelText: 'Abbrechen'
});
})(jQuery);
| JavaScript |
(function ($) {
$.scroller.i18n.hu = $.extend($.scroller.i18n.hu, {
dateFormat: 'dd.mm.yy',
dateOrder: 'ddmmyy',
dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'],
dayTex... | JavaScript |
(function ($) {
$.scroller.i18n.fr = $.extend($.scroller.i18n.fr, {
dateFormat: 'dd/mm/yy',
dateOrder: 'ddmmyy',
dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
dayNamesShort: ['Dim.', 'Lun.', 'Mar.', 'Mer.', 'Jeu.', 'Ven.', 'Sam.'],
... | JavaScript |
(function ($) {
$.scroller.i18n.hu = $.extend($.scroller.i18n.hu, {
setText: 'OK',
cancelText: 'Mégse'
});
})(jQuery);
| JavaScript |
(function ($) {
$.scroller.i18n.de = $.extend($.scroller.i18n.de, {
dateFormat: 'dd.mm.yy',
dateOrder: 'ddmmyy',
dayNames: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
dayNamesShort: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
dayTe... | JavaScript |
window.onload = function() {
var tileMap = [];
var tile = {
width : 32,
height : 32
}
var grid = {
width : 2500,
height : 2500
}
var Keys = {
UP : 38,
DOWN : 40,
LEFT : 37,
RIGHT : 39
}
var scroll = {
x : 0,
y : 0
}
var canvas = document.getElementById('myCanvas');
va... | JavaScript |
/*
JS file for elevator event handler
*/
var _ELV_SRV_ADDR = "127.0.0.1";
var _ELV_SRV_PORT = "5000";
var MY_SEQUENCE = 0;
var MY_FLOOR = Math.floor(Math.random()*10+1);
var eachFloor = []; // 각층 시작점.
var BeforeFloor = [];
var wantFloor = 0;
//엘레베이터 서버에 접속하는 함수. ( 웹소켓 리턴 )
var connect = function() {
var ws = new W... | JavaScript |
var h = 0;
function button(ref,value){
ref.value=value;
}
function start(){
var len = document.getElementById('len').value;
var alg = document.getElementById('alg').value;
var repeats = document.getElementById('repeats').value;
var rernd = document.getElementById('rernd').value;
var increase = document... | JavaScript |
var kMarker_AnimationDuration_ChangeDrawable = 500;
var kMarker_AnimationDuration_Resize = 1000;
function Marker(poiData) {
this.poiData = poiData;
this.isSelected = false;
this.animationGroup_idle = null;
this.animationGroup_selected = null;
var markerLocation = new AR.GeoLocation(poiData.lati... | JavaScript |
// information about server communication. This sample webservice is provided by Wikitude and returns random dummy places near given location
var ServerInformation = {
POIDATA_SERVER: "http://henzer.byethost12.com/GetSamplePois.htm",
POIDATA_SERVER_ARG_LAT: "lat",
POIDATA_SERVER_ARG_LON: "lon",
POIDATA_SERVER_ARG_N... | JavaScript |
/*
* jQuery FlexSlider v2.0
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the GPLv2 license.
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Contributing author: Tyler Smith (@mbmufffin)
*/
;(function ($) {
//FlexSlider: Object Instance
$.flexslider ... | JavaScript |
jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)
},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a
},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a
},easeInOutQuad:function(e,f,a,h,g){... | JavaScript |
/*
* vim: noexpandtab
*/
/**
* From : http://jonathan.tang.name/code/jquery_combobox
*
* JQuery UI combobox plugin. This may be called on any element; the element
* is replaced by a text field and drop-down div. If the replaced element was
* a select, the combobox options can be picked up from the contents ... | 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 |
/*! 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 |
(function($)
{
function logger( event, ui ) {
var action = ui.item[0].attributes['action'].nodeValue;
if (action != undefined) {
actionsCaller[action]();
}
};
$.fn.actionMenu=function(parametres)
{
var myId = this[0].id;
var myDiv =$( "#"+myId );
if ($("#menu").size() == 0)
{
myDiv.css("... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.