code
stringlengths
1
2.08M
language
stringclasses
1 value
function hide_tooltip(){ document.getElementById("tooltipper").style.left=0; document.getElementById("tooltipper").style.top=0; document.getElementById("tooltipper").style.width= 1; document.getElementById("tooltipper").style.height =1; document.getElementById("tooltipper").innerHTML="" ; } function...
JavaScript
/* * Cross-browser event handling, by Scott Andrew */ function addEvent(element, eventType, lamdaFunction, useCapture) { if (element.addEventListener) { element.addEventListener(eventType, lamdaFunction, useCapture); return true; } else if (element.attachEvent) { var r = element.attac...
JavaScript
/* * * TableSorter 2.0 - Client-side table sorting with ease! * Version 2.0.5b * @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:...
JavaScript
// ---------------------------------------------------------------------------- // markItUp! Universal MarkUp Engine, JQuery plugin // v 1.1.x // Dual licensed under the MIT and GPL licenses. // ---------------------------------------------------------------------------- // Copyright (C) 2007-2011 Jay Salvat // http://...
JavaScript
jQuery.fn.dataTableExt.aTypes.unshift( function ( sData ) { sData = typeof sData.replace == 'function' ? sData.replace( /<.*?>/g, "" ) : sData; sData = $.trim(sData); var sValidFirstChars = "0123456789-"; var sValidChars = "0123456789."; var Char; var bDecimal = false; /* Check for a valid first char (no p...
JavaScript
// ------------------------------------------------------------------- // markItUp! // ------------------------------------------------------------------- // Copyright (C) 2008 Jay Salvat // http://markitup.jaysalvat.com/ // ------------------------------------------------------------------- // MarkDown tags example //...
JavaScript
/* this file contains global javascript code for all parts of the lmfdb website it's just one file for faster page loading */ /* global logger */ function log(msg) { if(window.console != undefined) { console.log(msg); } } function error(msg) { if(window.console != undefined) { console.error(msg); } } var reve...
JavaScript
var filePath = (function() { var scripts = document.getElementsByTagName('script'), script = scripts[scripts.length - 1]; return script.getAttribute('src', 2); }()); var setGraphicsdir = filePath.replace('highslide/highslide.config.js', 'highslide/graphics/'); hs.graphicsDir = setGraphicsdir; hs.wrappe...
JavaScript
;(function($){ $.fn.superfish = function(op){ var sf = $.fn.superfish, c = sf.c, $arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')), over = function(){ var $$ = $(this), menu = getMenu($$); clearTimeout(menu.sfTimer); $$.showSuperfishUl().siblings().hideSuperfishUl(); }...
JavaScript
(function($) { if ($.fn.carouFredSel) return; $.fn.carouFredSel = function(o) { if (this.length == 0) { debug(true, 'No element found for "'+this.selector+'".'); return this; } if (this.length > 1) { return this.each(function() { $(this).carouFredSel(o); }); } var $cfs = this, $tt0 = th...
JavaScript
/**************************************************************************** Copyright (c) 2011 The Wojo Group thewojogroup.com simplecartjs.com http://github.com/thewojogroup/simplecart-js/tree/master The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
JavaScript
/*jslint browser: true */ /*global jQuery: true */ /** * jQuery Cookie plugin * * Copyright (c) 2010 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 * */ // TODO JsDoc /** * Create a cookie...
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($) { $.fn.slide = function(settings){ var _link = $(this); var _parent = _link.parent(); var _slide_selector = settings.slide_selector; var _auto = settings.auto || false; var _time = settings.time || 5000; var _index = 0; var _max_index = $(this).length; var _interval; ...
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap...
JavaScript
(function($) { $.organicTabs = function(el, options) { var base = this; base.$el = $(el); base.$nav = base.$el.find(".nav"); base.init = function() { base.options = $.extend({},$.organicTabs.defaultOptions, options); ...
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 res...
JavaScript
$(document).ready(function(){ $('#srch-butt a').click(function() { $('.srch-box').toggle("slide"); }); $(".socila-icon_ li,.nav-lnks ul li,.color-chng li,.rightlnks li").hover(function() { // Mouse over $(this) .stop().fadeTo(500, 1) .siblings().stop().fadeTo(500, 0.2); }, function() { // Mo...
JavaScript
/** * jQuery jPages v0.7 * Client side pagination with jQuery * http://luis-almeida.github.com/jPages * * Licensed under the MIT license. * Copyright 2012 Luís Almeida * https://github.com/luis-almeida */ ;(function($, window, document, undefined) { var name = "jPages", instance = null, default...
JavaScript
// ユーザID取得 var userId = getQuerystring('user'); // パラメータ取得 function getQuerystring(key, default_) { if (default_==null) default_=""; key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regex = new RegExp("[\\?&]"+key+"=([^&#]*)"); var qs = regex.exec(window.location.href); if(qs ...
JavaScript
var manual_or_random="manual" var randomsetting="3 days" function getCookie(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re)) return document.cookie.match(re)[0].split("=")[1] return null} function setCookie(name,value,days){var expireDate=new Date() var expstring=(typeof days!="undefined")?expir...
JavaScript
/* Copyright (c) 2008, Ideyatech, Inc. All rights reserved. Code licensed under the BSD License */ /** * The global namespace. */ var IDEYATECH = {}; /** * Yahoo Connection Manager used for AJAX calls. */ var yConnect = YAHOO.util.Connect; /** * Yahoo DOM utility. */ var yDom = YAHOO.util.Dom; ...
JavaScript
/* Copyright (c) 2008, Ideyatech, Inc. All rights reserved. Code licensed under the BSD License */ /** * The global namespace. */ var IDEYATECH = {}; /** * Yahoo Connection Manager used for AJAX calls. */ var yConnect = YAHOO.util.Connect; /** * Yahoo DOM utility. */ var yDom = YAHOO.util.Dom; ...
JavaScript
$(document).ready(function(){ String.prototype.trim=function(){return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');}; var establishments = [], employees = [], tins = [], empIDs = []; $( ".datePurchase" ).datepicker(); $.ajax({ url: 'ajax.jspx', type: "post", data: 'action=fetchEstablish...
JavaScript
/* Copyright (c) 2008, Ideyatech, Inc. All rights reserved. Code licensed under the BSD License */ /** * The global namespace. */ var IDEYATECH = {}; /** * Yahoo Connection Manager used for AJAX calls. */ var yConnect = YAHOO.util.Connect; /** * Yahoo DOM utility. */ var yDom = YAHOO.util.Dom; ...
JavaScript
{ "id": "docbookeditor", "paths": "js", "inputs": "js/dk/main.js", "mode": "ADVANCED" }
JavaScript
/** * @fileoverview UI components for use with the google-docs.js library. * Includes a DocPicker (for selecting a document from a user's account) and a * DocViewer (for displaying a selected document). */ goog.provide('gdata.docs.ui'); goog.provide('gdata.docs.ui.DocPicker'); goog.provide('gdata.docs.ui.DocViewer'...
JavaScript
/** * @fileoverview To work around the same origin policy, GData requests must be * proxied. This class should be used instead of XMLHttpRequest to proxy such * requests. * @author bolinfest@gmail.com (Michael Bolin) */ goog.provide('gdata.Xhr'); /** * @constructor */ gdata.Xhr = function() { /** * @type {...
JavaScript
/** * @fileoverview Simple authentication library for working with GData. Also * provides JS analogues for the following GData Java classes: * <ul> * <li>com.google.gdata.data.docs.DocumentListEntry * <li>com.google.gdata.data.docs.DocumentListFeed * </ul> * @see http://code.google.com/apis/gdata/javadoc/ *...
JavaScript
goog.provide('dk.util'); goog.require('goog.dom.classes'); goog.require('goog.string'); /** * @param {goog.dom.DomHelper} domHelper * @param {function(Element)} f */ dk.util.forEachElementChild = function(domHelper, f) { var body = domHelper.getDocument().body; for (var el = domHelper.getFirstElementChild(bod...
JavaScript
goog.provide('dk.xml'); goog.require('dk.util'); goog.require('goog.dom'); goog.require('goog.dom.classes'); goog.require('goog.string'); /** * @param {{title:string, * domHelper:!goog.dom.DomHelper, * id:string, * byline:?{firstName:string,surname:string}, * isAppendix:?boo...
JavaScript
goog.provide('dk.html'); goog.require('dk.util'); goog.require('goog.dom'); /** * Used to extract the id from a header when the header text is something like * "Conclusions Section id:conclusions". * The two matched groups will be "Conclusions Section" and "conclusions". * This makes it easy to format the link ...
JavaScript
goog.require('dk.BookEditor'); goog.require('gdata.auth.ServiceName'); goog.require('gdata.auth.User'); goog.require('goog.dom'); goog.require('goog.ui.Control'); goog.require('goog.ui.ControlRenderer'); goog.require('goog.ui.ToggleButton'); goog.require('goog.ui.registry'); // Set up some UI decorators specific to...
JavaScript
goog.provide('dk.cursorManager'); goog.require('goog.dom'); goog.require('goog.dom.NodeType'); goog.require('goog.style'); /** * @param {Element} contentEditableEl * @return {number} */ dk.cursorManager.getCursorPosition = function(contentEditableEl) { var domHelper = goog.dom.getDomHelper(contentEditableEl); ...
JavaScript
goog.provide('dk.BookEditor'); goog.provide('dk.BookEditor.ViewType'); goog.require('gdata.docs.ui'); goog.require('dk.bookeditor.templates'); goog.require('dk.cursorManager'); goog.require('dk.html'); goog.require('dk.xml'); goog.require('goog.Disposable'); goog.require('goog.dispose'); goog.require('goog.dom'); goo...
JavaScript
/**************************************************************************** Copyright (c) 2011 The Wojo Group thewojogroup.com simplecartjs.com http://github.com/thewojogroup/simplecart-js/tree/master The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this sof...
JavaScript
/* ========================================================= // jquery.innerfade.js // Datum: 2008-02-14 // Firma: Medienfreunde Hofmann & Baldes GbR // Author: Torsten Baldes // Mail: t.baldes@medienfreunde.com // Web: http://medienfreunde.com // based on the work of Matt Oakes http://portfolio.gizone.co....
JavaScript
//Script by Aneesh of www.bloggerplugins.org //Released on August 19th August 2009 // Modified By Maskolis var relatedTitles = new Array(); var relatedTitlesNum = 0; var relatedUrls = new Array(); var thumburl = new Array(); function related_results_labels_thumbs(json) { for (var i = 0; i < json.feed.entry.leng...
JavaScript
addComment = { moveForm : function(commId, parentId, respondId, postId) { var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID'); if ( ! comm || ! respond || ! cancel || ! parent ) return; t.r...
JavaScript
/* Cookie Plug-in This plug in automatically gets all the cookies for this site and adds them to the post_params. Cookies are loaded only on initialization. The refreshCookies function can be called to update the post_params. The cookies will override any other post params with the same name. */ var SWFUpload; ...
JavaScript
/* Queue Plug-in Features: *Adds a cancelQueue() method for cancelling the entire queue. *All queued files are uploaded when startUpload() is called. *If false is returned from uploadComplete then the queue upload is stopped. If false is not returned (strict comparison) then the queue upload is continued. ...
JavaScript
/* SWFUpload.SWFObject Plugin Summary: This plugin uses SWFObject to embed SWFUpload dynamically in the page. SWFObject provides accurate Flash Player detection and DOM Ready loading. This plugin replaces the Graceful Degradation plugin. Features: * swfupload_load_failed_hander event * swfupload_pre_load_...
JavaScript
/* Speed Plug-in Features: *Adds several properties to the 'file' object indicated upload speed, time left, upload time, etc. - currentSpeed -- String indicating the upload speed, bytes per second - averageSpeed -- Overall average upload speed, bytes per second - movingAverageSpeed -- Speed over averaged...
JavaScript
var topWin = window.dialogArguments || opener || parent || top; function fileDialogStart() { jQuery("#media-upload-error").empty(); } // progress and success handlers for media multi uploads function fileQueued(fileObj) { // Get rid of unused form jQuery('.media-blank').remove(); // Collapse a single item if ( j...
JavaScript
/** * Copyright (c) 2006, David Spurr (http://www.defusion.org.uk/) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright not...
JavaScript
(function(d, w) { var addEvent = function( obj, type, fn ) { if (obj.addEventListener) obj.addEventListener(type, fn, false); else if (obj.attachEvent) obj.attachEvent('on' + type, function() { return fn.call(obj, window.event);}); }, aB, hc = new RegExp('\\bhover\\b', 'g'), q = [], rselected = new RegEx...
JavaScript
/** * jquery.Jcrop.js v0.9.8 * jQuery Image Cropping Plugin * @author Kelly Hallman <khallman@gmail.com> * Copyright (c) 2008-2009 Kelly Hallman - released under MIT License {{{ * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * fil...
JavaScript
(function($) { var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList; wpList = { settings: { url: ajaxurl, type: 'POST', response: 'ajax-response', what: '', alt: 'alternate', altOffset: 0, addColor: null, delColor: null, dimAddColor: null, dimDelColor: null, c...
JavaScript
// script.aculo.us unittest.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // (c) 2005-2009 Jon Tirsen (http://www.tirsen.com) // (c) 2005-2009 Michael Schuerig (http://www.schuerig.de/michael/) // // script.aculo.us i...
JavaScript
// script.aculo.us slider.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 // Copyright (c) 2005-2009 Marty Haught, Thomas Fuchs // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ if (!Control) var Control = { }; /...
JavaScript
// script.aculo.us scriptaculous.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"),...
JavaScript
// script.aculo.us sound.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Based on code created by Jules Gravinese (http://www.webveteran.com/) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // ...
JavaScript
// script.aculo.us scriptaculous.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"),...
JavaScript
// script.aculo.us builder.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
/** * hoverIntent is similar to jQuery's built-in "hover" function except that * instead of firing the onMouseOver event immediately, hoverIntent checks * to see if the user's mouse has slowed down (beneath the sensitivity * threshold) before firing the onMouseOver event. * * hoverIntent r5 // 2007.03.27 // jQuery 1.1...
JavaScript
var autosave, autosaveLast = '', autosavePeriodical, autosaveOldMessage = '', autosaveDelayPreview = false, notSaved = true, blockSave = false, fullscreen; jQuery(document).ready( function($) { var dotabkey = true; autosaveLast = $('#post #title').val() + $('#post #content').val(); autosavePeriodical = $.schedule(...
JavaScript
/* http://www.JSON.org/json2.js 2011-02-23 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE...
JavaScript
/*! * jQuery Form Plugin * version: 2.73 (03-MAY-2011) * @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
/****************************************************************************************************************************** * @ Original idea by by Binny V A, Original version: 2.00.A * @ http://www.openjs.com/scripts/events/keyboard_shortcuts/ * @ Original License : BSD * @ jQuery Plugin by Tzury Bar Yocha...
JavaScript
(function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+"...
JavaScript
/* * jQuery Color Animations * Copyright 2007 John Resig * Released under the MIT and GPL licenses. */ (function(jQuery){ // We override the animation for all of these color styles jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outli...
JavaScript
/* * jquery.suggest 1.1b - 2007-08-06 * Patched by Mark Jaquith with Alexander Dick's "multiple items" patch to allow for auto-suggesting of more than one tag before submitting * See: http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-7228 * * Uses code an...
JavaScript
(function($){ $.fn.filter_visible = function(depth) { depth = depth || 3; var is_visible = function() { var p = $(this), i; for(i=0; i<depth-1; ++i) { if (!p.is(':visible')) return false; p = p.parent(); } return true; } return this.filter(is_visible); }; $.table_hotkeys = function(table,...
JavaScript
/*! * jQuery serializeObject - v0.2 - 1/20/2010 * http://benalman.com/projects/jquery-misc-plugins/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ // Whereas .serializeArray() serializes a form into an array, .serializeObject() ...
JavaScript
var wpAjax = jQuery.extend( { unserialize: function( s ) { var r = {}, q, pp, i, p; if ( !s ) { return r; } q = s.split('?'); if ( q[1] ) { s = q[1]; } pp = s.split('&'); for ( i in pp ) { if ( jQuery.isFunction(pp.hasOwnProperty) && !pp.hasOwnProperty(i) ) { continue; } p = pp[i].split('='); r[p[0]...
JavaScript
(function(w) { var init = function() { var pr = document.getElementById('post-revisions'), inputs = pr ? pr.getElementsByTagName('input') : []; pr.onclick = function() { var i, checkCount = 0, side; for ( i = 0; i < inputs.length; i++ ) { checkCount += inputs[i].checked ? 1 : 0; side = inputs[i].ge...
JavaScript
/* * imgAreaSelect jQuery plugin * version 0.9.6 * * Copyright (c) 2008-2011 Michal Wojciechowski (odyniec.net) * * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://odyniec.net/projects/imgareaselect/ * */ (function($) { var abs = Math.abs, max = Math.max, ...
JavaScript
(function() { tinymce.create('tinymce.plugins.wpGallery', { init : function(ed, url) { var t = this; t.url = url; t._createButtons(); // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...'); ed.addCommand('WP_Gallery', function() { var el = ed.selecti...
JavaScript
(function($){ $.ui.dialog.prototype.options.closeOnEscape = false; $.widget("wp.wpdialog", $.ui.dialog, { options: { closeOnEscape: false }, open: function() { var ed; // Initialize tinyMCEPopup if it exists and is the editor is active. if ( tinyMCEPopup && typeof tinyMCE != 'undefined' && ( ed = ...
JavaScript
/** * popup.js * * An altered version of tinyMCEPopup to work in the same window as tinymce. * * ------------------------------------------------------------------ * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http:...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.WPDialogs', { init : function(ed, url) { tinymce....
JavaScript
/** * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. */ function writeFlash(p) { writeEmbed( 'D27CDB6E-AE6D-11cf-96B8-444553540000', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', 'application/x-shockwave...
JavaScript
(function() { var url; if (url = tinyMCEPopup.getParam("media_external_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>'); function get(id) { return document.getElementById(id); } function getVal(id) ...
JavaScript
var tinymce = null, tinyMCEPopup, tinyMCE, wpImage; tinyMCEPopup = { init: function() { var t = this, w, li, q, i, it; li = ('' + document.location.search).replace(/^\?/, '').split('&'); q = {}; for ( i = 0; i < li.length; i++ ) { it = li[i].split('='); q[unescape(it[0])] = unescape(it[1]); } if ...
JavaScript
(function() { tinymce.create('tinymce.plugins.wpEditImage', { init : function(ed, url) { var t = this; t.url = url; t._createButtons(); // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...'); ed.addCommand('WP_EditImage', function() { var el = ed.sel...
JavaScript
tinyMCEPopup.requireLangPack(); var PasteWordDialog = { init : function() { var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = ''; // Create iframe el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></if...
JavaScript
tinyMCEPopup.requireLangPack(); var PasteTextDialog = { init : function() { this.resize(); }, insert : function() { var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines; // Convert linebreaks into paragraphs if (document.getElementById('linebreaks').checked) { lines = h.spli...
JavaScript
/** * WP Fullscreen TinyMCE plugin * * Contains code from Moxiecode Systems AB released under LGPL License http://tinymce.moxiecode.com/license */ (function() { tinymce.create('tinymce.plugins.wpFullscreenPlugin', { init : function(ed, url) { var t = this, oldHeight = 0, s = {}, DOM = tinymce.DOM, resized =...
JavaScript
var wpLink; (function($){ var inputs = {}, rivers = {}, ed, River, Query; wpLink = { timeToTriggerRiver: 150, minRiverAJAXDuration: 200, riverBottomThreshold: 5, keySensitivity: 100, lastSearch: '', textarea: function() { return edCanvas; }, init : function() { inputs.dialog = $('#wp-link'); in...
JavaScript
(function() { tinymce.create('tinymce.plugins.wpLink', { /** * Initializes the plugin, this will be executed after the plugin has been created. * This call is done before the editor instance has finished it's initialization so use the onInit event * of the editor instance to intercept that event. * * ...
JavaScript
/** * WordPress plugin. */ (function() { var DOM = tinymce.DOM; tinymce.create('tinymce.plugins.WordPress', { mceTout : 0, init : function(ed, url) { var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML; moreHTML = '<img src="' + url + '/img/trans.gif"...
JavaScript
tinyMCE.addI18n({en:{ common:{ edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?", apply:"Apply", insert:"Insert", update:"Update", cancel:"Cancel", close:"Close", browse:"Browse", class_name:"Class", not_set:"-- Not set --", clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.", cl...
JavaScript
tinyMCEPopup.requireLangPack(); tinyMCEPopup.onInit.add(onLoadInit); function saveContent() { tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true}); tinyMCEPopup.close(); } function onLoadInit() { tinyMCEPopup.resizeToInnerSize(); // Remove Gecko spellchecking if (tin...
JavaScript
/** * charmap.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ tinyMCEPopup.requireLangPack(); var charmap = [ ['&nbsp;', '&#160;', true, 'no-break space'], ['&amp;', ...
JavaScript
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
// new edit toolbar used with permission // by Alex King // http://www.alexking.org/ var edButtons = new Array(), edLinks = new Array(), edOpenTags = new Array(), now = new Date(), datetime; function edButton(id, display, tagStart, tagEnd, access, open) { this.id = id; // used to name the toolbar button this.dis...
JavaScript
//Used to ensure that Entities used in L10N strings are correct function convertEntities(o) { var c, v; c = function(s) { if (/&[^;]+;/.test(s)) { var e = document.createElement("div"); e.innerHTML = s; return !e.firstChild ? s : e.firstChild.nodeValue; } return s; } if ( typeof o === 'string' ) { ...
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
function w3tc_seconds_to_string(seconds) { var string = '', days = 0, hours = 0, minutes = 0; days = Math.floor(seconds / 86400); if (days) { seconds -= days * 86400; string += days + 'd '; } hours = Math.floor(seconds / 3600); if (hours) { seconds -= hours * 360...
JavaScript
jQuery(function() { jQuery('.w3tc-widget-ps-view-all').click(function() { window.open('admin.php?page=w3tc_general&w3tc_pagespeed_results&_wpnonce=' + jQuery(this).metadata().nonce, 'pagespeed_results', 'width=800,height=600,status=no,toolbar=no,menubar=no,scrollbars=yes'); return false; }...
JavaScript
var W3tc_Lightbox = { window: jQuery(window), container: null, options: null, create: function() { var me = this; this.container = jQuery('<div class="lightbox lightbox-loading"><div class="lightbox-close">Close window</div><div class="lightbox-content"></div></div>').css({ ...
JavaScript