code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
* jQuery File Upload Plugin JS Example 7.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, unparam: true, regexp: true */
/*global $, window, docu... | JavaScript |
/*
* jQuery XDomainRequest Transport Plugin 1.1.3
* 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
*
* Based on Julian Aubourg's ajaxHooks xdr.js:
* https://github.com/jaubou... | JavaScript |
/*
* jQuery postMessage Transport Plugin 1.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 */
(... | JavaScript |
#!/usr/bin/env node
/*
* jQuery File Upload Plugin Node.js Example 2.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, regexp: true, unparam: true, s... | JavaScript |
#!/usr/bin/env node
/*
* jQuery File Upload Plugin Node.js Example 2.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, regexp: true, unparam: true, s... | JavaScript |
/*
* jQuery File Upload Plugin Test 7.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, unparam: true */
/*global $, QUnit, window, document, expect,... | JavaScript |
/*
Copyright (C) 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 law or agreed to in writing, softwa... | JavaScript |
/*
* jQuery.splitter.js - two-pane splitter window plugin
*
* version 1.51 (2009/01/09)
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
/**
* The splitter() plugin implements a two-pane resizable splitter wind... | JavaScript |
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
function menu_open() {
menu_canceltimer();
menu_close();
ddmenuitem = $(this).find('ul').css('visibility', 'visible');
}
function menu_close() {
if (ddmenuitem) ddmenuitem.css('visibility', 'hidden');
}
function menu_timer() {
closetim... | JavaScript |
jQuery.expr[':'].Contains = function(a, i, m) {
return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
};
$(function() {
$("#sidebar-nav").accordion({
autoHeight: false,
navigation: true,
collapsible: true
}).accordion("activate", false)
.find('a.link').... | JavaScript |
/*
* Treeview 1.5pre - jQuery plugin to hide and show branches of a tree
*
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
* http://docs.jquery.com/Plugins/Treeview
*
* Copyright (c) 2007 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit... | JavaScript |
$.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
$.browser.ipad = /ipad/.test(navigator.userAgent.toLowerCase());
/**
* Initializes page contents for progressive enhancement.
*/
function initializeContents()
{
// hide all more buttons because they are not needed with JS
$(".element a.mo... | JavaScript |
/**
* SVGPan library 1.2 - phpDocumentor1
* ====================
*
* Given an unique existing element with id "viewport", including the
* the library into any SVG adds the following capabilities:
*
* - Mouse panning
* - Mouse zooming (using the wheel)
* - Object dargging
*
* Known issues:
*
* - Zoomin... | JavaScript |
/*
* iviewer Widget for jQuery UI
* https://github.com/can3p/iviewer
*
* Copyright (c) 2009 - 2012 Dmitry Petrov
* Dual licensed under the MIT and GPL licenses.
* - http://www.opensource.org/licenses/mit-license.php
* - http://www.gnu.org/copyleft/gpl.html
*
* Author: Dmitry Petrov
* Version: 0.7
*/
( fun... | 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 PanZoom Plugin
* Pan and zoom an image within a parent div.
*
* version: 0.9.0
* @requires jQuery v1.4.2 or later (earlier probably work, but untested so far)
*
* Copyright (c) 2011 Ben Lumley
* Examples and documentation at: https://github.com/benlumley/jQuery-PanZoom
*
* Dual licensed under the ... | JavaScript |
/**
* Update the permissions for a given node
*
* @method POST
*
* URL: /alfresco/service/permissions/{store_type}/{store_id}/{id}
*
* store_type: The type of store you want to query, ex: workspace
*
* store_id: The ID of the store you want to query, ex: SpacesStore
*
* id: The UUID of the no... | JavaScript |
/**
* List all of the permissions for a given node including those inherited from a parent node
*
* @method GET
*
* URL: /alfresco/service/permissions/{store_type}/{store_id}/{id}
*
* store_type: The type of store you want to query, ex: workspace
*
* store_id: The ID of the store you want to query, ex: Spa... | JavaScript |
/**
* Update the permissions for a given node
*
* @method POST
*
* URL: /alfresco/service/permissions/{store_type}/{store_id}/{id}
*
* store_type: The type of store you want to query, ex: workspace
*
* store_id: The ID of the store you want to query, ex: SpacesStore
*
* id: The UUID of the no... | JavaScript |
/**
* List all of the permissions for a given node including those inherited from a parent node
*
* @method GET
*
* URL: /alfresco/service/permissions/{store_type}/{store_id}/{id}
*
* store_type: The type of store you want to query, ex: workspace
*
* store_id: The ID of the store you want to query, ex: Spa... | JavaScript |
if (typeof jQuery !== 'undefined') {
(function($) {
$('#spinner').ajaxStart(function() {
$(this).fadeIn();
}).ajaxStop(function() {
$(this).fadeOut();
});
})(jQuery);
}
| JavaScript |
function main()
{
var PRES_STATUS = "pres:status";
var PRES_LASTSTATUS = "pres:lastStatus";
var PRES_UPDATETIME = "pres:updateTime";
var ARG_MYSTATUS = "myStatus";
var status = json.get(ARG_MYSTATUS);
if (status == null || status.length === 0)
{
status.setCode(status.STATUS_BAD_REQUEST, "Mandato... | JavaScript |
function main()
{
var PRES_STATUS = "pres:status";
var PRES_LASTSTATUS = "pres:lastStatus";
var PRES_UPDATETIME = "pres:updateTime";
var ARG_MYSTATUS = "myStatus";
var ARG_PRESENCES = "presences";
// search all statuses for provided usernames
var presencesReq = json.get(ARG_PRESENCES);
if (presencesReq == ... | JavaScript |
var memberships = model.memberships;
for (var i = 0; memberships.length > i; i++ ) {
var membership = memberships[i];
var profile = user.getUser(membership.authority.userName)
membership.email = profile.email;
membership.current = user.name == membership.authority.userName;
}
var presence = {
id: "Prese... | JavaScript |
/**
* Redpill Linpro root namespace.
*
* @namespace Extras
*/
if (typeof RPLP == "undefined" || !RPLP)
{
var RPLP = {};
}
(function()
{
/** YUI Library aliases */
var IdleTimer = YAHOO.util.IdleTimer;
var thisName = "RPLP.PresenceUpdater";
RPLP.PresenceUpdater = function(idleStatus, activ... | JavaScript |
/*
* Copyright (c) 2009 Nicholas C. Zakas
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, ... | JavaScript |
/*
* Copyright (c) 2013 Rasmus Melgaard adopted from IdleTimer by Nicholas C. Zakas
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation t... | JavaScript |
/**
* Redpill Linpro root namespace.
*
* @namespace Extras
*/
if (typeof RPLP == "undefined" || !RPLP)
{
var RPLP = {};
}
/**
* Presence client script
*
* @namespace RPLP
* @class RPLP.Presence
*/
(function()
{
function replaceAll(string, token, newtoken) {
if(token!=newtoken)
while(string.inde... | JavaScript |
/**
* Redpill Linpro root namespace.
*
* @namespace Extras
*/
if (typeof RPLP == "undefined" || !RPLP)
{
var RPLP = {};
}
(function()
{
/** YUI Library aliases */
var Dom = YAHOO.util.Dom;
var PollingTimer = YAHOO.util.PollingTimer;
var thisName = "RPLP.PresenceSimulator";
/* Unknown status... | JavaScript |
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use... | JavaScript |
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/action/action.lib.js">
/**
* ScanFile multiple files action
* @method POST
*/
/**
* Entrypoint required by action.lib.js
*
* @method runAction
* @param p_params {object} Object literal containing files ... | JavaScript |
<import resource="classpath:alfresco/module/alfviral/templates/scripts/ScanFolder.js">
var scanfolder = ScanFolder(args.f, args.p); | JavaScript |
/*
* alfviral 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 Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* alfviral is distributed in the hope that it will be usef... | JavaScript |
logger.log("llamada... ScriptScanFolder");
| JavaScript |
/**
* DocumentList "ScanFile" action
*
* @namespace Alfresco
* @class Alfresco.DocumentList
*/
(function()
{
/**
* ScanFile
*
* @method onActionBackup
* @param file {object} Object literal representing one or more file(s) or folder(s) to be actioned
*/
Alfresco.doclib.Actio... | JavaScript |
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/action/action.lib.js">
/**
* ScanFile multiple files action
* @method POST
*/
/**
* Entrypoint required by action.lib.js
*
* @method runAction
* @param p_params {object} Object literal containing files ... | JavaScript |
<import resource="classpath:alfresco/module/alfviral/templates/scripts/ScanFolder.js">
var scanfolder = ScanFolder(args.f, args.p); | JavaScript |
/*
* alfviral 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 Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* alfviral is distributed in the hope that it will be usef... | JavaScript |
logger.log("llamada... ScriptScanFolder");
| JavaScript |
/**
* DocumentList "ScanFile" action
*
* @namespace Alfresco
* @class Alfresco.DocumentList
*/
(function()
{
/**
* ScanFile
*
* @method onActionBackup
* @param file {object} Object literal representing one or more file(s) or folder(s) to be actioned
*/
Alfresco.doclib.Actio... | JavaScript |
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/action/action.lib.js">
/**
* ScanFile multiple files action
* @method POST
*/
/**
* Entrypoint required by action.lib.js
*
* @method runAction
* @param p_params {object} Object literal containing files ... | JavaScript |
<import resource="classpath:alfresco/module/alfviral/templates/scripts/ScanFolder.js">
var scanfolder = ScanFolder(args.f, args.p); | JavaScript |
logger.log("Scanning document: " + document.displayPath + "/" + document.name);
actions.create("alfviral.virusscan.action").execute(document); | JavaScript |
/*
* alfviral 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 Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* alfviral is distributed in the hope that it will be usef... | JavaScript |
logger.log("llamada... ScriptScanFolder");
| JavaScript |
/**
* DocumentList "ScanFile" action
*
* @namespace Alfresco
* @class Alfresco.DocumentList
*/
(function()
{
/**
* Name of the script below Data Dictionary/Scripts to execute, e.g. "my test script.js"
*/
var JSCRIPT_NAME = "scanfile.post.js";
/**
* Base name for message bundle strings u... | JavaScript |
<import resource="classpath:/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/action/action.lib.js">
/**
* ScanFile multiple files action
* @method POST
*/
/**
* Entrypoint required by action.lib.js
*
* @method runAction
* @param p_params {object} Object literal containing files ... | JavaScript |
<import resource="classpath:alfresco/module/alfviral/templates/scripts/ScanFolder.js">
var scanfolder = ScanFolder(args.f, args.p); | JavaScript |
logger.log("Scanning document: " + document.displayPath + "/" + document.name);
actions.create("alfviral.virusscan.action").execute(document); | JavaScript |
/*
* alfviral 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 Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* alfviral is distributed in the hope that it will be usef... | JavaScript |
logger.log("llamada... ScriptScanFolder");
| JavaScript |
/**
* DocumentList "ScanFile" action
*
* @namespace Alfresco
* @class Alfresco.DocumentList
*/
(function()
{
/**
* Name of the script below Data Dictionary/Scripts to execute, e.g. "my test script.js"
*/
var JSCRIPT_NAME = "scanfile.post.js";
/**
* Base name for message bundle strings u... | JavaScript |
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use... | JavaScript |
BrowserHistoryUtils = {
addEvent: function(elm, evType, fn, useCapture) {
useCapture = useCapture || false;
if (elm.addEventListener) {
elm.addEventListener(evType, fn, useCapture);
return true;
}
else if (elm.attachEvent) {
var r = elm.attachEvent... | JavaScript |
// Flash Player Version Detection - Rev 1.6
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOp... | JavaScript |
/**
* Copyright (C) 20010-2011 Alfresco Share Extras project
*
* This file is part of the Alfresco Share Extras project.
*
* 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://w... | JavaScript |
<import resource="/org/alfresco/components/preview/web-preview.get.js">
| JavaScript |
<import resource="/org/alfresco/components/preview/web-preview.get.js">
| JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2012 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2012 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2012 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2012 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 writing, software
di... | JavaScript |
/*
Copyright 2012 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
// A modified version of bitmap.js from http://rest-term.com/archives/2566/
var Class = {
create : function() {
var properties = arguments[0];
function self() {
this.initialize.apply(this, arguments);
}
for(var i in properties) {
self.prototype[i] = properties[i];
}
if(!self.proto... | JavaScript |
/*
Base.js, version 1.1
Copyright 2006-2007, Dean Edwards
License: http://www.opensource.org/licenses/mit-license.php
*/
var Base = function() {
// dummy
};
Base.extend = function(_instance, _static) { // subclass
var extend = Base.prototype.extend;
// build the prototype
Base._prototyping = true;
var proto... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
/*
Copyright 2010 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 writing, software
di... | JavaScript |
// Spectrum: The No Hassle Colorpicker
// https://github.com/bgrins/spectrum
// Author: Brian Grinstead
// License: MIT
// Requires: jQuery, spectrum.css
(function (window, $, undefined) {
var defaultOpts = {
// Events
beforeShow: noop,
move: noop,
change: noop,
sho... | JavaScript |
/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* @link http://www.phpied.com/rgb-color-parser-in-javascript/
* @license Use it if you like it
*/
function RGBColor(color_string)
{
this.ok = false;
// strip any leading #
if (color_string.charAt(0) == '#') { ... | JavaScript |
/*
* canvg.js - Javascript SVG parser and renderer on Canvas
* MIT Licensed
* Gabe Lerner (gabelerner@gmail.com)
* http://code.google.com/p/canvg/
*
* Requires: rgbcolor.js - http://www.phpied.com/rgb-color-parser-in-javascript/
*/
if(!window.console) {
window.console = {};
window.console.log = func... | JavaScript |
/**
JSZip - A Javascript class for generating Zip files
<http://jszip.stuartk.co.uk>
(c) 2009 Stuart Knightley <stuart [at] stuartk.co.uk>
Licenced under the GPLv3 and the MIT licences
Usage:
zip = new JSZip();
zip.add("hello.txt", "Hello, World!").add("tempfile", "nothing");
zip.folder("images").add("smile... | JavaScript |
/*
* Port of a script by Masanao Izumo.
*
* Only changes : wrap all the variables in a function and add the
* main function to JSZip (DEFLATE compression method).
* Everything else was written by M. Izumo.
*
* Original code can be found here: http://www.onicos.com/staff/iz/amuse/javascript/expert/inflate.txt
*... | 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 |
$().ready(function () {
/*jQuery.browser = {
version: (userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1],
chrome: /chrome/.test( userAgent ),
safari: /webkit/.test( userAgent ) && !/chrome/.test( userAgent ),
opera: /opera/.test( userAgent ),
... | JavaScript |
$(document).ready(function () {
//Sidebar Accordion Menu:
$("#main-nav li ul").hide(); // Hide all sub menus
$("#main-nav li a.current").parent().find("ul").slideToggle("slow"); // Slide down the current menu item's sub menu
$("#main-nav li a.nav-top-item").click( // When a top menu item is clicked...
... | JavaScript |
/*!
* MonthYearPicker JavaScript Library v1.0.1
* http://www.encodeinfotech.com/
* http://www.malappuraminfo.com/info/javascript-month-year-picker
* Copyright 2010, Haris PP (ppharis@gmail.com)
* Dual licensed under the MIT or GPL Version 2 licenses.
* Released under the MIT, BSD, and GPL Licenses.
* Dat... | JavaScript |
/*
Highcharts JS v2.1.9 (2011-11-11)
(c) 2009-2011 Torstein H?nsi
License: www.highcharts.com/license
*/
(function () {
function sa(a, b) {
var c;
a || (a = {});
for (c in b) a[c] = b[c];
return a
}
function ja(a, b) {
return parseInt(a, b || 10)
}
functi... | JavaScript |
/**
* WYSIWYG - jQuery plugin 0.5
*
* Copyright (c) 2008-2009 Juan M Martinez
* http://plugins.jquery.com/project/jWYSIWYG
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* $Id: $
*/
(function ($) {
$.fn.d... | JavaScript |
// Copyright 2006-2007 javascript-array.com
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
// open hidden layer
function mopen(id)
{
// cancel close timer
mcancelclosetime();
// close old layer
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
// get new layer and show it
ddmenuitem = docume... | JavaScript |
/*
* Metadata - jQuery plugin for parsing metadata from elements
*
* Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: j... | JavaScript |
/**
* @license Highcharts JS v2.1.9 (2011-11-11)
* Exporting module
*
* (c) 2010-2011 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, Math, setTimeout */
(function () { // encapsulate
// create shortcuts
var HC = Highcharts,
... | JavaScript |
/**
* Visualize an HTML table using Highcharts. The top (horizontal) header
* is used for series names, and the left (vertical) header is used
* for category names. This function is based on jQuery.
* @param {Object} table The reference to the HTML table to visualize
* @param {Object} options Highcharts options
... | JavaScript |
/*
* Date prototype extensions. Doesn't depend on any
* other code. Doens't overwrite existing methods.
*
* Adds dayNames, abbrDayNames, monthNames and abbrMonthNames static properties and isLeapYear,
* isWeekend, isWeekDay, getDaysInMonth, getDayName, getMonthName, getDayOfYear, getWeekOfYear,
* setDayOfYear, ad... | JavaScript |
function changeDisplay(elementId) {
var element = document.getElementById(elementId);
var displayValue = element.style.display;
switch (displayValue) {
case "block":
element.style.display = "none";
break;
case "none":
element.style.display = "block";
break;
... | JavaScript |
/*
* Facebox (for jQuery)
* version: 1.2 (05/05/2008)
* @requires jQuery v1.2 or later
*
* Examples at http://famspam.com/facebox/
*
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2007, 2008 Chris Wanstrath [ chris@ozmm.org ]
*
* Usage:
*
* jQuery(documen... | JavaScript |
/*
Milonic DHTML Website Navigation Menu - Version 3.5.15
Written by Andy Woolley - Copyright 2003 (c) Milonic Solutions Limited. All Rights Reserved.
Please visit http://www.milonic.co.uk/menu/ for more information.
The Free use of this menu is only available to Non-Profit, Educational & Personal web sites.
... | JavaScript |
/*
Milonic DHTML Website Navigation Menu - Version 3.5.15
Written by Andy Woolley - Copyright 2003 (c) Milonic Solutions Limited. All Rights Reserved.
Please visit http://www.milonic.co.uk/menu/ for more information.
The Free use of this menu is only available to Non-Profit, Educational & Personal web sites.
... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.