code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
function useful_banner_manager_rotate_banners(useful_banner_manager_banners_rotation_block, interval_between_rotations){
jQuery(function($){
$("#"+useful_banner_manager_banners_rotation_block+" .useful_banner_manager_rotating_banner").each(function(){
if($(this).css("display")!="none"){
... | JavaScript |
// <?php !! This fools phpdocumentor into parsing this file
/**
* @version $Id: joomla.javascript.js 14401 2010-01-26 14:10:00Z louis $
* @package Joomla
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL
* Joomla! is Free Software
*/
/**
* Overlib Styling Declarati... | JavaScript |
F=2;//choices id
var c;
var a = new Array();
function show_other_input(num, form_id) {
for (k=0;k<50;k++)
if (document.getElementById(num+"_element"+form_id+k))
if (document.getElementById(num+"_element"+form_id+k).getAttribute('other'))
if (document.getElementById(num+"_element"+form_id+k).getAtt... | JavaScript |
/**
* jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget.
* @requires jQuery v1.2 or above
*
* http://gmarwaha.com/jquery/jcarousellite/
*
* Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org... | JavaScript |
var scrolltotop={
setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
controlHTML: '<img style="z-index:2;" src="'+site_url+'/wp-content/uploads/images/gotop.png" />', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
controlattrs: {offsetx:5, offsety:5}, //offse... | JavaScript |
/**
* jQuery Skitter Slideshow
* @name jquery.skitter.js
* @description Slideshow
* @author Thiago Silva Ferreira - http://thiagosf.net
* @version 4.2.1
* @date August 04, 2010
* @update April 25, 2013
* @copyright (c) 2010 Thiago Silva Ferreira - http://thiagosf.net
* @license Dual licensed under the... | 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 |
/* modified from http://stackoverflow.com/a/12459801 */
$(function (){
var createList = function(selector){
var ul = $('<ul>');
var selected = $(selector);
if (selected.length === 0){
return;
}
selected.clone().each(function (i,e){
var p = $(e).chi... | JavaScript |
// Wie schnell das Geschoss fliegt
var geschwindigkeit : float = 50000;
// Die Reichweite bis zum Selbstzerstoeren des Geschoss
private var reichweite : float = 40;
// Die zurueckgelegte Distanz des Geschoss
var distanz : float = 0;
var schadenspunkte : float = 25;
function Update ()
{
// Time.deltaTime liefert di... | JavaScript |
/*Dieses Skript dient dazu Gegner, die aus nicht reproduzierbaren Gründen die Spielflaeche
verlassen zu loeschen und ein weiterspielen so zu ermoeglichen. Skript-Anwendung auf den
Grenzen der Welt und damit am besten direkt den Kamerastoppern.*/
var levelMaster : LevelMaster;
function Start()
{
levelMaster = GameObj... | JavaScript |
// Panzervariablen
var geschwindigkeitsVarianz : Vector2 = Vector2(5, 10); // zweidimensionaler Vektor fuer Zufallsgrenzen
var health : float = 50; // Health des spezifischen Objekts
var schadensRauch : ParticleEmitter; // Zur Visualisierung des Schadens
// Maximale Gesundheit zum Initialisieren bei der Gen... | JavaScript |
// Wie schnell wird bewegt, rotiert, gekippt
var Sensibilitaet : float = 3000;
@ HideInInspector
var YRotation : float;
@ HideInInspector
var XRotation : float;
@ HideInInspector
var CurrentYRotation : float;
@ HideInInspector
var CurrentXRotation : float;
@ HideInInspector
var YRotationGeschwindigk... | JavaScript |
// Hier noch Lebenspunkte und ggf. Spielende einfuegen
var levelMaster : LevelMaster;
// Menue
var LostMenu : GameObject; // Menue fuer verloren
// Sounds
var enemyPassed : AudioClip; // Sounddatei Gegner im Ziel
var lostArea : AudioClip; // Sounddatei Spiel verloren
function Start()
{
/*Findwith Tag ist schne... | JavaScript |
// Menu
var PauseMenu : GameObject;
var WinMenu : GameObject;
//var playerDamage = 0;
// Spielstatus
var waveActive : boolean = false; // Welle gerade im Moment aktiv?
var spawnEnemies : boolean = false; // Werden Gegner gespawnt?
var healthCount : int = 10;
var scoreCount : int = 0;
var cashCount : int = ... | JavaScript |
// Referenz auf den LevelMaster
var levelMaster : LevelMaster;
// Mit LevelMaster verknüpfen
function Start() {
levelMaster = GameObject.FindWithTag("LevelMaster").GetComponent(LevelMaster);
levelMaster.SaveHighscore();
}
function OnTryAgain() {
Application.LoadLevel("Desert");
}
// Neustart-Funktion... | JavaScript |
// NGUI items
private var buildPanelOpen : boolean = false; // Baumenue offen/geschlossen
var buildPanelTweener : TweenPosition; // Handler für das Tween-Skript
var buildPanelArrowTweener : TweenRotation; // Handler für das Tween-Skript
// Placement Plane items
var placementPlanesRoot : Transform; // Null-Pare... | JavaScript |
// Dieses Skript muss auf ein einfaches (unsichtbares) Grundobjekt. Diesem wird die
// MainCamera untergeordnet. Gezwungen zu Folgen, kann man dann durch die Bewegung
// des unsichtbaren Grundobjekts die Kamera durch die Spielwelt steuern.
// Ein weiterer Vorteil des Grundobjekts bietet die Kollisionserkennung um so... | JavaScript |
private var menueOpen : boolean = false; // Baumenue offen/geschlossen
var menueTweener : TweenPosition; // Handler für das Tween-Skript
var levelauswahl : GameObject[]; // Array fuer Levels
var HighscoreParent : GameObject; // Parent fuer das Highscore-Menue
var ControllsParent : GameObject; // Parent fuer das Men... | JavaScript |
/* Hier wird FlakBullet zum Spawnen eingefuegt
Drag-And-Drop des getraillerten Prefab! */
var myProjectile : GameObject;
/* Zeit in Sekunden zum Nachladen der Flak */
var reloadTime : float = 1f;
/* Drehgeschwindigkeit der Flak */
var turnSpeed : float = 5f;
/* Zusaetzliche Variable zum Innehalten (Zielpause)
vor d... | JavaScript |
// Fortsetzen
function OnContinue() {
Time.timeScale = 1.0; // Zeit wieder normal weiterlaufen lassen.
this.gameObject.SetActive(false); // Menue ausblenden
}
// Referenz auf LevelMaster
var levelMaster : LevelMaster;
// mit LevelMaster verknuepfen
function Start(){
levelMaster = GameObject.FindWit... | JavaScript |
// Hier Prefab fuer Explosion reinladen
var myExplosion : GameObject;
//
var myTarget : Transform;
// Wie schnell das Geschoss fliegt
var geschwindigkeit : float = 50;
// Die Reichweite bis zum Selbstzerstoeren des Geschoss
private var reichweite : float = 1000;
// Die zurueckgelegte Distanz des Geschoss
var distanz ... | JavaScript |
#pragma strict
var spawnHoehenVarianz : Vector2 = Vector2(30, 40); // zweidimensionaler Vektor fuer Zufallsgrenzen
var geschwindigkeitsVarianz : Vector2 = Vector2(10,15); // zweidimensionaler Vektor fuer Zufallsgrenzen
var geschwindigkeit : float = 10;
var health : float = 50; // health des spezifischen Objekts... | JavaScript |
// Wie schnell das Geschoss fliegt
var geschwindigkeit : float = 50000;
// Die Reichweite bis zum Selbstzerstoeren des Geschoss
private var reichweite : float = 40;
// Die zurueckgelegte Distanz des Geschoss
var distanz : float = 0;
var schadenspunkte : float = 2;
function Update() {
// Time.deltaTime li... | JavaScript |
// Eine Teständerung
#pragma strict
function Start () {
}
function Update () {
} | JavaScript |
// Referenz auf den LevelMaster
var levelMaster : LevelMaster;
function Start() {
// Mit LevelMaster verknüpfen
levelMaster = GameObject.FindWithTag("LevelMaster").GetComponent(LevelMaster);
// Bei Sieg kann automatisch der Highscore mit gespeichert werden!
levelMaster.SaveHighscore();
}
// Anwendung be... | JavaScript |
/* Hier wird ArtilleryBullet zum Spawnen eingefuegt
Drag-And-Drop des getraillerten Prefab! */
var myProjectile : GameObject;
/* Zeit in Sekunden zum Nachladen der Artillery */
var reloadTime : float = 1f;
/* Drehgeschwindigkeit der Artillery */
var turnSpeed : float = 5f;
/* Zusaetzliche Variable zum Innehalten (Zie... | JavaScript |
/* Hier wird FlakBullet zum Spawnen eingefuegt
Drag-And-Drop des getraillerten Prefab! */
var myProjectile : GameObject;
/* Zeit in Sekunden zum Nachladen der Flak */
var reloadTime : float = 0.1f;
/* Drehgeschwindigkeit der Flak */
var turnSpeed : float = 10f;
/* Zusaetzliche Variable zum Innehalten (Zielpause... | JavaScript |
$(document).ready(function(){
$('#frame_chatbox').replaceWith('<iframe src="/chatbox" width="100%" height="100%" id="frame_chatbox" scrolling="no"></iframe>');
setInterval(function(){
if($('#frame_chatbox').contents().find('#chatbox_option_disco').css('display') == 'none'){
$('#frame_chatbox').conte... | JavaScript |
$(document).ready(function(){
$('.vote-bar').each(function(){
x=$(this).attr('title');
y=x.indexOf('(');
yy=x.indexOf(')');
xr=x.substring(y,yy);
xy=xr.indexOf('vot');
r=xr.substring(1,xy);
a=x.indexOf(':');
b=x.indexOf('%');
ab=x.substring(a,b);
r2=ab.replace(':', '');
v... | JavaScript |
/******************************************
Auto-readmore link script,
(C)2014 by Alamlmarifa
http://alamlmarifa.blogspot.com/
********************************************/
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(... | JavaScript |
function mugokasil(tempe,dele) {
return document.location.href="http://www.amazon.com/dp/"+tempe+"/?tag=accestoexcela-20";
}
function mugokasiluk(tempe,dele) {
return document.location.href="http://www.amazon.co.uk/dp/"+tempe+"/?tag=globcontpricv-21";
}
function mugokasilde(tempe,dele) {
return document.locati... | JavaScript |
AYB.namespace('AYB.ui.haccordion');
$(document).ready(function(){ AYB.ui.haccordion.init(); });
AYB.ui.haccordion = {
_panels: [],
_buttons: [],
_infoPanels: [],
_active: 'start',
_totalPanels: null,
_closedWidth: null,
_defaultWidth: null,
_openWidth: 50,
_animationSpeed: 250,
_widthUnits: '%',
CLASSE... | JavaScript |
AYB.namespace('AYB.ui.rotator');
$(document).ready(function(){ AYB.ui.rotator.init(); });
AYB.ui.rotator = {
_panels: [],
_buttons: [],
_active: 0,
_rotatorTime: 5000,
_panelTimer: '',
CLASSES: {
NAV: 'rotator-nav',
NAV_BTN: 'rotator-nav-btn',
PANEL: 'rpanel',
ACTIVE: 'active'
},
IDS: {
CONTAINE... | JavaScript |
AYB.namespace('AYB.ui.expando');
$(document).ready(function(){ AYB.ui.expando.init(); });
AYB.ui.expando = {
_buttons: [],
_panels: [],
CLASSES: {
PANEL: 'panel',
TITLE: 'title'
},
IDS: {},
SELECTORS: {},
init: function() {
AYB.ui.expando.getElements();
AYB.ui.expando.setUpPanels();
AYB.ui.... | JavaScript |
AYB.namespace('AYB.util.externalInterface');
$(document).ready(function(){ AYB.util.externalInterface.init(); });
AYB.util.externalInterface = {
navElements: [],
active: null,
flashMovie: null,
flashMovieSrc: '../../swf/ExternalInterfaceExample.swf',
flashMovieWidth: 400,
flashMovieHeight: 230,
errorHref: nu... | JavaScript |
AYB.namespace('AYB.util.validate');
AYB.util.validate = {
REGEXP: {
CREDIT_CARD: new RegExp(/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/),
CREDIT_CARD_SECURITY_CODE: new RegExp(/^[0-9]{3,4}$/),
EMAIL: ne... | JavaScript |
AYB.namespace('AYB.util.bitlyizer');
$(document).ready(function(){ AYB.util.bitlyizer.init(); });
AYB.util.bitlyizer = {
apiKey: 'R_0bcc31e00d743678c64a679b4c1fe20b',
loginName: 'allyourbase',
url: 'http://api.bit.ly/v3/shorten',
longUrl: '',
bitlyForm: '',
resultContainer: '',
counter: 0,
IDS: {
bitlyFo... | JavaScript |
var APPLICATION_NAMESPACE = "AYB";
var _global = this;
_global[APPLICATION_NAMESPACE] = {
};
_global[APPLICATION_NAMESPACE].namespace = function() {
var a = arguments, o = null, i, j, d;
for (i = 0; i < a.length; i = i + 1) {
d = a[i].split(".");
o = _global[APPLICATION_NAMESPACE];
for... | JavaScript |
// jQuery SWFObject v1.1.1 MIT/GPL @jon_neal
// http://jquery.thewikies.com/swfobject
(function($, flash, Plugin) {
var OBJECT = 'object',
ENCODE = true;
function _compareArrayIntegers(a, b) {
var x = (a[0] || 0) - (b[0] || 0);
return x > 0 || (
!x &&
a.length > 0 &&
_compareArrayIntegers(a.slice(1)... | JavaScript |
//tell the page javascript is ok
$(document).ready(function() {
$("body").removeClass("nojs");
});
// So IE doesn't throw error
if (!console) {
var console = {
log: function(){},
dir: function(){},
warn: function(){},
info: function(){}
};
} | JavaScript |
//Test for IE6 and under and add 'ie6' class to body tag.
if (YAHOO.env.ua.ie > 0 && YAHOO.env.ua.ie < 7) {
YAHOO.util.Dom.addClass(YAHOO.util.Dom.getElementsBy(function(el){return true;},'body'), 'ie6');
}
//This prototype is provided by the Mozilla foundation and
//is distributed under the MIT license.
//http://w... | JavaScript |
var APPLICATION_NAMESPACE = "AYB";
var _global = this;
_global[APPLICATION_NAMESPACE] = {
};
_global[APPLICATION_NAMESPACE].namespace = function() {
var a = arguments, o = null, i, j, d;
for (i = 0; i < a.length; i = i + 1) {
d = a[i].split(".");
o = _global[APPLICATION_NAMESPACE];
... | JavaScript |
function _getUserAgent() {
var browserName;
//test for MSIE x.x;
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
// capture x.x portion and store as a number
var ieversion = new Number(RegExp.$1);
if (ieversion>=8) {
browserName = 'IE8';
} else if (ieversion>=7) {
browserName = 'IE7';
} el... | JavaScript |
/**
* @fileoverview Custom Scrollbars.
* $Id: ScrollBar.js,v 1.0 2009/01/30 16:20:00 jisham Exp $
*/
AYB.namespace("AYB.ui");
/**
* @constructor
*/
AYB.ui.ScrollBar = function(properties){
//--------------------------------------------------
// Private Properties
//---------------------------------------... | JavaScript |
/**
* @fileoverview Transition of background color on hover
* $Id: OverFade.js,v 1.0 2009/01/30 16:20:00 jisham Exp $
*/
AYB.namespace("AYB.ui");
/**
* @constructor
*/
AYB.ui.OverFade = function(properties){
//--------------------------------------------------
// Private Properties
//--------------------... | JavaScript |
/**
* @fileoverview Accordion Menu.
* $Id: Accordion.js,v 1.0 2009/01/30 16:20:00 jisham Exp $
*/
AYB.namespace("AYB.ui");
/**
* @constructor
*/
AYB.ui.Accordion = function(properties){
//--------------------------------------------------
// Private Properties
//------------------------------------------... | JavaScript |
AYB.namespace("AYB.ui.global");
AYB.ui.global.BaseBox = new Class({
Implements: [Options, Events],
options: {
CLASSES: {
applyWhenTooltip: 'basebox-tooltip'
},
SELECTORS: {
autoClick: '.basebox',
autoTooltip: '.basebox-tooltip'
},
IDS: {
contentWrapper: 'basebox-wrapper',
... | JavaScript |
AYB.namespace("AYB.util");
AYB.util.Validate = {
_findForm: function (form_to_validate) {
if (!form_to_validate) {
return null;
}
form_to_validate = $(form_to_validate);
if (form_to_validate.get("tag") !== "form") {
form_to_validate = form_to_validate.getPa... | JavaScript |
AYB.namespace('AYB.collection');
$(document).ready(function(){ AYB.collection.init(); });
AYB.collection = {
CLASSES: {},
IDS: {},
SELECTORS: {},
init: function() {
AYB.collection.getElements();
AYB.collection.attachListeners();
},
attachListeners: function() {
},
getElements: function() {
}... | JavaScript |
/**
* @fileoverview Brief description of ClassName
* $Id: classTemplate.js,v 1.2 2008/07/16 22:20:47 jsong Exp $
*/
YAHOO.namespace("NAMEITHERE.division");
/**
* @constructor
*/
NAMEITHERE.division.ClassName = function(){
//--------------------------------------------------
// Private Properties
//------... | JavaScript |
AYB.namespace("AYB.collection");
AYB.collection.ClassName = new Class({
Implements: [Options, Events],
options: {
},
initialize: function(options) {
this.setOptions(options);
},
findElements: function() {
},
addListeners: function() {
}
}); | JavaScript |
goog.provide('allyourbase.panelviewer');
goog.provide('allyourbase.panelviewer.Panel');
goog.require('goog.dom');
goog.require('goog.ui.AnimatedZippy');
goog.require('goog.ui.Zippy');
goog.require('goog.ui.ZippyEvent');
allyourbase.panelviewer.makePanels = function(viewSize, data, panelContainer) {
var panels = []... | JavaScript |
// Copyright 2009 Google Inc. All Rights Reserved
goog.provide('tutorial.notepad');
goog.provide('tutorial.notepad.Note');
goog.require('goog.dom');
goog.require('goog.ui.Zippy');
/**
* Iterates over a list of note data objects, creates a Note instance
* for each one, and tells the instance to build its DOM struc... | JavaScript |
function isEmpty(obj) {
if (typeof obj == 'undefined' || obj === null || obj === '' || obj.value == "") return true;
if (typeof obj == 'number' && isNaN(obj)) return true;
if (obj instanceof Date && isNaN(Number(obj))) return true;
return false;
}
function PreSaveAction(travelDt, returnDt... | JavaScript |
/* ------------------------------------------------------------------------
Do it when you're ready dawg!
------------------------------------------------------------------------- */
tabs = {
init : function(){
$('.tabs').each(function(){
var th=$(this),
tContent=$('.tab-content',th),
... | JavaScript |
// Create new HTML5 elements ===================================================
// -----------------------------------------------------------------------------
// This script should load before any others. We want the new elements to be
// parsed before pretty much anything happens.
// Plus, IE does not behave ot... | JavaScript |
(function ($, undefined) {
$.extend(_TMS, {
presets:{
zoomer:{"reverseWay":false,"duration":"800","interval":"1","blocksX":"1","blocksY":"1","easing":"","way":"lines","anim":"zoomer",k:1.8,crds:{bottom:0,right:0}},
fadeThree:{"reverseWay":false,"duration":"800","interval":"1","blocksX":"1","blocksY":"1"... | JavaScript |
/*
jQuery Version: jQuery 1.3.2
Plugin Name: aToolTip V 1.0
Plugin by: Ara Abcarians: http://ara-abcarians.com
License: aToolTip is licensed under a Creative Commons Attribution 3.0 Unported License
Read more about this license at --> http://creativecommons.org/licenses/by/3.0/
*/
(... | JavaScript |
$(document).ready(function() {
// tool tip
$('.normaltip').aToolTip({
toolTipClass: 'aToolTip'});
})
| JavaScript |
/* jQuery based image slider
/* TMSlider 0.3 */
(function($,undefined){
var _TMS=window._TMS=$.fn._TMS=function(_){
_=_||{}
_=$.extend(clone(_TMS),_TMS.presets[_.preset],_)
_.init.call(_.me=_.holder=this,_)
return _.me.data({opt:_})
}
$.extend(_TMS,{
etal:'<div></div>',
items:'.ite... | JavaScript |
/**
* @author Alexander Farkas
* v. 1.21
* upg to jQuery-1.6 by plzkn
*/
;(function($){
if(!document.defaultView||!document.defaultView.getComputedStyle){//IE6-IE8
var oldCurCSS = jQuery.curCSS
jQuery.curCSS = function(elem,name,force){
if(name === 'background-position')
name='backgroundPositi... | 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 res... | JavaScript |
// JSON-Funktionen. JS-Objekte werden dadurch nicht erweitert,
// da dies Probleme mit for..in-Schleifen ausloest (siehe: http://yuiblog.com/blog/2006/09/26/for-in-intrigue/)
// 2007-10-26, mn
// 2008-03-11, mn: Update: Kann jetzt auch Arrays als Values in Objects
// Allgemeine Funktion, die die Arbeit aufteilt... | JavaScript |
// gaz.lite.js - some lite extensions to jQuery event handling.
//
// Copyright © 2007 Studio Associato Di Nunzio e Di Gregorio
//
// Authors:
// Federico Di Gregorio <fog@initd.org>
// Pierluidi Di Nunzio <gg@initd.org>
//
// This program is free software; you can redistribute it and/or modify it
// und... | JavaScript |
// gaz.treestore.js - a jQuery-based library to manage trees
//
// Copyright © 2007 Studio Associato Di Nunzio e Di Gregorio
//
// Authors:
// Federico Di Gregorio <fog@initd.org>
// Pierluidi Di Nunzio <gg@initd.org>
//
// This program is free software; you can redistribute it and/or modify it
// under ... | JavaScript |
// gaz.treeview.js - a jQuery-based library to manage trees
//
// Copyright © 2007 Studio Associato Di Nunzio e Di Gregorio
//
// Authors:
// Federico Di Gregorio <fog@initd.org>
// Pierluidi Di Nunzio <gg@initd.org>
//
// This program is free software; you can redistribute it and/or modify it
// under t... | JavaScript |
(function($) {
$.ec.highlight = function(o) {
return this.queue(function() {
// Create element
var el = $(this), props = ['backgroundImage','backgroundColor','opacity'];
// Set options
var mode = $.ec.setMode(el, o.options.mode || 'show'); // Set Mode
var... | JavaScript |
/**
* imgnotes jQuery plugin
* version 0.1
*
* Copyright (c) 2008 Dr. Tarique Sani <tarique@sanisoft.com>
*
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* @URL http://www.sanisoft.com/blog/2008/05/26/img-notes-jquery-plugin/
* @Example example.html
*
**/
//... | JavaScript |
/*
* Autocomplete - jQuery plugin 1.0
*
* Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
*
* 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: jquery.autocomplete.js... | JavaScript |
/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* $LastChangedDate: 2007... | JavaScript |
/**
* Ajax Queue Plugin
*
* Homepage: http://jquery.com/plugins/project/ajaxqueue
* Documentation: http://docs.jquery.com/AjaxQueue
*/
/**
<script>
$(function(){
jQuery.ajaxQueue({
url: "test.php",
success: function(html){ jQuery("ul").append(html); }
});
jQuery.ajaxQueue({
url: "test.p... | JavaScript |
/*
SWFUpload v1.0.2 Plug-in for SWFUpload v2.1.0
---------------------------------------------
This plug in creates API compatibility with SWFUpload v1.0.2. It
also mimics SWFUpload v1.0.2 behaviors as far as possible.
---------------------------------------------
The purpose of this plugin is to allow ... | JavaScript |
function fileQueued(file, queuelength) {
var listingfiles = document.getElementById("SWFUploadFileListingFiles");
if (!listingfiles.getElementsByTagName("ul")[0]) {
var info = document.createElement("h4");
info.appendChild(document.createTextNode("File queue"));
listingfiles.appendChild(info);
... | JavaScript |
/*
Queue Plug-in
Features:
*Adds a cancelQueue() method for cancelling the entire queue.
*All queued files are uploaded when startUpload() is called.
*If false is returned from uploadComplete then the queue upload is stopped.
If false is not returned (strict comparison) then the queue upload is cont... | JavaScript |
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete.
The FileProgress class is not part of SWFUpload.
*/
/* **********************
Event Handlers
These are my custom event handlers to make my
web application behave the way I went wh... | JavaScript |
/*
A simple class for displaying file information and progress
Note: This is a demonstration only and not part of SWFUpload.
Note: Some have had problems adapting this class in IE7. It may not be suitable for your application.
*/
// Constructor
// file is a SWFUpload file object
// targetID is the HTML elem... | JavaScript |
/*
SWFUpload Graceful Degradation Plug-in
This plugin allows SWFUpload to display only if it is loaded successfully. Otherwise a default form is left displayed.
Usage:
To use this plugin create two HTML containers. Each should have an ID defined. One container should hold the SWFUpload UI. The other... | JavaScript |
function swfUploadLoaded() {
var btnSubmit = document.getElementById("btnSubmit");
var txtLastName = document.getElementById("lastname");
var txtFirstName = document.getElementById("firstname");
var txtEducation = document.getElementById("education");
var txtReferences = document.getElementById("references");... | JavaScript |
/*
A simple class for displaying file information and progress
Note: This is a demonstration only and not part of SWFUpload.
Note: Some have had problems adapting this class in IE7. It may not be suitable for your application.
*/
// Constructor
// file is a SWFUpload file object
// targetID is the HTML elem... | JavaScript |
var FeaturesDemoHandlers = {
swfUploadLoaded : function () {
FeaturesDemo.start(this); // This refers to the SWFObject because SWFUpload calls this with .apply(this).
},
fileDialogStart : function () {
try {
FeaturesDemo.selEventsQueue.options[FeaturesDemo.selEventsQueue.options.length] = new Option("F... | JavaScript |
// Called instead of the SWFUpload _showUI method
var FeaturesDemo = {
start: function (swf_upload_instance) {
FeaturesDemo.SU = swf_upload_instance;
FeaturesDemo.cacheFields();
FeaturesDemo.loadAll();
FeaturesDemo.btnBrowse.onclick = function () {
try {
FeaturesDemo.selectFiles();
} cat... | JavaScript |
function fileQueueError(file, errorCode, message) {
try {
var imageName = "error.gif";
var errorName = "";
if (errorCode === SWFUpload.errorCode_QUEUE_LIMIT_EXCEEDED) {
errorName = "You have attempted to queue too many files.";
}
if (errorName !== "") {
alert(errorName);
return;
}
... | JavaScript |
function fileQueueError(file, errorCode, message) {
try {
var imageName = "error.gif";
var errorName = "";
if (errorCode === SWFUpload.errorCode_QUEUE_LIMIT_EXCEEDED) {
errorName = "You have attempted to queue too many files.";
}
if (errorName !== "") {
alert(errorName);
return;
}
... | JavaScript |
/*
Queue Plug-in
Features:
*Adds a cancelQueue() method for cancelling the entire queue.
*All queued files are uploaded when startUpload() is called.
*If false is returned from uploadComplete then the queue upload is stopped.
If false is not returned (strict comparison) then the queue upload is cont... | JavaScript |
/* **********************
Event Handlers
These are my custom event handlers to make my
web application behave the way I went when SWFUpload
completes different tasks. These aren't part of the SWFUpload
package. They are part of my application. Without these none
of the actions SWFUpload makes... | JavaScript |
/*
SWFUpload Graceful Degradation Plug-in
This plugin allows SWFUpload to display only if it is loaded successfully. Otherwise a default form is left displayed.
Usage:
To use this plugin create two HTML containers. Each should have an ID defined. One container should hold the SWFUpload UI. The other... | JavaScript |
/*
Queue Plug-in
Features:
*Adds a cancelQueue() method for cancelling the entire queue.
*All queued files are uploaded when startUpload() is called.
*If false is returned from uploadComplete then the queue upload is stopped.
If false is not returned (strict comparison) then the queue upload is cont... | JavaScript |
/* This is an example of how to cancel all the files queued up. It's made somewhat generic. Just pass your SWFUpload
object in to this method and it loops through cancelling the uploads. */
function cancelQueue(instance) {
document.getElementById(instance.customSettings.cancelButtonId).disabled = true;
instan... | JavaScript |
/*
A simple class for displaying file information and progress
Note: This is a demonstration only and not part of SWFUpload.
Note: Some have had problems adapting this class in IE7. It may not be suitable for your application.
*/
// Constructor
// file is a SWFUpload file object
// targetID is the HTML elem... | JavaScript |
function fileQueueError(file, errorCode, message) {
try {
var imageName = "error.gif";
var errorName = "";
if (errorCode === SWFUpload.errorCode_QUEUE_LIMIT_EXCEEDED) {
errorName = "You have attempted to queue too many files.";
}
if (errorName !== "") {
alert(errorName);
return;
}
... | JavaScript |
/*
Queue Plug-in
Features:
*Adds a cancelQueue() method for cancelling the entire queue.
*All queued files are uploaded when startUpload() is called.
*If false is returned from uploadComplete then the queue upload is stopped.
If false is not returned (strict comparison) then the queue upload is cont... | JavaScript |
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete.
The FileProgress class is not part of SWFUpload.
*/
/* **********************
Event Handlers
These are my custom event handlers to make my
web application behave the way I went wh... | JavaScript |
/*
A simple class for displaying file information and progress
Note: This is a demonstration only and not part of SWFUpload.
Note: Some have had problems adapting this class in IE7. It may not be suitable for your application.
*/
// Constructor
// file is a SWFUpload file object
// targetID is the HTML elem... | JavaScript |
(function($){
$.jGrowl=function(m,o){
if($("#jGrowl").size()==0){
$("<div id=\"jGrowl\"></div>").addClass($.jGrowl.defaults.position).appendTo("body");
}
$("#jGrowl").jGrowl(m,o);
};
$.fn.jGrowl=function(m,o){
if($.isFunction(this.each)){
var _6=arguments;
return this.each(function(){
var _7=this;
if($(this).data("jGro... | JavaScript |
/**
* jGrowl 1.1.0
*
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Written by Stan Lemon <stanlemon@mac.com>
* Last updated: 2008.06.13
*
* jGrowl is a jQuery plugin implementing unobtrusive userla... | JavaScript |
/*#############################################################
Name: Niceforms
Version: 1.0
Author: Lucian Slatineanu
URL: http://www.badboy.ro/
Feel free to use and modify but please provide credits.
#############################################################*/
//Global Variables
var niceforms = documen... | JavaScript |
/**
* jGrowl 1.1.0
*
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Written by Stan Lemon <stanlemon@mac.com>
* Last updated: 2008.06.13
*
* jGrowl is a jQuery plugin implementing unobtrusive userla... | JavaScript |
/*
* jQuery Horizon Menu Plugin - A little solution for menus and paging for jQuery.
*
* Author: Lander Ontoria <lander@irontec.com>, http://www.irontec.com , http://code.irontec.com
*
* With special thanks Jabi Infante <jabi@irontec.com> (who started the first version of this plugin to work).
*
* Website: ht... | JavaScript |
/*
* ContextMenu - jQuery plugin for right-click context menus
*
* Author: Chris Domigan
* Contributors: Dan G. Switzer, II
* Parts of this plugin are inspired by Joern Zaefferer's Tooltip plugin
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
*... | JavaScript |
/**
* jQuery.timers - Timer abstractions for jQuery
* Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
* Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
* Date: 2009/10/16
*
* @author Blair Mitchelmore
* @version 1.2
*
**/
jQuery.fn.extend({
everyTime: function(interva... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.