code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
Wami = function() {
}
Wami.utils = function() {
}
Wami.utils.debug = function(message) {
if (typeof console == 'undefined') {
// No Firebug console, so no logging.
}
else {
console.log(message);
}
}
Wami.utils.gup = function(name) {
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp(regexS);... | JavaScript |
/////////////////////////////////////////////////////////////////
//// Public WamiApp API ////
/////////////////////////////////////////////////////////////////
// Create a new Wami.App object. Note, you should never create more than one
// Wami.App object on your page.
//
// ... | JavaScript |
/*!
* Sizzle CSS Selector Engine - v1.0
* Copyright 2009, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
* More information: http://sizzlejs.com/
*/
(function(){
var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\... | JavaScript |
$(document).ready(function()
{
// Syntax highlighter
$('pre:not(.debug) code').each(function()
{
$(this).addClass('brush: php, class-name: highlighted');
});
SyntaxHighlighter.config.tagName = 'code';
// Don't show the toolbar or line-numbers.
SyntaxHighlighter.defaults.gutter = false;
SyntaxHighlighter.all... | 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 |
// jQuery $('document').ready(); function
$('document').ready(function(){
$.gritter.add({
// (string | mandatory) the heading of the notification
title: 'Howdy!!',
// (string | mandatory) the text inside the notification
text: 'I am notification, You can kick me out by closing or I will leave very soon',
i... | JavaScript |
/* =============================================================
* flatui-checkbox.js v0.0.2
* ============================================================ */
!function ($) {
/* CHECKBOX PUBLIC CLASS DEFINITION
* ============================== */
var Checkbox = function (element, options) {
this.init(ele... | JavaScript |
// Knobs
$(".knob").knob({
'min':0,
'max':100,
'readOnly': true,
'width': 120,
'height': 120,
'thickness': 0.3,
'tickColorizeValues': true,
'bgColor' : '#b2d9ed',
'fgColor' : '#FFFFFF',
'inputColor': '#FFFFFF'
});
//Knob refresh o... | JavaScript |
/*! http://mths.be/placeholder v2.0.7 by @mathias */
;(function(window, document, $) {
var isInputSupported = 'placeholder' in document.createElement('input'),
isTextareaSupported = 'placeholder' in document.createElement('textarea'),
prototype = $.fn,
valHooks = $.valHooks,
hooks,
placeholde... | JavaScript |
/*
* jQuery Iframe Transport Plugin 1.6.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint unparam: true, nomen: true */
/*global define, window, document */
(fun... | JavaScript |
// Some general UI pack related JS
// Extend JS String with repeat method
String.prototype.repeat = function(num) {
return new Array(num + 1).join(this);
};
(function($) {
// Add segments to a slider
$.fn.addSliderSegments = function (amount) {
return this.each(function () {
var segmentGap = 100 / (am... | JavaScript |
$(function() {
// sparkline charts
var myvalues = [10,8,5,7,4,6,7,1,3,5,9,4,4,1];
$('.mini-graph.success').sparkline(myvalues, {type: 'bar', barColor: 'white',lineColor:'black', height: '40'} );
$('.inlinesparkline').sparkline();
// sparkline charts
var myvalues = [10,8,5,3,5,7,4,6,7,1,9,4,4,1];
... | JavaScript |
$('document').ready(function(){
$( ".slider-default" ).slider({
animate: true,
range: "min",
value: 50,
min: 10,
max: 100,
step: 10,
});
});
function hexFromRGB(r, g, b) {
var hex = [
r.toString( 16 ),
g.toString( 16 ),
b.toString( 16 )
];
$.each( hex, function( nr, val ) {
if ( val.... | JavaScript |
/*!
* jQuery twitter bootstrap wizard plugin
* Examples and documentation at: http://github.com/VinceG/twitter-bootstrap-wizard
* version 1.0
* Requires jQuery v1.3.2 or later
* Supports Bootstrap 2.2.x, 2.3.x, 3.0
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.p... | JavaScript |
/*
* Author: Vijay Kumar
* Template: Archon - Flat & Responsive Bootstrap Admin Template
* Version: 1.0
* Bootstrap version: 3.0.0
* Copyright 2013 bootstrapguru
* www: http://bootstrapguru.com
* mail: support@bootstrapguru.com
* You can find our other themes on: https://bootstrapguru.com/themes/
--------------... | JavaScript |
$(document).ready(function() {
var $validator = $("#newalum").validate({
rules: {
name: {
required: true,
minlength: 3
},
email: {
email: true
}
},
messages: {
name: {
required: "Debe ingresar el nombre",
minlength: "Debe ingresar al menos 3 ... | JavaScript |
$(document).ready(function() {
var $validator = $("#login").validate({
rules: {
username: {
required: true,
minlength: 3
},
password: {
required: true,
minlength: 3
}
},
messages: {
username: {
required: "Campo requerido",
minlength: ... | JavaScript |
$(document).ready(function() {
$.ajax({
type: "POST",
url: "/alum/menubar/getStudents/",
dataType: "json",
data: "{}",
contentType: "application/json; charset=utf-8",
success: function(data) {
var datafromServer = data;
$("#studentsearch"... | JavaScript |
/*
* HTML5 Sortable jQuery Plugin
* http://farhadi.ir/projects/html5sortable
*
* Copyright 2012, Ali Farhadi
* Released under the MIT license.
*/
(function($) {
var dragging, placeholders = $();
$.fn.sortable = function(options) {
var method = String(options);
options = $.extend({
connectWith: false
}, opti... | JavaScript |
/* Flot plugin for automatically redrawing plots as the placeholder resizes.
Copyright (c) 2007-2013 IOLA and Ole Laursen.
Licensed under the MIT license.
It works by listening for changes on the placeholder div (through the jQuery
resize event plugin) - if the size changes, it will redraw the plot.
There are no opt... | JavaScript |
/* Flot plugin for stacking data sets rather than overlyaing them.
Copyright (c) 2007-2013 IOLA and Ole Laursen.
Licensed under the MIT license.
The plugin assumes the data is sorted on x (or y if stacking horizontally).
For line charts, it is assumed that if a line has an undefined gap (from a
null point), then the ... | JavaScript |
/* Javascript plotting library for jQuery, version 0.8.1.
Copyright (c) 2007-2013 IOLA and Ole Laursen.
Licensed under the MIT license.
*/
// first an inline dependency, jquery.colorhelpers.js, we inline it here
// for convenience
/* Plugin for jQuery for working with colors.
*
* Version 1.1.
*
* Inspiration fr... | JavaScript |
(function(){
var nv = window.nv || {};
nv.version = '1.1.10b';
nv.dev = true //set false when in production
window.nv = nv;
nv.tooltip = {}; // For the tooltip system
nv.utils = {}; // Utility subsystem
nv.models = {}; //stores all the possible models/components
nv.charts = {}; //stores all the ready to use charts... | JavaScript |
nv.utils.windowSize = function() {
// Sane defaults
var size = {width: 640, height: 480};
// Earlier IE uses Doc.body
if (document.body && document.body.offsetWidth) {
size.width = document.body.offsetWidth;
size.height = document.body.offsetHeight;
}
// IE can use depending o... | JavaScript |
nv.models.pieChart = function() {
"use strict";
//============================================================
// Public Variables with Default Settings
//------------------------------------------------------------
var pie = nv.models.pie()
, legend = nv.models.legend()
;
var margin = {top: 30, r... | JavaScript |
nv.models.legend = function() {
"use strict";
//============================================================
// Public Variables with Default Settings
//------------------------------------------------------------
var margin = {top: 5, right: 0, bottom: 5, left: 0}
, width = 400
, height = 20
, g... | JavaScript |
nv.models.pie = function() {
"use strict";
//============================================================
// Public Variables with Default Settings
//------------------------------------------------------------
var margin = {top: 0, right: 0, bottom: 0, left: 0}
, width = 500
, height = 500
, get... | JavaScript |
function randomData(e, t) {
var n = [], r = [ "circle", "cross", "triangle-up", "triangle-down", "diamond", "square" ], s = d3.random.normal();
for (i = 0; i < e; i++) {
n.push({
key: "Group " + i,
values: []
});
for (j = 0; j < t; j++) n[i].values.push({
... | JavaScript |
$(function() {
//Basic Flot Graph
var d1 = [];
for (var i = 0; i < 14; i += 0.5) {
d1.push([i, Math.sin(i)]);
}
var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
// A null signifies separate line segments
var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
$.plot("#flotOne", [ d1, d2, d3 ]);
//Ser... | JavaScript |
/*!jQuery Knob*/
/**
* Downward compatible, touchable dial
*
* Version: 1.2.0 (15/07/2012)
* Requires: jQuery v1.7+
*
* Copyright (c) 2012 Anthony Terrien
* Under MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to vor, eskimoblood... | JavaScript |
function generate(layout) {
var n = noty({
text: layout,
type: 'alert',
dismissQueue: true,
layout: layout,
theme: 'defaultTheme'
});
console.log('html: '+n.options.id);
}
function generateAll() {
generate('top');
generate('topCenter');
generate('topLeft');
generate('... | JavaScript |
;(function($) {
$.noty.layouts.centerRight = {
name: 'centerRight',
options: { // overrides options
},
container: {
object: '<ul id="noty_centerRight_layout_container" />',
selector: 'ul#noty_centerRight_layout_container',
style: function() {
$(this).css({
right: 20,
position: 'fixed',... | JavaScript |
;(function($) {
$.noty.layouts.inline = {
name: 'inline',
options: {},
container: {
object: '<ul id="noty_inline_layout_container" />',
selector: 'ul#noty_inline_layout_container',
style: function() {
$(this).css({
width: '100%',
height: 'auto',
margin: 0,
padding: 0,
listS... | JavaScript |
;(function($) {
$.noty.layouts.bottom = {
name: 'bottom',
options: {},
container: {
object: '<ul id="noty_bottom_layout_container" />',
selector: 'ul#noty_bottom_layout_container',
style: function() {
$(this).css({
bottom: 0,
left: '5%',
position: 'fixed',
width: '90%',
hei... | JavaScript |
;(function($) {
$.noty.layouts.bottomRight = {
name: 'bottomRight',
options: { // overrides options
},
container: {
object: '<ul id="noty_bottomRight_layout_container" />',
selector: 'ul#noty_bottomRight_layout_container',
style: function() {
$(this).css({
bottom: 20,
right: 20,
... | JavaScript |
;(function($) {
$.noty.layouts.topCenter = {
name: 'topCenter',
options: { // overrides options
},
container: {
object: '<ul id="noty_topCenter_layout_container" />',
selector: 'ul#noty_topCenter_layout_container',
style: function() {
$(this).css({
top: 20,
left: 0,
position: 'fix... | JavaScript |
;(function($) {
$.noty.layouts.center = {
name: 'center',
options: { // overrides options
},
container: {
object: '<ul id="noty_center_layout_container" />',
selector: 'ul#noty_center_layout_container',
style: function() {
$(this).css({
position: 'fixed',
width: '310px',
height... | JavaScript |
;(function($) {
$.noty.layouts.bottomLeft = {
name: 'bottomLeft',
options: { // overrides options
},
container: {
object: '<ul id="noty_bottomLeft_layout_container" />',
selector: 'ul#noty_bottomLeft_layout_container',
style: function() {
$(this).css({
bottom: 20,
left: 20,
pos... | JavaScript |
;(function($) {
$.noty.layouts.bottomCenter = {
name: 'bottomCenter',
options: { // overrides options
},
container: {
object: '<ul id="noty_bottomCenter_layout_container" />',
selector: 'ul#noty_bottomCenter_layout_container',
style: function() {
$(this).css({
bottom: 20,
left: 0,
... | JavaScript |
;(function($) {
$.noty.layouts.topLeft = {
name: 'topLeft',
options: { // overrides options
},
container: {
object: '<ul id="noty_topLeft_layout_container" />',
selector: 'ul#noty_topLeft_layout_container',
style: function() {
$(this).css({
top: 20,
left: 20,
position: 'fixed',... | JavaScript |
;(function($) {
$.noty.layouts.centerLeft = {
name: 'centerLeft',
options: { // overrides options
},
container: {
object: '<ul id="noty_centerLeft_layout_container" />',
selector: 'ul#noty_centerLeft_layout_container',
style: function() {
$(this).css({
left: 20,
position: 'fixed',
... | JavaScript |
;(function($) {
$.noty.layouts.top = {
name: 'top',
options: {},
container: {
object: '<ul id="noty_top_layout_container" />',
selector: 'ul#noty_top_layout_container',
style: function() {
$(this).css({
top: 0,
left: '5%',
position: 'fixed',
width: '90%',
height: 'auto',
... | JavaScript |
;(function($) {
$.noty.layouts.topRight = {
name: 'topRight',
options: { // overrides options
},
container: {
object: '<ul id="noty_topRight_layout_container" />',
selector: 'ul#noty_topRight_layout_container',
style: function() {
$(this).css({
top: 20,
right: 20,
position: 'fi... | JavaScript |
;(function($) {
$.noty.themes.defaultTheme = {
name: 'defaultTheme',
helpers: {
borderFix: function() {
if (this.options.dismissQueue) {
var selector = this.options.layout.container.selector + ' ' + this.options.layout.parent.selector;
switch (this.options.layout.name) {
case 'top':
... | JavaScript |
/**
* noty - jQuery Notification Plugin v2.1.0
* Contributors: https://github.com/needim/noty/graphs/contributors
*
* Examples and Documentation - http://needim.github.com/noty/
*
* Licensed under the MIT licenses:
* http://www.opensource.org/licenses/mit-license.php
*
**/
if (typeof Object.create !== 'functi... | JavaScript |
/**
* Map Icons created by Scott de Jonge
*
* @version 1.0
* @url http://map-icons.com
*
*/
var Marker = function(options) {
google.maps.Marker.apply(this, arguments);
if (options.label) {
this.MarkerLabel = new MarkerLabel({
map: this.map,
marker: this,
text: options.label
});
this.MarkerLabel... | JavaScript |
/* =============================================================
* flatui-radio.js v0.0.2
* ============================================================ */
!function ($) {
/* RADIO PUBLIC CLASS DEFINITION
* ============================== */
var Radio = function (element, options) {
this.init(element, opti... | JavaScript |
$(function(){
// global setting override
/*
$.extend($.gritter.options, {
class_name: 'gritter-light', // for light notifications (can be added directly to $.gritter.add too)
position: 'bottom-left', // possibilities: bottom-left, bottom-right, top-left, top-right
fade_in_speed: 100, // how ... | JavaScript |
$(function(){
var ul = $('#upload ul');
$('#drop a').click(function(){
// Simulate a click on the file input button
// to show the file browser dialog
$(this).parent().find('input').click();
});
// Initialize the jQuery File Upload plugin
$('#upload').fileupload({
... | JavaScript |
$(document).ready(function(){
/* Auto size for text area */
$('textarea').autosize();
// jQuery UI Datepicker
var datepickerSelector = '#datepicker';
$(datepickerSelector).datepicker({
showOtherMonths: true,
selectOtherMonths: true,
dateFormat: "d MM, yy",
yearRange: '-1:+1'
}).prev('.btn').on... | JavaScript |
/*
* Gritter for jQuery
* http://www.boedesign.com/
*
* Copyright (c) 2012 Jordan Boesch
* Dual licensed under the MIT and GPL licenses.
*
* Date: February 24, 2012
* Version: 1.7.4
*/
(function($){
/**
* Set it up as an object under the jQuery namespace
*/
$.gritter = {};
/**
* Set up global optio... | JavaScript |
/*
jQuery Tags Input Plugin 1.3.3
Copyright (c) 2011 XOXCO, Inc
Documentation for this plugin lives here:
http://xoxco.com/clickable/jquery-tags-input
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
ben@xoxco.com
*/
(function($) {
var delimiter = new Array();
var t... | JavaScript |
$('document').ready(function(){
$('#Grid').mixitup();
}); | JavaScript |
/*
Created 09/27/09
Questions/Comments: jorenrapini@gmail.com
COPYRIGHT NOTICE
Copyright 2009 Joren Rapini
*/
$(document).ready(function(){
// Place ID's of all required fields here.
required = ["nombre", "apellido", "email", "comentario"];
// If using an ID other than #email or #er... | JavaScript |
/*
* AnythingSlider Slide FX 1.5.7 for AnythingSlider v1.7.11+
* By Rob Garrison (aka Mottie & Fudgey)
* Dual licensed under the MIT and GPL licenses.
*/
(function($) {
$.fn.anythingSliderFx = function(effects, options){
// variable sizes shouldn't matter - it's just to get an idea to get the elements o... | JavaScript |
/*
AnythingSlider v1.7.12
Original by Chris Coyier: http://css-tricks.com
Get the latest version: https://github.com/ProLoser/AnythingSlider
To use the navigationFormatter function, you must have a function that
accepts two paramaters, and returns a string of HTML text.
index = integer index (1 based);... | JavaScript |
/*
* Style File - jQuery plugin for styling file input elements
*
* Copyright (c) 2007-2008 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Based on work by Shaun Inman
* http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_wi... | JavaScript |
/*
* AnythingSlider Video Controller 1.0 beta for AnythingSlider v1.6+
* By Rob Garrison (aka Mottie & Fudgey)
* Dual licensed under the MIT and GPL licenses.
*/
(function($) {
$.fn.anythingSliderVideo = function(options){
//Set the default values, use comma to separate the settings, example:
var def... | JavaScript |
/********* Source File: src/elycharts_defaults.js*********/
/*!*********************************************************************
* ELYCHARTS v2.1.4-SNAPSHOT $Id: elycharts.js 52 2011-08-07 19:57:09Z stefano.bagnara@gmail.com $
* A Javascript library to generate interactive charts with vectorial graphics.
*
* Co... | JavaScript |
// ┌────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.1.0 - JavaScript Vector Library │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
// │ Copyrig... | JavaScript |
/**
* jquery.dependClass - Attach class based on first class in list of current element
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* Licensed under the MIT (MIT-LICENSE.txt).
*
* @author Egor Khmelev
* @version 0.1.0-BETA ($Id$)
*
**/
(function($) {
$.baseClass = function(obj){
obj = $(obj);... | JavaScript |
// Simple JavaScript Templating
// John Resig - http://ejohn.org/ - MIT Licensed
(function(){
var cache = {};
this.tmpl = function tmpl(str, data){
// Figure out if we're getting a template, or if we need to
// load the template - and be sure to cache the result.
var fn = !/\W/.test(str) ?
cach... | JavaScript |
/**
* Copyright 2010 Tim Down.
*
* 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 a... | JavaScript |
/**
* jquery.numberformatter - Formatting/Parsing Numbers in jQuery
*
* Written by
* Michael Abernethy (mike@abernethysoft.com),
* Andrew Parry (aparry0@gmail.com)
*
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* @author Michael Abernethy, Andrew Parry
*... | JavaScript |
/**
* draggable - Class allows to make any element draggable
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* Licensed under the MIT (MIT-LICENSE.txt).
*
* @author Egor Khmelev
* @version 0.1.0-BETA ($Id$)
*
**/
(function( $ ){
function Draggable(){
this._init.apply( this, arguments );
};
... | JavaScript |
/**
* jquery.slider - Slider ui control in jQuery
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* Licensed under the MIT (MIT-LICENSE.txt).
*
* @author Egor Khmelev
* @version 1.1.0-RELEASE ($Id$)
*
* Dependencies
*
* jQuery (http://jquery.com)
* jquery.numberformatter (http://code.google.com/p/... | JavaScript |
(function($) {
var defaultsettings = {
'bgColor' : '#ccc',
'fgColor' : 'red',
'size' : 160,
'donutwidth': 40,
'textsize': 16,
'legend': false
}
var methods = {
init : function(options) {
var initcanvas=true;
if (typeof(options) == "object")
{
... | JavaScript |
/**
* Overscroll v1.6.3
* A jQuery Plugin that emulates the iPhone scrolling experience in a browser.
* http://azoffdesign.com/overscroll
*
* Intended for use with the latest jQuery
* http://code.jquery.com/jquery-latest.js
*
* Copyright 2012, Jonathan Azoff
* Dual licensed under the MIT or GPL Version 2 li... | JavaScript |
/*
Flot plugin for selecting regions.
The plugin defines the following options:
selection: {
mode: null or "x" or "y" or "xy",
color: color
}
Selection support is enabled by setting the mode to one of "x", "y" or
"xy". In "x" mode, the user will only be able to specify the x range,
similarly for "y" mode... | JavaScript |
/*
Flot plugin for showing crosshairs, thin lines, when the mouse hovers
over the plot.
crosshair: {
mode: null or "x" or "y" or "xy"
color: color
lineWidth: number
}
Set the mode to one of "x", "y" or "xy". The "x" mode enables a
vertical crosshair that lets you trace the values on the x axis, "y"
en... | JavaScript |
/*
Flot plugin for computing bottoms for filled line and bar charts.
The case: you've got two series that you want to fill the area
between. In Flot terms, you need to use one as the fill bottom of the
other. You can specify the bottom of each data point as the third
coordinate manually, or you can use this plugin to ... | JavaScript |
// Copyright 2006 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 law or agreed to in wr... | JavaScript |
/*
Flot plugin for automatically redrawing plots when the placeholder
size changes, e.g. on window resizes.
It works by listening for changes on the placeholder div (through the
jQuery resize event plugin) - if the size changes, it will redraw the
plot.
There are no options. If you need to disable the plugin for some... | JavaScript |
/*
Flot plugin for thresholding data. Controlled through the option
"threshold" in either the global series options
series: {
threshold: {
below: number
color: colorspec
}
}
or in a specific series
$.plot($("#placeholder"), [{ data: [ ... ], threshold: { ... }}])
The data points below "bel... | JavaScript |
/*
Flot plugin that adds some extra symbols for plotting points.
The symbols are accessed as strings through the standard symbol
choice:
series: {
points: {
symbol: "square" // or "diamond", "triangle", "cross"
}
}
*/
(function ($) {
function processRawData(plot, series, datapoints) {
... | JavaScript |
/* Plugin for jQuery for working with colors.
*
* Version 1.1.
*
* Inspiration from jQuery color animation plugin by John Resig.
*
* Released under the MIT license by Ole Laursen, October 2009.
*
* Examples:
*
* $.color.parse("#fff").scale('rgb', 0.25).add('a', -0.5).toString()
* var c = $.color.extrac... | JavaScript |
/*
Flot plugin for stacking data sets, i.e. putting them on top of each
other, for accumulative graphs.
The plugin assumes the data is sorted on x (or y if stacking
horizontally). For line charts, it is assumed that if a line has an
undefined gap (from a null point), then the line above it should have
the same gap - i... | JavaScript |
/*
Flot plugin for rendering pie charts. The plugin assumes the data is
coming is as a single data value for each series, and each of those
values is a positive value or zero (negative numbers don't make
any sense and will cause strange effects). The data values do
NOT need to be passed in as percentage values... | JavaScript |
/*
Flot plugin for adding panning and zooming capabilities to a plot.
The default behaviour is double click and scrollwheel up/down to zoom
in, drag to pan. The plugin defines plot.zoom({ center }),
plot.zoomOut() and plot.pan(offset) so you easily can add custom
controls. It also fires a "plotpan" and "plotzoom" even... | JavaScript |
/*! Javascript plotting library for jQuery, v. 0.7.
*
* Released under the MIT license by IOLA, December 2007.
*
*/
// first an inline dependency, jquery.colorhelpers.js, we inline it here
// for convenience
/* Plugin for jQuery for working with colors.
*
* Version 1.1.
*
* Inspiration from jQuery color ani... | JavaScript |
/*
Flot plugin for plotting images, e.g. useful for putting ticks on a
prerendered complex visualization.
The data syntax is [[image, x1, y1, x2, y2], ...] where (x1, y1) and
(x2, y2) are where you intend the two opposite corners of the image to
end up in the plot. Image must be a fully loaded Javascript image (you
ca... | JavaScript |
/********* Source File: src/elycharts_defaults.js*********/
/*!*********************************************************************
* ELYCHARTS v2.1.4-SNAPSHOT $Id: elycharts.js 52 2011-08-07 19:57:09Z stefano.bagnara@gmail.com $
* A Javascript library to generate interactive charts with vectorial graphics.
*
* Co... | JavaScript |
/**
* jquery.dependClass - Attach class based on first class in list of current element
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* Licensed under the MIT (MIT-LICENSE.txt).
*
* @author Egor Khmelev
* @version 0.1.0-BETA ($Id$)
*
**/
(function($) {
$.baseClass = function(obj){
obj = $(obj);... | JavaScript |
// Simple JavaScript Templating
// John Resig - http://ejohn.org/ - MIT Licensed
(function(){
var cache = {};
this.tmpl = function tmpl(str, data){
// Figure out if we're getting a template, or if we need to
// load the template - and be sure to cache the result.
var fn = !/\W/.test(str) ?
cach... | JavaScript |
/**
* Copyright 2010 Tim Down.
*
* 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 a... | JavaScript |
/**
* jquery.numberformatter - Formatting/Parsing Numbers in jQuery
*
* Written by
* Michael Abernethy (mike@abernethysoft.com),
* Andrew Parry (aparry0@gmail.com)
*
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* @author Michael Abernethy, Andrew Parry
*... | JavaScript |
/**
* draggable - Class allows to make any element draggable
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* Licensed under the MIT (MIT-LICENSE.txt).
*
* @author Egor Khmelev
* @version 0.1.0-BETA ($Id$)
*
**/
(function( $ ){
function Draggable(){
this._init.apply( this, arguments );
};
... | JavaScript |
/**
* jquery.slider - Slider ui control in jQuery
*
* Written by
* Egor Khmelev (hmelyoff@gmail.com)
*
* Licensed under the MIT (MIT-LICENSE.txt).
*
* @author Egor Khmelev
* @version 1.1.0-RELEASE ($Id$)
*
* Dependencies
*
* jQuery (http://jquery.com)
* jquery.numberformatter (http://code.google.com/p/... | JavaScript |
/*!
Component bk-slider and bk-input-slider based on customization of ui-slider on jQuery UI Slider 1.8.21
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Slider
*
* Depends:
* jquery... | JavaScript |
/*!
* jQuery UI Slider 1.8.24
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Slider
*
* Depends:
* jquery.ui.core.js
* jquery.ui.mouse.js
* jquery.ui.widget.js
*/
(f... | JavaScript |
/*!
* jQuery UI 1.8.21
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI
*/
(function( $, undefined ) {
// prevent duplicate loading
// this is only a problem because we prox... | JavaScript |
(function($) {
var defaultsettings = {
'bgColor' : '#ccc',
'fgColor' : 'red',
'size' : 160,
'donutwidth': 40,
'textsize': 16,
'legend': false
}
var methods = {
init : function(options) {
var initcanvas=true;
if (typeof(options) == "object")
{
... | JavaScript |
/**
* Overscroll v1.6.3
* A jQuery Plugin that emulates the iPhone scrolling experience in a browser.
* http://azoffdesign.com/overscroll
*
* Intended for use with the latest jQuery
* http://code.jquery.com/jquery-latest.js
*
* Copyright 2012, Jonathan Azoff
* Dual licensed under the MIT or GPL Version 2 li... | JavaScript |
//<![CDATA[
$(document).ready(function() {
//Execute the slideShow, set 6 seconds for each images
slideShow(3000);
});
function slideShow(speed) {
//append a LI item to the UL list for displaying caption
$('ul.slideshow').append('<li id="slideshow-caption" class="caption"><div class="slideshow-caption-container"><... | JavaScript |
//Recent Posts Script by bloggerplugins.org
var postTitleOriginal, myLink, myDiv, myImage,mySeparator;
var main;
var float_clear=false;
var flag = 0;
function bprecentpostswiththumbnails(json) {
for (var i = 0; i < numberOfPosts; i++) {
if (i == json.feed.entry.length) break;
var s;
var entry = json... | 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 law or agreed to in w... | 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 law or agreed to in w... | 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 law or agreed to in w... | 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 law or agreed to in w... | 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 law or agreed to in w... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.