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 |
/**
* 初始化显示信息
* 在这个函数中将会与浏览器环境进行交互取得用户资料
*/
function initInfo() {
var info = eval("(" + window.external.GetHostInfo() + ")");
$("#head h5").html("与 " + info.username + " 对话中 (" + info.ip + "/" + info.group + ")");
$("#head p").html("对方 <u>" + (info.isabsence ? "离开" : "在线") + "</u>"
+ (info.isabsence ? ... | JavaScript |
/// <reference path="jquery-1.6.2.js" />
/// <reference path="jquery-ui-1.8.11.js" />
/// <reference path="jquery.validate.js" />
/// <reference path="knockout-2.0.0.debug.js" />
/// <reference path="modernizr-2.0.6-development-only.js" /> | JavaScript |
/*!
* Note: While Microsoft is not the author of this script file, Microsoft
* grants you the right to use this file for the sole purpose of either:
* (i) interacting through your browser with the Microsoft website, subject
* to the website's terms of use; or (ii) using the files as included with a
* Microsoft p... | JavaScript |
/*
* Note: While Microsoft is not the author of this script file, Microsoft
* grants you the right to use this file for the sole purpose of either:
* (i) interacting through your browser with the Microsoft website, subject
* to the website's terms of use; or (ii) using the files as included with a
* Microsoft pro... | JavaScript |
/* Categories Panel */
drawCategoryDock({
mainNav: "#category-nav",
controlBtn: "#category",
subNav:"#category-sub-nav",
config:{
showBottom:197,
currentBottom:0
}
});
$(window).scroll(function(){
drawCategoryDock({
mainNav: "#category-nav",
controlBtn: "#category... | JavaScript |
/* Banner Slider */
jQuery(document).ready(function() {
jQuery("#banner-slider").jcarousel({
scroll: 1,
visible: 3,
initCallback: slider_initCallback,
itemVisibleInCallback: {
onBeforeAnimation: function(){
$("#banner-slider-current").css({
... | JavaScript |
/* Ugame jquery function */
$.fn.flowUp = function(options){
var step = options["step"];
var duration = options["duration"];
var callback = options["callback"];
$(this).animate({
"position":"absolute",
"top": "-=" + $(this).height() * step + "px"
},
duration,
... | JavaScript |
/* Init control for buttons in action panel */
$("#searchButton").control({
type: FD_PANEL_CONTROL,
panel: "#search-panel"
});
$("#accountButton").control({
type: FD_PANEL_CONTROL,
panel: "#login-panel"
});
$("#settingButton").control({
type: FD_PANEL_CONTROL,
panel: "#language-panel"
}); | JavaScript |
/* Custom jquery function */
$.fn.flowUp = function(options) {
var step = options["step"];
var duration = options["duration"];
var callback = options["callback"];
$(this).animate({
"position":"absolute",
"top": "-=" + $(this).height() * step + "px"
},
duration,
ca... | JavaScript |
/* Categories Panel */
$("#category").control({
type: CATEGORY_CONTROL,
subNav: "#category-sub-nav"
}); | JavaScript |
/**
* Created by JetBrains WebStorm.
* User: user
* Date: 6/27/12
* Time: 9:15 PM
* To change this template use File | Settings | File Templates.
*/
//Execute the function when window load
$(window).bind("load", function() {
//setup the height and position for your sticky footer
foo... | JavaScript |
/**
* Created by JetBrains WebStorm.
* User: user
* Date: 6/27/12
* Time: 9:15 PM
* To change this template use File | Settings | File Templates.
*/
//Execute the function when window load
$(window).bind("load", function() {
//setup the height and position for your sticky footer
foo... | JavaScript |
/* Categories Panel */
drawCategoryDock({
mainNav: "#category-nav",
controlBtn: "#category",
subNav:"#category-sub-nav",
config:{
showBottom:148,
currentBottom:0
}
});
$(window).scroll(function(){
drawCategoryDock({
mainNav: "#category-nav",
controlBtn: "#category... | JavaScript |
/* Banner Slider */
jQuery(document).ready(function() {
jQuery("#banner-slider").jcarousel({
scroll: 1,
visible: 3,
initCallback: slider_initCallback,
itemVisibleInCallback: {
onBeforeAnimation: function(){
$("#banner-slider-current").css({
... | JavaScript |
/* Ugame jquery function */
$.fn.flowUp = function(options) {
var step = options["step"];
var duration = options["duration"];
var callback = options["callback"];
$(this).animate({
"position":"absolute",
"top": "-=" + $(this).height() * step + "px"
},
du... | JavaScript |
/**
*
* Find more about the scrolling function at
* http://cubiq.org/iscroll
*
* Copyright (c) 2010 Matteo Spinelli, http://cubiq.org/
* Released under MIT license
* http://cubiq.org/dropbox/mit-license.txt
*
* Version 3.7.1 - Last updated: 2010.10.08
*
*/
(function(){
function iScroll (el, options) {
v... | JavaScript |
/*
* mopSlider 2.5.1
* By Hiroki Miura (http://www.mopstudio.jp)
* Copyright (c) 2009 mopStudio
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
* May 1, 2010
*/
var autoS=[],indiS=[],mopSldWS=[],intervalS=[],itemMgnS=[],moveS=[];
var animS=[],preTurnS=[],turnS=[],nextMovS=[],... | JavaScript |
/* Categories Panel */
$("#category").controlSubCategoryNav({
mainNav: "#category-nav",
subNav:"#category-sub-nav",
config:{
showBottom:148,
currentBottom:0
}
}); | JavaScript |
/**
* --------------------------------------------------------------------
* jQuery-Plugin "pngFix"
* Version: 1.2, 09.03.2009
* by Andreas Eberhard, [email protected]
* http://jquery.andreaseberhard.de/
*
* Copyright (c) 2007 Andreas Eberhard
* Licensed under GPL (http://w... | JavaScript |
/* Categories Panel */
$("#category").controlSubCategoryNav({
mainNav: "#category-nav",
subNav:"#category-sub-nav",
config:{
showBottom:235,
currentBottom:38
}
}); | JavaScript |
/* Ugame jquery function */
$.fn.flowUp = function(options) {
var step = options["step"];
var duration = options["duration"];
var callback = options["callback"];
$(this).animate({
"position":"absolute",
"top": "-=" + $(this).height() * step + "px"
},
du... | JavaScript |
/*!
* iScroll Lite base on iScroll v4.1.6 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org
* Released under MIT license, http://cubiq.org/license
*/
(function(){
var m = Math,
mround = function (r) { return r >> 0; },
vendor = (/webkit/i).test(navigator.appVersion) ? 'webkit' :
(/firefox/i).test(navigator... | JavaScript |
/*!
* iScroll v4.2 ~ Copyright (c) 2012 Matteo Spinelli, http://cubiq.org
* Released under MIT license, http://cubiq.org/license
*/
(function(window, doc){
var m = Math,
dummyStyle = doc.createElement('div').style,
vendor = (function () {
var vendors = 't,webkitT,MozT,msT,OT'.split(','),
t,
i = 0,
l = v... | JavaScript |
/* Description Panel */
$("#game-description").expandable({
expandButton:"#game-description .expand-button",
contentPanel:"#game-description .content",
minHeight:150
});
document.addEventListener('DOMContentLoaded', function(){
screenShot = new iScroll('item-screenshot-slider', {
useTransform: f... | JavaScript |
!function ($, iScroll) {
$.ender({
iScroll: function (options) {
return new iScroll(this[0], options)
}
}, true)
}(ender, require('iscroll').iScroll) | JavaScript |
/*
*http://blog.stevenlevithan.com/archives/date-time-format
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns... | JavaScript |
/* Init control for buttons in action panel */
$("#searchButton").control({
type: FD_PANEL_CONTROL,
panel: "#search-panel"
});
$("#accountButton").control({
type: FD_PANEL_CONTROL,
panel: "#login-panel"
});
$("#settingButton").control({
type: FD_PANEL_CONTROL,
panel: "#language-pan... | JavaScript |
$("#terms-of-use").expandable({
expandButton:"#terms-of-use .expand-button",
contentPanel:"#terms-of-use .content",
minHeight:150
});
$("#register-button").click(function(){
$("#regiter-form").submit();
}); | JavaScript |
/* Custom jquery function */
$.fn.flowUp = function(options) {
var step = options["step"];
var duration = options["duration"];
var callback = options["callback"];
$(this).animate({
"position":"absolute",
"top": "-=" + $(this).height() * step + "px"
},
duration,
ca... | JavaScript |
/* Categories Panel */
$("#category").control({
type: CATEGORY_CONTROL,
subNav: "#category-sub-nav"
});
document.addEventListener('DOMContentLoaded', function(){
itemSlider = new iScroll('item-slider', {
useTransform: false,
hScrollbar: false,
vScrollbar: false,
onBeforeScro... | 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 (interval, label, fn, time... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: handlers.js 31539 2012-09-06 07:54:49Z zhengqingpeng $
*/
var sdCloseTime = 2;
function preLoad() {
if(!this.support.loading) {
disableMultiUpload(this.customSettings);
return false;
}
}
function... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: portal.js 29595 2012-04-20 10:05:13Z zhangguosheng $
*/
function block_get_setting(classname, script, bid) {
var x = new Ajax();
x.get('portal.php?mod=portalcp&ac=block&op=setting&bid='+bid+'&classname='+... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: tree.js 23838 2011-08-11 06:51:58Z monkey $
*/
var icon = new Object();
icon.root = IMGDIR + '/tree_root.gif';
icon.folder = IMGDIR + '/tree_folder.gif';
icon.folderOpen = IMGDIR + '/tree_folderopen.gif... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: bbcode.js 31520 2012-09-05 05:50:12Z chenmengshu $
*/
var re, DISCUZCODE = [];
DISCUZCODE['num'] = '-1';
DISCUZCODE['html'] = [];
EXTRAFUNC['bbcode2html'] = [];
EXTRAFUNC['html2bbcode'] = [];
function ... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: forum_post.js 32414 2013-01-15 03:30:57Z monkey $
*/
var forum_post_inited = true;
var postSubmited = false;
var AID = {0:1,1:1};
var UPLOADSTATUS = -1;
var UPLOADFAILED = UPLOADCOMPLETE = AUTOPOST = 0;
... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: swfupload.js 32391 2013-01-08 08:06:04Z zhengqingpeng $
*/
var SWFUpload;
var swfobject;
if (SWFUpload == undefined) {
SWFUpload = function (settings) {
this.initSWFUpload(settings);
};
}
SWFUp... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: admincp.js 31416 2012-08-27 07:50:15Z zhangguosheng $
*/
function redirect(url) {
window.location.replace(url);
}
function scrollTopBody() {
return Math.max(document.documentElement.scrollTop, documen... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: common.js 32580 2013-02-22 03:40:28Z monkey $
*/
var BROWSER = {};
var USERAGENT = navigator.userAgent.toLowerCase();
browserVersion({'ie':'msie','firefox':'','chrome':'','opera':'','safari':'','mozilla':''... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: home_blog.js 23838 2011-08-11 06:51:58Z monkey $
*/
function validate_ajax(obj) {
var subject = $('subject');
if (subject) {
var slen = strlen(subject.value);
if (slen < 1 || slen > 80) {
alert(... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: home_uploadpic.js 23838 2011-08-11 06:51:58Z monkey $
*/
var attachexts = new Array();
var attachwh = new Array();
var insertType = 1;
var thumbwidth = parseInt(60);
var thumbheight = parseInt(60);
var... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: portal_upload.js 23838 2011-08-11 06:51:58Z monkey $
*/
var nowid = 0;
var extensions = '';
function addAttach() {
var newnode = $('upload').cloneNode(true);
var id = nowid;
var tags;
newnode.... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: swfupload.queue.js 23838 2011-08-11 06:51:58Z monkey $
*/
var SWFUpload;
if (typeof(SWFUpload) === "function") {
SWFUpload.queue = {};
SWFUpload.prototype.initSettings = (function (oldInitSettings) {
... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: threadsort.js 30962 2012-07-04 07:57:45Z zhangjie $
*/
function xmlobj() {
var obj = new Object();
obj.createXMLDoc = function(xmlstring) {
var xmlobj = false;
if(window.DOMParser && document.implem... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id$
*/
var _share_tencent_weibo = function() {
var share_btn = function(_arr) {
if (_arr[0]) {
return _arr[0];
}
else {
var o = document.createElement("a"... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: forum_slide.js 23838 2011-08-11 06:51:58Z monkey $
*/
if(isUndefined(sliderun)) {
var sliderun = 1;
function slide() {
var s = new Object();
s.slideId = Math.random();
s.slideSpeed = slideS... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: home_friendselector.js 26733 2011-12-21 07:18:01Z zhengqingpeng $
*/
(function() {
friendSelector = function(parameter) {
this.dataSource = {};
this.selectUser = {};
this.prompterUser = [];
this... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: at.js 27406 2012-01-30 09:22:34Z monkey $
*/
if(typeof EXTRAFUNC['keydown'] != "undefined") {
EXTRAFUNC['keydown']['at'] = 'extrafunc_atMenu';
EXTRAFUNC['keyup']['at'] = 'extrafunc_atMenuKeyUp';
EXTRAFU... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: forum_viewthread.js 28794 2012-03-13 05:39:46Z zhangguosheng $
*/
var replyreload = '', attachimgST = new Array(), zoomgroup = new Array(), zoomgroupinit = new Array();
function attachimggroup(pid) {
if(... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: common_diy.js 31093 2012-07-16 03:54:34Z zhangguosheng $
*/
String.prototype.property2js = function(){
var t = this.replace(/-([a-z])/g, function($0, $1) {return $1.toUpperCase();});
return t;
};
functi... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: home_drag.js 23838 2011-08-11 06:51:58Z monkey $
*/
var Drags = [];
var nDrags = 1;
var mouseOffset = null;
var iMouseDown = false;
var lMouseState = false;
var dragObject = null;
var D... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: smilies.js 29684 2012-04-25 04:00:58Z zhangguosheng $
*/
function _smilies_show(id, smcols, seditorkey) {
if(seditorkey && !$(seditorkey + 'sml_menu')) {
var div = document.createElement("div");
div.i... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: register.js 31582 2012-09-11 03:21:49Z zhangjie $
*/
var lastusername = '', lastpassword = '', lastemail = '', lastinvitecode = '', stmp = new Array();
function errormessage(id, msg) {
if($(id)) {
sho... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: md5.js 29228 2012-03-30 01:46:00Z monkey $
*/
var hexcase = 0;
var chrsz = 8;
function hex_md5(s){
return binl2hex(core_md5(str2binl(s), s.length * chrsz));
}
function core_md5(x, len) {
x[len >> 5]... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: forum.js 31416 2012-08-27 07:50:15Z zhangguosheng $
*/
function saveData(ignoreempty) {
var ignoreempty = isUndefined(ignoreempty) ? 0 : ignoreempty;
var obj = $('postform') && (($('fwin_newthread') && $(... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: calendar.js 27363 2012-01-18 08:46:14Z monkey $
*/
var controlid = null;
var currdate = null;
var startdate = null;
var enddate = null;
var halfhour = false;
var yy = null;
var mm = null;
var hh = nul... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: home.js 32101 2012-11-09 09:39:45Z zhengqingpeng $
*/
var note_step = 0;
var note_oldtitle = document.title;
var note_timer;
function addSort(obj) {
if (obj.value == 'addoption') {
showWindow('addop... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: portal_diy.js 31093 2012-07-16 03:54:34Z zhangguosheng $
*/
var drag = new Drag();
drag.extend({
'getBlocksTimer' : '',
'blocks' : [],
'blockDefaultClass' : [{'key':'选择样式','value':''},{'key':'无边框且无边距',... | 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.
*/
function FileProgress(file, targetID) {
this.fileProgressID = file.id;
thi... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: imgcropper.js 30998 2012-07-06 07:22:08Z zhangguosheng $
*/
(function(){
ImgCropper = function() {
this.options = {
opacity: 50,
color: "",
width: 0,
height: 0,
resize: false... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: common_extra.js 31722 2012-09-25 03:22:12Z zhangguosheng $
*/
function _relatedlinks(rlinkmsgid) {
if(!$(rlinkmsgid) || $(rlinkmsgid).innerHTML.match(/<script[^\>]*?>/i)) {
return;
}
var alink = new ... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: forum_moderate.js 26484 2011-12-14 02:08:03Z svn_project_zhangjie $
*/
function modaction(action, pid, extra, mod) {
if(!action) {
return;
}
var mod = mod ? mod : 'forum.php?mod=topicadmin';
var ex... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: seditor.js 28601 2012-03-06 02:49:55Z monkey $
*/
function seditor_showimgmenu(seditorkey) {
var imgurl = $(seditorkey + '_image_param_1').value;
var width = parseInt($(seditorkey + '_image_param_2').valu... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: logging.js 23838 2011-08-11 06:51:58Z monkey $
*/
function lsSubmit(op) {
var op = !op ? 0 : op;
if(op) {
$('lsform').cookietime.value = 2592000;
}
if($('ls_username').value == '' || $('ls_password... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: portal_diy_data.js 24360 2011-09-14 08:38:06Z zhangguosheng $
*/
var drag = new Drag();
drag.extend({
'getBlocksTimer' : '',
'blocks' : [],
'blockDefaultClass' : [],
'frameDefaultClass' : [],
setSa... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: editor.js 30755 2012-06-18 06:14:29Z monkey $
*/
var editorcurrentheight = 400, editorminheight = 400, savedataInterval = 30, editbox = null, editwin = null, editdoc = null, editcss = null, savedatat = null, ... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: space_diy.js 23838 2011-08-11 06:51:58Z monkey $
*/
var drag = new Drag();
drag.extend({
setDefalutMenu : function () {
this.addMenu('default', '删除', 'drag.removeBlock(event)');
this.addMenu('block... | JavaScript |
/*
[Discuz!] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: google.js 23838 2011-08-11 06:51:58Z monkey $
*/
document.writeln('<script type="text/javascript">');
document.writeln('function validate_google(theform) {');
document.writeln(' if(theform.site.value == 1) ... | JavaScript |
function uploadEdit(obj) {
mainForm = obj.form;
forms = $('attachbody').getElementsByTagName("FORM");
albumid = $('uploadalbum').value;
edit_save();
upload();
}
function edit_save() {
var p = window.frames['uchome-ifrHtmlEditor'];
var obj = p.window.frames['HtmlEditor'];
var status = p.document.getE... | JavaScript |
var gSetColorType = "";
var gIsIE = document.all;
var gIEVer = fGetIEVer();
var gLoaded = false;
var ev = null;
var gIsHtml = true;
var pos = 0;
var sLength = 0;
function fGetEv(e){
ev = e;
}
function fGetIEVer(){
var iVerNo = 0;
var sVer = navigator.userAgent;
if(sVer.indexOf("MSIE")>-1){
var ... | JavaScript |
function submitForm() {
if (dialogHtml == '') {
dialogHtml = $('siteInfo').innerHTML;
$('siteInfo').innerHTML = '';
}
showWindow('open_cloud', dialogHtml, 'html');
$('fwin_open_cloud').style.top = '80px';
$('cloud_api_ip').value = cloudApiIp;
return false;
}
function dealHandle(msg) {
... | JavaScript |
var cloudj = jQuery.noConflict();
if (typeof disallowfloat == 'undefined' || disallowfloat === null) {
var disallowfloat = '';
}
var currentNormalEditDisplay = 0;
cloudj(document).ready(function() {
ajaxGetSearchResultThreads();
cloudj('#previewForm').submit(function() {
return previewFormSubmit();... | JavaScript |
var userAgent = navigator.userAgent.toLowerCase();
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3);
var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf... | JavaScript |
//Common
var userAgent = navigator.userAgent.toLowerCase();
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3);
var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAge... | JavaScript |
var controlid = null;
var currdate = null;
var startdate = null;
var enddate = null;
var yy = null;
var mm = null;
var hh = null;
var ii = null;
var currday = null;
var addtime = false;
var today = new Date();
var lastcheckedyear = false;
var lastcheckedmonth = false;
function loadcalendar() {
s = '';... | JavaScript |
var Ajaxs = new Array();
function Ajax(waitId) {
var aj = new Object();
aj.waitId = waitId ? $(waitId) : null;
aj.targetUrl = '';
aj.sendString = '';
aj.resultHandle = null;
aj.loading = '<img src="image/common/loading.gif" style="margin: 3px; vertical-align: middle" />Loading... ';
aj.createXMLHttpReque... | JavaScript |
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: soso_smilies.js 32519 2013-02-04 08:21:44Z liudongdong $
*/
var sosojs = document.createElement('script');
sosojs.type = 'text/javascript';
sosojs.charset = "utf-8";
sosojs.src = 'http://bq.soso.com/js/... | JavaScript |
{
properties: {
'label': {
valueType: "item"
},
'ACCTID': {
valueType: "item"
},
'UNIQUEID': {
valueType: "item"
},
'accountGroup': {
valueType: "item"
... | JavaScript |
var date_selector =
{
frm:null,
init:function(frm1)
{
this.frm=frm1;
var dt = new Date();
year = dt.getFullYear();
month = dt.getMonth();
month = (month+1)+"";
month = (month.length == 1 ? "0"+month : month);
day = dt.getDate()+"";
day = (day.length == 1 ? "0"+day : day);
this.... | JavaScript |
{
properties: {
'label': {
valueType: "item",
},
'ACCTID': {
valueType: "item",
},
'UNIQUEID': {
valueType: "item",
},
'accountGroup': {
valueType: "item",
... | JavaScript |
{
properties: {
'label': {
valueType: "item"
},
'ACCTID': {
valueType: "item"
},
'UNIQUEID': {
valueType: "item"
},
'accountGroup': {
valueType: "item"
... | JavaScript |
addComment = {
moveForm : function(commId, parentId, respondId, postId) {
var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID');
if ( ! comm || ! respond || ! cancel || ! parent )
return;
t.r... | 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 |
if ( typeof wp === 'undefined' )
var wp = {};
(function( exports, $ ){
var api = wp.customize,
Loader;
$.extend( $.support, {
history: !! ( window.history && history.pushState ),
hashchange: ('onhashchange' in window) && (document.documentMode === undefined || document.documentMode > 7)
});
Loader = $.ext... | JavaScript |
/*
Cookie Plug-in
This plug in automatically gets all the cookies for this site and adds them to the post_params.
Cookies are loaded only on initialization. The refreshCookies function can be called to update the post_params.
The cookies will override any other post params with the same name.
*/
var SWFUpload;
... | 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 continued.
... | JavaScript |
/*
SWFUpload.SWFObject Plugin
Summary:
This plugin uses SWFObject to embed SWFUpload dynamically in the page. SWFObject provides accurate Flash Player detection and DOM Ready loading.
This plugin replaces the Graceful Degradation plugin.
Features:
* swfupload_load_failed_hander event
* swfupload_pre_load_... | JavaScript |
/*
Speed Plug-in
Features:
*Adds several properties to the 'file' object indicated upload speed, time left, upload time, etc.
- currentSpeed -- String indicating the upload speed, bytes per second
- averageSpeed -- Overall average upload speed, bytes per second
- movingAverageSpeed -- Speed over averaged... | JavaScript |
var topWin = window.dialogArguments || opener || parent || top;
function fileDialogStart() {
jQuery("#media-upload-error").empty();
}
// progress and success handlers for media multi uploads
function fileQueued(fileObj) {
// Get rid of unused form
jQuery('.media-blank').remove();
// Collapse a single item
if ( j... | JavaScript |
/**
* Copyright (c) 2006, David Spurr (http://www.defusion.org.uk/)
* 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 not... | JavaScript |
if ( typeof wp === 'undefined' )
var wp = {};
(function( exports, $ ) {
var Uploader;
if ( typeof _wpPluploadSettings === 'undefined' )
return;
/*
* An object that helps create a WordPress uploader using plupload.
*
* @param options - object - The options passed to the new plupload instance.
* Requi... | JavaScript |
var topWin = window.dialogArguments || opener || parent || top, uploader, uploader_init;
function fileDialogStart() {
jQuery("#media-upload-error").empty();
}
// progress and success handlers for media multi uploads
function fileQueued(fileObj) {
// Get rid of unused form
jQuery('.media-blank').remove();
var ite... | JavaScript |
/**
* jquery.Jcrop.js v0.9.8
* jQuery Image Cropping Plugin
* @author Kelly Hallman <[email protected]>
* 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 |
(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 |
// script.aculo.us unittest.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009
// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005-2009 Jon Tirsen (http://www.tirsen.com)
// (c) 2005-2009 Michael Schuerig (http://www.schuerig.de/michael/)
//
// script.aculo.us i... | JavaScript |
// script.aculo.us slider.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009
// Copyright (c) 2005-2009 Marty Haught, Thomas Fuchs
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
if (!Control) var Control = { };
/... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.