code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
var fs = require('fs');
var url = require('url');
var http = require('http');
var server = http.createServer(function(request, response){
var pathname = url.parse(request.url).pathname;
var file = 'stocks.html';
var mime = 'text/html';
if(pathname == '/css') {
file = 'style.css';
mime = 'text/css';
}
else ... | JavaScript |
var spring = 50.0;
var damper = 5.0;
var drag = 10.0;
var angularDrag = 5.0;
var distance = 0.2;
var attachToCenterOfMass = false;
private var springJoint : SpringJoint;
function Update ()
{
// Make sure the user pressed the mouse down
if (!Input.GetMouseButtonDown (0))
return;
var mainCamera = FindCamera();
... | JavaScript |
var target : Transform;
var damping = 6.0;
var smooth = true;
@script AddComponentMenu("Camera-Control/Smooth Look At")
function LateUpdate () {
if (target) {
if (smooth)
{
// Look at and dampen the rotation
var rotation = Quaternion.LookRotation(target.position - transform.position);
transform.rotation... | JavaScript |
var target : Transform;
var distance = 10.0;
var xSpeed = 250.0;
var ySpeed = 120.0;
var yMinLimit = -20;
var yMaxLimit = 80;
private var x = 0.0;
private var y = 0.0;
@script AddComponentMenu("Camera-Control/Mouse Orbit")
function Start () {
var angles = transform.eulerAngles;
x = angles.y;
y = angles... | JavaScript |
/*
This camera smoothes out rotation around the y-axis and height.
Horizontal Distance to the target is always fixed.
There are many different ways to smooth the rotation but doing it this way gives you a lot of control over how the camera behaves.
For every of those smoothed values we calculate the wanted value and ... | 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 |
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "");
};
//function btnStyleJqueryDialog(buttonLabel) {
// $('.ui-dialog-buttonpane :button').each(function() {
// if ($(this).text() == buttonLabel) {
// $(this).addClass('naranja');
// }
// });
//}
function ... | JavaScript |
Osinergmin.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 115
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px ... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 115
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',... | JavaScript |
Tesis.popup = {}
Tesis.popup.manager = {}
Tesis.popup.manager.show = function(href, title, width, height) {
if (href == undefined) {
alert("href no definido.");
} else {
Tesis.panel = new YAHOO.widget.Panel("dialog-panel", {
width: width,
height: height,
fixed... | JavaScript |
YAHOO.namespace('Tesis.dialog');
YAHOO.Tesis.dialog.Usuarios = function(elContainer, url, messages, handlers) {
this.messages = messages;
this.handlers = handlers;
YAHOO.Tesis.dialog.Usuarios.superclass.constructor.call(this, elContainer, this.construirConfig());
// este dialog no usa callback
// t... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.cargosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.cargosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(), t... | JavaScript |
YAHOO.namespace('Tesis.dialog');
YAHOO.Tesis.dialog.Cargos = function(elContainer, url, messages, handlers) {
this.messages = messages;
this.handlers = handlers;
YAHOO.Tesis.dialog.Cargos.superclass.constructor.call(this, elContainer, this.construirConfig());
// este dialog no usa callback
// this.... | JavaScript |
YAHOO.namespace('Osimac.calificacion');
YAHOO.Osimac.calificacion.calificacionTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Osimac.calificacion.calificacionTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.... | JavaScript |
Tesis.loading = {}
Tesis.loading.show = function(texto){
if (!Tesis.loading.panel) {
Tesis.loading.panel = new YAHOO.widget.Panel("loading-panel", {
width: "300px",
fixedcenter: true,
close: false,
draggable: false,
zindex:4,
modal:... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
if(!window.Tesis) window.Tesis = {};
Tesis.contextPath = window.location.pathname.substring(0, window.location.pathname.indexOf('/', 1));
Tesis.dom = YAHOO.util.Dom;
Tesis.event = YAHOO.util.Event;
| JavaScript |
Tesis.event.onDOMReady(function() {
var popupLayout = new YAHOO.widget.Layout({
units: [{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',
scroll: true
}]
});
popupLayout.render();
}); | JavaScript |
if (!window.Osinergmin) {
window.Osinergmin = {};
}
Osinergmin.EstadoAtencionEnum = {
FINALIZADA : 1,
SEGUIMIENTO : 2,
PENDIENTE : 3,
DERIVADA : 4
}; | JavaScript |
YAHOO.namespace('Osimac.atencion');
YAHOO.Osimac.atencion.atencionesTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Osimac.atencion.atencionesTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSou... | JavaScript |
YAHOO.namespace('Osimac.atencion');
YAHOO.Osimac.atencion.materialesTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Osimac.atencion.materialesTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSou... | JavaScript |
YAHOO.namespace('Tesis');
YAHOO.Tesis.ListTableBase = function(elContainer, columnDefs, dataSource, config) {
this.accionesTooltip = new YAHOO.widget.Tooltip("acciones_tooltip");
YAHOO.Tesis.ListTableBase.superclass.constructor.call(this, elContainer,
columnDefs, dataSource, config);
};
YAHOO.lang.extend(... | JavaScript |
YAHOO.namespace('Tesis.base');
YAHOO.Tesis.base.Dialog = function(elContainer, url, width, height, callback) {
this.width = width;
this.height = height;
YAHOO.Tesis.base.Dialog.superclass.constructor.call(this, elContainer, this.construirConfig());
this.callback = callback;
this.setBody('<iframe fr... | JavaScript |
YAHOO.namespace('Tesis.menu');
YAHOO.Tesis.menu.MenuBar = function(elContainer, messages) {
this.messages = messages;
YAHOO.Tesis.menu.MenuBar.superclass.constructor.call(this, "menu_principal", this.construirConfig());
this.render(elContainer);
}
YAHOO.lang.extend(YAHOO.Tesis.menu.MenuBar, YAHOO.widget.M... | JavaScript |
if (!window.Tesis) {
window.Tesis = {};
}
Tesis.EstadoAIEnum = {
ACTIVO : 'A',
INACTIVO : 'I'
}; | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.tipoDocumentoTable = function(elContainer, messagesTipoDocumento, listado) {
this.messages = messagesTipoDocumento;
this.listado = listado;
YAHOO.Tesis.modelador.tipoDocumentoTable.superclass.constructor.call(this, elContainer,
this.construirCol... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 100
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.cargosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.cargosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(), t... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.rolesTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.rolesTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(), thi... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.estadosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.estadosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(),... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.variablesTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.variablesTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSourc... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.instanciasEstacionesTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.instanciasEstacionesTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), t... | JavaScript |
YAHOO.namespace('Tesis.dialog');
YAHOO.Tesis.dialog.Roles = function(elContainer, url, messages, handlers) {
this.messages = messages;
this.handlers = handlers;
YAHOO.Tesis.dialog.Roles.superclass.constructor.call(this, elContainer, this.construirConfig());
// este dialog no usa callback
// this.ca... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.procesosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.procesosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.usuariosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.usuariosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(... | JavaScript |
if (!window.Tesis) {
window.Tesis = {};
}
Tesis.TipoComponente = {
INICIO : 1,
ESTACION : 2,
FIN: 3
};
Tesis.TipoComponente.getId=function(comp){
var tipo=null;
switch (comp){
case '1' : tipo= Tesis.TipoComponente.INICIO;
break;
case '2' : tipo= Tesis.TipoC... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',
scroll: true
}
]
});
layout.render();
}); | JavaScript |
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "");
};
//function btnStyleJqueryDialog(buttonLabel) {
// $('.ui-dialog-buttonpane :button').each(function() {
// if ($(this).text() == buttonLabel) {
// $(this).addClass('naranja');
// }
// });
//}
jQuery.fn.... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 115
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 100
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',... | JavaScript |
Tesis.popup = {}
Tesis.popup.manager = {}
Tesis.popup.manager.show = function(href, title, width, height) {
if (href == undefined) {
alert("href no definido.");
} else {
Tesis.panel = new YAHOO.widget.Panel("dialog-panel", {
width: width,
height: height,
fixed... | JavaScript |
Tesis.loading = {}
Tesis.loading.show = function(texto){
if (!Tesis.loading.panel) {
Tesis.loading.panel = new YAHOO.widget.Panel("loading-panel", {
width: "220px",
fixedcenter: true,
close: false,
draggable: false,
zindex:4,
modal:... | JavaScript |
YAHOO.namespace('Tesis');
YAHOO.Tesis.ListTableBase = function(elContainer, columnDefs, dataSource, config) {
this.accionesTooltip = new YAHOO.widget.Tooltip("acciones_tooltip");
YAHOO.Tesis.ListTableBase.superclass.constructor.call(this, elContainer,
columnDefs, dataSource, config);
};
YAHOO.lang.extend(... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
if(!window.Tesis) window.Tesis = {};
Tesis.contextPath = window.location.pathname.substring(0, window.location.pathname.indexOf('/', 1));
Tesis.dom = YAHOO.util.Dom;
Tesis.event = YAHOO.util.Event;
| JavaScript |
YAHOO.namespace('Tesis.dialog');
YAHOO.Tesis.dialog = function(elContainer, url, w,h) {
$("#"+elContainer).html("");
$("#"+elContainer).html("<div class='hd'> </div>");
YAHOO.Tesis.dialog.superclass.constructor.call(this, elContainer, this.construirConfig(w,h));
this.setBody('<iframe framebor... | JavaScript |
Tesis.event.onDOMReady(function() {
var popupLayout = new YAHOO.widget.Layout({
units: [{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',
scroll: true
}]
});
popupLayout.render();
}); | JavaScript |
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "");
};
//function btnStyleJqueryDialog(buttonLabel) {
// $('.ui-dialog-buttonpane :button').each(function() {
// if ($(this).text() == buttonLabel) {
// $(this).addClass('naranja');
// }
// });
//}
function ... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 115
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 120
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',... | JavaScript |
if (!window.Tesis) {
window.Tesis = {};
}
Tesis.EstadoAIEnum = {
ACTIVO : 'A',
INACTIVO : 'I'
}; | JavaScript |
YAHOO.namespace('Tesis.dialog');
YAHOO.Tesis.dialog.Usuarios = function(elContainer, url, messages, handlers) {
this.messages = messages;
this.handlers = handlers;
YAHOO.Tesis.dialog.Usuarios.superclass.constructor.call(this, elContainer, this.construirConfig());
// este dialog no usa callback
// t... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.cargosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.cargosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(), t... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.rolesTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.rolesTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(), thi... | JavaScript |
YAHOO.namespace('Tesis.dialog');
YAHOO.Tesis.dialog.Roles = function(elContainer, url, messages, handlers) {
this.messages = messages;
this.handlers = handlers;
YAHOO.Tesis.dialog.Roles.superclass.constructor.call(this, elContainer, this.construirConfig());
// este dialog no usa callback
// this.ca... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.usuariosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.usuariosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(... | JavaScript |
Tesis.popup = {}
Tesis.popup.manager = {}
Tesis.popup.manager.show = function(href, title, width, height) {
if (href == undefined) {
alert("href no definido.");
} else {
Tesis.panel = new YAHOO.widget.Panel("dialog-panel", {
width: width,
height: height,
fixed... | JavaScript |
Tesis.loading = {}
Tesis.loading.show = function(texto){
if (!Tesis.loading.panel) {
Tesis.loading.panel = new YAHOO.widget.Panel("loading-panel", {
width: "220px",
fixedcenter: true,
close: false,
draggable: false,
zindex:4,
modal:... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
if(!window.Tesis) window.Tesis = {};
Tesis.contextPath = window.location.pathname.substring(0, window.location.pathname.indexOf('/', 1));
Tesis.dom = YAHOO.util.Dom;
Tesis.event = YAHOO.util.Event;
| JavaScript |
Tesis.event.onDOMReady(function() {
var popupLayout = new YAHOO.widget.Layout({
units: [{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',
scroll: true
}]
});
popupLayout.render();
}); | JavaScript |
YAHOO.namespace('Tesis');
YAHOO.Tesis.ListTableBase = function(elContainer, columnDefs, dataSource, config) {
this.accionesTooltip = new YAHOO.widget.Tooltip("acciones_tooltip");
YAHOO.Tesis.ListTableBase.superclass.constructor.call(this, elContainer,
columnDefs, dataSource, config);
};
YAHOO.lang.extend(... | JavaScript |
YAHOO.namespace('Tesis.dialog');
YAHOO.Tesis.dialog = function(elContainer, url, w,h) {
$("#"+elContainer).html("");
$("#"+elContainer).html("<div class='hd'> </div>");
YAHOO.Tesis.dialog.superclass.constructor.call(this, elContainer, this.construirConfig(w,h));
this.setBody('<iframe framebor... | JavaScript |
YAHOO.namespace('Tesis.menu');
YAHOO.Tesis.menu.MenuBar = function(elContainer, messages) {
this.messages = messages;
YAHOO.Tesis.menu.MenuBar.superclass.constructor.call(this, "menu_principal", this.construirConfig());
this.render(elContainer);
}
YAHOO.lang.extend(YAHOO.Tesis.menu.MenuBar, YAHOO.widget.M... | JavaScript |
if (!window.Tesis) {
window.Tesis = {};
}
Tesis.EstadoAIEnum = {
ACTIVO : 'A',
INACTIVO : 'I'
}; | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.tipoDocumentoTable = function(elContainer, messagesTipoDocumento, listado) {
this.messages = messagesTipoDocumento;
this.listado = listado;
YAHOO.Tesis.modelador.tipoDocumentoTable.superclass.constructor.call(this, elContainer,
this.construirCol... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 100
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.cargosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.cargosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(), t... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.rolesTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.rolesTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(), thi... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.estadosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.estadosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(),... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.variablesTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.variablesTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSourc... | JavaScript |
YAHOO.namespace('Tesis.dialog');
YAHOO.Tesis.dialog.Roles = function(elContainer, url, messages, handlers) {
this.messages = messages;
this.handlers = handlers;
YAHOO.Tesis.dialog.Roles.superclass.constructor.call(this, elContainer, this.construirConfig());
// este dialog no usa callback
// this.ca... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.conexionesTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.conexionesTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSou... | JavaScript |
if (!window.Tesis) {
window.Tesis = {};
}
Tesis.TipoParametro = {
VARIABLE : 1,
DOCUMENTO : 2
};
| JavaScript |
//recibe las compuertas
function validarReglas(lstCompuertas){
var arrComp=[];
var comp=null;
arrComp=objToArray(lstCompuertas);
for (var i=0;i<arrComp.length;i++){
comp=lstCompuertas[arrComp[i]];
if (comp.parametroVariableList.length==0
&& comp.parametroDocumen... | JavaScript |
if (!window.Tesis) {
window.Tesis = {};
}
Tesis.TipoRegla = {
AND : 1,
OR : 2,
XOR: 3
};
Tesis.TipoRegla.getId=function(compuerta){
var tipo=null;
switch (compuerta){
case '3' : tipo= Tesis.TipoRegla.AND;
break;
case '4' : tipo= Tesis.TipoRegla.OR;
... | JavaScript |
YAHOO.namespace('Tesis.modelador');
YAHOO.Tesis.modelador.usuariosTable = function(elContainer, messages, listado) {
this.messages = messages;
this.listado = listado;
YAHOO.Tesis.modelador.usuariosTable.superclass.constructor.call(this, elContainer,
this.construirColumnDefs(), this.construirDataSource(... | JavaScript |
if (!window.Tesis) {
window.Tesis = {};
}
Tesis.TipoComponente = {
INICIO : 1,
ESTACION : 2,
FIN: 3
};
Tesis.TipoComponente.getId=function(comp){
var tipo=null;
switch (comp){
case '1' : tipo= Tesis.TipoComponente.INICIO;
break;
case '2' : tipo= Tesis.TipoC... | JavaScript |
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "");
};
//function btnStyleJqueryDialog(buttonLabel) {
// $('.ui-dialog-buttonpane :button').each(function() {
// if ($(this).text() == buttonLabel) {
// $(this).addClass('naranja');
// }
// });
//}
jQuery.fn.... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 115
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',... | JavaScript |
Tesis.event.onDOMReady(function() {
var layout = new YAHOO.widget.Layout({
units: [
{
position: 'top',
body: 'layout-top',
height: 100
},
{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',... | JavaScript |
Tesis.popup = {}
Tesis.popup.manager = {}
Tesis.popup.manager.show = function(href, title, width, height) {
if (href == undefined) {
alert("href no definido.");
} else {
Tesis.panel = new YAHOO.widget.Panel("dialog-panel", {
width: width,
height: height,
fixed... | JavaScript |
Tesis.loading = {}
Tesis.loading.show = function(texto){
//if (!Tesis.loading.panel) {
Tesis.loading.panel = new YAHOO.widget.Panel("loading-panel", {
width: "220px",
fixedcenter: true,
close: false,
draggable: false,
zindex:4,
moda... | JavaScript |
YAHOO.namespace('Tesis');
YAHOO.Tesis.ListTableBase = function(elContainer, columnDefs, dataSource, config) {
this.accionesTooltip = new YAHOO.widget.Tooltip("acciones_tooltip");
YAHOO.Tesis.ListTableBase.superclass.constructor.call(this, elContainer,
columnDefs, dataSource, config);
};
YAHOO.lang.extend(... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
if(!window.Tesis) window.Tesis = {};
Tesis.contextPath = window.location.pathname.substring(0, window.location.pathname.indexOf('/', 1));
Tesis.dom = YAHOO.util.Dom;
Tesis.event = YAHOO.util.Event;
| JavaScript |
YAHOO.namespace('Tesis.dialog');
YAHOO.Tesis.dialog = function(elContainer, url, w,h) {
$("#"+elContainer).html("");
$("#"+elContainer).html("<div class='hd'> </div>");
YAHOO.Tesis.dialog.superclass.constructor.call(this, elContainer, this.construirConfig(w,h));
this.setBody('<iframe framebor... | JavaScript |
Tesis.event.onDOMReady(function() {
var popupLayout = new YAHOO.widget.Layout({
units: [{
position: 'center',
body: 'layout-center',
gutter: '0px 0px 0px 0px',
scroll: true
}]
});
popupLayout.render();
}); | JavaScript |
/**
* dat-gui JavaScript Controller Library
* http://code.google.com/p/dat-gui
*
* Copyright 2011 Data Arts Team, Google Creative Lab
*
* 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
... | JavaScript |
// Backbone.js 0.5.3
// (c) 2010 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://documentcloud.github.com/backbone
(function(){
// Initial Setup
// -------------
// Save a reference to the globa... | JavaScript |
/*
* jQuery Tiny Pub/Sub - v0.6 - 1/10/2011
* http://benalman.com/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($){var a=$("<b/>");$.subscribe=function(b,c){function d(){return c.apply(this,Array.prototype.slice.call(a... | JavaScript |
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
if(this.console) {
arguments.callee = arguments.callee.caller;
... | JavaScript |
/* Author:
*/
| JavaScript |
/**
* @author itooamaneatguy / http://kadrmasconcepts.com/blog/
*/
THREEFAB.Events = {
VIEWPORT_MESH_SELECTED: 'viewport/mesh/selected',
VIEWPORT_LIGHT_SELECTED: 'viewport/light/selected',
VIEWPORT_OBJECT_TEXTURE_ADDED: 'viewport/object/texture/added',
VIEWPORT_OBJECT_REMOVED: 'viewport/object/removed',
VIEWPO... | JavaScript |
/**
* @autor itooamaneatguy http://kadrmasconcepts.com/blog/
* @author mr.doob / http://mrdoob.com/
*/
THREEFAB.AmbientLightContainer = function ( scene, hex) {
var geometry = new THREE.SphereGeometry( 6, 6, 6 ),
material = new THREE.MeshBasicMaterial( { color: 0xfff1a6, wireframe: true }),
mesh = new THREE.... | JavaScript |
/**
* @autor itooamaneatguy http://kadrmasconcepts.com/blog/
* @author mr.doob / http://mrdoob.com/
*/
THREEFAB.PointLightContainer = function ( scene, hex, intensity, distance ) {
var geometry = new THREE.SphereGeometry( 6, 6, 6 ),
material = new THREE.MeshBasicMaterial( { color: 0xfff1a6, wireframe: true }),... | JavaScript |
/**
* @autor itooamaneatguy http://kadrmasconcepts.com/blog/
* @author mr.doob / http://mrdoob.com/
*/
THREEFAB.SpotLightContainer = function ( scene, hex, intensity, distance ) {
var geometry = new THREE.CylinderGeometry( 0, 12.5, 25, 16, 1 ),
material = new THREE.MeshBasicMaterial( { color: 0xfff1a6, wirefra... | JavaScript |
/**
* @author Eberhard Graether / http://egraether.com/
* @itooamaneatguy http://kadrmasconcepts.com/blog/
*/
THREE.ViewportControls = function ( object, domElement ) {
var _this = this,
STATE = { NONE : -1, ROTATE : 0, ZOOM : 1, PAN : 2 };
this.object = object;
this.domElement = ( domElement !== undefined ) ... | JavaScript |
/**
* @author itooamaneatguy / http://kadrmasconcepts.com/blog/
* @author mr.doob / http://mrdoob.com/
*/
THREE.ManipulatorTool = function () {
THREE.Object3D.call( this );
// Init
this.selected = {};
// setup geometery
var lineGeometry = new THREE.Geometry();
lineGeometry.vertices.push( new THREE.Vert... | JavaScript |
/**
* @author itooamaneatguy / http://kadrmasconcepts.com/blog/
* @author mr.doob / http://mrdoob.com/
*/
THREE.Grid = function () {
THREE.Object3D.call( this );
/*var geometry = new THREE.Geometry();
geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( - 500, 0, 0 ) ) );
geometry.vertices.push( new ... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.