code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
/**
* validate.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
/**
// String validation:
if (!Validator.isEmail('myemail'))
alert('Invalid email.');
// Form validatio... | JavaScript |
/**
* form_utils.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
func... | JavaScript |
tinyMCE.addI18n({en:{
common:{
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
apply:"Apply",
insert:"Insert",
update:"Update",
cancel:"Cancel",
close:"Close",
browse:"Browse",
class_name:"Class",
not_set:"-- Not set --",
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.",
cl... | JavaScript |
/**
* popup.js
*
* An altered version of tinyMCEPopup to work in the same window as tinymce.
*
* ------------------------------------------------------------------
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://... | JavaScript |
(function($){
$.ui.dialog.prototype.options.closeOnEscape = false;
$.widget("wp.wpdialog", $.ui.dialog, {
options: {
closeOnEscape: false
},
open: function() {
var ed;
// Initialize tinyMCEPopup if it exists and is the editor is active.
if ( tinyMCEPopup && typeof tinyMCE != 'undefined' && ( ed = ... | JavaScript |
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
tinymce.create('tinymce.plugins.WPDialogs', {
init : function(ed, url) {
tinymce.... | JavaScript |
/**
* WP Fullscreen TinyMCE plugin
*
* Contains code from Moxiecode Systems AB released under LGPL License http://tinymce.moxiecode.com/license
*/
(function() {
tinymce.create('tinymce.plugins.wpFullscreenPlugin', {
init : function(ed, url) {
var t = this, oldHeight = 0, s = {}, DOM = tinymce.DOM, resized =... | JavaScript |
(function() {
var url;
if (url = tinyMCEPopup.getParam("media_external_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
function get(id) {
return document.getElementById(id);
}
function getVal(id) ... | JavaScript |
/**
* This script contains embed functions for common plugins. This scripts are complety free to use for any purpose.
*/
function writeFlash(p) {
writeEmbed(
'D27CDB6E-AE6D-11cf-96B8-444553540000',
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0',
'application/x-shockwave... | JavaScript |
(function() {
tinymce.create('tinymce.plugins.wpGallery', {
init : function(ed, url) {
var t = this;
t.url = url;
t._createButtons();
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...');
ed.addCommand('WP_Gallery', function() {
var el = ed.selecti... | JavaScript |
var tinymce = null, tinyMCEPopup, tinyMCE, wpImage;
tinyMCEPopup = {
init: function() {
var t = this, w, li, q, i, it;
li = ('' + document.location.search).replace(/^\?/, '').split('&');
q = {};
for ( i = 0; i < li.length; i++ ) {
it = li[i].split('=');
q[unescape(it[0])] = unescape(it[1]);
}
if ... | JavaScript |
(function() {
tinymce.create('tinymce.plugins.wpEditImage', {
init : function(ed, url) {
var t = this, mouse = {};
t.url = url;
t._createButtons();
// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...');
ed.addCommand('WP_EditImage', function() {
var... | JavaScript |
tinyMCEPopup.requireLangPack();
var PasteTextDialog = {
init : function() {
this.resize();
},
insert : function() {
var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines;
// Convert linebreaks into paragraphs
if (document.getElementById('linebreaks').checked) {
lines = h.spli... | JavaScript |
tinyMCEPopup.requireLangPack();
var PasteWordDialog = {
init : function() {
var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = '';
// Create iframe
el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></if... | JavaScript |
(function() {
tinymce.create('tinymce.plugins.wpLink', {
/**
* Initializes the plugin, this will be executed after the plugin has been created.
* This call is done before the editor instance has finished it's initialization so use the onInit event
* of the editor instance to intercept that event.
*
* ... | JavaScript |
/**
* WordPress plugin.
*/
(function() {
var DOM = tinymce.DOM;
tinymce.create('tinymce.plugins.WordPress', {
mceTout : 0,
init : function(ed, url) {
var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML;
moreHTML = '<img src="' + url + '/img/trans.gif"... | JavaScript |
tinyMCEPopup.requireLangPack();
function init() {
var ed, tcont;
tinyMCEPopup.resizeToInnerSize();
ed = tinyMCEPopup.editor;
// Give FF some time
window.setTimeout(insertHelpIFrame, 10);
tcont = document.getElementById('plugintablecontainer');
document.getElementById('plugins_tab').style.display = 'none';
... | JavaScript |
tinyMCEPopup.requireLangPack();
var detail = 50, strhex = "0123456789ABCDEF", i, isMouseDown = false, isMouseOver = false;
var colors = [
"#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033",
"#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099",
"#6600cc","#660... | JavaScript |
tinyMCEPopup.requireLangPack();
var AnchorDialog = {
init : function(ed) {
var action, elm, f = document.forms[0];
this.editor = ed;
elm = ed.dom.getParent(ed.selection.getNode(), 'A');
v = ed.dom.getAttrib(elm, 'name');
if (v) {
this.action = 'update';
f.anchorName.value = v;
}
f.insert.value ... | JavaScript |
/**
* charmap.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
tinyMCEPopup.requireLangPack();
var charmap = [
[' ', ' ', true, 'no-break space'],
['&', ... | JavaScript |
tinyMCEPopup.requireLangPack();
tinyMCEPopup.onInit.add(onLoadInit);
function saveContent() {
tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true});
tinyMCEPopup.close();
}
function onLoadInit() {
tinyMCEPopup.resizeToInnerSize();
// Remove Gecko spellchecking
if (tin... | JavaScript |
var ImageDialog = {
preInit : function() {
var url;
tinyMCEPopup.requireLangPack();
if (url = tinyMCEPopup.getParam("external_image_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
},
init : fun... | JavaScript |
tinyMCEPopup.requireLangPack();
var LinkDialog = {
preInit : function() {
var url;
if (url = tinyMCEPopup.getParam("external_link_list_url"))
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
},
init : functio... | JavaScript |
/**
* hoverIntent is similar to jQuery's built-in "hover" function except that
* instead of firing the onMouseOver event immediately, hoverIntent checks
* to see if the user's mouse has slowed down (beneath the sensitivity
* threshold) before firing the onMouseOver event.
*
* hoverIntent r5 // 2007.03.27 // jQuery 1.1... | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.73 (03-MAY-2011)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
;(functi... | JavaScript |
/*!
* jQuery serializeObject - v0.2 - 1/20/2010
* http://benalman.com/projects/jquery-misc-plugins/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// Whereas .serializeArray() serializes a form into an array, .serializeObject()
... | JavaScript |
(function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+"... | JavaScript |
(function($){
$.fn.filter_visible = function(depth) {
depth = depth || 3;
var is_visible = function() {
var p = $(this), i;
for(i=0; i<depth-1; ++i) {
if (!p.is(':visible')) return false;
p = p.parent();
}
return true;
}
return this.filter(is_visible);
};
$.table_hotkeys = function(table,... | JavaScript |
/******************************************************************************************************************************
* @ Original idea by by Binny V A, Original version: 2.00.A
* @ http://www.openjs.com/scripts/events/keyboard_shortcuts/
* @ Original License : BSD
* @ jQuery Plugin by Tzury Bar Yocha... | JavaScript |
/*
* jQuery Color Animations
* Copyright 2007 John Resig
* Released under the MIT and GPL licenses.
*/
(function(jQuery){
// We override the animation for all of these color styles
jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outli... | JavaScript |
/*
* jquery.suggest 1.1b - 2007-08-06
* Patched by Mark Jaquith with Alexander Dick's "multiple items" patch to allow for auto-suggesting of more than one tag before submitting
* See: http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-7228
*
* Uses code an... | JavaScript |
var autosave, autosaveLast = '', autosavePeriodical, autosaveOldMessage = '', autosaveDelayPreview = false, notSaved = true, blockSave = false, fullscreen, autosaveLockRelease = true;
jQuery(document).ready( function($) {
var dotabkey = true;
autosaveLast = $('#post #title').val() + $('#post #content').val();
auto... | JavaScript |
/**
* jquery.Jcrop.js v0.9.8
* jQuery Image Cropping Plugin
* @author Kelly Hallman <khallman@gmail.com>
* Copyright (c) 2008-2009 Kelly Hallman - released under MIT License {{{
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* fil... | JavaScript |
var wpLink;
(function($){
var inputs = {}, rivers = {}, ed, River, Query;
wpLink = {
timeToTriggerRiver: 150,
minRiverAJAXDuration: 200,
riverBottomThreshold: 5,
keySensitivity: 100,
lastSearch: '',
textarea: '',
init : function() {
inputs.dialog = $('#wp-link');
inputs.submit = $('#wp-link-sub... | JavaScript |
(function(w) {
var init = function() {
var pr = document.getElementById('post-revisions'),
inputs = pr ? pr.getElementsByTagName('input') : [];
pr.onclick = function() {
var i, checkCount = 0, side;
for ( i = 0; i < inputs.length; i++ ) {
checkCount += inputs[i].checked ? 1 : 0;
side = inputs[i].ge... | JavaScript |
/**
* Pointer jQuery widget.
*/
(function($){
var identifier = 0,
zindex = 9999;
$.widget("wp.pointer", {
options: {
pointerClass: 'wp-pointer',
pointerWidth: 320,
content: function( respond, event, t ) {
return $(this).text();
},
buttons: function( event, t ) {
var close = ( wpPointerL... | JavaScript |
/*
* Thickbox 3.1 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
if ( typeof tb_pathToImage != 'string' ) {
var tb_pathToImage = thickboxL10n.loadingAnimation;
}
if... | JavaScript |
(function($) {
var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList;
wpList = {
settings: {
url: ajaxurl, type: 'POST',
response: 'ajax-response',
what: '',
alt: 'alternate', altOffset: 0,
addColor: null, delColor: null, dimAddColor: null, dimDelColor: null,
c... | JavaScript |
jQuery(document).ready(function () {
jQuery('.akismet-status').each(function () {
var thisId = jQuery(this).attr('commentid');
jQuery(this).prependTo('#comment-' + thisId + ' .column-comment div:first-child');
});
jQuery('.akismet-user-comment-count').each(function () {
var thisId = jQuery(this).attr('commenti... | JavaScript |
(function($) {
$(document).ready( function() {
$('.feature-slider a').click(function(e) {
$('.featured-posts section.featured-post').css({
opacity: 0,
visibility: 'hidden'
});
$(this.hash).css({
opacity: 1,
visibility: 'visible'
... | JavaScript |
var farbtastic;
(function($){
var pickColor = function(a) {
farbtastic.setColor(a);
$('#link-color').val(a);
$('#link-color-example').css('background-color', a);
};
$(document).ready( function() {
$('#default-color').wrapInner('<a href="#" />');
farbtastic = $.farbtastic('#colorPickerDiv', pickColor);
... | JavaScript |
/*!
* word-count.js with Asian Language Support
*
* Based on wp-admin/js/word-count.dev.js @ r17936
*/
(function($) {
wpWordCount = {
settingsWestern : {
strip : /<[a-zA-Z\/][^<>]*>/g, // strip HTML tags
clean : /[0-9.(),;:!?%#$¿'"_+=\\/-]+/g, // regexp to remove punctuation, etc.
count : /\S\s+/g // ... | JavaScript |
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (na... | JavaScript |
var doc = null
doc = fl.openDocument("file:///Users/Matthew/Development/Flash/actionml/doc/InteractionDemo.fla")
doc.exportSWF("file:///Users/Matthew/Development/Flash/actionml/doc/InteractionDemo.swf", true)
fl.closeAll(false)
doc = fl.openDocument("file:///Users/Matthew/Development/Flash/actionml/doc/actions/actions.... | JavaScript |
/**
* 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, publish, distribute,
* sublicense, and... | JavaScript |
/**
* 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, publish, distribute,
* sublicense, and... | JavaScript |
/*
* GET users listing.
*/
exports.list = function(req, res){
res.send("respond with a resource");
}; | JavaScript |
/*
* GET home page.
*/
exports.index = function(req, res){
res.render('index', { title: 'Express' });
}; | JavaScript |
/**
* constant
*/
var FACEBOOK_APP_ID = '269802973146426';
var FACEBOOK_APP_SECRET = '8d8ef033ddd6ac186e652934762b223f';
var TWITTER_CONSUMER_KEY = '8NuqZdLwJTG8ukYVTUqjTA';
var TWITTER_CONSUMER_SECRET = 'CTG2Y3nJz77ZKjsBlttwzp8Ub1NqFGYWk8mD5RguTU';
/**
*
*/
var crypto = require('crypto');
var algor... | JavaScript |
var http = require('http');
var url = require('url');
var connect = require('connect');
var mysql = require('mysql');
var crypto = require('crypto');
var request = require('request');
var GOOGLE_API_KEY_SERVER = 'AIzaSyAofpfDpQSQE6R0EYDhubCAXOBQv5ldpbw';
var GOOGLE_PROFILE_URL = 'https://www.googleapis.com/oauth2/v1... | JavaScript |
function parseURLParams(queryOrFragment){
var params = {}, paramsString = queryOrFragment ? location.search.substring(1) : location.hash.substring(1), regex = /([^&=]+)=([^&]*)/g, m;
while (m = regex.exec(paramsString)) {
params[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
}
return params;
}
| JavaScript |
var ajaxErrorHandler = function(){
console.log('ajax error');
alert('Could not connect with server.');
};
var ajaxCompleteHandler = function(){
$.unblockUI();
};
var login = function(username, password, mode){
$.blockUI();
$.getJSON('login.service', {
username : username,
password : passwor... | JavaScript |
/*!
* jQuery blockUI plugin
* Version 2.54 (17-DEC-2012)
* @requires jQuery v1.3 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2012 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.ht... | JavaScript |
/*!
* jQuery Cookie Plugin v1.3
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function ($, document, undefined) {
var plu... | JavaScript |
/*!
* jQuery Mobile v1.0b2
* http://jquerymobile.com/
*
* Copyright 2010, jQuery Project
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
/*!
* jQuery UI Widget @VERSION
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Ver... | JavaScript |
/*******************************************************************
* ActiveGrade Mobile
* Written by Sean Hickey for ActiveGrade, LLC
* 2011
********************************************************************/
/** ***********************************
LOGIN/LOGOUT
***************************************/
var baseU... | JavaScript |
// ==UserScript==
// @name lxml
// @namespace lxml-no-css
// @description lxml-no-css
// @require http://code.jquery.com/jquery-latest.js
// @include *
// @exclude http://lt.cjdby.net/*
// @exclude http://ishare.iask.sina.com.cn/*
// @exclude http://movie.mtime.com/*
// @exclude http://... | JavaScript |
// ==UserScript==
// @name tianya-content
// @namespace wangdian.wdsl400.com
// @description tianya content
// @require http://code.jquery.com/jquery-latest.js
// @include http://bbs.tianya.cn/post-worldlook*
// @exclude
// @version 1
// ==/UserScript==
$(document).ready(... | JavaScript |
// ==UserScript==
// @name tianya.cn
// @namespace wangdian.wdsl400.com
// @description tianya.cn
// @require http://code.jquery.com/jquery-latest.js
// @include http://bbs.tianya.cn/list-worldlook-1.shtml
// @exclude
// @version 1
// ==/UserScript==
$(document).ready(function(){
... | JavaScript |
// ==UserScript==
// @name cjdby
// @namespace wangdian.wdsl400.com
// @description lt.cjdby.net
// @require http://code.jquery.com/jquery-latest.js
// @include http://lt.cjdby.net/forum*
// @version 1
// ==/UserScript==
$(document).ready(function(){
var telm = $('table[summary^="forum_"]');
... | JavaScript |
// ==UserScript==
// @name fyjs
// @namespace wangdian.wdsl400.com
// @description fyjs.cn
// @require http://code.jquery.com/jquery-latest.js
// @include http://www.fyjs.cn/bbs/thread.php?fid=*
// @version 1
// ==/UserScript==
$(document).ready(function(){
$('.listinline').css("text-align", "cente... | 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 |
/*
* Slidorion, An Image Slider and Accordion Combined
* Intructions: http://www.slidorion.com
* Created by Ben Holland - http://www.ben-holland.co.uk
* Version: 1.1
* Copyright 2012 Ben Holland <benholland99@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | JavaScript |
// JavaScript Document
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ""); };
function mail()
{
var correo=document.form1.correo.value.trim();
var pass=document.form1.pass.value.trim();
document.form1.correo.value=correo;
document.form1.pass.value=pass;
return true;
}
... | JavaScript |
var RedBox = {
showInline: function(id)
{
this.showOverlay();
new Effect.Appear('RB_window', {duration: 0.4, queue: 'end'});
this.cloneWindowContents(id);
},
loading: function()
{
this.showOverlay();
Element.show('RB_loading');
this.setWindowPosition();
},
addHiddenCont... | JavaScript |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| JavaScript |
/**
* FusionCharts: Flash Player detection and Chart embed
*
* Morphed from SWFObject (http://blog.deconcept.com/swfobject/) under MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
*/
if(typeof infosoftglobal == "undefined") var infosoftglobal = new Object();
if(typeof infosoftglobal.F... | JavaScript |
var images = [],
index = 0;
images[0] = "<a href = 'http://dl.flipkart.com/dl/essentials-medical-pharmacology-english-7th/p/itmdmpfrhwazhfag?pid=9789350259375&affid=acrosspgya'>Essentials of Medical Pharmacology-7th Edition by KD Tripathi</a>";
images[1] = "<a href = 'http://fkrt.it/NLsB6LNN' target='_blank'>LMR LAST... | JavaScript |
alert('plugin one nested js file'); | JavaScript |
alert('win sauce'); | JavaScript |
alert('I am a root level file!'); | JavaScript |
alert("Test App"); | JavaScript |
// nested theme js file | JavaScript |
// root theme js file | JavaScript |
/**
* 系统一级菜单导航
*
* @param action
*/
function forwardLeftMenu(action) {
mainFrame.src = "center.do";
}
/**
* tab页js
* @param m
* @param n
* @param count
*/
function showtabs(m,n,count) {
for(var i=1;i<=count;i++) {
if(i == n) {
$("#menutab_"+m+"_"+i).css("display", '');
$("#menu_"+m+"_"+i).addClass(... | JavaScript |
/**
* 首页
*
* @param currentPage
* @param id
*/
function first(currentPage, id, page) {
$("#"+page).val(1);
$("#"+id).submit();
}
/**
* 上一页
*
* @param currentPage
* @param id
*/
function previousPage(currentPage, id, page) {
if(currentPage == 1) {
$("#"+page).val(1);
} else {
$(... | JavaScript |
$(function(){
$(".tableList tbody tr").bind("mouseover", function() {
$(this).css("backgroundColor", "#c1ebff");
});
$(".tableList tbody tr").bind("mouseout", function() {
$(this).css("backgroundColor", "");
});
}); | JavaScript |
/**
* 表单验证方法
* @param style 错误提示样式
* @param form 表单ID
* @param methods 扩展方法数组列表
* @returns {Boolean}
*/
function strutsValidator(style, form, methods) {
var errors = new Array();
var method = form + "()";
errors = eval(method);
/*
var index = errors.length;
if (typeof methods != "undefined") {
for (var i ... | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.95 (30-JAN-2012)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
;(function($... | JavaScript |
/**
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*
* @fileoverview 快速操作页面上的Radio button,Drop list ,checkbook 的Jquery的插件
* {@link http://code.google.com/p/actionform/}
* @author monlyu
* @version 0.2
* @see jquery >1.4
* @since 2010-1-20
* -=-=-=-... | JavaScript |
// ColorBox v1.3.13 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
// Copyright (c) 2010 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function ($, window) {
var
// ColorBox Default Settings.
// See htt... | JavaScript |
/**
* equalHeightBlocks: Define a mesma altura para blocos "A" e "B" dentro de um bloco "X".
* Autor: Sidnei Szirkowski - 16/nov/2010
*
* Exemplo de uso:
* $('X').equalHeightBlocks( {'colA':'A', 'colB':'B'} );
*
* Defaults:
* colA = '.block-name'
* colB = '.block-columns'
**/
(function( $ ){
$.fn.eq... | JavaScript |
/** @preserve jquery.jqdock.js v2.0.2, by Wizzud
*/
/**
* jqdock jQuery plugin
* Version : 2.0.2
* Author : Roger Barrett
* Date : Dec 2011
*
* Inspired by:
* iconDock jQuery plugin
* http://icon.cat/software/iconDock
* version: 0.8 beta
* date: 2/05/2007
* Copyright (c) 2007 Isaac Ro... | JavaScript |
/*
* jQuery UI Sortable
*
* Copyright (c) 2008 Paul Bakaus
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Sortables
*
* Depends:
* ui.base.js
*
* Revision: $Id: ui.sortable.js 5262 2008-04-17 13:13:51Z paul.bakaus $
*/
;(... | JavaScript |
/*
* Async Treeview 0.1 - Lazy-loading extension for Treeview
*
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
*
* Copyright (c) 2007 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses... | JavaScript |
(function($) {
var CLASSES = $.treeview.classes;
var proxied = $.fn.treeview;
$.fn.treeview = function(settings) {
settings = $.extend({}, settings);
if (settings.add) {
return this.trigger("add", [settings.add]);
}
if (settings.remove) {
return this.trigger("remove", [settings.remove]);
}
return p... | 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 |
/*
Copyright (c) 2010, Nicolas Garcia Belmonte
All rights reserved
> Redistribution and use in source and binary forms, with or without
> modification, are permitted provided that the following conditions are met:
> * Redistributions of source code must retain the above copyright
> notice, this... | 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 |
var labelType, useGradients, nativeTextSupport, animate;
(function() {
var ua = navigator.userAgent,
iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i),
typeOfCanvas = typeof HTMLCanvasElement,
nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'),
textSupport = native... | JavaScript |
//-----------------------------------------------------------------------
// * Adiciona versao browser e versao como classes no docElement
// * Cria variavel com versao do IE
// Based on work by: http://www.quirksmode.org/js/detect.html
//
// Customizado por Sidnei Szirkowski
//---------------------------------... | JavaScript |
/**
* jQuery EasyUI 1.3.5
*
* Copyright (c) 2009-2013 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL or commercial licenses
* To use it on other terms please contact us: info@jeasyui.com
* http://www.gnu.org/licenses/gpl.txt
* http://www.jeasyui.com/license_commercial.php
*
*/
(... | JavaScript |
var loginEvent = function()
{
return {
showDialog:function()
{
desktop.hide();
$('#menuBar').hide();
request.html($('body'), null, '../login.jsp', false, function() {
var login = $('#login');
login.showDialog({
minimize: false,
maximize: false,
modal: true,
showC... | JavaScript |
// jQuery Context Menu Plugin
//
// Version 1.00
//
// Cory S.N. LaViska
// A Beautiful Site (http://abeautifulsite.net/)
//
// Visit http://abeautifulsite.net/notebook/80 for usage and more information
//
// Terms of Use
//
// This software is licensed under a Creative Commons License and is copyrighted
//... | JavaScript |
/* Brazilian initialisation for the jQuery UI date picker plugin. */
/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */
jQuery(function($){
$.datepicker.regional['pt-BR'] = {
closeText: 'Fechar',
prevText: '<Anterior',
nextText: 'Próximo>',
currentText: 'Hoje',
monthNames: ['Janeir... | JavaScript |
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/... | JavaScript |
/*!
* jQuery corner plugin: simple corner rounding
* Examples and documentation at: http://jquery.malsup.com/corner/
* version 1.98 (02-JUN-2009)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
/**
* corne... | JavaScript |
/* Copyright (c) 2006 Brandon Aaron (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-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $
* $Rev: 2446 $
*
* Versio... | JavaScript |
/* Brazilian initialisation for the jQuery UI date picker plugin. */
/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */
(function($) {
$.datepick.regional['pt-BR'] = {
clearText: 'Limpar', clearStatus: '',
closeText: 'Fechar', closeStatus: '',
prevText: '<Anterior', prevStatus: '',
prevB... | JavaScript |
/*
Objeto para Desktop Restrito
*/
function Meta(){
var id = null;
var descricao = null;
var duracao = null;
var tags = new Array();
var etapas = new Array();
var virtual = false;
var deletado = false;
var alterado = false;
var trReferencia = null;
this.adicionarEtapa = function(etapa)... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.