code
stringlengths
1
2.08M
language
stringclasses
1 value
/* Copyright Mihai Bazon, 2002, 2003 | http://students.infoiasi.ro/~mishoo * --------------------------------------------------------------------------- * * The DHTML Calendar, version 0.9.3 "It's still alive & keeps rocking" * * Details and latest version at: * http://students.infoiasi.ro/~mishoo/site/c...
JavaScript
var oldLink = null; // code to change the active stylesheet function setActiveStyleSheet(link, title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("...
JavaScript
function menuFix() { var csfEls = document.getElementById("change").getElementsByTagName("li"); for (var i=0; i<csfEls.length; i++) { csfEls[i].onmouseover=function() { this.className+=(this.className.length>0? " ": "") + "csfhover"; } csfEls[i].onMouseDown=function() { this.className+=(this.classNam...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.04 // by Lokesh Dhakar - http://www.lokeshdhakar.com // Last Modification: 2/9/08 // // For more information, visit: // http://lokeshdhakar.com/projects/lightbox2/ // // Licensed under the Creative Commons Attributi...
JavaScript
// script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 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.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 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
'use strict'; /* Controllers */ function HomeCtrl($scope,navSvc,$rootScope) { $rootScope.showSettings = false; $scope.slidePage = function (path,type) { navSvc.slidePage(path,type); }; $scope.back = function () { navSvc.back(); }; $scope.changeSettings = function () { $r...
JavaScript
var app = { // Application Constructor initialize: function() { this.bindEvents(); }, // Bind any events that are required on startup. Common events are: // 'load', 'deviceready', 'offline', and 'online'. bindEvents: function() { document.addEventListener('load', this.onLoad...
JavaScript
'use strict'; /* Directives */ angular.module('myApp.directives', []) .directive('appVersion', ['version', function(version) { return function(scope, elm, attrs) { elm.text(version); }}])
JavaScript
'use strict'; function jsonp_callback(data) { // returning from async callbacks is (generally) meaningless console.log(data.found); } // Declare app level module which depends on filters, and services var myApp = angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives','ajoslin.mobile-n...
JavaScript
'use strict'; /* Services */ // Simple value service. angular.module('myApp.services', []). value('version', '0.1'); // phonegap ready service - listens to deviceready myApp.factory('phonegapReady', function() { return function (fn) { var queue = []; var impl = function () { queue.push(...
JavaScript
'use strict'; /* Filters */ angular.module('myApp.filters', []). filter('interpolate', ['version', function(version) { return function(text) { return String(text).replace(/\%VERSION\%/mg, version); } }]);
JavaScript
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
JavaScript
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
JavaScript
var isCommonJS = typeof window == "undefined"; /** * Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework. * * @namespace */ var jasmine = {}; if (isCommonJS) exports.jasmine = jasmine; /** * @private */ jasmine.unimplementedMethod_ = function() { throw new Error("unimplemented ...
JavaScript
jasmine.HtmlReporterHelpers = {}; jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) { var el = document.createElement(type); for (var i = 2; i < arguments.length; i++) { var child = arguments[i]; if (typeof child === 'string') { el.appendChild(document.createTextNode(ch...
JavaScript
/* * angular-mobile-nav by Andy Joslin * http://github.com/ajoslin/angular-mobile-nav * @license MIT License http://goo.gl/Z8Nlo */ angular.module('ajoslin.mobile-navigate', []) .run(['$navigate', '$rootScope', function($navigate, $rootScope) { //Android back button functionality for phonegap document.addEvent...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
JavaScript
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, o) === false) ...
JavaScript
jQuery( function($) { // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); // These widgets are sometimes populated via ajax var ajaxWidgets = [ 'dashboard_incoming_links', 'dashboard_primary', 'dashboard_secondary', 'dashboard_plugins' ]; var ajaxPopu...
JavaScript
function edit_permalink(post_id) { var i, c = 0; var e = jQuery('#editable-post-name'); var revert_e = e.html(); var real_slug = jQuery('#post_name'); var revert_slug = real_slug.html(); var b = jQuery('#edit-slug-buttons'); var revert_b = b.html(); var full = jQuery('#editable-post-name-full').html(); b.html...
JavaScript
jQuery( function($) { $('#users').wpList(); columns.init('users'); });
JavaScript
jQuery(document).ready( function($) { postboxes.add_postbox_toggles('page'); make_slugedit_clickable(); // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); jQuery('#title').blur( function() { if ( (jQuery("#post_ID").val() > 0) || (jQuery("#title").val...
JavaScript
// this file contains all the scripts used in the post/edit page function new_tag_remove_tag() { var id = jQuery( this ).attr( 'id' ); var num = id.substr( 10 ); var current_tags = jQuery( '#tags-input' ).val().split(','); delete current_tags[num]; var new_tags = []; jQuery.each( current_tags, function( key, val...
JavaScript
jQuery(function($) { if ( 'undefined' == typeof $.fn.pngFix ) $.fn.pngFix = function() { return this; } var thickDims = function() { var tbWindow = $('#TB_window'); var H = $(window).height(); var W = $(window).width(); if ( tbWindow.size() ) { tbWindow.width( W - 90 ).height( H - 60 ); $('#TB_ifra...
JavaScript
// $Id: farbtastic.js,v 1.2 2007/01/08 22:53:01 unconed Exp $ // Farbtastic 1.2 var farbtastic_click = false; jQuery.fn.farbtastic = function (callback) { jQuery.farbtastic(this, callback); return this; }; jQuery.farbtastic = function (container, callback) { var container = jQuery(container).get(0); return c...
JavaScript
jQuery(document).ready( function($) { jQuery('.hide-if-no-js').show(); jQuery('.hide-if-js').hide(); var stamp = $('#timestamp').html(); $('.edit-timestamp').click(function () { if ($('#timestampdiv').is(":hidden")) { $('#timestampdiv').slideDown("normal"); $('.edit-timestamp').hide(); } return false; ...
JavaScript
// Password strength meter function passwordStrength(password,username) { var shortPass = 1, badPass = 2, goodPass = 3, strongPass = 4; //password < 4 if (password.length < 4 ) { return shortPass }; //password == username if (password.toLowerCase()==username.toLowerCase()) return badPass; var symb...
JavaScript
jQuery( function($) { var before = function() { var nonce = $('#newmeta [@name=_ajax_nonce]').val(); var postId = $('#post_ID').val(); if ( !nonce || !postId ) { return false; } return [nonce,postId]; } var addBefore = function( s ) { var b = before(); if ( !b ) { return false; } s.data = s.data.repla...
JavaScript
jQuery(function($) { $('.noscript-action').remove(); var reminded = false; var lameWidgetReminder = function() { if ( reminded ) return; window.onbeforeunload = function () { return widgetsL10n.lamerReminder }; $('h2:first').after( '<div class="updated"><p>' + widgetsL10n.lameReminder + '</p></div>' ); $...
JavaScript
wpGears = { createStore : function() { if ( 'undefined' == typeof google || ! google.gears ) return; if ( 'undefined' == typeof localServer ) localServer = google.gears.factory.create("beta.localserver"); store = localServer.createManagedStore(this.storeName()); store.manifestUrl = "gears-manifest.php";...
JavaScript
// send html to the post editor function send_to_editor(h) { if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) { ed.focus(); if (tinymce.isIE) ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark); if ( h.indexOf('[caption') === 0 ) { ...
JavaScript
// Word count (function(JQ) { wpWordCount = { init : function() { var t = this, last = 0, co = JQ('#content'); JQ('#wp-word-count').html( wordCountL10n.count.replace( /%d/, '<span id="word-count">0</span>' ) ); t.block = 0; t.wc(co.val()); co.keyup( function(e) { if ( e.keyCode == last ) return ...
JavaScript
function GetElementsWithClassName(elementName, className) { var allElements = document.getElementsByTagName(elementName); var elemColl = new Array(); for (i = 0; i < allElements.length; i++) { if (allElements[i].className == className) { elemColl[elemColl.length] = allElements[i]; } } return elemColl; } fu...
JavaScript
(function($) { inlineEditTax = { init : function() { var t = this, row = $('#inline-edit'); t.type = $('#the-list').attr('className').substr(5); t.what = '#'+t.type+'-'; // get all editable rows t.rows = $('tr.iedit'); // prepare the edit row row.keyup(function(e) { if(e.which == 27) return inlineEd...
JavaScript
jQuery(function($) { var options = false var addAfter = function( r, settings ) { var name = $("<span>" + $('name', r).text() + "</span>").html(); var id = $('tag', r).attr('id'); options[options.length] = new Option(name, id); } var addAfter2 = function( x, r ) { var t = $(r.parsed.responses[0].data); ...
JavaScript
var switchEditors = { mode : '', I : function(e) { return document.getElementById(e); }, edInit : function() { var h = tinymce.util.Cookie.getHash("TinyMCE_content_size"), H = this.I('edButtonHTML'), P = this.I('edButtonPreview'); // Activate TinyMCE if it's the user's default editor if ( getUserSettin...
JavaScript
jQuery(function($) { var gallerySortable; var gallerySortableInit = function() { gallerySortable = $('#media-items').sortable( { items: '.media-item', placeholder: 'sorthelper', axis: 'y', distance: 2, update: galleryReorder } ); } // When an update has occurred, adjust the order for each item ...
JavaScript
/* Plugin Browser Thickbox related JS*/ jQuery(function($) { var thickDims = function() { var tbWindow = $('#TB_window'); var width = $(window).width(); var H = $(window).height(); var W = ( 720 < width ) ? 720 : width; if ( tbWindow.size() ) { tbWindow.width( W - 50 ).height( H - 45 ); $('#TB_iframeC...
JavaScript
(function($) { postboxes = { add_postbox_toggles : function(page,args) { $('.postbox h3, .postbox .handlediv').click( function() { $($(this).parent().get(0)).toggleClass('closed'); postboxes.save_state(page); } ); $('.postbox h3 a').click( function(e) { e.stopPropagation(); } ); $('.hide-...
JavaScript
(function($) { inlineEditPost = { init : function() { var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit'); t.type = $('table.widefat').hasClass('page') ? 'page' : 'post'; t.what = '#'+t.type+'-'; // get all editable rows t.rows = $('tr.iedit'); // prepare the edit rows qeRow.keyup(fun...
JavaScript
jQuery( function($) { var myConfirm = function() { return '' !== $('#newcat').val(); }; $('#jaxcat').prepend('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" class="add:categorychecklist:jaxcat" id="catadd" value="' + catL10n.add + '"/><...
JavaScript
jQuery(function($) { var options = false if ( document.forms['addcat'].category_parent ) options = document.forms['addcat'].category_parent.options; var addAfter = function( r, settings ) { var name = $("<span>" + $('name', r).text() + "</span>").html(); var id = $('cat', r).attr('id'); options[options.leng...
JavaScript
jQuery(document).ready( function($) { // close postboxes that should be closed jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); jQuery('#link_name').focus(); // postboxes postboxes.add_postbox_toggles('link'); // category tabs var categoryTabs = jQuery('#category-tabs').tabs(); // Ajax...
JavaScript
var theList; var theExtraList; (function($) { setCommentsList = function() { var dimAfter = function( r, settings ) { var c = $('#' + settings.element); if ( c.is('.unapproved') ) c.find('div.comment_status').html('0') else c.find('div.comment_status').html('1') $('span.pending-count').each( function(...
JavaScript
var autosaveLast = ''; var autosavePeriodical; var autosaveOldMessage = ''; var autosaveDelayPreview = false; var autosaveFirst = true; jQuery(function($) { autosaveLast = $('#post #title').val()+$('#post #content').val(); autosavePeriodical = $.schedule({time: autosaveL10n.autosaveInterval * 1000, func: function() ...
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
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
// script.aculo.us unittest.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // (c) 2005-2007 Jon Tirsen (http://www.tirsen.com) // (c) 2005-2007 Michael Schuerig (http://www.schuerig.de/michael/) // // script.aculo.us i...
JavaScript
// script.aculo.us slider.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 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 sound.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 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.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 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.0, Tue Nov 06 15:01:40 +0300 2007 // Copyright (c) 2005-2007 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
// script.aculo.us scriptaculous.js v1.7.1_beta3, Fri May 25 17:19:41 +0200 2007 // Copyright (c) 2005-2007 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 // "Soft...
JavaScript
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 ( jQuery('.type-form #media-items>*').length == 1 && jQuery('#media-...
JavaScript
/* SWFUpload Graceful Degradation Plug-in This plugin allows SWFUpload to display only if it is loaded successfully. Otherwise a default form is left displayed. Usage: To use this plugin create two HTML containers. Each should have an ID defined. One container should hold the SWFUpload UI. The other should...
JavaScript
/* DocumentReady Plug-in This plugin loads SWFUpload as soon as the document is ready. You should not load SWFUpload inside window.onload using this plugin. You can also chain other functions by calling SWFUpload.DocumentReady(your function). Warning: Embedded Ads or other scripts that overwrite window.onload ...
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
/** * 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
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(); var oldWidth, oldHeight, ed, 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 init() { var pl = "", f, val; v...
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() { 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 ...
JavaScript
var tinymce = null, tinyMCEPopup, tinyMCE; tinyMCEPopup = { init: function() { var t = this, w, ti, 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 (q.mce_rdom...
JavaScript