code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, 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 distributing this ... | JavaScript |
/*
Copyright (c) 2003-2011, 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 the list of available options, check:
// http://docs.cksource.com/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/@mediumThumb'... | 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.appendChild... | JavaScript |
var HTMLMixedParser = Editor.Parser = (function() {
// tags that trigger seperate parsers
var triggers = {
"script": "JSParser",
"style": "CSSParser"
};
function checkDependencies() {
var parsers = ['XMLParser'];
for (var p in triggers) parsers.push(triggers[p]);
for (var i in parsers) {
... | 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.equals("*")... | 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.createRangeCollection... | 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 function to ea... | 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"]);
var ... | 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 passing th... | 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 |
// 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 ignored fo... | JavaScript |
/* CodeMirror main module (http://codemirror.net/)
*
* 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 ... | 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 SPAN no... | 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.ActiveXObj... | 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 get w... | 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 restored con... | 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 are in... | 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;
var ite... | JavaScript |
/* Tokenizer for CSharp code */
var tokenizeCSharp = (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;
var next;
while (!source.endOfLine()) ... | JavaScript |
/* Parse function for JavaScript. Makes use of the tokenizer from
* tokenizecsharp.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 are inside... | JavaScript |
/*
Copyright (c) 2008-2009 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 <[email protected]>
Parse function for PHP. Makes use of the tokenizer from tokenizephp.js.
Based on pa... | JavaScript |
/*
Copyright (c) 2008-2009 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 <[email protected]>
Based on parsehtmlmixed.js by Marijn Haverbeke.
*/
var PHPHTMLMixedParser = Editor.... | JavaScript |
/*
Copyright (c) 2008-2009 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 <[email protected]>
Tokenizer for PHP code
References:
+ http://php.net/manual/en/reserved.php
+ ... | JavaScript |
function waitForStyles() {
for (var i = 0; i < document.styleSheets.length; i++)
if (/googleapis/.test(document.styleSheets[i].href))
return document.body.className += " droid";
setTimeout(waitForStyles, 100);
}
setTimeout(function() {
if (/AppleWebKit/.test(navigator.userAgent) && /iP[oa]d|iPhone/.test... | 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 = CKFinder.getPlu... | JavaScript |
/**
* Copyright (c) 2003-2011, 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://docs.ckso... | JavaScript |
/*
Copyright (c) 2003-2011, 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-2011, 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-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function() {
window.CKFinder = function(a, b, c, d) {
var e = this;
e.BasePath = a || CKFinder.DEFAULT_BASEPATH;
e.Width = b || '100%';
e.Height = c || 400;
e.Se... | JavaScript |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function() {
var a = (function() {
var f = {
jY : 'B8MI1HT',
_ : {},
status : 'unloaded',
basePath : (function() {
var i = window.CKFINDER_BASEPATH || ''... | JavaScript |
/*!
* MediaElementPlayer
* http://mediaelementjs.com/
*
* Creates a controller bar for HTML5 <video> add <audio> tags
* using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper)
*
* Copyright 2010-2012, John Dyer (http://j.hn/)
* Dual licensed under the MIT or GPL Version 2 licenses.
*
*/
if (typeof ... | JavaScript |
/*!
* MediaElement.js
* HTML5 <video> and <audio> shim and player
* http://mediaelementjs.com/
*
* Creates a JavaScript object that mimics HTML5 MediaElement API
* for browsers that don't understand HTML5 or can't play the provided codec
* Can play MP4 (H.264), Ogg, WebM, FLV, WMV, WMA, ACC, and MP3
*
* Copyright 2010-... | JavaScript |
/*!
* MediaElement.js
* HTML5 <video> and <audio> shim and player
* http://mediaelementjs.com/
*
* Creates a JavaScript object that mimics HTML5 MediaElement API
* for browsers that don't understand HTML5 or can't play the provided codec
* Can play MP4 (H.264), Ogg, WebM, FLV, WMV, WMA, ACC, and MP3
*
* Copyright 2010-... | JavaScript |
// needs Markdown.Converter.js at the moment
(function () {
var util = {},
position = {},
ui = {},
doc = window.document,
re = window.RegExp,
nav = window.navigator,
SETTINGS = { lineLength: 72 },
// Used to work around some browser bugs where we c... | 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 |
exports.Converter = require("./Markdown.Converter").Converter;
exports.getSanitizingConverter = require("./Markdown.Sanitizer").getSanitizingConverter;
| JavaScript |
"use strict";
var Markdown;
if (typeof exports === "object" && typeof require === "function") // we're in a CommonJS (e.g. Node.js) module
Markdown = exports;
else
Markdown = {};
// The following text is included for historical reasons, but should
// be taken with a pinch of salt; it's not all true a... | JavaScript |
// 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 |
// 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 |
#pragma strict
var maximumGrid : int;
var existGrid : Vector3 [];
var gridData : grid [];
var curentGrid : Vector3 ;
var nextGrid : Vector3;
var gridObject : GameObject;
function Grid (curGrid : Vector3, posGrid : int) {
var outPutGrid : Vector3;
if (curGrid.x%2 == 0){
switch(posGrid){
case 0:
outPutGrid = Ve... | JavaScript |
#pragma strict
var maxHp : int = 200;
var curHp : int = 200;
var point : int = 0;
function Start () {
curHp = maxHp;
}
function Update () {
} | JavaScript |
private var motor : CharacterMotor;
// Use this for initialization
function Awake () {
motor = GetComponent(CharacterMotor);
}
// Update is called once per frame
function Update () {
// Get the input vector from kayboard or analog stick
var directionVector = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxi... | JavaScript |
var cameraTransform : Transform;
private var _target : Transform;
// The distance in the x-z plane to the target
var distance = 7.0;
// the height we want the camera to be above the target
var height = 3.0;
var angularSmoothLag = 0.3;
var angularMaxSpeed = 15.0;
var heightSmoothLag = 0.3;
var snapSmoothLag = 0.... | JavaScript |
// Require a character controller to be attached to the same game object
@script RequireComponent(CharacterController)
public var idleAnimation : AnimationClip;
public var walkAnimation : AnimationClip;
public var runAnimation : AnimationClip;
public var jumpPoseAnimation : AnimationClip;
public var walkMaxAnimation... | JavaScript |
#pragma strict
#pragma implicit
#pragma downcast
// Does this script currently respond to input?
var canControl : boolean = true;
var useFixedUpdate : boolean = true;
// For the next variables, @System.NonSerialized tells Unity to not serialize the variable or show it in the inspector view.
// Very handy for organiz... | JavaScript |
// This makes the character turn to face the current movement speed per default.
var autoRotate : boolean = true;
var maxRotationSpeed : float = 360;
private var motor : CharacterMotor;
// Use this for initialization
function Awake () {
motor = GetComponent(CharacterMotor);
}
// Update is called once per frame
func... | JavaScript |
#pragma strict
var gridX : float;
var gridY : float;
var gridZ : float;
function Start () {
}
function Update () {
} | JavaScript |
#pragma strict
@script ExecuteInEditMode()
var posX : int;
var posY : int;
var posZ : int;
var fromDir : int;
var toGrid : int;
var arrow : Transform;
function GridPos (){
var grid : GridManager = GameObject.Find('_GamesSystem').GetComponent(GridManager);
var x : float = grid.gridX * posX;
var y : float = grid.gri... | JavaScript |
InputText = function(scene) {
this.scene = scene;
this.isFocused = true;
this.boxWidth = 400;
this.boxHeight = 70;
this.boxDepth = 70;
this.textColor = 0xffffff;
this.textMaterial = new THREE.MeshBasicMaterial( { color: this.textColor, overdraw: true } );
this.letterSize = 50;
this.letterDepth = ... | JavaScript |
DropDownList = function(scene, camera, items) {
this.scene = scene;
this.camera = camera;
this.listItems = items;
this.selectedIndex = 0;
this.selectedItem = this.listItems[this.selectedIndex];
this.mainBoxColor = 0x00ff00;
this.mainBoxOpacity = 0.5;
this.mainBoxWidth = 400;
this.mainBoxHeigh... | JavaScript |
function bindFn( scope, fn ) {
return function () {
fn.apply( scope, arguments );
};
};
function cloneMesh(mesh) {
var result = new THREE.Mesh(mesh.geometry, mesh.material);
result.position = mesh.position;
return result;
} | JavaScript |
var postTitle=new Array();
var postUrl=new Array();
var postMp3=new Array();
var postDate=new Array();
var postYear=new Array();
var postMonth=new Array();
var postYearMonth=new Array();
var postYearMonth2=new Array();
var postTanggal=new Array();
var postLabels=new Array();
var postBaru=new Array();
var sortBy="titlea... | JavaScript |
var postTitle=new Array();
var postUrl=new Array();
var postMp3=new Array();
var postDate=new Array();
var postLabels=new Array();
var postBaru=new Array();
var sortBy="titleasc";
var tocLoaded=false;
var numChars=250;
var postFilter="";
var numberfeed=0;
function loadtoc(a)
{
function b()
{
if("entry" in a.... | JavaScript |
// http://mrl.nyu.edu/~perlin/noise/
var ImprovedNoise = function () {
var p = [151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,
23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,
174,20,125,136,171,168,68,175,74,165,71,... | JavaScript |
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author erich666 / http://erichaines.com
*/
/*global THREE, console */
// This set of controls performs orbiting, dollying (zoom... | JavaScript |
/*
* Cloth Simulation using a relaxed constrains solver
*/
// Suggested Readings
// Advanced Character Physics by Thomas Jakobsen Character
// http://freespace.virgin.net/hugo.elias/models/m_cloth.htm
// http://en.wikipedia.org/wiki/Cloth_modeling
// http://cg.alexandra.dk/tag/spring-mass-system/
// Real-time Cloth... | JavaScript |
/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.PDBLoader = function () {};
THREE.PDBLoader.prototype = {
constructor: THREE.OBJLoader,
load: function ( url, callback ) {
var worker, scope = this;
this.loadAjaxPDB( this, url, callback );
},
loadAjaxPDB: function ( context, url, callback, c... | JavaScript |
var LZMA = LZMA || {};
LZMA.OutWindow = function(){
this._windowSize = 0;
};
LZMA.OutWindow.prototype.create = function(windowSize){
if ( (!this._buffer) || (this._windowSize !== windowSize) ){
this._buffer = [];
}
this._windowSize = windowSize;
this._pos = 0;
this._streamPos = 0;
};
LZMA.OutWindow.... | JavaScript |
importScripts( "lzma.js", "ctm.js" );
self.onmessage = function( event ) {
var files = [];
for ( var i = 0; i < event.data.offsets.length; i ++ ) {
var stream = new CTM.Stream( event.data.data );
stream.offset = event.data.offsets[ i ];
files[ i ] = new CTM.File( stream );
}
self.postMessage( files );
... | JavaScript |
/*
Copyright (c) 2011 Juan Mellado
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, including without limitation the rights
to use, copy, modify, merge, publish, distribute, su... | JavaScript |
/**
* @author Wei Meng / http://about.me/menway
*
* Description: A THREE loader for PLY ASCII files (known as the Polygon File Format or the Stanford Triangle Format).
*
* Currently only supports ASCII encoded files.
*
* Limitations: ASCII decoding assumes file is UTF-8.
*
* Usage:
* var loader = new THREE.PL... | JavaScript |
/**
* @author aleeper / http://adamleeper.com/
* @author mrdoob / http://mrdoob.com/
* @author gero3 / https://github.com/gero3
*
* Description: A THREE loader for STL ASCII files, as created by Solidworks and other CAD programs.
*
* Supports both binary and ASCII encoded files, with automatic detection of type.... | JavaScript |
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.OBJLoader = function ( manager ) {
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
};
THREE.OBJLoader.prototype = {
constructor: THREE.OBJLoader,
load: function ( url, onLoad, onProgress, onError ) {
var scope = this;
... | JavaScript |
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.BabylonLoader = function ( manager ) {
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
};
THREE.BabylonLoader.prototype = {
constructor: THREE.ObjectLoader,
load: function ( url, onLoad, onProgress, onError ) {
var scope ... | JavaScript |
/**
* @author Alexander Gessler / http://www.greentoken.de/
* https://github.com/acgessler
*
* Loader for models imported with Open Asset Import Library (http://assimp.sf.net)
* through assimp2json (https://github.com/acgessler/assimp2json).
*
* Supports any input format that assimp supports, including 3ds, obj,... | JavaScript |
/**
* @author Tim Knip / http://www.floorplanner.com/ / tim at floorplanner.com
*/
THREE.ColladaLoader = function () {
var COLLADA = null;
var scene = null;
var daeScene;
var readyCallbackFunc = null;
var sources = {};
var images = {};
var animations = {};
var controllers = {};
var geometries = {};
var ... | JavaScript |
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.OBJLoader = function ( manager ) {
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
};
THREE.OBJLoader.prototype = {
constructor: THREE.OBJLoader,
load: function ( url, onLoad, onProgress, onError ) {
var scope = this;
... | JavaScript |
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.VRMLLoader = function () {};
THREE.VRMLLoader.prototype = {
constructor: THREE.VRMLLoader,
// for IndexedFaceSet support
isRecordingPoints: false,
isRecordingFaces: false,
points: [],
indexes : [],
// for Background support
isRecordingAngles: false,
isR... | JavaScript |
/**
* Loads a Wavefront .obj file with materials
*
* @author mrdoob / http://mrdoob.com/
* @author angelxuanchang
*/
THREE.OBJMTLLoader = function () {};
THREE.OBJMTLLoader.prototype = {
constructor: THREE.OBJMTLLoader,
load: function ( url, mtlurl, onLoad, onProgress, onError ) {
var scope = this;
var... | JavaScript |
/**
* Loads a Wavefront .mtl file specifying materials
*
* @author angelxuanchang
*/
THREE.MTLLoader = function( baseUrl, options, crossOrigin ) {
this.baseUrl = baseUrl;
this.options = options;
this.crossOrigin = crossOrigin;
};
THREE.MTLLoader.prototype = {
constructor: THREE.MTLLoader,
load: function ... | JavaScript |
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.VTKLoader = function () {};
THREE.VTKLoader.prototype = {
constructor: THREE.VTKLoader,
load: function ( url, callback ) {
var scope = this;
var request = new XMLHttpRequest();
request.addEventListener( 'load', function ( event ) {
var geometry = sc... | JavaScript |
// Copyright (c) 2013 Fabrice Robinet
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... | JavaScript |
/**
* @author Tony Parisi / http://www.tonyparisi.com/
*/
THREE.GLTFLoaderUtils = Object.create(Object, {
// errors
MISSING_DESCRIPTION: { value: "MISSING_DESCRIPTION" },
INVALID_PATH: { value: "INVALID_PATH" },
INVALID_TYPE: { value: "INVALID_TYPE" },
XMLHTTPREQUEST_STATUS_ERROR: { value: "XMLH... | JavaScript |
/**
* @author Tony Parisi / http://www.tonyparisi.com/
*/
THREE.glTFAnimator = ( function () {
var animators = [];
return {
add : function(animator)
{
animators.push(animator);
},
remove: function(animator)
{
var i = animators.indexOf(animator);
if ( i !== -1 ) {
animators.splice( i, 1 ... | JavaScript |
/**
* @author Tony Parisi / http://www.tonyparisi.com/
*/
THREE.glTFLoader = function (showStatus) {
this.useBufferGeometry = (THREE.glTFLoader.useBufferGeometry !== undefined ) ?
THREE.glTFLoader.useBufferGeometry : true;
this.meshesRequested = 0;
this.meshesLoaded = 0;
this.pendingMeshes = [];
... | JavaScript |
/**
* @author alteredq / http://alteredqualia.com/
* @author mr.doob / http://mrdoob.com/
*/
var Detector = {
canvas: !! window.CanvasRenderingContext2D,
webgl: ( function () { try { var canvas = document.createElement( 'canvas' ); return !! window.WebGLRenderingContext && ( canvas.getContext( 'webgl' ) || canva... | JavaScript |
{
"metadata" :
{
"formatVersion" : 3.1,
"sourceFile" : "female02.obj",
"generatedBy" : "OBJConverter",
"vertices" : 3274,
"faces" : 6233,
"normals" : 3292,
"uvs" : 4935,
"materials" : 6
},
... | JavaScript |
{
"metadata" :
{
"formatVersion" : 3.1,
"sourceFile" : "male02.obj",
"generatedBy" : "OBJConverter",
"vertices" : 2746,
"faces" : 5004,
"normals" : 2769,
"uvs" : 3275,
"materials" : 5
},
... | JavaScript |
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject = function() {
var UNDEF = "undefined",
OBJECT = "object",
SHOCKWAVE_FLASH = "Shockwave Flash",
SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlas... | 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.attachEvent... | JavaScript |
function toggleWriteability(id_of_patient, checked) {
document.getElementById(id_of_patient).disabled = checked;
}
// vim: et sw=4 sts=4
| JavaScript |
/**
* 점수관리를 위한 스크립트
* date : 2014.11.3
* 작성자 : kyun
*/
//var btnlist, btninput, btnview, btnmodify, btndelete;
function general()
{
btnlist=document.getElementById('btnlist');
if(btnlist!=null)
{
btnlist.onclick=function()
{
var frm=document.hiddenFrm;
frm.action='../3jsp/list.jsp... | JavaScript |
/**
*
*/
function evenetcheckinit()
{
document.getElementById('btn1').onclick=cfunc;
document.getElementById('btn2').onclick=cfunc;
document.getElementById('btn3').onclick=cfunc;
}
function func(event)
{
var n = event.srcElement.name;
var v = event.srcElement.value;
alert('name = ' + n + ' value... | JavaScript |
/**
*
*/
function gugudaninit()
{
var d = document.frm.dan;
document.getElementById("btngu").onclick=function()
{
if(d.value=='')
{
alret("빈칸이군요!!");
d.focus();
}
else
{
document.frm.submit();
}
}
} | JavaScript |
/**
* 4칙연산
*/
function iftest4()
{
/*btn 버튼에 클릭되면*/
var b = document.getElementById('btn')
b.onclick=function()
{
var f=document.frm;
var s1=Number(f.su1.value);
var s2=Number(f.su2.value);
var op=f.oper.value;
var r=0;
if(op=='+')
{
r=s1+s2;
}
else if(op=='-')
{
r=s1... | JavaScript |
/**
* 홀짝수 판별
*/
function iftest3()
{
/*btn 버튼에 클릭되면*/
var b = document.getElementById('btn')
b.onclick=function()
{
var f=document.frm;
var s=Number(f.su.value);
if(s%2==0)
{
alert(s+"는 짝수입니다.");
}
else
{
alert(s+"는 홀수입니다.");
}
}
} | JavaScript |
/**
* 점수관리를 위한 스크립트
* date : 2014.11.3
* 작성자 : kyun
*/
//var btnlist, btninput, btnview, btnmodify, btndelete;
var url='index.jsp?inc=../score/';
function general()
{
btnlist=document.getElementById('btnlist');
if(btnlist!=null)
{
btnlist.onclick=function()
{
var frm=document.hiddenFrm... | JavaScript |
/**
*
*/
function iftest2()
{
/*btn 버튼에 클릭되면*/
var b = document.getElementById('btn')
b.onclick=function()
{
var f=document.frm;
var s1=Number(f.su1.value);
var s2=Number(f.su2.value);
var tot=s1+s2;
var avg=tot/2;
alert("합 : "+tot+"\n평균 : "+avg);
}
} | JavaScript |
/**
*
*/
function init()
{
document.getElementById('but1').onclick=coFunc;
document.getElementById('but2').onclick=deFunc;
}
function coFunc()
{
var f = document.frm;
f.tar.value=f.ori.value;
}
function deFunc()
{
var f = document.frm;
f.ori.value='';
f.tar.value='';
f.ori.focus();
} | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.