code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
alert("Test App"); | JavaScript |
alert('I am a root level file!'); | JavaScript |
alert('win sauce'); | JavaScript |
alert('plugin one nested js file'); | JavaScript |
/*
* fixHeight - jQuery Plugin
* http://www.starryworks.co.jp/blog/tips/javascript/fixheightjs.html
*
* Author Koji Kimura @ STARRYWORKS inc.
* http://www.starryworks.co.jp/
*
* Licensed under the MIT License
*
*/
(function($){
var isInitialized = false;
var parents = [];
var textHeight... | JavaScript |
(function (){
var els = [ 'section', 'article', 'hgroup', 'header', 'footer', 'nav', 'aside', 'figure', 'mark', 'time', 'ruby', 'rt', 'rp' ];
for (var i=0; i<els.length; i++){
document.createElement(els[i]);
}
})(); | JavaScript |
/*
*
* TableSorter 2.0 - Client-side table sorting with ease!
* Version 2.0.3
* @requires jQuery v1.2.3
*
* Copyright (c) 2007 Christian Bach
* Examples and docs at: http://tablesorter.com
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.o... | JavaScript |
$(function(){
$(".tableTag tr").not(':first').hover(
function () {
$(this).css("background","#f6f6f6");
},
function () {
$(this).css("background","");
}
);
}); | JavaScript |
$(function(){
// rollover
$('.imgover').each(function(){
this.osrc = $(this).attr('src');
this.rollover = new Image();
this.rollover.src = this.osrc.replace(/(\.gif|\.jpg|\.png)/, "_o$1");
}).hover(function(){
$(this).attr('src',this.rollover.src);
},function(){
$(this).attr('src',this.osrc);
}... | JavaScript |
/*
-------------------------------------------------------------------------
JavaScript Form Validator (gen_validatorv31.js)
Version 3.1.2
Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved.
You can freely use this script in your Web pages.
You may adapt this script for y... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Bladsy';
$.fn.pagination.defaults.afterPageText = 'Van {pages}';
$.fn.pagination.defaults.displayMsg = 'Wys (from) tot (to) van (total) items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Verwerking, wag asseblief ...';
}
if ($.fn.... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'af {pages}';
$.fn.pagination.defaults.displayMsg = 'Viser {from} til {to} af {total} poster';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Behandling, vent venligst ...';
}
if ($.fn.t... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strana';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Zobrazuji {from} do {to} z {celkové} položky';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Zpracování, čekejte prosím ...';
}
if ... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Affichage de {from} et {to} au {total} des articles';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = "Traitement, s'il vous plaît patien... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共{pages}页';
$.fn.pagination.defaults.displayMsg = '显示{from}到{to},共{total}记录';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '正在处理,请稍待。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.tre... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Seite';
$.fn.pagination.defaults.afterPageText = 'von {pages}';
$.fn.pagination.defaults.displayMsg = 'Angezeigte {from} zu {to} von {total} Artikel';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Processing, bitte warten ...';
}
if ... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Страница';
$.fn.pagination.defaults.afterPageText = 'от {pages}';
$.fn.pagination.defaults.displayMsg = 'Показани {from} за {to} от {total} продукти';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Обработка, моля изчакайте ...';
}
if... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strana';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Zobrazuji záznam {from} až {to} z {total}.';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Pracuji, čekejte prosím…';
}
if ($.fn.tr... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pagina';
$.fn.pagination.defaults.afterPageText = 'van {pages}';
$.fn.pagination.defaults.displayMsg = 'Tonen van {from} tot {to} van de {totale} items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Verwerking, even geduld ...';
}
i... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Sayfa';
$.fn.pagination.defaults.afterPageText = ' / {pages}';
$.fn.pagination.defaults.displayMsg = '{from} ile {to} arası gösteriliyor, toplam {total} kayıt';
}
if ($.fn.datagrid){
$.fn.panel.defaults.loadingMessage = "Yükleniyor...";
}
... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共{pages}頁';
$.fn.pagination.defaults.displayMsg = '顯示{from}到{to},共{total}記錄';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '正在處理,請稍待。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.tre... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'of {pages}';
$.fn.pagination.defaults.displayMsg = 'Displaying {from} to {to} of {total} items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Processing, please wait ...';
}
if ($.fn.... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pàgina';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = "Veient {from} a {to} de {total} d'articles";
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Elaboració, si us plau esperi ...';
}
i... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Página';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} elementos';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Procesando, por favor espere ...... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$("<span class=\"spinner\">"+"<span class=\"spinner-arrow\">"+"<span class=\"spinner-arrow-up... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
$(_2).appendTo("body");
$(_2).addClass("menu-top");
var _3=[];
_4($(_2));
var _5=null;
for(var i=0;i... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"combogrid").options;
var _4=$.data(_2,"combogrid").grid;
$(_2).addClass("combogrid... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"propertygrid").options;
$(_2).datagrid($.extend({},_3,{view:(_3.showGroup?_4:undef... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
_2.each(function(){
$(this).remove();
if($.browser.msie){
this.outerHTML="";
}
});
};
function _3(_4... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
var _1=false;
function _2(_3){
var _4=$.data(_3,"layout").options;
var _5=$.data(_3,"layout").panels;
var cc=$(_3);
i... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
var _1=false;
function _2(e){
var _3=$.data(e.data.target,"draggable").options;
var _4=e.data;
var _5=_4.startLeft+e.... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var t=$(_2);
t.wrapInner("<div class=\"dialog-content\"></div>");
var _3=t.children("div.dialog-cont... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(a,o){
for(var i=0,_2=a.length;i<_2;i++){
if(a[i]==o){
return i;
}
}
return -1;
};
function _3(a,o){
var _... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
var _1=false;
$.fn.resizable=function(_2,_3){
if(typeof _2=="string"){
return $.fn.resizable.methods[_2](this,_3);
}
... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"window").options;
if(_3){
if(_3.width){
_4.width=_3.width;
}
if(_3.height){
_4.... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$(_2).children("div.tabs-header");
var _4=0;
$("ul.tabs li",_3).each(function(){
_4+=$(this).... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
$(_2).addClass("validatebox-text");
};
function _3(_4){
var _5=$.data(_4,"validatebox");
_5.validati... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
$(_2).addClass("droppable");
$(_2).bind("_dragenter",function(e,_3){
$.data(_2,"droppable").options.... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2,_3){
_3=_3||{};
if(_3.onSubmit){
if(_3.onSubmit.call(_2)==false){
return;
}
}
var _4=$(_2);
if(_3.url)... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(el,_2,_3,_4){
var _5=$(el).window("window");
if(!_5){
return;
}
switch(_2){
case null:
_5.show();
break;
... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$(_2);
_3.addClass("tree");
return _3;
};
function _4(_5){
var _6=[];
_7(_6,$(_5));
function ... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
$.parser={auto:true,onComplete:function(_1){
},plugins:["linkbutton","menu","menubutton","splitbutton","progressbar",... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"combotree").options;
var _4=$.data(_2,"combotree").tree;
$(_2).addClass("combotree... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(a,o){
for(var i=0,_2=a.length;i<_2;i++){
if(a[i]==o){
return i;
}
}
return -1;
};
function _3(a,o,id){
if... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datetimebox");
var _4=_3.options;
$(_2).datebox($.extend({},_4,{onShowPanel:functi... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"timespinner").options;
$(_2).spinner(_3);
$(_2).unbind(".timespinner");
$(_2).bind... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
$(_2).hide();
var _3=$("<span class=\"searchbox\"></span>").insertAfter(_2);
var _4=$("<input type=\... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
$(_2).addClass("progressbar");
$(_2).html("<div class=\"progressbar-text\"></div><div class=\"progre... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"combo").options;
var _5=$.data(_2,"combo").combo;
var _6=$.data(_2,"combo").pan... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"pagination").options;
var _4=$(_2).addClass("pagination").empty();
var t=$("<table... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"calendar").options;
var t=$(_2);
if(_3.fit==true){
var p=t.parent();
_3.width=p.wi... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var v=$("<input type=\"hidden\">").insertAfter(_2);
var _3=$(_2).attr("name");
if(_3){
v.attr("name"... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"accordion").options;
var _4=$.data(_2,"accordion").panels;
var cc=$(_2);
if(_3.fit... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"splitbutton").options;
var _4=$(_2);
_4.removeClass("s-btn-active s-btn-plain-acti... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datebox");
var _4=_3.options;
$(_2).addClass("datebox-f");
$(_2).combo($.extend({}... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"numberspinner").options;
$(_2).spinner(_3).numberbox(_3);
};
function _4(_5,_6){
v... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"menubutton").options;
var _4=$(_2);
_4.removeClass("m-btn-active m-btn-plain-activ... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$("<div class=\"slider\">"+"<div class=\"slider-inner\">"+"<a href=\"javascript:void(0)\" cla... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"linkbutton").options;
$(_2).empty();
$(_2).addClass("l-btn");
if(_3.id){
$(_2).att... | JavaScript |
/**
* jQuery EasyUI 1.2.6
*
* Licensed under the GPL terms
* To use it on other terms please contact us
*
* Copyright(c) 2009-2012 stworthy [ stworthy@gmail.com ]
*
*/
(function($){
function _1(_2,_3){
var _4=$(_2).combo("panel");
var _5=_4.find("div.combobox-item[value="+_3+"]");
if(_5.length){
if... | JavaScript |
$(function(){
$('#accordion').accordion({collapsible:false});
$('#tabs').tabs();
tab('我的主页','index.php/admin/webmaster/myhomepage');
menuList('system');
$(window).resize(function(){
$('#tabs').tabs('resize');
});
}); | JavaScript |
$(function(){
/*
$("body").ajaxStart(function(){
mask();
});
$("body").ajaxStop(function(){
unmask();
});*/
});
function menuList(menuid) {
$("#nav_" + menuid).parent().parent("ul").find("li")
.removeClass("selected");
var panels = $('#accordion').accordion('panels');
if (panels.length >= 1) {
... | JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
var $window = $(window)
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// sid... | JavaScript |
function tips(c){ $.dialog({content: '<font style="font-size:14px;">'+c+'</font>',fixed: true, width:300, time:1500}); }
function succ(c){ $.dialog({icon: 'succeed',content: '<font style="font-size:14px;">'+c+'</font>' , time:2000});}
function error(c){$.dialog({icon: 'error',content: '<font style="font-size:14px;"... | JavaScript |
(function(){
Douban.init_lnk_like = function(e){
e.preventDefault();
var el = $(this),
siteid = $("body").attr('id'),
followed = $('#followed').val(),
siteacurl = el.attr('href'),
init='',
site_is_commercial = el.attr('commercial')==null ? false : true;//是否是推广
$.post_withck(
sitea... | JavaScript |
function openVideoDialog(opt) {
// opt check
var textarea_selector = opt && opt.textarea_selector;
if (!textarea_selector) return;
var VIDEO_ITEM_TMPL = $.template(null, $('#video_item_tmpl').html()),
VIDEO_DLG = $('#video_dlg').html(),
videoList = $('.videos', document.getElementById('... | JavaScript |
function openLinkDialog(opt) {
var textarea_selector = opt && opt.textarea_selector,
selected_text = opt && opt.selected_text;
if (!textarea_selector) return;
var dlg = dui.Dialog(),
LINK_DLG = $('#link_dlg')[0].innerHTML;
dlg.set({
title: '添加链接',
iframe: true,
cont... | JavaScript |
function openImageDialog(opt) {
var textarea_selector = opt && opt.textarea_selector,
isBasic = opt && opt.isBasic,
nid = opt && opt.nid,
upload_photo_url = opt && opt.upload_photo_url;
if (!textarea_selector) return;
var IMAGE_ITEM_TMPL = $.template(null, $('#image_item_tmpl').html... | JavaScript |
(function(){
Douban.init_rec_btn = function(e) {
var show_dialog = function(s, cb) {
Do('dialog', function(){
var dlg = dui.Dialog({
title: '推荐',
content: s,
width: 500,
buttons: [
{
text: '确定',
method: function(o){
o.footer.find('input:sub... | JavaScript |
Douban.init_add_video = function(o) {
var url = $(this)[0].href.replace('/widget/', '/j/widget/'),
add = function(e){
if(e){
e.preventDefault();
}
Douban.remote_submit_json(this.node.find('form')[0], $.proxy(function(r){
var err;
if(!r.error){
location.reloa... | JavaScript |
$(function(){
var config = {
opacity: .6,
handle: '.hd h2',
placeholder: 'sort_helper',
connectWith: '.drop-area',
items: '.sort',
scroll: true,
tolerance: 'pointer',
start: function (e, ui) {
ui.placeholder.height(ui.helper.heigh... | JavaScript |
$(function(){
var config = {
opacity: .6,
handle: '.hd h2',
placeholder: 'sort_helper',
connectWith: '.drop-area',
items: '.sort',
scroll: true,
tolerance: 'pointer',
start: function (e, ui) {
ui.placeholder.height(ui.helper.heigh... | JavaScript |
$(function(){
var nav = $('.nav-items').disableSelection(),
more = $('#room-more ul:first'),
maxWidth = 650,
refreshTabs = function(){
var total = 0, item, citem, ul;
item = more.find('li:first');
citem = item.clone().css('visibility', 'hidden');
ul = nav.find('ul:first... | JavaScript |
function tips(c){ $.dialog({content: '<font style="font-size:14px;">'+c+'</font>',fixed: true, width:300, time:1500}); }
function succ(c){ $.dialog({icon: 'succeed',content: '<font style="font-size:14px;">'+c+'</font>' , time:2000});}
function error(c){$.dialog({icon: 'error',content: '<font style="font-size:14px;"... | JavaScript |
(function(){
var isIE8 = $.browser.msie && parseInt($.browser.version) === 8,
siteId = $('body').attr('id'),
ERR_BLANK = '模块标题不能为空',
switchSetting = function(el, stat) {
var mod = el.parents('.mod'),
hd = mod.find('.hd'),
lnk = hd.find('a.a_lnk_mod_setting');
if (stat === 'on' ) {
el.sli... | JavaScript |
IK('dialog', 'effects', function () {
$(function () {
/* global var */
var adding = false,
renamePath = '',
dlg = dui.Dialog(),
color_fade = '#ffc',
oTips = $('.widget-tips'),
oFnBox = $('.sp-fn-box'),
oSpUser = $('#sp-... | JavaScript |
(function(){
var site_list = /http:\/\/movie.douban.com\/sogou_search|http:\/\/audit.douban.com/;
if (self !== top && document.referrer.search(site_list) === -1) {
top.location = self.location;
}
})();
var Douban = Douban || {};
if (top.location !== self.location && document.referrer.search(/http:\... | JavaScript |
(function($) {
$.fn.extend({
slider: function (options) {
var defaults = {
slide_items: 4,
item_width: 166
},
options = $.extend(defaults, options),
current = 0,
items_per_page = options.slide... | JavaScript |
function playcount(songid, worked){
$.get('/j/artist/incplaycount',{song_id:songid,worked:worked?1:0});
}
window.playnext = function(widget_id){
var just_num = playsong.now_play_song[widget_id],
songs = playsong.widgets[widget_id].songs;
if (just_num >= songs.length - 1){
playsong(widget_... | JavaScript |
//@import /js/sns/note/image.js
//@import /js/sns/note/video.js
//@import /js/sns/note/link.js
IK('template', 'dialog', 'modernizr.dnd', 'uploadify', function() {
var formNote = $('#form_note'),
control_panel = $('.control-panel', formNote),
images = formNote.children('.images'),
vi... | JavaScript |
$(function(){
var $container = $('#container');
$.get(siteUrl+'index.php?app=group&ac=photo&ts=ajax', { },
function(data){
$container.html(data);
$container.imagesLoaded(function(){
$container.masonry({
itemSelector: '.card-item',
columnWidth: 0
});
});
});
$container.infinitescroll({
navSelect... | JavaScript |
function tips(c){ $.dialog({content: '<font style="font-size:14px;">'+c+'</font>',fixed: true, width:300, time:1500});}
function succ(c){ $.dialog({icon: 'succeed',content: '<font style="font-size:14px;">'+c+'</font>' , time:2000});}
function error(c){$.dialog({icon: 'error',content: '<font style="font-size:14px;">... | JavaScript |
//发送盒子
/**
function sendbox(userid){
$("#msgbox").html("加载消息中......")
$("#sendbox").html("加载输入框中......")
$.ajax({
type: "GET",
url: siteUrl+"index.php?app=message&ac=msgbox&userid="+userid,
success: function(msg){
$('#msgbox').html(msg);
var msgbox=document.getElementById('msgbox');
... | JavaScript |
function tips(c){ $.dialog({content: '<font style="font-size:14px;">'+c+'</font>',fixed: true, width:300, time:1500});}
function succ(c){ $.dialog({icon: 'succeed',content: '<font style="font-size:14px;">'+c+'</font>' , time:2000});}
function error(c){$.dialog({icon: 'error',content: '<font style="font-size:14px;">... | JavaScript |
//头部搜索
| JavaScript |
/*
* jQuery resize event - v1.1 - 3/14/2010
* http://benalman.com/projects/jquery-resize-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($, h, c) {
var a = $([]),
e = $.resize = $.extend($.resiz... | JavaScript |
(function() {
function ba(a) {
throw a;
}
var ca = void 0,
i = !0,
j = null,
k = !1,
ea = encodeURIComponent,
m = window,
fa = Object,
ga = Infinity,
n = document,
o = Math,
ha = Array,
ia = screen,
ja = navigator,
ka = Error,
... | JavaScript |
// version 1.0
(function() {
var _doc = document,
_win = window,
// 已加载模块, _loaded[fileURL]=true
_loaded = {},
// 加载中的模块,对付慢文件,_loadingQueue[url]=true|false
_loadingQueue = {},
_isArray = function(e) { return e.constructor === Array; },
// 内部配置文件
_config = {
// 是否自动加载核心库
autoLoad: true,
//核心库
cor... | JavaScript |
//menu
$(document).ready(function(){
$('li.mainlevel').mousemove(function(){
$(this).find('ul').slideDown();//you can give it a speed
});
$('li.mainlevel').mouseleave(function(){
$(this).find('ul').slideUp("fast");
});
}); | JavaScript |
// JavaScript Document
function searchForm(obj)
{
var keyword = $(obj).find('input[name=kw]'), defval = keyword.attr('placeholder');
if( keyword.val() =='' || keyword.val()==defval)
{
return false;
}
return true;
}
$(function(){
$('#search_bar input[name=kw]').bind('click',function(){
var defval =... | JavaScript |
/*
try{
if (top.location.hostname != window.location.hostname && document.referrer.search(/http:\/\/[^\/]+\.douban\.com/i) !== 0) {
top.location.href =window.location.href;
}
}
catch(e){
if (document.referrer.search(/http:\/\/[^\/]+\.douban\.com/i) !== 0) {
top.location.href = window... | JavaScript |
(function($) {
$.fn.editable = function(target, options) {
if ('disable' == target) {
$(this).data('disabled.editable', true);
return;
}
if ('enable' == target) {
$(this).data('disabled.editable', false);
return;
... | JavaScript |
(function() {
// namespace 'dui'
var dui = window.dui || {},
// private methods and properties.
_id = 'dui-dialog',
_ids = [],
_current_dlg = null,
_isIE6 = ($.browser.msie && $.browser.version === '6.0') ? true: false,
_cache = {},
//button callback. _button_callback[button id] = function.
_b... | JavaScript |
/**
*
* Utilities
* Author: Stefan Petre www.eyecon.ro
*
*/
(function($) {
EYE.extend({
getPosition : function(e, forceIt)
{
var x = 0;
var y = 0;
var es = e.style;
var restoreStyles = false;
if (forceIt && jQuery.curCSS(e,'display') == 'none') {
var oldVisibility = es.visibility;
... | JavaScript |
/**
*
* Zoomimage
* Author: Stefan Petre www.eyecon.ro
*
*/
(function($){
var EYE = window.EYE = function() {
var _registered = {
init: []
};
return {
init: function() {
$.each(_registered.init, function(nr, fn){
fn.call();
});
},
extend: function(prop) {
for ... | JavaScript |
/**
*
* Color picker
* Author: Stefan Petre www.eyecon.ro
*
* Dual licensed under the MIT and GPL licenses
*
*/
(function ($) {
var ColorPicker = function () {
var
ids = {},
inAction,
charMin = 65,
visible,
tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><di... | JavaScript |
(function($){
var initLayout = function() {
var hash = window.location.hash.replace('#', '');
var currentTab = $('ul.navigationTabs a')
.bind('click', showTab)
.filter('a[rel=' + hash + ']');
if (currentTab.size() == 0) {
currentTab = $('ul.navigationTabs a:first');
}
showTab.apply(... | JavaScript |
//加载编辑器
$(pageInit);
function pageInit()
{
var tsplugin={
tsAttach:{c:'tsAttach',t:'插入附件',e:function(){
var _this=this;
_this.saveBookmark();
_this.showIframeModal('选择附件',siteUrl+'index.php?app=attach&ac=ajax&ts=my',function(v){ _this.pasteHTML(v,false); },400,420);
}},
tsImg:{c:'... | JavaScript |
/*
Uploadify v2.1.4
Release Date: November 8, 2010
Copyright (c) 2010 Ronnie Garcia, Travis Nickels
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitati... | JavaScript |
$.post_withck = function( url, data, callback, type, traditional) {
if ($.isFunction(data)) {
type = callback;
callback = data;
data = {};
}
return $.ajax({
type: "POST",
traditional: typeof traditional == 'undefined' ? true : traditional,
url: url,
... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.