code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * Scripts Ahoy! Software * * Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com) * All terms, conditions and copyrights as defined * in the Scripts Ahoy! License Agreement * http://www.scriptsahoy.com/license * */ /** * Google Maps behavior */ ahoy.behaviors.map = function(element, config) ...
JavaScript
/** * Scripts Ahoy! Software * * Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com) * All terms, conditions and copyrights as defined * in the Scripts Ahoy! License Agreement * http://www.scriptsahoy.com/license * */ /** * Request quotes behavior */ ahoy.behaviors.request_quotes = function(e...
JavaScript
/** * Scripts Ahoy! Software * * Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com) * All terms, conditions and copyrights as defined * in the Scripts Ahoy! License Agreement * http://www.scriptsahoy.com/license * */ /** * Select country behavior * * Usage: ahoy.behavior('#country_id', 'select_...
JavaScript
/** * Scripts Ahoy! Software * * Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com) * All terms, conditions and copyrights as defined * in the Scripts Ahoy! License Agreement * http://www.scriptsahoy.com/license * */ /** * Job quote behavior */ ahoy.behaviors.job_quote = function(element, co...
JavaScript
/** * Scripts Ahoy! Software * * Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com) * All terms, conditions and copyrights as defined * in the Scripts Ahoy! License Agreement * http://www.scriptsahoy.com/license * */ /** * Portfolio behavior */ ahoy.behaviors.portfolio = function(element, conf...
JavaScript
/** * Popup behavior * * Usage: ahoy.behavior('#popup', 'popup', { trigger: '#button' }); * */ ahoy.behaviors.popup = function(element, config) { var self = this; element = $(element); var defaults = { on_open: null, // Callback when popup opens on_...
JavaScript
/** * Scripts Ahoy! Software * * Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com) * All terms, conditions and copyrights as defined * in the Scripts Ahoy! License Agreement * http://www.scriptsahoy.com/license * */ /** * Map Bubble behavior (extension of Google Map behavior) * * Usage: * ...
JavaScript
/** * Scripts Ahoy! Software * * Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com) * All terms, conditions and copyrights as defined * in the Scripts Ahoy! License Agreement * http://www.scriptsahoy.com/license * */ /** * Map Locator behavior (extension of Google Map behavior) * * Usage: * ...
JavaScript
/** * Scripts Ahoy! Software * * Copyright (c) 2012 Scripts Ahoy! (scriptsahoy.com) * All terms, conditions and copyrights as defined * in the Scripts Ahoy! License Agreement * http://www.scriptsahoy.com/license * */ /** * Role select behavior */ ahoy.behaviors.role_select = function(element,...
JavaScript
/** * Ajax interface * * Usage: ahoy.post('#form').action('core:on_null').success(function(){ alert('Success!'); }).send(); */ var Ahoy = (function(ahoy, $){ ahoy.post = function(obj) { return new ahoy.post_object(obj); }; ahoy.post_object = function(obj) { this._data ...
JavaScript
// General // jQuery.validator.addMethod("phoneUS", function (phone_number, element) { phone_number = phone_number.replace(/\s+/g, ""); return this.optional(element) || phone_number.length >= 5 && phone_number.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/); }, "Please specify a valid ph...
JavaScript
/** * Form helper * * Usage: * * // Define single field * Ahoy.form.define_field('user:register_form', 'email').required("This is required!"); * * // Define multiple fields * Ahoy.form.define_fields('user:register_form', function() { * this.define_field('email').required('This is required!').e...
JavaScript
/** * Form definition and validation * * ahoy.validation('#form').code('user:login_form').success(function() { alert('Pass!'); }).bind(); * * // Append rules to an exisiting form * ahoy.validation('#form').add_rules('user:register_form'); * */ var Ahoy = (function(ahoy, $){ ahoy.validation ...
JavaScript
/* =require foundation/modernizr.foundation =require foundation/jquery.placeholder =require foundation/jquery.foundation.alerts =require foundation/jquery.foundation.accordion =require foundation/jquery.foundation.buttons =require foundation/jquery.foundation.tooltips =require foundation/jquery.foundation.forms ...
JavaScript
;(function ($, window, undefined){ 'use strict'; $.fn.foundationAccordion = function (options) { var $accordion = $('.accordion'); if ($accordion.hasClass('hover') && !Modernizr.touch) { $('.accordion li', this).on({ mouseenter : function () { console.log('due'); ...
JavaScript
/* * jQuery Foundation Tooltips 2.0.2 * http://foundation.zurb.com * Copyright 2012, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ /*jslint unparam: true, browser: true, indent: 2 */ ;(function ($, window, undefined) { 'use strict'; var settin...
JavaScript
/* * jQuery Foundation Clearing 1.1 * http://foundation.zurb.com * Copyright 2012, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ /*jslint unparam: true, browser: true, indent: 2 */ ;(function ($, window, undefined) { 'use strict'; var defaults...
JavaScript
/* * jQuery Foundation Magellan 0.0.1 * http://foundation.zurb.com * Copyright 2012, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ /*jslint unparam: true, browser: true, indent: 2 */ ;(function ($, window, undefined) { 'use strict'; $.fn.found...
JavaScript
;(function ($, window, undefined) { 'use strict'; $.fn.foundationAlerts = function (options) { var settings = $.extend({ callback: $.noop }, options); $(document).on("click", ".alert-box a.close", function (e) { e.preventDefault(); $(this).closest(".alert-box").fadeOu...
JavaScript
;(function ($, window, undefined) { 'use strict'; var $doc = $(document), Modernizr = window.Modernizr; $(document).ready(function() { $.fn.foundationAlerts ? $doc.foundationAlerts() : null; $.fn.foundationButtons ? $doc.foundationButtons() : null; $.fn.foundationAc...
JavaScript
/* * jQuery Reveal Plugin 1.1 * www.ZURB.com * Copyright 2010, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ /*globals jQuery */ (function ($) { 'use strict'; // // Global variable. // Helps us determine if the current modal is being queued ...
JavaScript
;(function (window, document, $) { // Set the negative margin on the top menu for slide-menu pages var $selector1 = $('#topMenu'), events = 'click.fndtn'; if ($selector1.length > 0) $selector1.css("margin-top", $selector1.height() * -1); // Watch for clicks to show the sidebar var $selector2 = $('...
JavaScript
;(function ($, window, document, undefined) { 'use strict'; var settings = { callback: $.noop, init: false }, methods = { init : function (options) { settings = $.extend({}, options, settings); return this.each(function () { if (!s...
JavaScript
/* * jQuery Foundation Top Bar 2.0.2 * http://foundation.zurb.com * Copyright 2012, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ /*jslint unparam: true, browser: true, indent: 2 */ ;(function ($, window, undefined) { 'use strict'; var setting...
JavaScript
/* * jQuery Orbit Plugin 1.4.0 * www.ZURB.com/playground * Copyright 2010, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function ($) { 'use strict'; $.fn.findFirstImage = function () { return this.first() .find('img') ...
JavaScript
/*! http://mths.be/placeholder v2.0.7 by @mathias */ ;(function(window, document, $) { var isInputSupported = 'placeholder' in document.createElement('input'), isTextareaSupported = 'placeholder' in document.createElement('textarea'), prototype = $.fn, valHooks = $.valHooks, hooks, pl...
JavaScript
;(function ($, window, undefined) { 'use strict'; $.fn.foundationMediaQueryViewer = function (options) { var settings = $.extend(options,{toggleKey:77}), // Press 'M' $doc = $(document); $doc.on("keyup.mediaQueryViewer", ":input", function (e){ if (e.which === settings.toggleKey) {...
JavaScript
/* * jQuery Foundation Joyride Plugin 2.0.2 * http://foundation.zurb.com * Copyright 2012, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ /*jslint unparam: true, browser: true, indent: 2 */ ;(function ($, window, undefined) { 'use strict'; var ...
JavaScript
// jQuery.event.swipe // 0.5 // Stephen Band // Dependencies // jQuery.event.move 1.2 // One of swipeleft, swiperight, swipeup or swipedown is triggered on // moveend, when the move has covered a threshold ratio of the dimension // of the target node, or has gone really fast. Threshold and velocity // sensi...
JavaScript
// jquery.event.move // // 1.3.1 // // Stephen Band // // Triggers 'movestart', 'move' and 'moveend' events after // mousemoves following a mousedown cross a distance threshold, // similar to the native 'dragstart', 'drag' and 'dragend' events. // Move events are throttled to animation frames. Move event objec...
JavaScript
/*! * jQuery Cookie Plugin v1.3 * https://github.com/carhartl/jquery-cookie * * Copyright 2011, Klaus Hartl * Dual licensed under the MIT or GPL Version 2 licenses. * http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/GPL-2.0 */ (function ($, document, undefined) { ...
JavaScript
/* * jQuery Custom Forms Plugin 1.0 * www.ZURB.com * Copyright 2010, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function( $ ){ /** * Helper object used to quickly adjust all hidden parent element's, display and visibility properties. * T...
JavaScript
;(function ($, window, undefined) { 'use strict'; $.fn.foundationButtons = function (options) { var $doc = $(document), config = $.extend({ dropdownAsToggle:true, activeClass:'active' }, options), // close all dropdowns except for the dropdown passed closeDropd...
JavaScript
;(function ($, window, undefined) { 'use strict'; $.fn.foundationNavigation = function (options) { var lockNavBar = false; // Windows Phone, sadly, does not register touch events :( if (Modernizr.touch || navigator.userAgent.match(/Windows Phone/i)) { $(document).on('click.fndtn touchsta...
JavaScript
/** * Popup widget * * Usage: * $('#popup').popup({ trigger: '#button' }); * $('body').popup({ trigger: '#button', partial: 'partial:name' }); */ ;(function ($, window, document, undefined) { $.widget("utility.popup", { version: '1.2.1', options: { on_open: ...
JavaScript
/** * Star widget * * Usage: * <div class="rating-selector"> * <select name="rating"> * <option value="0">0</option> * <option value="1">1</option> * <option value="2">2</option> * <option value="3">3</option> * <option value="4">4</option> * <o...
JavaScript
;(function ($, window, document, undefined) { $.widget("utility.scrollbar", { version: '1.0', options: { axis: 'vertical', // Vertical or horizontal scrollbar? wheel: 40, // How many pixels to scroll at a time scroll: true, ...
JavaScript
(function($) { /** * Runs functions given in arguments in series, each functions passing their results to the next one. * Return jQuery Deferred object. * * @example * $.waterfall( * function() { return $.ajax({url : first_url}) }, * function() { return $.ajax({url : second_url}) }, * function...
JavaScript
/** * Custom Forms Widget */ ;(function ($, window, document, undefined) { $.widget("utility.forms", { version: '1.0.0', options: { }, _create: function () { this.refresh(); }, refresh: function() { this.build_quantity_input(); ...
JavaScript
;(function ($, window, undefined) { 'use strict'; var $doc = $(document), Modernizr = window.Modernizr; $(document).ready(function() { $.utility.statusbar && $doc.statusbar(); $.utility.forms && $doc.forms(); // Tweak to foundation's topbar.js $('.top-bar u...
JavaScript
// Toggle text between current and data-toggle-text contents $.fn.extend({ toggleText: function() { var self = $(this); var text = self.text(); var ttext = self.data('toggle-text'); var tclass = self.data('toggle-class'); self.text(ttext).data('toggle-text', text).to...
JavaScript
;(function ($, window, document, undefined) { $.widget("utility.gmap_locator", $.utility.gmap, { version: '1.0.4', options: { bubble_on_hover: true, autofit_markers: true, bubble_id_prefix: '#bubble_', container: '#browse_sidebar_content ul' ...
JavaScript
;(function ($, window, document, undefined) { $.widget("utility.gmap", { version: '1.0.1', options: { start_address: null, start_position: [-34.397, 150.644], // Australia ;) start_zoom: 2, // Initial map zoom ...
JavaScript
/** * Portfolio behavior * * Usage: * <div id="portfolio"> * <img src="fullsize.jpg" data-image-id="1" data-image-thumb="thumb.jpg" /> * <img src="fullsize2.jpg" data-image-id="1" data-image-thumb="thumb2.jpg" /> * </div> * <script> $('portfolio').portfolio(); </script> * */ ;(function ($, wi...
JavaScript
/*! * GMAP3 Plugin for JQuery * Version : 5.0b * Date : 2012-11-17 * Licence : GPL v3 : http://www.gnu.org/licenses/gpl.html * Author : DEMONTE Jean-Baptiste * Contact : jbdemonte@gmail.com * Web site : http://gmap3.net * * Copyright (c) 2010-2012 Jean-Baptiste DEMONTE *...
JavaScript
/** * Popup widget * * Usage: * $('#popup').popup({ trigger: '#button' }); * $('body').popup({ trigger: '#button', partial: 'partial:name' }); */ ;(function ($, window, document, undefined) { $.widget("utility.statusbar", { version: '1.0.2', options: { inject_...
JavaScript
/* Masked Input plugin for jQuery Copyright (c) 2007-@Year Josh Bush (digitalbush.com) Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) Version: @version */ (function($) { var pasteEventName = ($.browser.msie ? 'paste' : 'input') + ".mask"; v...
JavaScript
/* moo.fx pack, effects extensions for moo.fx. by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE for more info visit (http://moofx.mad4milk.net). Friday, April 14, 2006 v 1.2.4 */ //smooth scroll fx.Scroll = Class.create(); fx.Scroll.prototype = Object.extend(new fx.Base(), { initialize: function(options) {...
JavaScript
/* moo.fx, simple effects library built with prototype.js (http://prototype.conio.net). by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE. for more info (http://moofx.mad4milk.net). Sunday, March 05, 2006 v 1.2.3 */ var fx = new Object(); //base fx.Base = function(){}; fx.Base.prototype = { setOptions: func...
JavaScript
//** Featured Content Slider script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com. var featuredcontentslider={ enablepersist: false, //persist to last content viewed when returning to page? settingcaches: {}, //object to cache "setting" object of each script instance buildcontentdivs:functi...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
//////////////////////////////////////////////////// // wordWindow object //////////////////////////////////////////////////// function wordWindow() { // private properties this._forms = []; // private methods this._getWordObject = _getWordObject; //this._getSpellerObject = _getSpellerObject; this._wo...
JavaScript
//////////////////////////////////////////////////// // controlWindow object //////////////////////////////////////////////////// function controlWindow( controlForm ) { // private properties this._form = controlForm; // public properties this.windowType = "controlWindow"; // this.noSuggestionSelection =...
JavaScript
//////////////////////////////////////////////////// // spellChecker.js // // spellChecker object // // This file is sourced on web pages that have a textarea object to evaluate // for spelling. It includes the implementation for the spellCheckObject. // //////////////////////////////////////////////////// ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
var FCKDragTableHandler = { "_DragState" : 0, "_LeftCell" : null, "_RightCell" : null, "_MouseMoveMode" : 0, // 0 - find candidate cells for resizing, 1 - drag to resize "_ResizeBar" : null, "_OriginalX" : null, "_MinimumX" : null, "_MaximumX" : null, "_LastX" : null, "_TableMap" : null, "_doc" ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
FCKCommands.RegisterCommand('insertcodeRun',new FCKDialogCommand( 'insertcodeRun', FCKLang["InsertCodeBtn"], FCKPlugins.Items['insertcodeRun'].Path + 'fck_insertcode.html', 500, 420 ) ) ; var oInsertCode=new FCKToolbarButton('insertcodeRun',null,FCKLang["InsertCodeBtn"],null,false,true,74); oInsertCode.IconPath = FC...
JavaScript
function $(id) { return document.getElementById(id); } function copyIdText(id) { copy( $(id).innerText,$(id) ); } function copyIdHtml(id) { copy( $(id).innerHTML,$(id) ); } function copy(txt,obj) { if(window.clipboardData) { window.clipboardData.clearData(); ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * ...
JavaScript
<!-- //xmlhttp和xmldom对象 var XHTTP = null; var XDOM = null; var Container = null; var ShowError = false; var ShowWait = false; var ErrCon = ""; var ErrDisplay = "下载数据失败"; var WaitDisplay = "正在下载数据..."; //获取指定ID的元素 //function $(eid){ // return document.getElementById(eid); //} function $DE(id) { retur...
JavaScript
/** * Copyright (c) 2010 Maxim Vasiliev * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merg...
JavaScript
/** * @author Maxim Vasiliev * Date: 29.06.11 * Time: 20:09 */ (function($){ /** * jQuery wrapper for form2object() * Extracts data from child inputs into javascript object */ $.fn.toObject = function(options) { var result = [], settings = { mode: 'first', // what to convert: 'al...
JavaScript
/* http://www.JSON.org/json2.js 2010-08-25 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
/** * 우편번호 검색 * data : 2014.11 * writer : me */ function winOpenInit() { document.getElementById("btnFind").onclick = search; } function search() { win = window.open("./win_sub.html", "win",""); } function winSubInit() { tar = window.opener.document.frm; tar.address.value="우편번호를 검색하세...
JavaScript
/** * 게시판과 관련된 자바스크립트 * date : 2014.11 * writer : me */ var btnList; var btnInput; var btnModify; var btnDelete; var btnView; var url = 'index.jsp?inc=../Score/'; function general(){ // 게시판과 관련된 공통 모듈 btnList = document.getElementById("btnList"); if (btnList != null){ btnList.onclick = fu...
JavaScript
/** * date : 2014.11 * writer : me */ var count = 0; var interval; function init() { var f = document.frm; document.getElementById(f.btnStart).onclick = "btnS"; document.getElementById(f.btnEnd).onclick = "btnE"; } function btnS() { function run() { var div = document.getElementB...
JavaScript
/** * date: 2014.10 * writer: young */ var start = false; var startX = 0; var srartY = 0; var ctx ; function init() { document.getElementById("canvas").onmousedown = set; document.getElementById("canvas").onmousemove = drawing; ctx = document.getElementById("canvas").getContext("2d"); } func...
JavaScript
/** * if test2 * date : 2014.10 * writer : me */ function ifTest2() { var btnclk = document.getElementById("btn"); var frm; btnclk.onclick = function(){ frm = document.frm; var num1 = Number(frm.num1.value) ; var num2 = Number(frm.num2.value) ; var total = num1 + num2; alert("합계 : " + to...
JavaScript
/** * if test3 * date : 2014.10 * writer : me */ function ifTest3() { var btnclk = document.getElementById("btn"); var frm; btnclk.onclick = function(){ frm = document.frm; var num1 = Number(frm.num1.value); if(num1%2 == 0){ alert("짝수"); } else{ alert("홀수"); } } }
JavaScript
/** * */
JavaScript