code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * 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
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
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
/** * 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(); 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
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
/** * 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
/*! * 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
/*! * 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
(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
(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
/****************************************************************************************************************************** * @ 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
/* * 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
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
/** * 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(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
(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
/* * 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($) { 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
/* Shutter Reloaded for NextGEN Gallery http://www.laptoptips.ca/javascripts/shutter-reloaded/ Version: 1.3.2 Copyright (C) 2007-2008 Andrew Ozz (Modification by Alex Rabe) Released under the GPL, http://www.gnu.org/copyleft/gpl.html Acknowledgement: some ideas are from: Shutter by Andrew Sutherland - http://c...
JavaScript
jQuery("document").ready(function(){ // register ajax gallery-navigation listeners jQuery("a.page-numbers").click(function(e) { return ngg_ajax_navigation(e, this); }); jQuery("a.prev").click(function(e) { return ngg_ajax_navigation(e, this); }); jQuery("a.next").click(function(e) { return ngg_ajax...
JavaScript
/*! * jQuery Cycle Plugin (with Transition Definitions) * Examples and documentation at: http://jquery.malsup.com/cycle/ * Copyright (c) 2007-2010 M. Alsup * Version: 2.88 (08-JUN-2010) * Dual licensed under the MIT and GPL licenses. * http://jquery.malsup.com/license.html * Requires: jQuery v1.2.6 or lat...
JavaScript
/*! * NextGEN Slideshow based on jQuery Cycle Plugin * Copyright (c) 2010-2011 Alex Rabe * Version: 1.0.5 * Requires: jQuery v1.2.6 or later */ jQuery.fn.nggSlideshow = function ( args ) { var defaults = { id: 1, width: 320, height: 240, ...
JavaScript
/** * NextGEN Gallery - SWFUpload Handler * http://alexrabe.boelinger.com/ * * Built on top of the swfupload library * http://swfupload.org version 2.2.0 * * version 1.0.3 */ // on load change the upload to swfupload function initSWFUpload() { jQuery(function() { jQuery("#uploadimage_btn...
JavaScript
/** * * Color picker * Author: Stefan Petre www.eyecon.ro * * Dual licensed under the MIT and GPL licenses * */ (function ($) { var ColorPicker = function () { var ids = {}, inAction, charMin = 65, visible, tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><di...
JavaScript
/* * Implementation of jQuery UI Autocomplete * see http://jqueryui.com/demos/autocomplete/ * Version: 1.0.0 * Author : Alex Rabe */ jQuery.fn.nggAutocomplete = function ( args ) { var defaults = { type: 'image', domain: '', limit: 50 }; va...
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
/* * Ajax Plugin for NextGEN gallery * Version: 1.4.1 * Author : Alex Rabe */ (function($) { nggAjax = { settings: { url: nggAjaxSetup.url, type: "POST", action: nggAjaxSetup.action, operation : nggAjaxSetup.operation, nonce: nggAjaxSetup.nonce, ids: nggAjaxSetup.ids, permiss...
JavaScript
/************************************************************************************************************ (C) www.dhtmlgoodies.com, September 2005 This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website. Terms of use: LGPL: See web page for more info. Tha...
JavaScript
/* * Progress bar Plugin for NextGEN gallery * Version: 2.0.1 * Author : Alex Rabe */ (function($) { nggProgressBar = { settings: { id: 'progressbar', maxStep: 100, wait: false, header: '' }, init: function( s ) { s = this.settings = $.extend( {}, this.settings...
JavaScript
function init() { tinyMCEPopup.resizeToInnerSize(); } function getCheckedValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return ""; for(var i = 0; i < radioLength; i++) { if(radi...
JavaScript
// Docu : http://wiki.moxiecode.com/index.php/TinyMCE:Create_plugin/3.x#Creating_your_own_plugins (function() { // Load plugin specific language pack tinymce.PluginManager.requireLangPack('NextGEN'); tinymce.create('tinymce.plugins.NextGEN', { /** * Initializes the plugin, this will be executed after...
JavaScript
// German lang variables for WP2.5 tinyMCE.addI18n({de:{ NextGEN:{ desc : 'NextGEN Gallery hinzufuegen' }}});
JavaScript
// English lang variables for WP2.5 tinyMCE.addI18n({en:{ NextGEN:{ desc : 'Add NextGEN Gallery' }}});
JavaScript
// German lang variables for WP2.5 tinyMCE.addI18n({de:{ NextGEN:{ desc : 'NextGEN Gallery hinzufuegen' }}});
JavaScript
// English lang variables for WP2.5 tinyMCE.addI18n({en_US:{ NextGEN:{ desc : 'Add NextGEN Gallery' }}});
JavaScript
/* --------------------------------------------------------------------- Original Author: Kelly Meath ------------------------------------------------------------------------ */ if( typeof jQuery == 'function' ) jQuery(function($){ DeveloperTools.init(); }); var DeveloperTools = { dt : null, ...
JavaScript
/* --------------------------------------------------------------------- Original Author: Kelly Meath ------------------------------------------------------------------------ */ if( typeof jQuery == 'function' ) jQuery(function($){ DeveloperTools.init(); }); var DeveloperTools = { dt : null, ...
JavaScript
if( typeof jQuery == 'function' ) jQuery(function($){ $('#toplevel_page_developer-tools a.toplevel_page_developer-tools').click( function(){ document.cookie = 'developer_tools_current_menu_item=home'; }); });
JavaScript
if(typeof jQuery == 'function') jQuery(function($){ $("a[href^='http://']").each(function(){ var thehref = $(this).attr('href'); if(!thehref.match(window.location.host)) $(this).attr('target', '_blank').addClass('external_link'); }); });
JavaScript
/* A simple class for displaying file information and progress Note: This is a demonstration only and not part of SWFUpload. Note: Some have had problems adapting this class in IE7. It may not be suitable for your application. */ // Constructor // file is a SWFUpload file object // targetID is the HTML element id a...
JavaScript
/* This is an example of how to cancel all the files queued up. It's made somewhat generic. Just pass your SWFUpload object in to this method and it loops through cancelling the uploads. */ function cancelQueue(instance) { document.getElementById(instance.customSettings.cancelButtonId).disabled = true; instance.st...
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
/*! Copyright (c) 2010 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 deltaY * *...
JavaScript
/* * FancyBox - jQuery Plugin * Simple and fancy lightbox alternative * * Examples and documentation at: http://fancybox.net * * Copyright (c) 2008 - 2010 Janis Skarnelis * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is great...
JavaScript
var mouseX = -1; var mouseY = -1; var lastWidth = -1; var lastHeight = -1; var lastLeft = -1; var lastTop = -1; var activeContent; var compX = 0; var compY = 0; var activeColumnId = -1; var activeColumn; var styleNodeKeys = []; var styleNodes = []; function startResize(e) { var event = new Event(e); activeWindow =...
JavaScript
var sb; var shiftPressed; var lastActiveRow = -1; var clearPanesOnLoad = false; var activeWindow; var animationStack = []; var viewportSize = [0, 0]; function f(g) { if (g == undefined || g == "undefined" || g == null) return ""; else return g; } var $E = function(selector, filter) { return ($(filter) || do...
JavaScript
function clearPanes() { $('innercontent').empty(); } function toggleMenuClick(e) { var event = new Event(e); var menuId = event.target.parentNode.parentNode.id; toggleMenu(menuId.substring(2)); } function toggleMenu(b, forceExpand) { b = parseInt(b); var menuId = "db" + b; var menu = $(menuId); var sub = "sub...
JavaScript
/** * JavaScript routines for Krumo * * @version $Id: krumo.js 22 2007-12-02 07:38:18Z Mrasnika $ * @link http://sourceforge.net/projects/krumo */ ///////////////////////////////////////////////////////////////////////////// /** * Krumo JS Class */ function krumo() { } // -- -- -- -- -- -- -- -- -- -...
JavaScript
/* * jsTree 1.0-rc3 * http://jstree.com/ * * Copyright (c) 2010 Ivan Bozhanov (vakata.com) * * Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Date: 2011-02-09 ...
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. ...
JavaScript
// @todo: add prefix to treeOptions, div_actions var cms_tpv_tree, treeOptions, div_actions, cms_tpv_current_li_id = null; jQuery(function($) { cms_tpv_tree = $(".cms_tpv_container"); div_actions = $(".cms_tpv_page_actions"); treeOptions = { xplugins: ["cookie","ui","crrm","themes","json_data","search","types"...
JavaScript
// jQuery Alert Dialogs Plugin // // Version 1.1 // // Cory S.N. LaViska // A Beautiful Site (http://abeautifulsite.net/) // 14 May 2009 // // Visit http://abeautifulsite.net/notebook/87 for more information // // Usage: // jAlert( message, [title, callback] ) // jConfirm( message, [title, callback] ) //...
JavaScript
/* * jQuery JSON Plugin * version: 1.0 (2008-04-17) * * This document is licensed as free software under the terms of the * MIT License: http://www.opensource.org/licenses/mit-license.php * * Brantley Harris technically wrote this plugin, but it is based somewhat * on the JSON.org website's http://www.json.org/...
JavaScript
// change the menu position based on the scroll positon window.onscroll = function() { if( window.XMLHttpRequest ) { if (document.documentElement.scrollTop > 160 || self.pageYOffset > 160) { jQuery('#floatMenu').css('position','fixed'); jQuery('#floatMenu').css('top','5px'); ...
JavaScript
//------------------------------------------------ //---------- CURRENCY ---------------------------- //------------------------------------------------ function Currency(currency){ this.currency = currency; this.toNumber = function(text){ if(this.isNumeric(text)) return parseFloat(text);...
JavaScript
/* Copyright 2008 by Marco van Hylckama Vlieg web: http://www.i-marco.nl/weblog/ email: marco@i-marco.nl Free for use */ function initMenus() { jQuery('ul.menu ul').hide(); jQuery.each(jQuery('ul.menu'), function(){ jQuery('#' + this.id + '.expandfirst ul:first').show(); }); jQuery('ul.menu li .button-title-link...
JavaScript
/* * jQuery UI 1.7.1 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ ;jQuery.ui || (function($) { var _remove = $.fn.remove, isFF2 = $.browser.mozilla && (parseFloat($.browser....
JavaScript
/* * jQuery UI Sortable 1.7.1 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Sortables * * Depends: * ui.core.js */ (function($) { $.widget("ui.sortable", $.extend({}, $.ui.mou...
JavaScript
/* * jQuery UI Datepicker 1.6 * * Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI/Datepicker * * Depends: * ui.core.js */ (function($) { // hide the namespace $.extend($.ui, { dat...
JavaScript
/* * jQuery Textarea Characters Counter Plugin v 2.0 * Examples and documentation at: http://roy-jin.appspot.com/jsp/textareaCounter.jsp * Copyright (c) 2010 Roy Jin * Version: 2.0 (11-JUN-2010) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://w...
JavaScript
/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate$ * $...
JavaScript
jQuery(document).ready(gformInitDatepicker); function gformInitDatepicker(){ jQuery('.datepicker').each( function (){ var element = jQuery(this); var format = element.hasClass("mdy") ? "mm/dd/yy" : "dd/mm/yy"; var image = ""; var showOn = "focus"; ...
JavaScript
jQuery.fn.qtip.styles.gformsstyle = { // Last part is the name of the style width: 275, background: '#F1F1F1', color: '#424242', textAlign: 'left', border: { width: 3, radius: 6, color: '#AAAAAA' }, tip: 'bottomLeft' } // Create the tooltips only on document load jQuery(document).ready(func...
JavaScript
function Form(){ this.id = 0; this.title = "Untitled Form"; this.description = "We would love to hear from you! Please fill out this form and we will get in touch with you shortly."; this.labelPlacement = "top_label"; this.maxEntriesMessage = ""; this.confirmation = new Confirmation(); this....
JavaScript
function gf_apply_rules(formId, fields, isInit){ var rule_applied = 0; for(var i=0; i < fields.length; i++){ gf_apply_field_rule(formId, fields[i], isInit, function(){ rule_applied++; if(rule_applied == fields.length && window["gformCalculateTotalPrice"]) ...
JavaScript
/** * Handle: init_admin_calendar * Version: 0.9.9.1 * Deps: jQuery * Enqueue: true */ jQuery(document).ready(function($) { $.jGrowl.defaults.closerTemplate = '<div>' + custom.hide_all_notifications + '</div>'; $.jGrowl.defaults.position = (custom.is_rtl=='1') ? 'bottom-left' : 'bottom-right'; var is...
JavaScript
/** * Handle: init_show_calendar * Version: 0.9.9.1 * Deps: jQuery * Enqueue: true */ jQuery(document).ready(function($) { $.jGrowl.defaults.closerTemplate = '<div>' + custom.hide_all_notifications + '</div>'; $.jGrowl.defaults.position = (custom.is_rtl == '1') ? 'bottom-left' : 'bottom-right'; var i...
JavaScript
/** * Handle: init_admin_category * Version: 0.9.9.1 * Deps: jQuery * Enqueue: true */ jQuery(document).ready(function($) { $.jGrowl.defaults.closerTemplate = '<div>' + custom.hide_all_notifications + '</div>'; $.jGrowl.defaults.position = (custom.is_rtl == '1') ? 'bottom-left' : 'bottom-right'; $(...
JavaScript
jQuery(document).ready(function(){ jQuery('.wpm_options').slideUp(); jQuery('.video-h').hover(function() { jQuery(this).addClass('pretty-hover'); }, function() { jQuery(this).removeClass('pretty-hover'); }); var showHideVideos; showHideVideos = jQuery('.wpm_opts form #form-show-local-videos in...
JavaScript
jQuery(document).ready(function() { /** * ************************************************************************************* * Script generals * ************************************************************************************* */ jQuery(".login").click(function() { jQuery("#log...
JavaScript
/* * jQuery Popeye 2.1 - http://dev.herr-schuessler.de/jquery/popeye/ * * converts a HTML image list in image gallery with inline enlargement * * Copyright (C) 2008 - 2011 Christoph Schuessler (schreib@herr-schuessler.de) * * This program is free software; you can redistribute it and/or modify * it under the t...
JavaScript
/** * AJAX Upload * Project page - http://valums.com/ajax-upload/ * Copyright (c) 2008 Andris Valums, http://valums.com * Licensed under the MIT license (http://valums.com/mit-license/) */ (function(){ var d = document, w = window; /** * Get element by id */ function get(element){ if (typeof element == "str...
JavaScript
/// <reference path="../../../lib/jquery-1.2.6.js" /> /* Masked Input plugin for jQuery Copyright (c) 2007-2009 Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: 1.2.2 (03/09/2009 22:39:06) */ (function($) { var pasteEventNa...
JavaScript
/** * * Color picker * Author: Stefan Petre www.eyecon.ro * * Dependencies: jQuery * */ (function ($) { var ColorPicker = function () { var ids = {}, inAction, charMin = 65, visible, tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpic...
JavaScript
/** * SWFObject v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * **SWFObject is the SWF embed script formarly known as FlashObject. The name wa...
JavaScript
jQuery(document).ready(function($){ // Pricing Tables Deleting $('.uds-pricing-admin-table .pricing-delete').click(function(){ if(!confirm("Really delete table?")) { return false; } }); // products $('#uds-pricing-products form').submit(function(){ $('#uds-pricing-products .product').each(function(i, el...
JavaScript
if (!window.FB) { window.FB = {}; } FB.ContactForm = function() { var fbForm = { // Main object that generated shortcode via AJAX call 'action' : 'grunion_shortcode', '_ajax_nonce' : ajax_nonce_shortcode, 'to' : '', 'subject' : '', 'fields' : {} }; var defaultFields = { 'name': { 'label' : 'Name', ...
JavaScript
function embedshortcode() { var shortcodetext; var style = document.getElementById('shortcode_panel'); if (style.className.indexOf('current') != -1) { var selected_shortcode = document.getElementById('style_shortcode').value; // ----------------------------- // COLUMN LAYOUTS // --------------------...
JavaScript
(function() { tinymce.PluginManager.requireLangPack('karma_shortcodes'); tinymce.create('tinymce.plugins.karma_shortcodes', { init : function(ed, url) { ed.addCommand('mcekarma_shortcodes', function() { ed.windowManager.open({ file : url + '/interface.php', width : 410 + ed.getLang('karma_shortcod...
JavaScript
(function($) { $(document).ready( function() { $('.feature-slider a').click(function(e) { $('.featured-posts section.featured-post').css({ opacity: 0, visibility: 'hidden' }); $(this.hash).css({ opacity: 1, visibility: 'visible' ...
JavaScript
var farbtastic; (function($){ var pickColor = function(a) { farbtastic.setColor(a); $('#link-color').val(a); $('#link-color-example').css('background-color', a); }; $(document).ready( function() { $('#default-color').wrapInner('<a href="#" />'); farbtastic = $.farbtastic('#colorPickerDiv', pickColor); ...
JavaScript
function SubtractASecond(days, hours, minutes, seconds) { seconds = document.getElementById(seconds); minutes = document.getElementById(minutes); hours = document.getElementById(hours); days = document.getElementById(days); if (!seconds || !minutes || !hours || !days) return; var secondsValue = se...
JavaScript
function ToggleShow(eltId) { var elt = document.getElementById(eltId); if (elt.style.display == "block") elt.style.display = "none"; else elt.style.display = "block"; } function ShowSubMenu(menuId) { var elt = document.getElementById(menuId); elt.style.visibility="visible"; elt.style.Lef...
JavaScript
function FilterNumeric(tb, KeyEvent) { var nCharCode = 0; if(typeof(KeyEvent.which) != 'undefined') nCharCode = KeyEvent.which; else if (typeof(KeyEvent.keyCode) != 'undefined') nCharCode = KeyEvent.keyCode; switch (nCharCode){ case 0: case 8: case 9: case 13: case 44: ...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript
/* Copyright 2010 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, software di...
JavaScript