code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
*
* Tabelizer 1.0.3 - multi level grouping indicators for tables
* Version 1.0.3
* @requires jQuery v1.6+ and jQuery.ui core
*
* Copyright (c) 2014 Rafael Huisman
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/... | JavaScript |
/*
* jQuery treetable Plugin 3.1.0
* http://ludo.cubicphuse.nl/jquery-treetable
*
* Copyright 2013, Ludo van den Boom
* Dual licensed under the MIT or GPL Version 2 licenses.
*/
(function() {
var $, Node, Tree, methods;
$ = jQuery;
Node = (function() {
function Node(row, tree, settings) {
var pa... | JavaScript |
/**
* Cookie plugin
*
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
/**
* Create a cookie with the given name and value and other optional parameters.
*
* @examp... | JavaScript |
$(window).load(function() { // makes sure the whole site is loaded
$('#status').fadeOut(); // will first fade out the loading animation
$('#preloader').fadeOut(); // will fade out the white DIV that covers the website.
$('body').delay(350).css({
'overflow': 'visible'
});
... | JavaScript |
/*
* canvasgauge.js
*
* Copyright 2013 Pedro A. Melendez <lazy.chino@gmail.com>
*
* 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 2 of the License, or
* (at your option)... | JavaScript |
/*! nanoScrollerJS - v0.7.2
* http://jamesflorentino.github.com/nanoScrollerJS/
* Copyright (c) 2013 James Florentino; Licensed MIT */
(function($, window, document) {
"use strict";
var BROWSER_IS_IE7, BROWSER_SCROLLBAR_WIDTH, DOMSCROLL, DOWN, DRAG, KEYDOWN, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEUP, MOUSEWHEEL, Nano... | JavaScript |
//BACKGROUND CHANGER
$(function() {
$("#button-bg").click(function() {
$("body").css({
"background": "url('assets/img/bg5.jpg')no-repeat center center fixed"
});
});
$("#button-bg2").click(function() {
$("body").css({
"background": "url('a... | JavaScript |
(function() {
var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, avgAmplitude, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNativ... | JavaScript |
/**
* JustGage - this is work-in-progress, unreleased, unofficial code, so it might not work top-notch :)
* Check http://www.justgage.com for official releases
* Licensed under MIT.
* @author Bojan Djuricic (@Toorshia)
*
* LATEST UPDATES
*
* -----------------------------
* May 17, 2013.
* -------------------... | JavaScript |
//TOGLE SHOW HIDE
$('.nav-toggle-alt').click(function() {
//get collapse content selector
var collapse_content_selector = $(this).attr('href');
//make the collapse content to be shown or hide
var toggle_switch = $(this);
$(collapse_content_selector).slideToggle(function() {... | JavaScript |
var currentLink = "";
$(document).ready(function() {
var hash = location.hash;
hash = hash.replace( /^#/, '' );
if(hash != ''){
if(hash.indexOf('/') != -1){
hash = hash.split('/');
showPage('?func=' + hash[0] + '&' + hash[1] + '&ajax=true');
}
else{showPage('?func=' + hash.replace( /^#/, '' ) ... | JavaScript |
/* Copyright (c) 2009 José Joaquín Núñez (josejnv@gmail.com) http://joaquinnunez.cl/blog/
* Licensed under GPL (http://www.opensource.org/licenses/gpl-2.0.php)
* Use only for non-commercial usage.
*
* Version : 0.1
*
* Requires: jQuery 1.2+
*/
(function(jQuery)
{
jQuery.fn.clock = function(options)
{
va... | JavaScript |
var monthNames = ["Tháng 1", "Tháng 2", "Tháng 3", "Tháng 4", "Tháng 5", "Tháng 6",
"Tháng 7", "Tháng 8", "Tháng 9", "Tháng 10", "Tháng 11", "Tháng 12"
];
var dayNames = ["Chủ Nhật, ", "Thứ 2, ", "Thứ 3, ", "Thứ 4, ", "Thứ 5, ", "Thứ 6, ", "Thứ 7, "]
var newDate = new Date();
newDate.setDate(newDate.getDate());
$(... | JavaScript |
/**
* Full HTML5 compatibility rule set
* These rules define which tags and CSS classes are supported and which tags should be specially treated.
*
* Examples based on this rule set:
*
* <a href="http://foobar.com">foo</a>
* ... becomes ...
* <a href="http://foobar.com" target="_blank" rel="nofollow">f... | JavaScript |
/**
* @license wysihtml5 v0.3.0
* https://github.com/xing/wysihtml5
*
* Author: Christopher Blum (https://github.com/tiff)
*
* Copyright (C) 2012 XING AG
* Licensed under the MIT license (MIT)
*
*/
var wysihtml5 = {
version: "0.3.0",
// namespaces
commands: {},
dom: {},
quirks: {},
... | JavaScript |
;(function (factory)
{
if (typeof define === 'function' && define.amd)
{
define(['jquery'], factory);
}
else if (typeof exports === 'object')
{
factory(require('jquery'));
}
else
{
factory(jQuery);
}
}
(function ($)
{
"use strict";
var pluginName = "t... | JavaScript |
var radarChartData = {
labels : ["Eating","Drinking","Sleeping","Designing","Coding","Partying","Running"],
datasets : [
{
fillColor : "rgba(255, 0, 100, 0.5)",
strokeColor : "rgba(255, 0, 100, 1)",
pointColor : "r... | JavaScript |
var chartData = [
{
value : Math.random(),
color: "#6ADAE4"
},
{
value : Math.random(),
color: "#F89406"
},
{
value : Math.random(),
color: "#FF0064"
... | JavaScript |
/* Copyright (c) 2009 José Joaquín Núñez (josejnv@gmail.com) http://joaquinnunez.cl/blog/
* Licensed under GPL (http://www.opensource.org/licenses/gpl-2.0.php)
* Use only for non-commercial usage.
*
* Version : 0.1
*
* Requires: jQuery 1.2+
*/
(function(jQuery)
{
jQuery.fn.clock = function(options)
{
va... | JavaScript |
var barChartData = {
labels : ["January","February","March","April","May","June","July"],
datasets : [
{
fillColor : "rgba(106, 218, 228, 0.8)",
data : [65,59,90,81,56,55,40]
},
{
... | JavaScript |
$(document).ready(function(){
var d1 = [];
for (var i = 0; i <= 10; i += 1)
d1.push([i, parseInt(Math.random() * 30)]);
var d2 = [];
for (var i = 0; i <= 10; i += 1)
d2.push([i, parseInt(Math.random() * 30)]);
var d3 = [];
for (var i = 0; i <= 10; i += 1)
d3.push([i, ... | JavaScript |
var lineChartData = {
labels : ["January","February","March","April","May","June","July"],
datasets : [
{
fillColor : "rgba(49, 195, 166, 0.2)",
strokeColor : "rgba(49, 195, 166, 1)",
pointColor : "rgba(49, 195, 166, ... | JavaScript |
/*!
* Chart.js
* http://chartjs.org/
*
* Copyright 2013 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
//Define the global Chart Variable as a class.
window.Chart = function(context){
var chart = this;
//Easing functions adapted from Robert Pen... | JavaScript |
/**
* Clockface - v1.0.1
* Clockface timepicker for Twitter Bootstrap
*
* Confusion with noon and midnight:
* http://en.wikipedia.org/wiki/12-hour_clock
* Here considered '00:00 am' as midnight and '12:00 pm' as noon.
*
* Author: Vitaliy Potapov
* Project page: http://github.com/vitalets/clockface
* Copyright (c) 2012... | JavaScript |
/*global jQuery */
/*jshint browser:true */
/*!
* FitVids 1.1
*
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfp... | JavaScript |
/*!
* iCheck v0.9.1, http://git.io/uhUPMA
* =================================
* Powerful jQuery plugin for checkboxes and radio buttons customization
*
* (c) 2013 Damir Foy, http://damirfoy.com
* MIT Licensed
*/
(function($) {
// Cached vars
var _iCheck = 'iCheck',
_iCheckHelper = _iCheck + '-helper',
... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* An info panel, which complements the map view of the Store Locator.
* Provides a list of stores, location search, feature filter, and directions.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @name Store Locator for Google Maps API V3
* @version 0.1
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* @license
*
* Copyright 2012 Google Inc.
*
* License... | JavaScript |
// Copyright 2013 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Provides access to store data through Google Maps Engine.
*/
/**
* 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... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Allows developers to specify a static set of stores to be used in the
* storelocator.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Store model class for Store Locator library.
*/
/**
* 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 ... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* FeatureSet class for Store Locator library. A mutable, ordered set of
* storeLocator.Features.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* This library makes it easy to create a fully-featured Store Locator for
* your business's website.
*/
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | JavaScript |
// Copyright 2012 Google Inc.
/**
* @author Chris Broadfoot (Google)
* @fileoverview
* Feature model class for Store Locator library.
*/
/**
* 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 Licens... | JavaScript |
// A simple demo showing how to grab places using the Maps API Places Library.
// Useful extensions may include using "name" filtering or "keyword" search.
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.... | JavaScript |
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.LatLng(-28, 135),
zoom: 4,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var panelDiv = document.getElementById('panel');
var data = new Medic... | JavaScript |
google.maps.event.addDomListener(window, 'load', function() {
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: new google.maps.LatLng(-28, 135),
zoom: 4,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var panelDiv = document.getElementById('panel');
var data = new store... | JavaScript |
// Store locator with customisations
// - custom marker
// - custom info window (using Info Bubble)
// - custom info window content (+ store hours)
var ICON = new google.maps.MarkerImage('medicare.png', null, null,
new google.maps.Point(14, 13));
var SHADOW = new google.maps.MarkerImage('medicare-shadow.png', nul... | JavaScript |
/**
* @extends storeLocator.StaticDataFeed
* @constructor
*/
function MedicareDataSource() {
$.extend(this, new storeLocator.StaticDataFeed);
var that = this;
$.get('medicare.csv', function(data) {
that.setStores(that.parse_(data));
});
}
/**
* @const
* @type {!storeLocator.FeatureSet}
* @private
*... | JavaScript |
/**
* @implements storeLocator.DataFeed
* @constructor
*/
function MedicareDataSource() {
}
MedicareDataSource.prototype.getStores = function(bounds, features, callback) {
var that = this;
var center = bounds.getCenter();
var audioFeature = this.FEATURES_.getById('Audio-YES');
var wheelchairFeature = this.F... | JavaScript |
/** @interface */
function storeLocator_Feature() {};
storeLocator_Feature.prototype.getId = function(var_args) {};
storeLocator_Feature.prototype.getDisplayName = function(var_args) {};
/** @interface */
function storeLocator_FeatureSet() {};
storeLocator_FeatureSet.prototype.toggle = function(var_args) {};
storeLoca... | JavaScript |
/*
YUI 3.4.0 (build 3928)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for... | JavaScript |
/*
YUI 3.4.0 (build 3928)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for... | 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 |
/*
* 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 |
/*
YUI 3.4.0 (build 3928)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for... | JavaScript |
/*
YUI 3.4.0 (build 3928)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for... | 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 |
/*
* 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 |
/*
* YouTube TV
*
* Copyright 2013, Jacob Kelley - http://jakiestfu.com/
* Released under the MIT Licence
* http://opensource.org/licenses/MIT
*
* Github:
* Version: 1.0.2
*/
/*jslint browser: true, undef:true, unused:true*/
/*global define, module, ender */
(function(win, doc) {
'use stri... | JavaScript |
/*
* jQuery carouFredSel 5.6.2
* Demo's and documentation:
* caroufredsel.frebsite.nl
*
* Copyright (c) 2012 Fred Heusschen
* www.frebsite.nl
*
* Dual licensed under the MIT and GPL licenses.
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*/
... | JavaScript |
$(".carousel-button-right").live('click',function(){
right_carusel();
});
$(".carousel-button-left").live('click',function(){
left_carusel();
});
function left_carusel(){
var block_width = $('.carousel-block').width();
$(".carousel-items .carousel-block").eq(-1).clone().prependTo(".carousel-i... | JavaScript |
/*
Title: AltFontPrev
Author: Sam Rayner
More Info: http://samrayner.com/archives/altfontprev/
*/
function altFontPrev() {
var afpVersion = '0.1';
var releaseDate = '10th July 08';
//array used to hold declared fonts
var fontArray = [];
//array used to hold CSS selectors
var selArray = []... | JavaScript |
/*
Title: AltFontPrev
Author: Sam Rayner
More Info: http://samrayner.com/archives/altfontprev/
*/
var Details = {
version: "1.0",
releaseDate: "20th July 08"
}
var Core = {
snatchClass: function(target, theClass, altClass) {
var siblings = target.parentNode.childNodes;
for(var i = 0; i... | JavaScript |
/*
Title: AltFontPrev
Author: Sam Rayner
More Info: http://samrayner.com/archives/altfontprev/
*/
var Details = {
version: "1.1",
releaseDate: "29th October 08"
}
var Core = {
snatchClass: function(target, theClass, altClass) {
var siblings = target.parentNode.childNodes;
for(var i = 0... | JavaScript |
/*
Title: AltFontPrev
Author: Sam Rayner
More Info: http://samrayner.com/archives/altfontprev/
*/
var Details = {
version: "0.2",
releaseDate: "8th July 08"
}
var Core = {
snatchClass: function(target, theClass, altClass) {
var siblings = target.parentNode.childNodes;
for(var i = 0; i ... | JavaScript |
/*
Title: AltFontPrev
Author: Sam Rayner
More Info: http://samrayner.com/archives/altfontprev/
*/
var AFP = {
version: "1.5",
releaseDate: "18th July 09",
infoUrl: "http://samrayner.com/archives/altfontprev/",
fonts: [],
sels: [],
snatchClass: function(target, theClass, altClass) {
var siblings = ta... | JavaScript |
/*
Title: AltFontPrev
Author: Sam Rayner
More Info: http://code.google.com/p/altfontprev/
*/
var AFP = {
version: "2.0.1",
releaseDate: "27th July 09",
infoUrl: "http://code.google.com/p/altfontprev/",
fonts: [],
sels: [],
snatchClass: function(target, theClass, altClass) {
var siblings = target.par... | JavaScript |
/*
Title: AltFontPrev
Author: Sam Rayner
More Info: http://code.google.com/p/altfontprev/
*/
var AFP = {
version: "2.0.1",
releaseDate: "27th July 09",
infoUrl: "http://code.google.com/p/altfontprev/",
fonts: [],
sels: [],
snatchClass: function(target, theClass, altClass) {
var siblings = target.par... | JavaScript |
/**
@preserve CLEditor Advanced Table Plugin v1.0.0
http://premiumsoftware.net/cleditor
requires CLEditor v1.2.2 or later
Copyright 2010, Sergio Drago
Dual licensed under the MIT or GPL Version 2 licenses.
Based on Chris Landowski's Table Plugin v1.0.2
*/
(function($) {
$.cleditor.buttons.imageGallery = {... | JavaScript |
/**
@preserve CLEditor Advanced Table Plugin v1.0.0
http://premiumsoftware.net/cleditor
requires CLEditor v1.2.2 or later
Copyright 2010, Sergio Drago
Dual licensed under the MIT or GPL Version 2 licenses.
Based on Chris Landowski's Table Plugin v1.0.2
*/
(function($) {
// Define the table button
$.cle... | JavaScript |
var $j = jQuery.noConflict();
scroll = function(id) {
$j(this).scrollTop($j('#' + id + '').position().top);
};
doAfter = function(time, f) {
setTimeout(f, time);
}; | JavaScript |
/*
TagCloud jQuery plugin
A dynamic JavaScript tag/keyword cloud plugin for jQuery, designed to use with Ajax:
the cloud is generated from an array.
MIT license.
Schaffer Krisztián
http://woophoo.com
Usage:
------
Call it on a jQuery object created from one element and pass an array of
objects wit... | JavaScript |
/**
@preserve CLEditor Advanced Table Plugin v1.0.0
http://premiumsoftware.net/cleditor
requires CLEditor v1.2.2 or later
Copyright 2010, Sergio Drago
Dual licensed under the MIT or GPL Version 2 licenses.
Based on Chris Landowski's Table Plugin v1.0.2
*/
(function($) {
$.cleditor.buttons.imageGallery = {... | JavaScript |
/**
@preserve CLEditor Advanced Table Plugin v1.0.0
http://premiumsoftware.net/cleditor
requires CLEditor v1.2.2 or later
Copyright 2010, Sergio Drago
Dual licensed under the MIT or GPL Version 2 licenses.
Based on Chris Landowski's Table Plugin v1.0.2
*/
(function($) {
// Define the table button
$.cle... | JavaScript |
var $j = jQuery.noConflict();
scroll = function(id) {
$j(this).scrollTop($j('#' + id + '').position().top);
};
doAfter = function(time, f) {
setTimeout(f, time);
}; | JavaScript |
/*
TagCloud jQuery plugin
A dynamic JavaScript tag/keyword cloud plugin for jQuery, designed to use with Ajax:
the cloud is generated from an array.
MIT license.
Schaffer Krisztián
http://woophoo.com
Usage:
------
Call it on a jQuery object created from one element and pass an array of
objects wit... | JavaScript |
/**
@preserve CLEditor Advanced Table Plugin v1.0.0
http://premiumsoftware.net/cleditor
requires CLEditor v1.2.2 or later
Copyright 2010, Sergio Drago
Dual licensed under the MIT or GPL Version 2 licenses.
Based on Chris Landowski's Table Plugin v1.0.2
*/
(function($) {
$.cleditor.buttons.imageGallery = {... | JavaScript |
/**
@preserve CLEditor Advanced Table Plugin v1.0.0
http://premiumsoftware.net/cleditor
requires CLEditor v1.2.2 or later
Copyright 2010, Sergio Drago
Dual licensed under the MIT or GPL Version 2 licenses.
Based on Chris Landowski's Table Plugin v1.0.2
*/
(function($) {
// Define the table button
$.cle... | JavaScript |
var $j = jQuery.noConflict();
scroll = function(id) {
$j(this).scrollTop($j('#' + id + '').position().top);
};
doAfter = function(time, f) {
setTimeout(f, time);
}; | JavaScript |
/*
TagCloud jQuery plugin
A dynamic JavaScript tag/keyword cloud plugin for jQuery, designed to use with Ajax:
the cloud is generated from an array.
MIT license.
Schaffer Krisztián
http://woophoo.com
Usage:
------
Call it on a jQuery object created from one element and pass an array of
objects wit... | JavaScript |
var site = function() {
this.navLi = $('#nav li').children('ul').hide().end();
this.init();
};
site.prototype = {
init : function() {
this.setMenu();
},
// Enables the slidedown menu, and adds support for IE6
setMenu : function() {
$.each(this.navLi, function() {
i... | JavaScript |
/**
*
*/
var req = null;
var READY_STATE_UNINITIALIZED = 0;
var READY_STATE_LOADING = 1;
var READY_STATE_LOADED = 2;
var READY_STATE_INTERACTIVE = 3;
var READY_STATE_COMPLETE = 4;
var NO_ERROR = 0;
var HAVE_ERROR = 1;
var ERROR = -1;
var isMSIE = navigator.userAgent.toUpperCase().indexOf("MSIE") == -1 ? ... | JavaScript |
var RRServer = {
// Dependencies
fs : require('fs-extra')
, express : require('express')
, io : require('socket.io')
, upnp : require("UPnP/lib/upnp-controlpoint").UpnpControlPoint
, DOMParser : require('xmldom').DOMParser
, request : require('request')
, CommM : require("utils/communicator").Comm... | JavaScript |
define( [ 'Bricks/protoBricks'
, "Bricks/Presentations/PresoTilesAlxAppsGateRoot"
, "Bricks/Univers", "Bricks/Presentations/PresoBasicUniversMap", "Bricks/Presentations/PresoBasicUniversType", "Bricks/Presentations/PresoListUnivers"
, "Bricks/Palette"
, 'Bricks/HueLamp'
, 'Bricks/SmartPlug'
, 'Bricks/... | JavaScript |
/**
* @license RequireJS domReady 2.0.1 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/requirejs/domReady for details
*/
/*jslint */
/*global require: false, define: false, requirejs: false,
window: false, clearInterval: false... | JavaScript |
define( [ "utils/svgAlx"
, "utils/svgUtils"
]
, function(svgAlx, svgUtils) {
var svgPoly = function(conf) {
this.root = document.createElementNS("http://www.w3.org/2000/svg", 'polygon');
this.configure( { style : {}
} );
this.configure( conf );
}
svgPoly.prototy... | JavaScript |
define( [ "utils/svgAlx"
, "utils/svgUtils"
]
, function(svgAlx, svgUtils) {
var svgGroup = function(conf) {
this.root = document.createElementNS("http://www.w3.org/2000/svg", 'g');
this.configure( conf );
}
svgGroup.prototype = new svgAlx();
return svgGroup;
}
);... | JavaScript |
define( [ "utils/svgAlx"
, "utils/svgUtils"
, "utils/svgGroup"
, "utils/svgText"
, "utils/svgRect"
, "utils/svgImage"
]
, function( svgAlx, svgUtils
, svgGroup, svgText, svgRect, svgImage ) {
var svgButton = function(config) {
var self = this;
this.Aroot = new svgGroup({class... | JavaScript |
define( [ "utils/svgAlx"
, "utils/svgUtils"
]
, function(svgAlx, svgUtils) {
var svgLine = function(conf) {
this.root = document.createElementNS("http://www.w3.org/2000/svg", 'line');
this.configure( { style : {}
, x1:0, y1:0, x2:0, y2:0
}
, this.root );
t... | JavaScript |
define( [ "Bricks/Presentations/utils"
]
, function(utils) {
var DragManager = {
can : null
, id : 0
, rect : null
, TabDraggable : Array()
, TabDragged_node : Array()
, TabDragging_ptr : Array()
, init : function (svgCanvasId) {
document.addEventListener("mouseup" , this... | JavaScript |
define( [ "utils/svgAlx"
, "utils/svgUtils"
, "utils/svgGroup"
, "utils/svgText"
, "utils/svgRect"
]
, function( svgAlx, svgUtils
, svgGroup, svgText, svgRect ) {
function modal(svgE) {
// Display a modal window
// document.body.classList.remove( 'noUserSelect' );
va... | JavaScript |
define( [
]
, function(svgUtils) {
var svgPoint = null;
var svgAlx = function(conf) {
this.root = null;
}
svgAlx.prototype.init = function(svgCanvas) {
svgPoint = svgCanvas.createSVGPoint();
}
svgAlx.prototype.getRoot = function() {return this.root;}
svgAlx.prototy... | JavaScript |
define( [ "utils/svgAlx"
, "utils/svgUtils"
]
, function(svgAlx, svgUtils) {
var svgRect = function(conf) {
this.root = document.createElementNS("http://www.w3.org/2000/svg", 'rect');
this.configureRect( { style : {}
, x:0, y:0, width:50, height:50
} );
this.con... | JavaScript |
define( [ "utils/svg"
, "Bricks/Presentations/utils"
, "utils/svgLine"
, "utils/svgRect"
]
, function(DragManager, utils, svgLine, svgRect) {
var OsvgRect = null, lineH = null, lineV = null, OsvgPoint = null;
// Define a singleton
var svgUtils = {
onDOMNodeInsertedIntoDocume... | JavaScript |
define( [ "utils/svgAlx"
, "utils/svgUtils"
]
, function(svgAlx, svgUtils) {
var svgOval = function(conf) {
this.root = document.createElementNS("http://www.w3.org/2000/svg", 'ellipse');
this.configure( { style : {}
, cx:0,cy:0,rx:100,ry:50
}
, this.root );
... | JavaScript |
define( [ "utils/svgAlx"
, "utils/svgUtils"
]
, function(svgAlx, svgUtils) {
var svgImage = function(conf) {
this.root = document.createElementNS("http://www.w3.org/2000/svg", 'image');
this.configure( { style : {}
} );
this.configure( conf );
}
svgImage.prototy... | JavaScript |
define( [ "utils/svgAlx"
, "utils/svgUtils"
]
, function(svgAlx, svgUtils) {
var svgText = function(conf) {
this.root = document.createElementNS("http://www.w3.org/2000/svg", 'text');
this.configure( { style : {}
, x:0, y:0 }
, this.root );
this.configure(conf, this... | JavaScript |
var socket = io.connect();
var AlxClient = null;
require( [ "AlxAppsGateClient"
, "domReady"
, "classList"
]
, function(apps, domReady) {
console.log("Now AppsGate is loaded");
function toggleFullScreen() {
var doc = window.document;
var docEl = doc.documentElement;
... | JavaScript |
define( ["Bricks/protoBricks"]
, function(Brick) {
var Hue = function(id) {
this.color = "FFFFFF";
};
Hue.prototype = Brick;
Hue.prototype.render = function() {
this.root = document.createElement('div');
this.root.innerHTML = "<span>Lamp <span><span class=\"name\"></span>"
... | JavaScript |
define( [ "Bricks/protoBricks"
, "Bricks/Presentations/PresoPaletteOrthozoomTabs"
]
, function(Brick, PresoPaletteOrthozoomTabs) {
var Palette = function(id, brick) {
brick = brick || {};
this.id = id;
if(id) socket.on(id, function(data) {self.update(data);});
this.x ... | JavaScript |
define( [ "Bricks/protoBricks"
, "Bricks/Presentations/PresoBasicSmartPlug"
]
, function(Brick, PresoBasicSmartPlug) {
var SmartPlug = function(id, brick) {
this.DataSubscribers = [];
this.OnOff = [];
for(var i=0;i<brick.plugState.length;i++) {
this.OnOff.push({ms:bric... | JavaScript |
define( [ "Bricks/protoBricks"
, "Bricks/Presentations/utils"
, "Bricks/Presentations/PresoBasicClock"
]
, function(Brick, utils, PresoBasicClock) {
var Clock = function(id, brick) {
var self = this;
this.id = id;
this.clockValue = parseInt( brick.clockValue[brick.clockValue.le... | JavaScript |
define( [ "Bricks/protoBricks"
, "Bricks/Presentations/PresoTilesAlxAppsGate"
, "Bricks/Space"
]
, function(Brick, PresoTilesAlxAppsGate, SpaceBrick) {
var UniversBrick = function(id, L_presoFactories) {
var TF, context;
this.init();
this.isSpace = true;
for(var fDescr in... | JavaScript |
define( [ "Bricks/protoBricks"
, "Bricks/Presentations/PresoMediaServer"
]
, function(Brick, PresoMediaServer) {
var UpnpMediaServer = function(id, brick) {
return this;
};
UpnpMediaServer.prototype = new Brick();
UpnpMediaServer.prototype.constructor = UpnpMediaServer;
Up... | JavaScript |
define( [ "Bricks/protoBricks"
, "Bricks/Presentations/PresoCategSmartPlug"
]
, function(Brick, PresoCategSmartPlug) {
var CategSmartPlug = function() {
var self = this;
this.init();
this.isSpace = true;
// this.appendPresentations([new PresoBasicSmartPlug()]);
// for(... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.