code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
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 |
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 |
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 |
/**
* 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 |
/**
* mctabs.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
function MCTabs() {
this.settings = [];
this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tiny... | JavaScript |
/**
* editable_selects.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
var TinyMCE_EditableSelects = {
editSelectElm : null,
init : function() {
var nl = document.getEl... | 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 |
// ===================================================================
// Author: Matt Kruse <matt@mattkruse.com>
// WWW: http://www.mattkruse.com/
//
// NOTICE: You may use this code for any purpose, commercial or
// private, without any further permission from the author. You may
// remove this notice from your final... | JavaScript |
/*
* Quicktags
*
* This is the HTML editor in WordPress. It can be attached to any textarea and will
* append a toolbar above it. This script is self-contained (does not require external libraries).
*
* Run quicktags(settings) to initialize it, where settings is an object containing up to 3 properties:
* settin... | 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 |
jQuery(document).ready(function() {
jQuery('#upload_image_button').click(function() {
formfield = jQuery('#upload_image').attr('name');
tb_show('', 'media-upload.php?type=image&TB_iframe=true');
return false;
});
window.send_to_editor = function(html) {
imgurl = jQuery('img',html).attr('src');
jQu... | JavaScript |
if ( typeof lightbox_path == "undefined" ) var lightbox_path = 'http://'+location.hostname+'/wp-content/plugins/lightbox-gallery/';
if ( typeof hs != "undefined" ) {
if ( typeof graphicsDir != "undefined" ) hs.graphicsDir = graphicsDir;
else hs.graphicsDir = 'http://'+location.hostname+'/wp-content/plugins/lightb... | JavaScript |
/*
* jQuery Tooltip plugin 1.3
*
* http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
* http://docs.jquery.com/Plugins/Tooltip
*
* Copyright (c) 2006 - 2008 Jörn Zaefferer
*
* jQueryId: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer jQuery
*
* Dual licensed under the MIT and G... | 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-06-20 03:23:36 +0200 (Mi, 20 Jun 2007) $
* $Rev: 2110 $
*
* Version... | JavaScript |
/******************************************************************************
Name: Highslide JS
Version: 4.1.8 (October 27 2009)
Config: default
Author: Torstein Hønsi
Support: http://highslide.com/support
Licence:
Highslide JS is licensed under a Creative Commons Attribution-NonCommercial 2.5
License ... | 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 |
/**
* Dockable.
**/
(function($){
$.widget("db.dockable", $.ui.mouse, {
options: {
handle: false,
axis: 'y',
resize: function() {},
resized: function() {}
},
_create: function() {
if ( this.options.axis == 'x' ) {
this.page = 'pageX';
this.dimension = 'width';
} else {
this.page =... | JavaScript |
(function() {
var count, list, rawCount = 0;
window.onerror = function( errorMsg, url, lineNumber ) {
var errorLine, place, button, tab;
rawCount++;
if ( !count )
count = document.getElementById( 'debug-bar-js-error-count' );
if ( !list )
list = document.getElementById( 'debug-bar-js-errors' );
i... | JavaScript |
var wpDebugBar;
(function($) {
var api;
wpDebugBar = api = {
// The element that we will pad to prevent the debug bar
// from overlapping the bottom of the page.
body: undefined,
init: function() {
// If we're not in the admin, pad the body.
api.body = $(document.body);
api.toggle.init();
api.tabs();
... | 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 |
var showNotice, adminMenu, columns, validateForm, screenMeta, autofold_menu;
(function($){
// Removed in 3.3.
// (perhaps) needed for back-compat
adminMenu = {
init : function() {},
fold : function() {},
restoreMenuState : function() {},
toggle : function() {},
favorites : function() {}
};
// show/hide/save table... | JavaScript |
(function($){
function check_pass_strength() {
var pass1 = $('#pass1').val(), user = $('#user_login').val(), pass2 = $('#pass2').val(), strength;
$('#pass-strength-result').removeClass('short bad good strong');
if ( ! pass1 ) {
$('#pass-strength-result').html( pwsL10n.empty );
return;
}
strength = p... | JavaScript |
var tagBox, commentsBox, editPermalink, makeSlugeditClickable, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint;
// return an array with any duplicate, whitespace or values removed
function array_unique_noempty(a) {
var out = [];
jQuery.each( a, function(key, val) {
val = jQuery.trim(val);
if... | JavaScript |
(function($) {
inlineEditTax = {
init : function() {
var t = this, row = $('#inline-edit');
t.type = $('#the-list').attr('class').substr(5);
t.what = '#'+t.type+'-';
$('.editinline').live('click', function(){
inlineEditTax.edit(this);
return false;
});
// prepare the edit row
row.keyup(functio... | JavaScript |
function WPSetAsThumbnail(id, nonce){
var $link = jQuery('a#wp-post-thumbnail-' + id);
$link.text( setPostThumbnailL10n.saving );
jQuery.post(ajaxurl, {
action:"set-post-thumbnail", post_id: post_id, thumbnail_id: id, _ajax_nonce: nonce, cookie: encodeURIComponent(document.cookie)
}, function(str){
var win = w... | JavaScript |
jQuery(document).ready( function($) {
var stamp = $('#timestamp').html();
$('.edit-timestamp').click(function () {
if ($('#timestampdiv').is(":hidden")) {
$('#timestampdiv').slideDown("normal");
$('.edit-timestamp').hide();
}
return false;
});
$('.cancel-timestamp').click(function() {
$('#timestampd... | JavaScript |
jQuery(document).ready(function($) {
var gallerySortable, gallerySortableInit, w, desc = false;
gallerySortableInit = function() {
gallerySortable = $('#media-items').sortable( {
items: 'div.media-item',
placeholder: 'sorthelper',
axis: 'y',
distance: 2,
handle: 'div.filename',
stop: function(e, ... | JavaScript |
/*!
* Farbtastic: jQuery color picker plug-in v1.3u
*
* Licensed under the GPL license:
* http://www.gnu.org/licenses/gpl.html
*/
(function($) {
$.fn.farbtastic = function (options) {
$.farbtastic(this, options);
return this;
};
$.farbtastic = function (container, callback) {
var container = $(container)... | JavaScript |
var farbtastic;
function pickColor(color) {
farbtastic.setColor(color);
jQuery('#background-color').val(color);
jQuery('#custom-background-image').css('background-color', color);
if ( color && color !== '#' )
jQuery('#clearcolor').show();
else
jQuery('#clearcolor').hide();
}
jQuery(document).ready(function()... | JavaScript |
// send html to the post editor
var wpActiveEditor;
function send_to_editor(h) {
var ed, mce = typeof(tinymce) != 'undefined', qt = typeof(QTags) != 'undefined';
if ( !wpActiveEditor ) {
if ( mce && tinymce.activeEditor ) {
ed = tinymce.activeEditor;
wpActiveEditor = ed.id;
} else if ( !qt ) {
return ... | JavaScript |
var findPosts;
(function($){
findPosts = {
open : function(af_name, af_val) {
var st = document.documentElement.scrollTop || $(document).scrollTop();
if ( af_name && af_val ) {
$('#affected').attr('name', af_name).val(af_val);
}
$('#find-posts').show().draggable({
handle: '#find-posts-head'
... | JavaScript |
/**
* PubSub
*
* A lightweight publish/subscribe implementation.
* Private use only!
*/
var PubSub, fullscreen, wptitlehint;
PubSub = function() {
this.topics = {};
};
PubSub.prototype.subscribe = function( topic, callback ) {
if ( ! this.topics[ topic ] )
this.topics[ topic ] = [];
this.topics[ topic ].pu... | JavaScript |
(function($) {
wpWordCount = {
settings : {
strip : /<[a-zA-Z\/][^<>]*>/g, // strip HTML tags
clean : /[0-9.(),;:!?%#$¿'"_+=\\/-]+/g, // regexp to remove punctuation, etc.
count : /\S\s+/g // counting regexp
},
block : 0,
wc : function(tx) {
var t = this, w = $('.word-count'), tc = 0;
if ( ... | JavaScript |
// utility functions
var wpCookies = {
// The following functions are from Cookie.js class in TinyMCE, Moxiecode, used under LGPL.
each : function(o, cb, s) {
var n, l;
if (!o)
return 0;
s = s || o;
if (typeof(o.length) != 'undefined') {
for (n=0, l = o.length; n<l; n++) {
if (cb.call(s, o[n], n... | JavaScript |
var postboxes, is_iPad = navigator.userAgent.match(/iPad/);
(function($) {
postboxes = {
add_postbox_toggles : function(page, args) {
this.init(page, args);
$('.postbox h3, .postbox .handlediv').bind('click.postboxes', function() {
var p = $(this).parent('.postbox'), id = p.attr('id');
if ( 'dashboa... | JavaScript |
/**
* WordPress Administration Navigation Menu
* Interface JS functions
*
* @version 2.0.0
*
* @package WordPress
* @subpackage Administration
*/
var wpNavMenu;
(function($) {
var api = wpNavMenu = {
options : {
menuItemDepthPerLevel : 30, // Do not use directly. Use depthToPx and pxToDepth instead.
... | JavaScript |
var ajaxWidgets, ajaxPopulateWidgets, quickPressLoad;
jQuery(document).ready( function($) {
/* Dashboard Welcome Panel */
var welcomePanel = $('#welcome-panel'),
welcomePanelHide = $('#wp_welcome_panel-hide'),
updateWelcomePanel = function( visible ) {
$.post( ajaxurl, {
action: 'update-welcome-panel',
... | JavaScript |
var theList, theExtraList, toggleWithKeyboard = false, getCount, updateCount, updatePending, dashboardTotals;
(function($) {
setCommentsList = function() {
var totalInput, perPageInput, pageInput, lastConfidentTime = 0, dimAfter, delBefore, updateTotalCount, delAfter, refillTheExtraList;
totalInput = $('input[name=... | JavaScript |
/* Plugin Browser Thickbox related JS*/
var tb_position;
jQuery(document).ready(function($) {
tb_position = function() {
var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 720 < width ) ? 720 : width, adminbar_height = 0;
if ( $('body.admin-bar').length )
adminbar_height =... | JavaScript |
var wpWidgets;
(function($) {
wpWidgets = {
init : function() {
var rem, sidebars = $('div.widgets-sortables'), isRTL = !! ( 'undefined' != typeof isRtl && isRtl ),
margin = ( isRtl ? 'marginRight' : 'marginLeft' ), the_id;
$('#widgets-right').children('.widgets-holder-wrap').children('.sidebar-name').click(... | JavaScript |
var switchEditors = {
switchto: function(el) {
var aid = el.id, l = aid.length, id = aid.substr(0, l - 5), mode = aid.substr(l - 4);
this.go(id, mode);
},
go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'
id = id || 'content';
mode = mode || 'toggle';
var t = this, ed = tinyMCE.get(i... | JavaScript |
jQuery(document).ready( function($) {
var newCat, noSyncChecks = false, syncChecks, catAddAfter;
$('#link_name').focus();
// postboxes
postboxes.add_postbox_toggles('link');
// category tabs
$('#category-tabs a').click(function(){
var t = $(this).attr('href');
$(this).parent().addClass('tabs').siblings('li... | JavaScript |
var thickDims, tbWidth, tbHeight;
jQuery(document).ready(function($) {
thickDims = function() {
var tbWindow = $('#TB_window'), H = $(window).height(), W = $(window).width(), w, h;
w = (tbWidth && tbWidth < W - 90) ? tbWidth : W - 90;
h = (tbHeight && tbHeight < H - 60) ? tbHeight : H - 60;
if ( tbWindow.s... | JavaScript |
jQuery(document).ready( function($) {
var before, addBefore, addAfter, delBefore;
before = function() {
var nonce = $('#newmeta [name="_ajax_nonce"]').val(), postId = $('#post_ID').val();
if ( !nonce || !postId ) { return false; }
return [nonce,postId];
}
addBefore = function( s ) {
var b = before();
if... | JavaScript |
// Password strength meter
function passwordStrength(password1, username, password2) {
var shortPass = 1, badPass = 2, goodPass = 3, strongPass = 4, mismatch = 5, symbolSize = 0, natLog, score;
// password 1 != password 2
if ( (password1 != password2) && password2.length > 0)
return mismatch
//password < 4
if ... | JavaScript |
jQuery(document).ready( function($) {
$('#link_rel').prop('readonly', true);
$('#linkxfndiv input').bind('click keyup', function() {
var isMe = $('#me').is(':checked'), inputs = '';
$('input.valinp').each( function() {
if (isMe) {
$(this).prop('disabled', true).parent().addClass('disabled');
} else {
... | JavaScript |
jQuery(document).ready(function($) {
var options = false, addAfter, delBefore, delAfter;
if ( document.forms['addcat'].category_parent )
options = document.forms['addcat'].category_parent.options;
addAfter = function( r, settings ) {
var name, id;
name = $("<span>" + $('name', r).text() + "</span>").text();
... | JavaScript |
var ThemeViewer;
(function($){
ThemeViewer = function( args ) {
function init() {
$( '#filter-click, #mini-filter-click' ).unbind( 'click' ).click( function() {
$( '#filter-click' ).toggleClass( 'current' );
$( '#filter-box' ).slideToggle();
$( '#current-theme' ).slideToggle( 300 );
return false... | JavaScript |
var imageEdit;
(function($) {
imageEdit = {
iasapi : {},
hold : {},
postid : '',
intval : function(f) {
return f | 0;
},
setDisabled : function(el, s) {
if ( s ) {
el.removeClass('disabled');
$('input', el).removeAttr('disabled');
} else {
el.addClass('disabled');
$('input', el).prop('disable... | JavaScript |
jQuery(document).ready(function($) {
$('.delete-tag').live('click', function(e){
var t = $(this), tr = t.parents('tr'), r = true, data;
if ( 'undefined' != showNotice )
r = showNotice.warn();
if ( r ) {
data = t.attr('href').replace(/[^?]*\?/, '').replace(/action=delete/, 'action=delete-tag');
$.post(a... | JavaScript |
(function($) {
inlineEditPost = {
init : function(){
var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit');
t.type = $('table.widefat').hasClass('pages') ? 'page' : 'post';
t.what = '#post-';
// prepare the edit rows
qeRow.keyup(function(e){
if (e.which == 27)
return inlineEditPost.rev... | JavaScript |
/*
**************************************************************************
_____ _____ _ _
| ____| | _ \ | | / /
| |__ | | | | | |/ /
| __| | | | | | |\ \
| |___ | |_| | | | \ \
|_____| |_____/ |_| \_\
Version: 0.1.1
Author: Frank Cheung
QQ: 799887651
Email:... | JavaScript |
$$.XML = (function(){
// 不完全JSON,某些XMLDoc的成员一幅其中。
function parseXMLNode(node) {
var obj = {};
var element = node.firstChild;
while (element) {
if (element.nodeType === 1) {
var name = element.nodeName;
var sub = parseXMLNode(element)
sub.nodeValue = "";
sub.xml = element.xml;
... | JavaScript |
;(function(){
// fso不存在 rename(),只有通过 move() 来完成。
function renName(){}
/**
* @class $$.fs.File
*/
$$.fs.File = function(){
/**
* 根据文件的MIME(content-type)类型,返回文件的扩展名。
* @param {String} contentType
* @return {String} null表示为不能识别该Content-Type。
*/
this.setMIME = function(conten... | JavaScript |
$$.file.FileDownload = {
/**
* 送入一个文件磁盘地址,使用ADODB.Stream组件下载。
* 文件大小有限制?
* 隐藏下载地址及防盗代码。
* @param {String} filePath
* @return {Boolean} 是否传送成功。
*/
fsoDown : function(filePath){
var
fileObj
,fileSize;
with(new ActiveXObject("Scripting.FileSystemObject")){
fileObj = getFile(... | JavaScript |
;(function(){
$$.data.Synchronizer = function(){
/**
* 生成上一条记录,下一条记录功能
* @param {String} tableName 表名。
* @param {Number} opt opt有两个值,0或1.
* @return {String}
*/
this.between = function(tableName, opt) {
var
html = '<a href="?ID={0}">{1}</a>'
,ID = Number(Request.QueryStri... | JavaScript |
/**
* @class $$.sql.writer.Writer
*/
$$.sql.writer.Writer = (function(){
var
sqlTpl_Insert = 'INSERT INTO {0} ({1}) VALUES ({2})'
,sqlTpl_Update = 'UPDATE {0} SET {1} WHERE id = {2}'
,sqlTpl_Delete = 'DELETE FROM {0} WHERE id = {1}';
/**
* @param {Object} entityObj
* @param {Action} action
... | JavaScript |
/**
* @class $$.sql.reader.Querist
*/
/*
bar = {
select : [news.id, news.title, newsclass.title, newsclass.id, user.id, user.title]
}
*/
$$.sql.reader.Querist = {
constructor: function(){
var data = this.data;
if(!data) {
data = this.data = {};
}
data.mainTable = '';
data.top ... | JavaScript |
/**
* @class $$.sql.reader.Pagination
* 使用start/limited的方式的分页类。
*/
$$.sql.reader.Pagination = {
constructor : function(){
this.pageSize = Number(Request.QueryString('limit')()) || this.pageSize;
this.startNum = Number(Request.QueryString('start')()) || this.startNum;
}
/**
* 每页显示记录笔数,或者说读取多少笔的记... | JavaScript |
/**
* @class SQL搜索器。
*/
DeepCMS.search = {
/**
* 简易分词生成器
* @cfg {Array} targetField 选择要搜索的字段(最多两个)
* @cfg {Boolean} isPreSearch 可选的 默认false 返回找到的记录集SQL语句
* @cfg {String} tablename 选择的表名
* @return {String} SQL字符串
*/
searchParser: function (config){
var keyword = config.keyword;
if (!keyw... | JavaScript |
$$.require($$.sql.writer.Writer);
$$.require($$.sql.reader.Reader);
$$.require($$.sql.reader.Pagination);
/**
* @class Edk.sql.DAO
* @mix $$.sql.writer.Writer
* @mix $$.sql.reader.Reader
* @mix $$.sql.reader.Pagination
* DAO = Data Access Object 数据访问对象,既可读又可写的。
*/
$$.sql.DAO = (function(){
var con... | JavaScript |
$$.Server.IO = (function(){
/**
* @overrided
*/
function findById(tagLibs, authority, id){
var
data = this.findById(id)
,content = tagLibs.renderContentPanel(data)
,header = tagLibs.renderHead({
isEditMode: authority.isEditMode()
})
,body = tagLibs.renderBody(content);
th... | JavaScript |
/// 获取客户端IP
/// @return {String} IP
function getIp() {
var proxy = $("HTTP_X_FORWARDED_FOR", "serv"),
ip = proxy && proxy.indexOf("unknown") != -1 ? proxy.split(/,;/g)[0] : $("REMOTE_ADDR", "serv");
ip = ip.trim().substring(0, 15);
return "::1" === ip ? "127.0.0.1" : ip;
};
/**
* Raw POST的解析器。R... | JavaScript |
;(function(){
var
// 输出到浏览器的方法。
write
// 添加一个HTML的首部到响应。
,addHeader
// 输出二进制数据,不进行任何字符的转换。
,binaryWrite;
if($$.Server.isNodeJS){
write = $$.emptyFn;
// @todo
addHeader = function(){
}
}else if($$.Server.isASP){
write = function(){
Response.write(arguments[0]);
}... | JavaScript |
;(function(){
var
isNodeJS = (typeof process != 'undefined') && !!(process && process.version)
,isASP = !!this.ASP;
if($$.Server.isNodeJS){
$$.Server.mappath = function(){};
$$.log = console.log;
// @todo set a file for Application
}if($$.Server.isASP){
$$.Server.mappath = func... | JavaScript |
var i =0; | JavaScript |
/**
* @class Edk.Event
* Event类,就是一个提供事件服务的类,写得简简单单,不求多元、繁复(明显没有比Ext都考虑得多,那是一种方向)。
* 好像但凡研究JS到一定阶段的人,都要搞清楚事件吧,嗯~必修课。
* 事件的立论基础大家可以从观察者模式得到许多灵感,当然就是必须有第三方的“中立”观察者,
* 一边提供订阅事件的接口,一边让组件触发事件的fireEvent()。
* 前言:
不得不承认,有时候从新写一个库是一件很辛苦的事情。但是,相比较之下,直接使用别人写好的软件来修改,难道这样痛苦的程度就会减少吗?
基于事件模式的设计
JS的一大好处就是对Function天... | JavaScript |
/**
* @class $$.data.Tree
*/
$$.data.Tree = (function(){
/**
* iterator
* @param {Array} arr
* @param {Object} scope
* @param {Number} i
* @param {Number} j A ghost value, 穿梭于
*/
function array_Iterator(arr, scope, i, j){
// init...
if(typeof scope ==... | JavaScript |
/**
* 网页模板是把动态的数据和静态的表现组装到一起的工具,使得内容与表现方式可以分离,是Web开发中的重要技术手段。
* 早期的Web开发很简单,没有“模板 ”的概念。
* 只需把数据提取出来,放在HTML里面显示就达到程序的目的。
* HTML代码混合于逻辑代码之中,HTML就是直接显示的内容,内嵌在HMTL 中<% ... %>表示为后台(服务端)执行代码,
* 但很多情况<% ... %>中又有HTML的片段,至于怎么拼凑出HTML片段的方式方法各式各样、与多种的后台语言掺杂一起(ASP、PHP、JSP)各显神通。
*/
$$.tpl = (function(){
var divBlock ... | JavaScript |
$$.JSON = (function() {
function NumberAs(num) {
return num.toString();
}
// function StringAs(string) {
// return '"' + object.replace(/(\\|\")/g, "\\$1").replace(/\n|\r|\t/g,
// function() {
// var a = arguments[0];
// return (a == '\n') ? '\\n' : (a == '\r')
// ? '\\r'
// : (... | JavaScript |
/**
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
用法:
<%@language=jscript codepage=65001%>
<script src="/edk/common/edk.js" language="JavaScript" runat="server"></script>
<script src="/edk/common... | JavaScript |
/**
* @classs Edk.logger 记录日志。
/**
* LOG一些SQL操作。读的操作就不LOG。
* @param rs {ADODB.Recordset} 记录集合
* @return {ADODB.Recordset}
*/
function logSQL(rs){
// var writeSQL = /(.*?((insert)|(delete)|(update)|(drop)|(truncate)).*?){2,}/i;
var writeSQL = /((insert)|(delete)|(update)... | JavaScript |
/* =================================================================================================
* TransMenu
* March, 2003
* Customizable multi-level animated DHTML menus with transparency.
*
* Copyright Aaron Boodman (www.youngpup.net)
* ================================================================... | JavaScript |
/**
*
* @author Alexander Khaylo <alex.khaylo@gmail.com>
* @copyright Copyright (c) 2012 NIX Solutions (http://www.nixsolutions.com)
*/
$(function() {
$('.grid-buttons').delegate('a#up-button', 'click', function(e) {
e.stopPropagation();
var url = this.href, res = [];
$('#gri... | JavaScript |
/**
* Notices
*/
var Messages = (function($, undefined) {
var M = {
_uid:"messages",
_el:null,
_to:null,
_callback:null,
_settings:{
'fadeIn':500,
'fadeOut':500,
'showTime':3000
},
getContainer:function(){
if (... | JavaScript |
/**
* Ready event
*
* @author Anton Shevchuk
*/
(function($, undefined) {
$(function(){
// jQUery UI widgets
// Datepickers
if (!$.browser.opera && $.isFunction($.datepicker)) {
$('input[type=date]').datepicker({"dateFormat":'yy-mm-dd'});
}
// Tabs
if ($.isFunction(... | JavaScript |
;(function($) {
var pluginName = 'grid'
, defaults = {};
function Plugin(element, options) {
this.element = $(element);
this.options = $.extend({}, defaults, this.element.data(), options || {}) ;
this.data = {};
this._defaults = defaults;
this._name = plug... | JavaScript |
/*
Redactor v7.7.2
Updated: July 19, 2012
http://redactorjs.com/
Copyright (c) 2009-2012, Imperavi Ltd.
License: http://redactorjs.com/license/
Usage: $('#content').redactor();
*/
if (typeof RELANG === 'undefined')
{
var RELANG = {};
}
var RLANG = {
html: 'HTML',
video: 'Insert Video...',
image: 'Inse... | JavaScript |
var RELANG = {};
RELANG['tr'] = {
html: 'HTML',
video: 'Video',
image: 'Görsel',
table: 'Tablo',
link: 'Bağlantı',
link_insert: 'Bağlantı Ekle ...',
unlink: 'Bağlantı Kaldır',
formatting: 'Stiller',
paragraph: 'Paragraf',
quote: 'Alıntı',
code: 'Kod',
header1: 'Başlık 1',
header2: 'Başlık 2',
header3: 'Ba... | JavaScript |
var RELANG = {};
RELANG['ru'] = {
html: 'Код',
video: 'Видео',
image: 'Изображение',
table: 'Таблица',
link: 'Ссылка',
link_insert: 'Вставить ссылку ...',
unlink: 'Удалить ссылку',
formatting: 'Форматирование',
paragraph: 'Обычный текст',
quote: 'Цитата',
code: 'Код',
header1: 'Заголовок 1',
header2: 'Заго... | JavaScript |
var RELANG = {};
RELANG['ko'] = {
html: 'HTML',
video: '비디오',
image: '이미지',
table: '표',
link: '링크',
link_insert: '링크 삽입...',
unlink: '링크 삭제',
formatting: '스타일',
paragraph: '단락',
quote: '인용',
code: '코드',
header1: '헤더 1',
header2: '헤더 2',
header3: '헤더 3',
header4: '헤더 4',
bold: '굵게',
italic: '기울임꼴',
fo... | JavaScript |
//@chen1706@gmail.com
var RELANG = {};
RELANG['zh_cn'] = {
html: 'HTML代码',
video: '视频',
image: '图片',
table: '表格',
link: '链接',
link_insert: '插入链接',
unlink: '取消链接',
formatting: '样式',
paragraph: '段落',
quote: '引用',
code: '代码',
header1: '一级标题',
header2: '二级标题',
header3: '三级标题',
header4: '四级标题',
bold: '粗体',
... | JavaScript |
var RELANG = {};
RELANG['fr'] = {
html: 'Code HTML',
video: 'Vidéo',
image: 'Image',
table: 'Tableau',
link: 'Lien URL',
link_insert: 'Insérer/Modifier un lien',
unlink: 'Nettoyer le lien',
styles: 'Styles',
paragraph: 'Paragraphe',
quote: 'Citation',
code: 'Code',
header1: 'Titre 1',
header2: 'Titre 2',
... | JavaScript |
var RELANG = {};
RELANG['fa'] = {
html: 'اچ تی ام ال',
video: 'درج ویدیو...',
image: 'درج تصویر',
table: 'جدول',
link: 'پیوند',
link_insert: 'درج پیوند ...',
unlink: 'از بین بردن پیوند',
formatting: 'فالب بندی',
paragraph: 'پراگراف',
quote: 'نقل قول',
code: 'کد',
header1: 'سرامد 1',
header2: 'سرامد 2',
he... | JavaScript |
var RELANG = {};
RELANG['eo'] = {
html: 'HTML', // substantive
video: 'Enŝovu Videon...', // imperative
image: 'Enŝovu Bildon...', // imperative
table: 'Tabelo', // substantive
link: 'Ligu', // imperative
link_insert: 'Enŝovu Ligilon ...', // imperative
unlink: 'Malligu', // imperative
formatting: 'Tekstaranĝo'... | JavaScript |
var RELANG = {};
RELANG['de'] = {
html: 'HTML',
video: 'Video',
image: 'Bilder',
table: 'Tabelle',
link: 'Link',
link_insert: 'Link einfügen ...',
unlink: 'Link entfernen',
formatting: 'Formatvorlagen',
paragraph: 'Absatz',
quote: 'Zitat',
code: 'Code',
header1: 'Überschrift 1',
header2: 'Übe... | JavaScript |
var RELANG = {};
RELANG['by'] = {
html: 'Код',
video: 'Відэа',
image: 'Малюнак',
table: 'Табліца',
link: 'Спасылка',
link_insert: 'Уставіць спасылку ...',
unlink: 'Выдаліць спасылку',
formatting: 'Стылі',
paragraph: 'Звычайны тэкст',
quote: 'Цытата',
code: 'Код',
... | JavaScript |
var RELANG = {};
RELANG['lv'] = {
html: 'HTML кods',
video: 'Video',
image: 'Attēls',
table: 'Tabula',
link: 'Saite',
link_insert: 'Iekļaut saiti ...',
unlink: 'Noņemt saiti',
formatting: 'Stili',
paragraph: 'Vienkāršs teksts',
quote: 'Citāts',
code: 'Kods',
header1: 'Virsraksts 1',
header2: 'Virsraksts 2'... | JavaScript |
var RELANG = {};
RELANG['it'] = {
html: 'HTML',
video: 'Video',
image: 'Immagine',
table: 'Tabella',
link: 'Collegamento',
link_insert: 'Inserisci un collegamento ...',
unlink: 'Rimuovi il collegamento',
formatting: 'Stili',
paragraph: 'Paragrafo',
quote: 'Quote',
code: 'Codice',
header1: 'H1',
header2: 'H... | JavaScript |
var RELANG = {};
RELANG['sk'] = {
html: 'HTML',
video: 'Video',
image: 'Obrázok',
table: 'Tabulka',
link: 'Odkaz',
link_insert: 'Vložiť odkaz ...',
unlink: 'Odstrániť odkaz',
formatting: 'Štýl',
paragraph: 'Odstavec',
quote: 'Citácia',
code: 'Kód',
header1: 'Nadpis 1',
header2: 'Nadpis 2',
header3: 'Nadpi... | JavaScript |
var RELANG = {};
RELANG['nl'] = {
html: 'HTML',
video: 'Video',
image: 'Afbeelding',
table: 'Tabel',
link: 'Link',
link_insert: 'Link invoegen...',
unlink: 'Link ontkoppelen',
formatting: 'Stijlen',
paragraph: 'Paragraaf',
quote: 'Citaat',
code: 'Code',
header1: 'Kop 1',
header2: 'Kop 2',
header3: 'Kop 3'... | JavaScript |
var RELANG = {};
RELANG['es'] = {
html: 'HTML',
video: 'Video',
image: 'Imagen',
table: 'Tabla',
link: 'Enlace',
link_insert: 'Insertar enlace ...',
unlink: 'Desenlazar',
formatting: 'Estilos',
paragraph: 'Párrafo',
quote: 'Comillas',
code: 'Código',
header1: 'Cabecera 1',
header2: 'Cabecera 2',
header3: ... | JavaScript |
var RELANG = {};
RELANG['sq'] = {
html: 'HTML',
video: 'Video',
image: 'Fotografi',
table: 'Tabelë',
link: 'Link',
link_insert: 'Lidh linq ...',
unlink: 'Hiq linkun',
formatting: 'Stilet',
paragraph: 'Paragraf',
quote: 'Kuotë',
code: 'Kod',
header1: 'Header 1',
header2: 'Header 2',
header3: 'Hea... | JavaScript |
var RELANG = {};
RELANG['ua'] = {
html: 'Код',
video: 'Відео',
image: 'Зображення',
table: 'Таблиця',
link: 'Посилання',
link_insert: 'Вставити посилання ...',
unlink: 'Видалити посилання',
formatting: 'Стилі',
paragraph: 'Звичайний текст',
quote: 'Цитата',
code: 'Код',
header1: 'Заголовок 1',
... | JavaScript |
var RELANG = {};
RELANG['pt_br'] = {
html: 'Ver HTML',
video: 'Vídeo',
image: 'Imagem',
table: 'Tabela',
link: 'Link',
link_insert: 'Inserir link...',
unlink: 'Remover link',
formatting: 'Estilos',
paragraph: 'Parágrafo',
quote: 'Citação',
code: 'Código',
header1: 'T&iacut... | JavaScript |
var RELANG = {};
RELANG['pl'] = {
html: 'Źródło',
video: 'Wideo',
image: 'Obrazek',
table: 'Tabela',
link: 'Link',
link_insert: 'Wstaw link ...',
unlink: 'Usuń link',
formatting: 'Style',
paragraph: 'Zwykły tekst',
quote: 'Cytat',
code: 'Kod źródłowy',
header1: 'Nagłówek 1',
header2: 'Nagłówek 2',
header3... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.