code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
////////////////////////////////////////////////////
// controlWindow object
////////////////////////////////////////////////////
function controlWindow( controlForm ) {
// private properties
this._form = controlForm;
// public properties
this.windowType = "controlWindow";
// this.noSuggestionSelection =... | JavaScript |
////////////////////////////////////////////////////
// wordWindow object
////////////////////////////////////////////////////
function wordWindow() {
// private properties
this._forms = [];
// private methods
this._getWordObject = _getWordObject;
//this._getSpellerObject = _getSpellerObject;
this._wo... | JavaScript |
////////////////////////////////////////////////////
// spellChecker.js
//
// spellChecker object
//
// This file is sourced on web pages that have a textarea object to evaluate
// for spelling. It includes the implementation for the spellCheckObject.
//
////////////////////////////////////////////////////
... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
http://www.JSON.org/json2.js
2008-11-19
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This file creates a global JSON object containing two methods: stringify
and parse.
JSON.stringify(value, replacer, space)
... | JavaScript |
/******************************************************
*
* MMobileServer Dialog javascript source
*
******************************************************/
// 设置对话框全局默认配置
(function() {
var d = art.dialog.defaults;
// 如果只使用默认皮肤,可以不填写skin
d.skin = [ 'default', 'chrome', 'facebook', 'aero' ];
//... | JavaScript |
/* BrowserCheck Object
provides most commonly needed browser checking variables
19990326
*/
// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/
function BrowserCheck() {
var b = navigator.appName
if (b=="Nets... | JavaScript |
function getArgs(){
passedArgs=new Array();
search = self.location.href;
search = search.split('?');
if(search.length>1){
argList = search[1];
argList = argList.split('&');
for(var i=0; i<argList.length; i++){
newArg = argList[i];
newArg = argList[i].split('=');
passedArgs[unescap... | JavaScript |
style = "jwchat.css"; // fallback
// look for stylesheet
if (parent.top.stylesheet)
style = parent.top.stylesheet;
else if (top.opener.top.stylesheet)
style = top.opener.top.stylesheet;
else if (top.opener.opener.top.stylesheet)
style = top.opener.opener.top.stylesheet;
document.write('<link rel="styleSheet" typ... | JavaScript |
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
for(var i=0; i<document.images.length; i++)
{
if (navigator.userAgent.indexOf('MSIE') == -1)
return;
if (navigator.userAgent.indexOf('MSIE 5')>0 && navigator.userAgent.indexOf('MSIE 5.5')==-1)
... | JavaScript |
function RosterGroup(name) {
this.name = htmlEnc(name);
this.users = new Array();
this.onlUserCount = 0;
this.messagesPending = 0;
}
function RosterUserAdd2Group(group) {
this.groups = this.groups.concat(group);
}
function RosterUser(jid,subscription,groups,name) {
this.fulljid = jid;
this.jid = cutRes... | JavaScript |
/*
* JWChat, a web based jabber client
* Copyright (C) 2003-2004 Stefan Strigler <steve@zeank.in-berlin.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the Lic... | JavaScript |
<embed src="chat_queue.swf" width="1" height="1" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash">
| JavaScript |
// name: RhymBox
// description: Default set of icons in RhymBox. Created by Greg Fleming as part of his Megapack1 icon collection.
// author: Greg Fleming
// author: Sebastiaan Deckers
// creation: 2002-04-07
var emoticons = new Object();
var emoticonpath = "./images/emoticons/rythmbox/";
emoticons[':cat:'] = 'cat.... | JavaScript |
var VERSION="1.0";
| JavaScript |
var SOUNDS = new Object();
SOUNDS['message_recv'] = "./sounds/message_recv.swf"
SOUNDS['message_queue'] = "./sounds/message_queue.swf"
SOUNDS['chat_recv'] = "./sounds/chat_recv.swf"
SOUNDS['chat_queue'] = "./sounds/chat_queue.swf"
SOUNDS['online'] = "./sounds/online.swf"
SOUNDS['offline'] = "./sounds/offline.swf"
SOUN... | JavaScript |
var availableLed = new Image();
availableLed.src = "images/available.gif";
var chatLed = new Image();
chatLed.src = "images/chat.gif";
var awayLed = new Image();
awayLed.src = "images/away.gif";
var xaLed = new Image();
xaLed.src = "images/xa.gif";
var dndLed = new Image();
dndLed.src = "images/dnd.gif";
var invisibleL... | JavaScript |
function genJabberXDataTable(x) {
var html = '<input type=hidden name="jwchat_form_type" value="jabber:x:data">';
if (x.getElementsByTagName('title').item(0))
html += "<h1>"+x.getElementsByTagName('title').item(0).firstChild.nodeValue.replace(/\n/g,"<br>")+"</h1>";
if (x.getElementsByTagName('instructions').item(... | JavaScript |
/**
* @author Remy Sharp
* @url http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
*/
(function ($) {
$.fn.hint = function (blurClass) {
if (!blurClass) {
blurClass = 'blur';
}
return this.each(function () {
// get jQuery version of 'this'
var $input = $(this),
// capture... | JavaScript |
function checkEmail (strng) {
var error="";
if (strng == "") {
error = "You didn't enter an email address.>";
}
var emailFilter=/^.+@.+\..{2,4}$/;
if (!(emailFilter.test(strng))) {
error = "Please enter a valid email address.";
}
else {
//test email for illegal characters
... | JavaScript |
/**
* AJAX Upload ( http://valums.com/ajax-upload/ )
* Copyright (c) Andris Valums
* Licensed under the MIT license ( http://valums.com/mit-license/ )
* Thanks to Gary Haran, David Mark, Corey Burns and others for contributions
*/
(function () {
/* global window */
/* jslint browser: true, devel: true, u... | JavaScript |
var errorObj = function() {
var hasError = false;
var decRegExp = /^\d\d?\d?$/;
var me = {
hasError: function() {
return hasError;
},
reset: function() {
hasError=false;
$('.error').remove();
},
attacheError: function (elem, msg) {
$(elem).parent().append($("<span class='error'>"+msg+"</s... | JavaScript |
var traffic = function() {
var sum = 0;
var me = {
changed: false,
getSum: function() {
var new_sum = 0;
$(".traffic").each(function() {
var tmp = parseInt($(this).attr("value"));
if (tmp>=0) new_sum+= tmp;
});
return new_sum;
},
activateSave: function () {
me.changed=true;
$("#s... | JavaScript |
javascript:(function () {
adsweep();
var version = '2.0.3';
function adsweep(){
if(location.href){
window.adsweepVersion=version;
window.ua=navigator.userAgent;
window.URL = location.href;
var countTries=0;
function checkDOM(){
if(countTries<120){
if(document.getElementsByTagName("... | JavaScript |
$(document).ready(function() {
$("#feature input:checkbox").each(function(){
$(this).click(function(){
var rel = $(this).attr('rel');
var tmp = rel.split("_");
var flag;
if(tmp[1] == 'on')
{
$("#on_"+tmp[0]).attr({"checked": "checked"});
$("#off_"+tmp[0]).removeAttr("checked");
... | 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... | JavaScript |
//jQuery.noConflict();
;(function($){
var currentGroup = null;
var currentFile = null; //not used now
var baseLoc = "http://picfoo.wordjp.com/"
var baseURL = baseLoc + 'php_service/noriGetGroup.php?direction=';
var objSlider;
var isIPhone;
var isIPad;
jQuery(document).ready(entryMain);
function ent... | JavaScript |
/***
*
* jbgallery picasa adapter
*
* $Date: 2010-12-19 19:03:40 +0100 (dom, 19 dic 2010) $
* $Revision: 33 $
* $Author: massimiliano.balestrieri $
* $HeadURL: https://jbgallery.googlecode.com/svn/trunk/adapters/jbpicasa-3.0.js $
* $Id: jbpicasa-3.0.js 33 2010-12-19 18:03:40Z massimiliano.balestrieri ... | JavaScript |
/***
*
* jbgallery picasa adapter
*
* $Date: 2010-12-17 19:18:51 +0100 (ven, 17 dic 2010) $
* $Revision: 23 $
* $Author: massimiliano.balestrieri $
* $HeadURL: https://jbgallery.googlecode.com/svn/trunk/adapters/jbpicasa.js $
* $Id: jbpicasa.js 23 2010-12-17 18:18:51Z massimiliano.balestrieri $
*
... | JavaScript |
/*jslint browser: true */ /*global jQuery: true */
/**
* jQuery Cookie plugin
*
* Copyright (c) 2010 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
*
*/
// TODO JsDoc
/**
* ... | 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
*
* Revisio... | JavaScript |
/*
* jSwipe - jQuery Plugin
* http://plugins.jquery.com/project/swipe
* http://www.ryanscherf.com/demos/swipe/
*
* Copyright (c) 2009 Ryan Scherf (www.ryanscherf.com)
* Licensed under the MIT license
*
* $Date: 2009-07-14 (Tue, 14 Jul 2009) $
* $version: 0.1.2
*
* This jQuery plugin wi... | JavaScript |
/***
*
* jbgallery 3.0 BETA
*
* $Date: 2011-02-15 21:15:15 +0100 (mar, 15 feb 2011) $
* $Revision: 52 $
* $Author: massimiliano.balestrieri $
* $HeadURL: https://jbgallery.googlecode.com/svn/trunk/jbgallery-3.0.js $
* $Id: jbgallery-3.0.js 52 2011-02-15 20:15:15Z massimiliano.balestrieri $
*
* C... | JavaScript |
/***
*
* jbgallery 3.0 BETA
*
* $Date: 2011-02-15 21:15:15 +0100 (mar, 15 feb 2011) $
* $Revision: 52 $
* $Author: massimiliano.balestrieri $
* $HeadURL: https://jbgallery.googlecode.com/svn/trunk/jbgallery-3.0.js $
* $Id: jbgallery-3.0.js 52 2011-02-15 20:15:15Z massimiliano.balestrieri $
*
* C... | JavaScript |
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback, bStandingRedraw )
{
if ( typeof sNewSource != 'undefined' && sNewSource != null )
{
oSettings.sAjaxSource = sNewSource;
}
this.oApi._fnProcessingDisplay( oSettings, true );
... | JavaScript |
/******************************************************************************************************************************
COMMING SOON PAGE
*******************************************************************************************************************************/
(function($) {
/**
* Set your date he... | JavaScript |
/*
* QueryLoader v2 - A simple script to create a preloader for images
*
* For instructions read the original post:
* http://www.gayadesign.com/diy/queryloader2-preload-your-images-with-ease/
*
* Copyright (c) 2011 - Gaya Kessler
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-li... | JavaScript |
/**
* Class to represent common url operations
* @param param
* @constructor
*/
function Url(param) {
if (typeof param === 'string') {
this.parseUrl(param);
}
this.params = {};
}
Url.prototype.toString = function toString() {
return this.getUrl();
};
Url.prototype.setParam ... | JavaScript |
/**
* Wrap Xhr requests, adding the ability to group and cancel Xhr requests to prevent callbacks from firing
* when clicking away from a page with outstanding requests
* Supported callbacks:
* success
* error
*
* Example 1 - simple post
* var xhr = new Xhr();
* xhr.post({url:url, data:data});... | JavaScript |
//@todo move "inherits" somewhere else
var inherits = function(childCtor, parentCtor) {
function tempCtor() {};
tempCtor.prototype = parentCtor.prototype;
childCtor.superClass_ = parentCtor.prototype;
childCtor.prototype = new tempCtor();
childCtor.prototype.constructor = childCtor;
};
/**... | JavaScript |
//using HTML5 localStorage instead of cookies
function LocalStores(){
}
LocalStores.prototype.get = function get(name){
var str = localStorage.getItem(name);
if (!str) {
str = null;
}
return str;
};
LocalStores.prototype.set = function set(name, value, days){
localStorage.se... | JavaScript |
/**
* Accessing config settings in JavaScript
* @param json
* @constructor
*/
function Settings(json) {
this.map = json;
}
/**
* @public
*/
Settings.prototype.set = function set() {
};
/**
* @public
*/
Settings.prototype.get = function get(name) {
return this.map[name];
};
| JavaScript |
function Utility(device){
this.device = device;
this.cookies = new LocalStores();
this.listDateTimePicker={};
}
Utility.deviceFactory = function deviceFactory(deviceType) {
switch (deviceType) {
case 'mobile':
return new UtilityMobile();
case 'tablet':
return new UtilityTablet();
default:
... | JavaScript |
function UtilityMobile() {
}
UtilityMobile.prototype.loadGeneralActions = function loadGeneralActions() {
};
| JavaScript |
function UtilityTablet() {
}
UtilityTablet.prototype.loadGeneralActions = function loadGeneralActions() {
console.log('UtilityTablet -- loadGeneralActions');
}; | JavaScript |
function DataHelper(){
this.GET = 'GET';
this.POST = 'POST';
this.xhr=new Xhr();
}
DataHelper.prototype.getAPIDataBasic = function getAPIDataBasic(params,success,error) {
var result = {},
url = params.url,
isCachedLocal = params.isCachedLocal === true ? true : false,
data = params.da... | JavaScript |
var cacheData = [];
function Cache(){}
/**
* Set data to Cache with the key is a specified url
* params
* url : specified url and its query string
* data : data taken from the API
*/
Cache.prototype.set = function set(url, data){
cacheData.push({url: url, data: data});
}
/**
* Get data from Cache by ... | JavaScript |
function CarouselTablet() {
this.itemOnPortrait=5;
this.itemOnLanscape=7;
}
CarouselTablet.prototype.loadDefault = function loadDefault() {
};
CarouselTablet.prototype.numberItemOnPortrait = function numberItemOnPortrait() {
return this.itemOnPortrait;
};
CarouselTablet.prototype.numberItemOnLansca... | JavaScript |
var PAGE = {
INDEX:0,
CATEGORY:1,
PRODUCT:2,
SEARCH:3,
CONTACT:4
},
popup,
utility,
dataHelper,
carousel,
cache,
devTy="mobile",
cart,
currentProductClick,
platform,
settings,
api,
miniCartId = "paypalCart";
//config jquery mobile
$(document).bind("mobileinit", function(){
... | JavaScript |
function Cookies(){
}
Cookies.prototype.get = function get(name){
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0){
var cookie... | JavaScript |
function Cart(){
this.data = [];
this.gift = {};
this.deliveryType = -1;
this.timeDelivery = -1;
this.address = "";
this.message = "";
}
Cart.prototype.add = function add(params){
var item = params.item;
console.log(item.ID);
try{
if(!cart.checkExit(item)){
cart.data.push(item);
popup.s... | JavaScript |
/**
* This is for Cross-site Origin Resource Sharing (CORS) requests.
*
* Additionally the script will fail-over to a proxy if you have one set up.
*
* @param string url the url to retrieve
* @param mixed data data to send along with the get request [optional]
* @param function callback function ... | JavaScript |
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and delta... | JavaScript |
/*!
* MiniCart
*
* @author Jeff Harrell <https://github.com/jeffharrell/>
* @license MIT <https://github.com/jeffharrell/MiniCart/blob/master/LICENSE>
*/
if (typeof PAYPAL === 'undefined' || !PAYPAL) {
var PAYPAL = {};
}
PAYPAL.apps = PAYPAL.apps || {};
(function () {
'use strict';
/**
* Default configura... | JavaScript |
function CarouselMobile() {
this.itemOnPortrait=3;
this.itemOnLanscape=5;
}
CarouselMobile.prototype.loadDefault = function loadDefault() {
};
CarouselMobile.prototype.numberItemOnPortrait = function numberItemOnPortrait() {
return this.itemOnPortrait;
};
CarouselMobile.prototype.numberItemOnLan... | JavaScript |
function Popup() {
this.type = {'TYPE_ALERT': 0, 'TYPE_CONFIRM': 1};
}
Popup.prototype.showMessage = function showMessage(title, message, jsCallBack, type) {
if (platform == "Android") {
AndroidFunction.showMessage(title, message, jsCallBack, type);
//alert(message);
} else if (platform == "iP... | JavaScript |
function Carousel(device) {
this.listCarousel = {};
this.device = device;
this.horizontal='horizontal';
this.vertical='vertical';
this.carouselName = []
}
Carousel.deviceFactory = function deviceFactory(deviceType) {
switch (deviceType) {
case 'mobile':
return new Carousel... | JavaScript |
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(fun... | JavaScript |
/*!
* Media helper for fancyBox
* version: 1.0.5 (Tue, 23 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* ... | JavaScript |
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for ... | JavaScript |
$(document).ready(function() {
if($('div.form.login').length) { // in login page
$('input#LoginForm_password').focus();
}
$('table.preview input[name="checkAll"]').click(function() {
$('table.preview .confirm input').prop('checked', this.checked);
});
$('table.preview td.confirm input').click(function() {
... | JavaScript |
/**
* jQuery Yii plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @version $Id: jquery.yii.js 3053 2011-03-12 21:25:33Z qiang.xue $
*/
;(function($) {
$.yii =... | JavaScript |
/*
### jQuery Star Rating Plugin v3.13 - 2009-03-26 ###
* Home: http://www.fyneworks.com/jquery/star-rating/
* Code: http://code.google.com/p/jquery-star-rating-plugin/
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/... | 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 |
/*
* jQuery Autocomplete plugin 1.1
*
* Modified for Yii Framework:
* - Renamed "autocomplete" to "legacyautocomplete".
* - Fixed IE8 problems (mario.ffranco).
*
* Copyright (c) 2009 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* ht... | JavaScript |
/*!
* jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Script: jQuery BBQ: Back Button & Query Library
//
// *Version... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.