code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
window.onresize = function() {
try {
//resizeBox();
} catch (ex) { }
};
window.onload = function() {
moveMenu();
}
function resizeBox() {
try {
alert("aaa");
var box = document.getElementById("dBody");
var sizeW = utils.windowSize();
var boxT = (size... | JavaScript |
$(document).ready(function() {
startTopSlider();
startBotSlider();
});
var imgPos = 1;
var t;
function startTopSlider() {
initSlideHTML(1);
$(".iPreviewLine").click(function() {
clearTimeout(t);
$("#dTopSlide_Rewrite div:nth-child(2) span").stop(true, true);
$("#dTopS... | JavaScript |
var utils = {
windowSize: function() {
var iMyWidth = 0, iMyHeight = 0;
if (typeof (window.innerWidth) == 'number') {
//Non-IE
iMyWidth = window.innerWidth;
iMyHeight = window.innerHeight;
} else if (document.documentElement && (document.documentEl... | JavaScript |
window.onload = function() {
document.getElementById("formEmail");
$(function() {
$("#formEmail").validate({
rules: {
name: {
required: true,
minlength: 3
},
company: {
require... | 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 |
/**
* @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time at http://ckeditor.com/builder to build CKEditor aga... | JavaScript |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
| JavaScript |
/**
* @license Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckedit... | JavaScript |
/**
* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin, which shows a comb... | JavaScript |
/**
* jQuery TextExt Plugin
* http://textextjs.com
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($)
{
/**
* Suggestions plugin allows to easily specify the list of suggestion items that the
* Autocomplete plugin would present to ... | JavaScript |
/**
* jQuery TextExt Plugin
* http://textextjs.com
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($)
{
/**
* Prompt plugin displays a visual user propmpt in the text input area. If user focuses
* on the input, the propt is hidden ... | JavaScript |
/**
* jQuery TextExt Plugin
* http://textextjs.com
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($)
{
/**
* The Filter plugin introduces ability to limit input that the text field
* will accept. If the Tags plugin is used, Filter... | JavaScript |
/**
* jQuery TextExt Plugin
* http://textextjs.com
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($)
{
/**
* Tags plugin brings in the traditional tag functionality where user can assemble and
* edit list of tags. Tags plugin work... | JavaScript |
/**
* jQuery TextExt Plugin
* http://textextjs.com
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($)
{
/**
* Focus plugin displays a visual effect whenever user sets focus
* into the text area.
*
* @author agorbatchev
* @dat... | JavaScript |
/**
* jQuery TextExt Plugin
* http://textextjs.com
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($, undefined)
{
/**
* TextExt is the main core class which by itself doesn't provide any functionality
* that is user facing, howeve... | JavaScript |
/**
* jQuery TextExt Plugin
* http://textextjs.com
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($)
{
/**
* AJAX plugin is very useful if you want to load list of items from a data point and pass it
* to the Autocomplete or Filte... | JavaScript |
/**
* jQuery TextExt Plugin
* http://textextjs.com
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($)
{
/**
* Displays a dropdown style arrow button. The `TextExtArrow` works together with the
* `TextExtAutocomplete` plugin and whe... | JavaScript |
/**
* jQuery TextExt Plugin
* http://alexgorbatchev.com/textext
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($)
{
/**
* Displays a clear search button.
*
* @author mreinstein
* @date 2012/02/19
* @id TextExtClear
*/
fun... | JavaScript |
/**
* jQuery TextExt Plugin
* http://textextjs.com
*
* @version 1.3.1
* @copyright Copyright (C) 2011 Alex Gorbatchev. All rights reserved.
* @license MIT License
*/
(function($)
{
/**
* Autocomplete plugin brings the classic autocomplete functionality to the TextExt ecosystem.
* The gist of functionality i... | JavaScript |
$(document).ready(function() {
// Support for AJAX loaded modal window.
// Focuses on first input textbox after it loads the window.
$('[data-toggle="modal"]').bind('click',function(e) {
e.preventDefault();
var url = $(this).attr('href');
if (url.indexOf('#') == 0) {
$('#response_modal').modal('ope... | JavaScript |
!function ($) {
"use strict";
$.fn['switch'] = function (method) {
var methods = {
init:function () {
this.each(function () {
var $element = $(this)
, $div
, $switchLeft
, $switchRight
, $label
, myClass... | JavaScript |
/* jquery.masterblaster v.0.1.0
* A nice and tidy tag manager.
* by aef
*/
( function( $, window, document, undefined ) {
var pluginName = "masterblaster",
name = "plugin_masterblaster",
defaults = {
animate: true,
triggerKeys: [ 9, 13 ], //keycode when entered adds the tag
sho... | JavaScript |
function locdau(str){
str= str.toLowerCase();
str= str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a");
str= str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e");
str= str.replace(/ì|í|ị|ỉ|ĩ/g,"i");
str= str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o");
str= str.replac... | JavaScript |
$(function (){
if ($('.playercontainer').size()> 0){
setTimeout(function (){
$('body').animate({
scrollTop:$('.playercontainer').offset().top
}, 800);
}, 1000);
}
}); | JavaScript |
/**
* Amazing Slider Version 1.6
* Copyright 2013 Magic Hills Pty Ltd
* http://amazingslider.com
*/
(function ($) {
$.fn.html5lightbox = function (k) {
var l = this;
l.options = jQuery.extend({
autoplay : true,
html5player : true,
overlaybgcolor : "#000000",
overlayopacity : 0.9,
... | JavaScript |
$(document).ready(function(){
var slider_element = document.getElementById("amazingslider");
if (!slider_element) {}
else {
var scripts = document.getElementsByTagName("script");
var jsFolder = "";
for (var i= 0; i< scripts.length; i++)
{
if( scripts[i].src && scripts[i].src.match(/initslider-1\.j... | JavaScript |
jQuery(document).ready(function(){
// Box Equal Height
jQuery('.col1 .post.fl').each(function(){
h_left = jQuery(this).children('.box-post-content').height();
h_right = jQuery(this).next('.fr').children('.box-post-content').height();
if(h_left >= h_... | JavaScript |
/******************************************
Auto-readmore link script, version 2.0 (for blogspot)
(C)2008 by Anhvo
visit http://en.vietwebguide.com to get more cool hacks
********************************************/
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(... | JavaScript |
jQuery(document).ready(function(){
// UL = .wooTabs
// Tab contents = .inside
var tag_cloud_class = '#tagcloud';
//Fix for tag clouds - unexpected height before .hide()
var tag_cloud_height = jQuery('#tagcloud').height();
jQuery('.inside ul li... | JavaScript |
/*
* Superfish v1.4.8 - jQuery menu widget
* Copyright (c) 2008 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
*/
;(functio... | JavaScript |
jQuery(document).ready(function(){
// You can edit the Sldier animation her
var slide_fade = false;
var content_fade = false;
var padding_offset = 20; // Adjust for slider content -popup
// --- CORE ---
var counter = 0;
var amount_of_slides = jQuery('#slider-holder .slide').length; ... | JavaScript |
/*!
* jQuery Form Plugin
* version: 2.47 (04-SEP-2010)
* @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 |
/*
* 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
* http:/... | JavaScript |
/**
* TableDnD plug-in for JQuery, allows you to drag and drop table rows
* You can set up various options to control how the system will work
* Copyright (c) Denis Howlett <denish@isocra.com>
* Licensed like jQuery, see http://docs.jquery.com/License.
*
* Configuration options:
*
* onDragStyle
* This is ... | JavaScript |
/*
* jQuery UI Multiselect
*
* Authors:
* Michael Aufreiter (quasipartikel.at)
* Yanick Rochon (yanick.rochon[at]gmail[dot]com)
*
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://www.quasipartikel.at/multiselect/
*
*
* Depends:
* ui.core.js
* ui.sortab... | JavaScript |
//打开迷你播放器
function openMiniPlayer(info)
{
var url = "player.html#" + info.selectionText;
if (localStorage["showSelectionContext_Type"] == 2)
{
chrome.windows.create({url: url, width: 285, height:83 ,type: 'popup'});
}
else
{
var notification = webkitNotifications.createHTMLNotification(url);
/*th... | JavaScript |
(function() {
var e = document.getElementsByTagName("script"), e = e[e.length - 1].src, d = e.substr(0, e.lastIndexOf("/") + 1);
if("undefined" == typeof jQuery || 1.6 > parseFloat(/^\d\.\d+/i.exec(jQuery.fn.jquery))) {
var a = 0, s = d + "jquery.js", e = ("https:" == document.location.protocol ? "https" : "... | JavaScript |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
var kDefaultURL = 'compressed.tracemonkey-pldi-09.pdf';
var kDefaultScale = 1.5;
var kDefaultScaleDelta = 1.1;
var kCacheSize = 20;
var kCssUnits = 96.0 / ... | JavaScript |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
// Checking if the typed arrays are supported
(function checkTypedArrayCompatibility() {
if (typeof Uint8Array !== 'undefined')
return;
function s... | JavaScript |
jQuery.extend({
createUploadIframe: function(id, uri)
{
//create frame
var frameId = 'jUploadFrame' + id;
var iframeHtml = '<iframe id="' + frameId + '" name="' + frameId + '" style="position:absolute; top:-9999px; left:-9999px"';
if(window.ActiveXObject)
{
... | JavaScript |
var elements=[];
var curElement="";
$(document).ready(function(e) {
init();
$('.layer-before-canvas').click(addElement);
$("#pointer").click(clickMouse);
$("#addText").click(clickText);
$("#addImage").click(clickImage);
$("#eraser").click(clickEraser);
$("#exportPdf").click(exportPdf);
... | JavaScript |
var Field = {
"xPos" : -1,
"yPos" : -1,
"placeId" : "",
"count" :0,
"_init": function (event) {
var place = "";
if (Field.placeId != "")
place = document.getElementById(Field.placeId);
else
place = document.getElementsByTagName("body")[0];
Field.xPos = event.offsetX ? (event.offsetX) : event.pageX... | JavaScript |
var ratio=1.34;
var filename = './files/example.pdf';
PDFJS.workerSrc = "libs/pdf.js";
PDFJS.getPdf(filename, function getPdfFile(data) {
var pdf = new PDFJS.PDFDoc(data);
var pageNum = pdf.numPages;
var pages=[];
var scale = ratio;
var i;
//Tải các trang pdf vào mảng pages
//trang pdf được... | JavaScript |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
var PDFJS = {};
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
'use strict';
PDFJS.build = 'f007455';
// Files are inse... | JavaScript |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
var kDefaultURL = 'compressed.tracemonkey-pldi-09.pdf';
var kDefaultScale = 1.5;
var kDefaultScaleDelta = 1.1;
var kCacheSize = 20;
var kCssUnits = 96.0 / ... | JavaScript |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
// Checking if the typed arrays are supported
(function checkTypedArrayCompatibility() {
if (typeof Uint8Array !== 'undefined')
return;
function s... | JavaScript |
var Field = {
"xPos" : -1,
"yPos" : -1,
"placeId" : "",
"count" :0,
"_init": function (event) {
var place = "";
if (Field.placeId != "")
place = document.getElementById(Field.placeId);
else
place = document.getElementsByTagName("body")[0];
Field.xPos = event.offsetX ? (event.offsetX) : event.pageX... | JavaScript |
var ratio=1.5;
var filename = 'files/example.pdf';
PDFJS.workerSrc = "libs/pdf.js";
PDFJS.getPdf(filename, function getPdfFile(data) {
var pdf = new PDFJS.PDFDoc(data);
var pageNum = pdf.numPages;
var pages=[];
var scale = ratio;
var i;
//Tải các trang pdf vào mảng pages
//trang pdf được tí... | JavaScript |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
var PDFJS = {};
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
'use strict';
PDFJS.build = 'PDFJSSCRIPT_BUNDLE_VER';
//... | JavaScript |
var list = []; //评论列表
var editorId = "#comment_content";
var verifycodeId = "#img_verifycode";
var listId = "#comment_list";
$(document).ready(init_comment);
function init_comment() {
load_comment_form();
editor = $(editorId);
var editor_inter = null;
if (editor.length > 0) {
... | JavaScript |
// JScript 文件
function LogClickCount(link,areaId)
{
var url=window.location.href;
var myImage=new Image(0,0);
if(link!=null && link!='')
{
myImage.src="http://counter.csdn.net/a/Counter.aspx?area=" + areaId+"&u="+ escape(link);
}
else
{
myImage.src="http://counter... | JavaScript |
document.writeln("<link rel=\"stylesheet\" type=\"text\/css\" href=\"http://csdnimg.cn/pubnav/css/navtop_2012.css\" \/>");
document.writeln("<div class=\"nav_top_2011\">");
var p__un = document.cookie.match(new RegExp("(^| )UserName=([^;]*)(;|$)"));
if (p__un) {
document.write('<p><em>' + p__un[2] + '</em><a href=... | JavaScript |
function RandomNum(min, max) {
return Math.floor(Math.random() * (max - min) + min);
}
// 水平滚动插件
(function ($) {
$.fn.extend({
Scroll: function (opt, callback) {
//参数初始化
if (!opt) var opt = {};
var _btnRight = $("#" + o... | JavaScript |
/*
* CSDN 登录框
* Copyright 2012, zhuhz@csdn.net
* Date: 2012-6-6
*
* 调用:csdn.showLogin(callback);
*
* 获取当前登录用户名(可用于判断用户是否处于登录状态):csdn.getCookie('UserName')
*/
(function(){
var csdn = window.csdn || function () { };
window.csdn = csdn;
csdn.domain = "passport.csdn.net";
csdn.doing = false;
csdn.$ = fu... | JavaScript |
/*jshint browser:true */
/**
@file 前端用户行为跟踪
@example
<script type="text/javascript" charset="utf-8" src="http://csdnimg.cn/pubfooter/js/tracking.js" defer=""></script>
@author 曹宇 <caoyu@csdn.net>
@version 20130107
*/
;(function(window, undefined) {
'use strict';
var doc = document,
nav = navig... | JavaScript |
var ad_type = 'ms467';
var ad_sc = '<script type="text/javascript" '
+ 'src="http://ad.csdn.net/scripts/ad-' + ad_type + '.js"'
+ '></'
+ 'script>';
document.writeln(ad_sc);
| JavaScript |
var home_domain = "blog.csdn.net";
var ad_cnt = ad_cnt || 0;
/*CSDN广告延迟加载 t:广告类型,数字;id:容器id*/
var Ad = function (t, id) {
this.adType = t;
this.containerId = id;
this.adIndex = ad_cnt++;
this.loadAd = function () {
//document.domain = "csdn.net";
var container = document.... | JavaScript |
//bbs 3.8
var cloudad_type = 'ms467';
var cloudad_urls = [
'http://ad.csdn.net/adsrc/mm-cloud-newshomepage-760-90-0304.swf'
];
var cloudad_clks = [
'http://e.cn.miaozhen.com/r.gif?k=1004391&p=3yE1r0&rt=2&ns=[M_ADIP]&ni=[M_IESID]&na=[M_MAC]&o=http://www.ibm.com/midmarket/cn/zh/engines_cloud.html?csr=apch_cyl1_201... | JavaScript |
function IEworkaround(){
var control_groupName_array = ["controllo_group_0","controllo_group_2","controllo_group_4","controllo_group_6"];
var angle=-45;
var Dx=-30;
for (i in control_groupName_array) {
var control_group_div=document.getElementById(control_groupName_array[i]);
var radangle=angle*Math.PI/180;
v... | JavaScript |
// === Sylvester ===
// Vector and Matrix mathematics modules for JavaScript
// Copyright (c) 2007 James Coglan
//
// 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 restrictio... | JavaScript |
function delete_url(id) {
if (confirm('Are you sure to delete this record?')) {
document.location = 'index.php?delete_id=' + id;
}
}
| 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 31449 2012-08-28 09:19:06Z 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 28981 2012-03-21 06:43:44Z 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 31593 2012-09-12 03:22:13Z zhangguosheng $
*/
var BROWSER = {};
var USERAGENT = navigator.userAgent.toLowerCase();
browserVersion({'ie':'msie','firefox':'','chrome':'','opera':'','safari':'','mozi... | 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 31008 2012-07-09 02:24:15Z 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.