code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
var RELANG = {};
RELANG['cs'] = {
html: 'HTML',
video: 'Video',
image: 'Obrázek',
table: 'Tabulka',
link: 'Odkaz',
link_insert: 'Vložit odkaz ...',
unlink: 'Odstranit odkaz',
formatting: 'Styly',
paragraph: 'Odstavec',
quote: 'Citace',
code: 'Kód',
header1: 'Nadpis 1',
header2: 'Nadpis 2',
header3: 'Nadpi... | JavaScript |
var RELANG = {};
RELANG['fi'] = {
html: 'HTML',
video: 'Video',
image: 'Kuva',
table: 'Taulukko',
link: 'Linkki',
link_insert: 'Lisää linkki...',
unlink: 'Poista linkki',
formatting: 'Tyylit',
paragraph: 'Normaaliteksti',
quote: 'Lainaus',
code: 'Koodi',
header1: 'Otsikko 1',
header2: 'Otsikko 2',
header3... | JavaScript |
var RELANG = {};
RELANG['ja'] = {
html: 'HTML',
video: 'ビデオ',
image: 'イメージ',
table: 'テーブル',
link: 'リンク',
link_insert: 'リンクの挿入 ...',
unlink: 'リンクを外す',
formatting: 'スタイル',
paragraph: '段落',
quote: '引用',
code: 'コード',
header1: 'ヘッダー 1',
header2: 'ヘッダー 2',
header3: 'ヘッダー 3',
header4: 'ヘッダー 4',
bold: '太字',
i... | JavaScript |
var RELANG = {};
RELANG['bg'] = {
html: 'HTML',
video: 'Видео',
image: 'Изображение',
table: 'Таблица',
link: 'Връзка',
link_insert: 'Вкарай връзка ...',
unlink: 'Премахни връзка',
formatting: 'Стилове',
paragraph: 'Параграф',
quote: 'Цитат',
code: 'Код',
header1: 'Заглавие 1',
header2: 'Заглавие 2',
head... | JavaScript |
var RELANG = {};
RELANG['hu'] = {
html: 'HTML',
video: 'Videó',
image: 'Kép',
table: 'Tábla',
link: 'Link',
link_insert: 'Link beszúrás ...',
unlink: 'Link megszüntetés',
formatting: 'Stílusok',
paragraph: 'Bekezdés',
quote: 'Idézet',
code: 'Kód',
header1: 'Címsor 1',
header2: 'Címsor 2',
header3: 'Címsor... | JavaScript |
var RELANG = {};
RELANG['en'] = {
html: 'HTML',
video: 'Insert Video...',
image: 'Insert Image...',
table: 'Table',
link: 'Link',
link_insert: 'Insert Link ...',
unlink: 'Unlink',
formatting: 'Formatting',
paragraph: 'Paragraph',
quote: 'Quote',
code: 'Code',
header1: 'Header 1',
header2: 'Header 2',
head... | JavaScript |
/**
* Class Item
* This class manipulate html created from template and element created by tag for item
* Example:
* var item = new Item({name: "text"}, "template-id", "li");
* or
* var item = new Item(); // -> is empty "li" element
* item.setTag("div"); // -> now we change to "div" element
* item.s... | JavaScript |
/**
* Class Intent
* This class is used to create intent the show/hide Page/Fragment
* Example
* var intent = new Intent("pageName");
* intent.setExtras("key": "value");
* intent.setAnimation("animation_name");
* //or
* intent.setAnimation(new Animation("animation_name", 100))
*/
Intent = (funct... | JavaScript |
/**
* Class TitleBar
* This class manipulate the html used for title
* Example:
* //html for title
* //<div id="title-id" class="title-bar">
* // <div class="button-holder">
* // <div class="button">
* // <span></span>
* // </div>
* // </div>
* // <div class="text-holder">
... | JavaScript |
/**
* Class Local
* this class is used to save data to localstorage
*/
Local = (function() {
/**
* Local constructor
* @param name {String} key for this data
* @constructor
*/
function Local(name) {
this.name = name;
}
/**
* Set and save data
* @pa... | JavaScript |
/**
* Class Bootstrap
* is used to load scripts and image assets
*/
Bootstrap = (function() {
/**
* Bootstrap constructor
* @constructor
*/
function Bootstrap() {
this.local = new Local('bootstrap');
this.head = new View(document.head);
this.counter = 0;
this.scriptsCounter = 0;
this.... | JavaScript |
/**
* Class Config
* is used to parse he config data form config.json or form localstorage
*/
Config = (function() {
/**
* Config constructor
* @constructor
*/
function Config() {
this.local = new Local('config');
}
/**
* Load config from config.json or localstorage
* @param... | JavaScript |
/**
* Class Button
* This class manipulate the html used for button
* Example:
* //html for button
* //<div class="button-holder">
* // <div class="button">
* // <span></span>
* // </div>
* //</div>
* var button = new Button("button-id");
* button.setText("Button");
* button.setType("b... | JavaScript |
/**
* Class List
* This class create a list and add items from data array
* Example:
* var list = new List("list-id", "template-id");
* list.setOnItemSelectedListener(function(е, index){
* //this -> clicked item
* //index -> index of clicked item
* });
*
* list.setOnItemCreatedListener(fun... | JavaScript |
/**
* Class TabBar
* mange tabs and tabbars
*/
TabBar = (function(_super){
__extends(TabBar, _super);
/**
* TabBar constructor
* @param view {String|View|HTMLElement} id, view or html element
* @constructor
*/
function TabBar(view){
var _button, _i, _len, _ref;
... | JavaScript |
/**
* Class BackgroundImage create and load image
* Example:
* form HTML ->
* <div id="image" class="image" data-src="image.png"></div>
* var image = new Image("image");
* load without data-src ->
* image.setSource("image.png");
* create without HTML ->
* var image = new Image();
* image.setSource("image... | JavaScript |
/**
* Class Base
* the class that used form other components for base
*/
Base = (function() {
/**
* Base constructor
* @param [context] {Applicaiton|Page}
* @constructor
*/
function Base(context) {
this.context = context;
this.style = new Style();
}
/**
* Set content view... | JavaScript |
/**
* Created by JetBrains WebStorm.
* User: hp-stuff
* Date: 13-4-20
* Time: 11:33
* To change this template use File | Settings | File Templates.
*/
DB = (function () {
function DB() {
this.db = null;
}
DB.getInstance = function(){
if(this._instance){
return this._instance;
}
re... | JavaScript |
/**
* Class Fragment
* Fragments are used to create а page in other page
* Example:
* see Page class
*/
Fragment = (function(_super){
__extends(Fragment, _super);
/**
* Fragment constructor
* @param context {Page} parent Page
* @constructor
*/
function Fragment(context){
Fragm... | JavaScript |
/**
* Class Views
* This class manipulate HTMLElements
* Example:
* //by html element css selector
* var collection = new Views("div");
* //by html NodeList
* var collection = new Views(document.getElementsByTagName("div"));
*/
Views = (function() {
/**
* View constructor
* Create ... | JavaScript |
/**
* Class Template
* This class create html from js template and data object
* Example:
* //template text
* // <p><%=name%></p>
* var template = new Template("template-id", {name: "data"});
* template.getHtml();
* // result -> <p>data</p>
*/
Template = (function() {
/**
* Template cons... | JavaScript |
/**
* Class Page
* this class manage pages
*/
Page = (function(_super) {
__extends(Page, _super);
/**
* Page constructor
* @param context {Application} applicaiton instance
* @constructor
*/
function Page(context) {
Page.__super__.constructor.call(this, context);... | JavaScript |
/**
* Class Ajax
* This class is used to create a ajax requests
*
* Example:
*
* var ajax = new Ajax();
* ajax.open("http://api.com/test.json");
* ajax.onSuccess = function(data){
* //data.status -> "success"
* //data.data -> result form server
* };
* ajax.onError = function(data){
* ... | JavaScript |
/**
* Class Style
* this class is used to create css rules
*/
Style = (function () {
/**
* Style constructor
* @constructor
*/
function Style() {
this.styles = document.styleSheets;
this.style = this.styles[this.styles.length-1];
}
/**
* Create rule string form object and ... | JavaScript |
/**
* Class View
* This class manipulate HTMLElement
* Example:
* //by html element id
* var element = new View("element-id");
* //by html node
* var element = new View(document.body);
*/
View = (function() {
/**
* This constructor get element by id or use already get and create classLis... | JavaScript |
/**
* Project trunk.
* User: hp-stuff
* Date: 4/16/13
* Time: 2:01 PM
* To change this template use File | Settings | File Templates.
*/
DropDown = (function (_super) {
__extends(DropDown, _super);
function DropDown(view) {
var _this = this;
DropDown.__super__.constructor.call(this);
... | JavaScript |
Application = (function() {
function Application() {
var _this = this;
this.pages = {};
this.mobile = new Mobile();
this.bootstrap = new Bootstrap();
this.config = new Config();
this.mobile.setOnLoadListener(function(){
_this.mobile.cacheupdated ... | JavaScript |
/**
* Class Mobile
* this class is used to manage based function
* like screen size, orientation, some windows events and others
*/
Mobile = (function() {
/**
* Mobile constructor
* @param application {Application} application instance
* @constructor
*/
function Mobile(appli... | JavaScript |
/**
* Class Animation craete css class with animatoin.
* Example:
* var animation = new Animation('slide-down', 100, 'slidedown', 'linear');
*/
Animation = (function () {
/**
*
* @param name {String} Css Class name
* @param time {Number} Animation time in ms
* @param [animationName] {String} Anim... | JavaScript |
/**
* Checks if an element has a class name
* @param {String} The class name
* @return {Boolean}
*/
Element.prototype.hasClassName = document.documentElement.classList ? function(className) {
return this.classList.contains(className);
} : function(className) {
var elementClassName = this.className;
... | JavaScript |
var __indexOf, __hasProp, __extends, __date;
__indexOf = [].indexOf || function(item) {
for (var i = 0, l = this.length; i < l; i++) {
if (i in this && this[i] === item)
return i;
}
return -1;
};
__hasProp = {}.hasOwnProperty;
__extends = function(child, parent) {
for (var key in parent) {
if (__hasProp.c... | JavaScript |
var compressor = require('node-minify'),
fs = require("fs"),
express = require("express"),
crypto = require("crypto"),
ejs = require('ejs'),
path = require('path'),
mime = require('mime'),
app = express(),
classes_directory = "../src/classes",
libs_directory = "../src/libs",
styl... | JavaScript |
/**
* Class Ajax
* This class is used to create a ajax requests
*
* Example:
*
* var ajax = new Ajax();
* ajax.open("http://api.com/test.json");
* ajax.onSuccess = function(data){
* //data.status -> "success"
* //data.data -> result form server
* };
* ajax.onError = function(data){
* ... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/*
Package: progress
Utility classes to track and draw progress (for loading.... messages).
*/
/*
Class: ProgressMeter
A class that keeps two counters. A counter of the number of tasks left to be done
and a counter of how far the current task has progressed. Execution of the tasks
are outside of ProgressMeter but wh... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
var Actors = (function() {
var self = {} ;
var actors = new Array() ;
self.step = function(timeSinceLastFrame) {
for (var n=0; n<actors.length; n++) {
actors[n].step(timeSinceLastFrame) ;
}
};
self.addActor = function(actor) {
if (actor) {
actors.push(actor) ;
}
};
self.remove... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/**
*
*/
var world;
var pixelsPerMeter = 40;
var worldWidthInMeter = 16; // 640/pixelsPerMeter ;
var worldHeightInMeter = 12; // 480/pixelsPerMeter ;
var groundHalfWidth = 0.5;
var trailcircle;
var trailcircleBody;
var crateBody;
var halfCrateWidthInMeters = 0.1;
var halfCrateHeightInMeters = 1.0;
var halfCrateWidth... | JavaScript |
var numSpeedghosts = 16;
var alphaValues = new Array();
for ( var n = 0; n < numSpeedghosts; n++) {
alphaValues[n] = (1 - ((1 / numSpeedghosts) * n));
};
function TrailCircle(ctx, appearance) {
this.ctx = ctx;
this.xpos = new Array();
this.ypos = new Array();
this.colors = new Array();
this.hidden = false;
this... | JavaScript |
var Actors = (function() {
var self = {};
var actors = new Array();
self.step = function(timeSinceLastFrame) {
for (var n=0; n<actors.length; n++) {
actors[n].step(timeSinceLastFrame);
}
};
self.addActor = function(actor) {
if (actor) {
actors.push(actor);
}
};
self.removeAc... | JavaScript |
(function() {
var SkateBoard, World, b2Body, b2BodyDef, b2CircleShape, b2DebugDraw, b2DynamicBody, b2Fixture, b2FixtureDef, b2MassData, b2PolygonShape, b2RevoluteJointDef, b2StaticBody, b2Vec2, b2World, createFixture, screenToWorld, worldPositionToScreenPosition, worldToScreen;
var __bind = function(fn, me){ return... | JavaScript |
(function() {
var BaseRenderer, Line, SkateBoard, World, b2Body, b2BodyDef, b2CircleShape, b2DebugDraw, b2DynamicBody, b2Fixture, b2FixtureDef, b2MassData, b2PolygonShape, b2RevoluteJointDef, b2StaticBody, b2Vec2, b2World, createFixture, screenToWorld, worldPositionToScreenPosition, worldToScreen;
var __hasProp = O... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/*
* Copyright (c) 2006-2007 Erin Catto http://www.gphysics.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any pur... | JavaScript |
/*
Package: progress
Utility classes to track and draw progress (for loading.... messages).
*/
/*
Class: ProgressMeter
A class that keeps two counters. A counter of the number of tasks left to be done
and a counter of how far the current task has progressed. Execution of the tasks
are outside of ProgressMeter but wh... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/*
Copyright 2011 Johan Maasing
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 writ... | JavaScript |
/* JPEGCam v1.0.9 */
/* Webcam library for capturing JPEG images and submitting to a server */
/* Copyright (c) 2008 - 2009 Joseph Huckaby <jhuckaby@goldcartridge.com> */
/* Licensed under the GNU Lesser Public License */
/* http://www.gnu.org/licenses/lgpl.html */
/* Usage:
<script language="JavaScript">
document.... | JavaScript |
var progressArea="progressArea";
var progressMessageHolder="progressMessageHolder";
A4J.AJAX.onError = function(req, status, message)
{
if(status==500)
{
window.alert("Your session has expired !\nError: "+message);
onAppTimeOut();
alert("Please LogIn again...");
document.location.href='... | JavaScript |
/**
* jQuery webcam
* Copyright (c) 2010, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
* Date: 09/12/2010
*
* @author Robert Eisele
* @version 1.0
*
* @see http://www.xarg.org/project/jquery-webcam-plugin/
**/
(function ($) {
var webcam = {
extern: null, // external s... | JavaScript |
/**
* jQuery webcam
* Copyright (c) 2010, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
* Date: 09/12/2010
*
* @author Robert Eisele
* @version 1.0
*
* @see http://www.xarg.org/project/jquery-webcam-plugin/
**/
(function ($) {
var webcam = {
extern: null, // external s... | JavaScript |
/* JPEGCam v1.0.9 */
/* Webcam library for capturing JPEG images and submitting to a server */
/* Copyright (c) 2008 - 2009 Joseph Huckaby <jhuckaby@goldcartridge.com> */
/* Licensed under the GNU Lesser Public License */
/* http://www.gnu.org/licenses/lgpl.html */
/* Usage:
<script language="JavaScript">
document.... | JavaScript |
function ajaxGet(strURL, inputArgs, successFunc) {
var xmlHttpReq = false;
var self = this;
// Mozilla/Safari
if (window.XMLHttpRequest) {
self.xmlHttpReq = new XMLHttpRequest();
}
// IE
else if (window.ActiveXObject) {
self.xmlHttpReq = ... | JavaScript |
/**
* jQuery webcam
* Copyright (c) 2010, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
* Date: 09/12/2010
*
* @author Robert Eisele
* @version 1.0
*
* @see http://www.xarg.org/project/jquery-webcam-plugin/
**/
(function ($) {
var webcam = {
extern: null, // external s... | JavaScript |
/**
* jQuery webcam
* Copyright (c) 2010, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
* Date: 09/12/2010
*
* @author Robert Eisele
* @version 1.0
*
* @see http://www.xarg.org/project/jquery-webcam-plugin/
**/
(function ($) {
var webcam = {
extern: null, // external s... | JavaScript |
function taust(asi1, col1)
{ asi1.bgColor = col1; } | JavaScript |
var xmlHttp;
/******************************************************************************
variable to keep track if the page is changed
*****************************************************************************/
var pageChanged = false;
/*************************************************************... | JavaScript |
function openWindow(url, width, height)
{
if ((width + 30 > screen.width) || (height + 60 > screen.height))
{
width = width + 50;
if (width > screen.width - 80)
width = screen.width - 80;
height = height + 50;
if (height > screen.height - 110)
height = screen.height - 110;
... | JavaScript |
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=doc... | JavaScript |
/* JPEGCam v1.0.9 */
/* Webcam library for capturing JPEG images and submitting to a server */
/* Copyright (c) 2008 - 2009 Joseph Huckaby <jhuckaby@goldcartridge.com> */
/* Licensed under the GNU Lesser Public License */
/* http://www.gnu.org/licenses/lgpl.html */
/* Usage:
<script language="JavaScript">
document.... | JavaScript |
var progressArea="progressArea";
var progressMessageHolder="progressMessageHolder";
A4J.AJAX.onError = function(req, status, message)
{
if(status==500)
{
window.alert("Your session has expired !\nError: "+message);
onAppTimeOut();
alert("Please LogIn again...");
document.location.href='... | JavaScript |
/**
* jQuery webcam
* Copyright (c) 2010, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
* Date: 09/12/2010
*
* @author Robert Eisele
* @version 1.0
*
* @see http://www.xarg.org/project/jquery-webcam-plugin/
**/
(function ($) {
var webcam = {
extern: null, // external s... | JavaScript |
/**
* jQuery webcam
* Copyright (c) 2010, Robert Eisele (robert@xarg.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
* Date: 09/12/2010
*
* @author Robert Eisele
* @version 1.0
*
* @see http://www.xarg.org/project/jquery-webcam-plugin/
**/
(function ($) {
var webcam = {
extern: null, // external s... | JavaScript |
/*
* Formy JS library
* by Luiszuno.com
*/
jQuery(document).ready(function($) {
// Hide messages
$("#formy-success").hide();
$("#formy-error").hide();
// on submit...
$("#formy #submit").click(function() {
// Required fields:
//name
var name = $("#name").val();
if(name == "" || name == "Name")... | JavaScript |
/*
---
description: SIMPLE MODAL is a small plugin to create modal windows. It can be used to generate alert or confirm messages with few lines of code. Confirm configuration involves the use of callbacks to be applied to affirmative action;i t can work in asynchronous mode and retrieve content from external pages or g... | JavaScript |
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for ... | JavaScript |
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(fun... | JavaScript |
/*!
* Media helper for fancyBox
* version: 1.0.6 (Fri, 14 Jun 2013)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* ... | JavaScript |
jQuery(
function($) {
$(document).ready(function(){
var contentButton = [];
var contentTop = [];
var content = [];
var lastScrollTop = 0;
var scrollDir = '';
var itemClass = '';
var itemHover = '';
var menuSize = null;
var stickyHeight = 0;
var stickyMarginB = 0;
var currentMarginT = 0;
var t... | JavaScript |
/*
Helios 1.5 by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
/*********************************************************************************/
/* Settings */
/****... | JavaScript |
/**
* innerHTML property for SVGElement
* Copyright(c) 2010, Jeff Schiller
*
* Licensed under the Apache License, Version 2
*
* Works in a SVG document in Chrome 6+, Safari 5+, Firefox 4+ and IE9+.
* Works in a HTML5 document in Chrome 7+, Firefox 4+ and IE9+.
* Does not work in Opera since it doesn't support t... | 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 |
/* Rev. 508
Copyright (C) 2008-2011 agenceXML - Alain COUTHURES
Contact at : xsltforms@agencexml.com
Copyright (C) 2006 AJAXForms S.L.
Contact at: info@ajaxforms.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Fr... | JavaScript |
var objFSO = WScript.CreateObject("Scripting.FileSystemObject");
//worst case, the stream we are updating should be blank to avoid false data.
//Creating temp.xml here and overwriting the previous file should guarantee that.
objFSO.CreateTextFile('C:\\temp\\temp.xml', true);
var objDM = WScript.CreateObject("ION... | JavaScript |
@(user: String, host: Boolean, ready: Boolean, started: Boolean)
$(function() {
var WS = window['MozWebSocket'] ? MozWebSocket : WebSocket
var Socket = new WS("@routes.Application.connect(user).webSocketURL(request)")
var User = "";
var PlayersNumber = 1;
var BotsNumber = 1;
var T... | JavaScript |
var gSelectedIndex = -1;
var gSelectedID = -1;
var gMatches = new Array();
var gLastText = "";
var ROW_COUNT = 20;
var gInitialized = false;
var DEFAULT_TEXT = "search developer docs";
var HAS_SEARCH_PAGE = false;
function set_row_selected(row, selected)
{
var c1 = row.cells[0];
// var c2 = row.cells[1];
if... | JavaScript |
var NAVTREE_DATA =
[ [ "com.caverock.androidsvg", "com/caverock/androidsvg/package-summary.html", [ [ "Classes", null, [ [ "PreserveAspectRatio", "com/caverock/androidsvg/PreserveAspectRatio.html", null, "" ], [ "SimpleAssetResolver", "com/caverock/androidsvg/SimpleAssetResolver.html", null, "" ], [ "SVG", "com/caveroc... | JavaScript |
var API_LEVEL_ENABLED_COOKIE = "api_level_enabled";
var API_LEVEL_INDEX_COOKIE = "api_level_index";
var minLevelIndex = 0;
function toggleApiLevelSelector(checkbox) {
var date = new Date();
date.setTime(date.getTime()+(10*365*24*60*60*1000)); // keep this for 10 years
var expiration = date.toGMTString();
if (c... | JavaScript |
var resizePackagesNav;
var classesNav;
var devdocNav;
var sidenav;
var content;
var HEADER_HEIGHT = -1;
var cookie_namespace = 'doclava_developer';
var NAV_PREF_TREE = "tree";
var NAV_PREF_PANELS = "panels";
var nav_pref;
var toRoot;
var toAssets;
var isMobile = false; // true if mobile, so we can adjust some layout
va... | JavaScript |
var DATA = [
{ id:0, label:"com.caverock.androidsvg", link:"com/caverock/androidsvg/package-summary.html", type:"package" },
{ id:1, label:"com.caverock.androidsvg.PreserveAspectRatio", link:"com/caverock/androidsvg/PreserveAspectRatio.html", type:"class" },
{ id:2, label:"com.caverock.androidsvg.Pres... | JavaScript |
var gSelectedIndex = -1;
var gSelectedID = -1;
var gMatches = new Array();
var gLastText = "";
var ROW_COUNT = 20;
var gInitialized = false;
var DEFAULT_TEXT = "search developer docs";
var HAS_SEARCH_PAGE = false;
function set_row_selected(row, selected)
{
var c1 = row.cells[0];
// var c2 = row.cells[1];
if... | JavaScript |
var NAVTREE_DATA =
[ [ "com.caverock.androidsvg", "com/caverock/androidsvg/package-summary.html", [ [ "Classes", null, [ [ "PreserveAspectRatio", "com/caverock/androidsvg/PreserveAspectRatio.html", null, "" ], [ "SimpleAssetResolver", "com/caverock/androidsvg/SimpleAssetResolver.html", null, "" ], [ "SVG", "com/caveroc... | JavaScript |
var API_LEVEL_ENABLED_COOKIE = "api_level_enabled";
var API_LEVEL_INDEX_COOKIE = "api_level_index";
var minLevelIndex = 0;
function toggleApiLevelSelector(checkbox) {
var date = new Date();
date.setTime(date.getTime()+(10*365*24*60*60*1000)); // keep this for 10 years
var expiration = date.toGMTString();
if (c... | JavaScript |
var resizePackagesNav;
var classesNav;
var devdocNav;
var sidenav;
var content;
var HEADER_HEIGHT = -1;
var cookie_namespace = 'doclava_developer';
var NAV_PREF_TREE = "tree";
var NAV_PREF_PANELS = "panels";
var nav_pref;
var toRoot;
var toAssets;
var isMobile = false; // true if mobile, so we can adjust some layout
va... | JavaScript |
var DATA = [
{ id:0, label:"com.caverock.androidsvg", link:"com/caverock/androidsvg/package-summary.html", type:"package" },
{ id:1, label:"com.caverock.androidsvg.PreserveAspectRatio", link:"com/caverock/androidsvg/PreserveAspectRatio.html", type:"class" },
{ id:2, label:"com.caverock.androidsvg.Pres... | 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 |
// 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 |
/**
* 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 |
/**
* @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 |
//=============================================================================
// System : Sandcastle Help File Builder
// File : TOC.js
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 04/11/2008
// Note : Copyright 2006-2008, Eric Woodruff, All rights reserved
// Compiler: JavaScript
//
//... | JavaScript |
//=============================================================================
// System : Color Syntax Highlighter
// File : Highlight.js
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 11/13/2007
// Note : Copyright 2006, Eric Woodruff, All rights reserved
//
// This contains the script to... | JavaScript |
// Copyright 2011 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
// Copyright 2010 Google Inc. All Rights Reserved.
//
// 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... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.