code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * For FCKeditor 2.3 * * * File Name: ja.js * Japanese language file for the youtube plugin. * * File Authors: * Uprush (uprushworld@yahoo.co.jp) 2007/10/30 */ FCKLang['YouTubeTip'] = 'YouTube挿入/編集' ; FCKLang['DlgYouTubeTitle'] = 'YouTubeプロパティ' ; FCKLang['DlgYouTubeCode'] = 'URLを挿入してください。' ; FC...
JavaScript
/* * For FCKeditor 2.3 * * * File Name: en.js * English language file for the youtube plugin. * * File Authors: * Uprush (uprushworld@yahoo.co.jp) 2007/10/30 */ FCKLang['YouTubeTip'] = 'Insert/Edit YouTube' ; FCKLang['DlgYouTubeTitle'] = 'YouTube Property' ; FCKLang['DlgYouTubeCode'] = '"Please inse...
JavaScript
// Register the related commands. FCKCommands.RegisterCommand( 'YouTube', new FCKDialogCommand( FCKLang['DlgYouTubeTitle'], FCKLang['DlgYouTubeTitle'], FCKConfig.PluginsPath + 'youtube/youtube.html', 450, 350 ) ) ; // Create the "YouTube" toolbar button. var oFindItem = new FCKToolbarButton( 'YouTube', FCKLang['YouTu...
JavaScript
CKEDITOR.plugins.add('pyroimages', { requires: ['iframedialog'], init : function(editor) { CKEDITOR.dialog.addIframe('pyroimage_dialog', 'Image', BASE_URI + 'mod_file_manager/image_manager_editor/index',800,400) editor.addCommand('pyroimages', {exec:pyroimage_onclick}); editor...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('uicolor',{requires:['dialog'],lang:['en'],init:function(a){if(CKEDITOR.env.ie6Compat)return;a.addCommand('uicolor',new CKEDITOR.dialogCommand('uicolor'...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefined c...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript
CKEDITOR.plugins.add('pyrofiles', { init : function(editor) { // Add the link and unlink buttons. CKEDITOR.dialog.addIframe('pyrofiles_dialog', 'Files', BASE_URI + 'index.php/admin/wysiwyg/files',700,400); editor.addCommand('pyrofiles', {exec:pyrofiles_onclick} ); editor.ui.addButton('pyrofiles',{ label:'Uplo...
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; };
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3....
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3....
JavaScript
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Dutch language. */ /**#@+ @type String @example */ /** * Constains the dictionary of lang...
JavaScript
var txtbox = new function() { var valueold = ''; var newvalue = ''; var id = ''; var flag = true; function default_value() { $('#'+this.divid).html(newvalue) ; } function new_value() { $('#'+this.divid).html(newvalue) ; } return { divid: '' , edit:function(divid, song, char...
JavaScript
function remove_tip(){ $('#JT').remove() } function add_tip(linkId){ title = $("#"+linkId).attr('title'); content = $("#content"+linkId).html(); if(title == false)title=" "; var de = document.documentElement; var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; ...
JavaScript
// This file is part of the jQuery formatCurrency Plugin. // // The jQuery formatCurrency Plugin is free software: you can redistribute it // and/or modify it under the terms of the GNU General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at...
JavaScript
/* * Flexigrid for jQuery - v1.1 * * Copyright (c) 2008 Paulo P. Marinas (code.google.com/p/flexigrid/) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * */ (function ($) { $.addFlex = function (t, p) { if (t.grid) return false; //return if already exist p = $.extend({ ...
JavaScript
(function($){ $.fn.idTabs = function() { //Setup Tabs var ul = $('ul', this); //Save scope var self = this; var list = $('li', ul).bind('click', function() { var elm = $(this); // we set selected_section to keep active tab opened after form submit // we do it for all...
JavaScript
//Javasript name: My Date Time Picker //Date created: 16-Nov-2003 23:19 //Creator: TengYong Ng //Website: http://www.rainforestnet.com //Copyright (c) 2003 TengYong Ng //FileName: DateTimePicker_css.js //Version: 2.2.0 // Note: Permission given to use and modify this script in ANY kind of applications if // heade...
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/) * Version 3.5 (23.06.2009) */ /** * Changes from the previous version: * 1. Added better JSON handling that allows to use 'ap...
JavaScript
/* * jQuery UI Datepicker 1.8.5 * * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Datepicker * * Depends: * jquery.ui.core.js */ (function( $, undefined ) { $.extend($.ui, { datepicke...
JavaScript
// Ẩn. Hiển thị Menu trái function clickHide(type){ if (type == 1){ $('td.colum_left_lage').css('display','none'); $('td.colum_left_small').css('display','table-cell'); //nv_setCookie( 'colum_left_lage', '0', 86400000); } else { if (type == 2){ $('td.colu...
JavaScript
/* * jqModal - Minimalist Modaling with jQuery * (http://dev.iceburg.net/jquery/jqModal/) * * Copyright (c) 2007,2008 Brice Burgess <bhb@iceburg.net> * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Version: ...
JavaScript
Calendar.LANG("ro", "Română", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Astăzi", today: "Astăzi", // appears in bottom bar wk: "săp.", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "a...
JavaScript
Calendar.LANG("cn", "中文", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "今天", today: "今天", // appears in bottom bar wk: "周", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "AM", PM...
JavaScript
Calendar.LANG("ru", "русский", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Сегодня", today: "Сегодня", // appears in bottom bar wk: "нед", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: ...
JavaScript
Calendar.LANG("fr", "Français", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday : "Aujourd'hui", today: "Aujourd'hui", // appears in bottom bar wk: "sm.", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. ...
JavaScript
Calendar.LANG("pt", "Portuguese", { fdow: 1, // primeiro dia da semana para esse local; 0 = Domingo, 1 = Segunda, etc. goToday: "Dia de Hoje", today: "Hoje", wk: "sm", weekend: "0,6", // 0 = Domingo, 1 = Segunda, etc. AM: "am", PM: "p...
JavaScript
Calendar.LANG("cz", "Czech", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Ukaž dnešek", today: "Dnes", // appears in bottom bar wk: "týd", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "...
JavaScript
Calendar.LANG("de", "Deutsch", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday : "Heute ausw\u00e4hlen", today: "Heute", // appears in bottom bar wk: "wk", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. ...
JavaScript
Calendar.LANG("jp", "Japanese", { fdow: 1, // 地元の週の初めの日; 0 = 日曜日, 1 = 月曜日, 等. goToday: "本日へ", today: "本日", // ボットンバーに表示 wk: "週", weekend: "0,6", // 0 = 日曜日, 1 = 月曜日, 等. AM: "am", PM: "pm", mn : [ "1月", ...
JavaScript
Calendar.LANG("it", "Italiano", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Vai a oggi", today: "Oggi", // appears in bottom bar wk: "set", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM:...
JavaScript
Calendar.LANG("es", "Español", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Ir a Hoy", today: "Hoy", // appears in bottom bar wk: "sem", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "am...
JavaScript
// autor: Piotr kwiatkowski // www: http://pasjonata.net Calendar.LANG("pl", "Polish", { fdow: 1, // pierwszy dzień tygodnia; 0 = Niedziela, 1 = Poniedziałek, itd. goToday: "Idzie Dzisiaj", today: "Dziś", wk: "wk", weekend: "0,6", // 0 = Nied...
JavaScript
Calendar.LANG("en", "English", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Go Today", today: "Today", // appears in bottom bar wk: "wk", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "a...
JavaScript
var makelist = { listid : '' , listname : '', init:function(id, name) { this.listid = listid ; this.listname = listname ; }, add : function (id) { //list proid var listid = document.getElementById("proid").value ; if(listid=='') listid = id ; else listid = listid + "," + id...
JavaScript
/* * jQuery Autocomplete plugin 1.1 * * Copyright (c) 2009 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer ...
JavaScript
/* * Inline Form Validation Engine 2.0 Beta, jQuery plugin * * Copyright(c) 2010, Cedric Dugas * http://www.position-absolute.com * * 2.0 Rewrite by Olivier Refalo * http://www.crionics.com * * Form validation engine allowing custom regex rules to be added. * Licensed under the MIT License */ (function($) { ...
JavaScript
/** * jquery.Jcrop.js v0.9.12 * jQuery Image Cropping Plugin - released under MIT License * Author: Kelly Hallman <khallman@gmail.com> * http://github.com/tapmodo/Jcrop * Copyright (c) 2008-2013 Tapmodo Interactive LLC {{{ * * Permission is hereby granted, free of charge, to any person * obtaining a copy of th...
JavaScript
/*! * jQuery UI Widget 1.8.5 * * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Widget */ (function( $, undefined ) { // jQuery 1.4+ if ( $.cleanData ) { var _cleanData = $.cleanData; $...
JavaScript
function setCheckboxes(the_form, id, do_check) { var elts = (typeof(document.forms[the_form].elements[id]) != 'undefined') ? document.forms[the_form].elements[id] : 0; var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length ...
JavaScript
/* * jQuery Iframe Transport Plugin 1.7 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint unparam: true, nomen: true */ /*global define, window, document */ (funct...
JavaScript
/* * jQuery Iframe Transport Plugin 1.8.2 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* global define, window, document */ (function (factory) { 'use strict'; ...
JavaScript
/* * jQuery File Upload Plugin JS Example 8.9.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2010, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* global $, window */
JavaScript
/* * jQuery File Upload Plugin Angular JS Example 1.2.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* jshint nomen:false */ /* global window, angular */ (function ()...
JavaScript
/* * jQuery File Upload jQuery UI Plugin 8.7.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2013, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* jshint nomen:false */ /* global define, window */ (function (factory) { ...
JavaScript
/* * jQuery postMessage Transport Plugin 1.1.1 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /* global define, window, document */ (function (factory) { 'use strict...
JavaScript
/* * jQuery XDomainRequest Transport Plugin 1.1.3 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT * * Based on Julian Aubourg's ajaxHooks xdr.js: * https://github.com/jaubou...
JavaScript
var the_form = window.document.frmUser; function check_All(status) { for (i = 0; i < the_form.length; i++) { the_form.elements[i].checked = status; } } function delConfrim() { return confirm("Ban co muon xoa ko") } function submit_list(flag) { if (selected_item()){ the_form.factive.value = flag...
JavaScript
var imgLib = { configdefault:{ url:url, url_lib:url+'mod_file_manager/image_manager', dir_img:'', width: 0, height:0, method:'imglib', action:'', callback:'', return_tag:'' }, config:{}, openLib :function (option) { this.config = $.e...
JavaScript
(function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(){ $.validationEngineLanguage.allRules = { "required": { // Add your regex rules here, you can take telephone as an example "regex": "none", ...
JavaScript
jQuery(function($) { $(".cboxElement").colorbox({ width:"730", height:"600", iframe:true }); $("#addimages_avatar").colorbox({ width:"730", height:"600", iframe:true }); $(".btnloadgroup").colorbox({ width:"730", height:"600", iframe:true }); $(".btnload...
JavaScript
function mkselected(id, value) { var loca = document.getElementById(id).options ; for(var i=0;i<loca.length;i++){ if(loca[i].value == value) loca[i].selected = true ; } } function changestatus(value,id) { $("#loadstatus"+id).html('<image src="'+url+'templates/images/loading1.gif">'); $.pos...
JavaScript
// This file is part of the jQuery formatCurrency Plugin. // // The jQuery formatCurrency Plugin is free software: you can redistribute it // and/or modify it under the terms of the GNU General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at your ...
JavaScript
/* jQuery Tags Input Plugin 1.3.3 Copyright (c) 2011 XOXCO, Inc Documentation for this plugin lives here: http://xoxco.com/clickable/jquery-tags-input Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php ben@xoxco.com */ ;(function($) { var delimiter = ...
JavaScript
/// <reference path="Jssor.js" /> /* * Jssor.Slider 18.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor.Slider * * Copyright 2014 Jssor * * 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...
JavaScript
Calendar.LANG("ro", "Română", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Astăzi", today: "Astăzi", // appears in bottom bar wk: "săp.", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "a...
JavaScript
Calendar.LANG("cn", "中文", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "今天", today: "今天", // appears in bottom bar wk: "周", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "AM", PM...
JavaScript
Calendar.LANG("ru", "русский", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Сегодня", today: "Сегодня", // appears in bottom bar wk: "нед", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: ...
JavaScript
Calendar.LANG("fr", "Français", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday : "Aujourd'hui", today: "Aujourd'hui", // appears in bottom bar wk: "sm.", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. ...
JavaScript
Calendar.LANG("pt", "Portuguese", { fdow: 1, // primeiro dia da semana para esse local; 0 = Domingo, 1 = Segunda, etc. goToday: "Dia de Hoje", today: "Hoje", wk: "sm", weekend: "0,6", // 0 = Domingo, 1 = Segunda, etc. AM: "am", PM: "p...
JavaScript
Calendar.LANG("cz", "Czech", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Ukaž dnešek", today: "Dnes", // appears in bottom bar wk: "týd", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "...
JavaScript
Calendar.LANG("de", "Deutsch", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday : "Heute ausw\u00e4hlen", today: "Heute", // appears in bottom bar wk: "wk", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. ...
JavaScript
Calendar.LANG("jp", "Japanese", { fdow: 1, // 地元の週の初めの日; 0 = 日曜日, 1 = 月曜日, 等. goToday: "本日へ", today: "本日", // ボットンバーに表示 wk: "週", weekend: "0,6", // 0 = 日曜日, 1 = 月曜日, 等. AM: "am", PM: "pm", mn : [ "1月", ...
JavaScript
Calendar.LANG("it", "Italiano", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Vai a oggi", today: "Oggi", // appears in bottom bar wk: "set", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM:...
JavaScript
Calendar.LANG("es", "Español", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Ir a Hoy", today: "Hoy", // appears in bottom bar wk: "sem", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "am...
JavaScript
// autor: Piotr kwiatkowski // www: http://pasjonata.net Calendar.LANG("pl", "Polish", { fdow: 1, // pierwszy dzień tygodnia; 0 = Niedziela, 1 = Poniedziałek, itd. goToday: "Idzie Dzisiaj", today: "Dziś", wk: "wk", weekend: "0,6", // 0 = Nied...
JavaScript
Calendar.LANG("en", "English", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Go Today", today: "Today", // appears in bottom bar wk: "wk", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "a...
JavaScript
/** * * MD5 (Message-Digest Algorithm) * http://www.webtoolkit.info/ * **/ var MD5 = function (string) { function RotateLeft(lValue, iShiftBits) { return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits)); } function AddUnsigned(lX,lY) { var lX4,lY4,lX8,lY8,lResult; lX8 = (lX & 0x80000000)...
JavaScript
jQuery(document).ready(function ($) { var options = { $AutoPlay: false, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false $AutoPlaySteps: 4, //[Optional] Steps to go for each navigat...
JavaScript
/* * Jssor 18.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor * * Copyright 2014 Jssor * * 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 limitat...
JavaScript
this.screenshotPreview = function(){ /* CONFIG */ xOffset = 10; yOffset = 30; // these 2 variable determine popup's distance from the cursor // you might want to adjust to get the right result /* END CONFIG */ $("a.screenshot").hover(function(e){ this.t = this.title; this.title = ""...
JavaScript
$(document).ready(function(){ $('input#payment_input').focus(function(){ var amount = $(this).attr('original_fee_value'); var number = $(this).attr('fee_number'); $(this).keyup(function(){ var value = $(this).val(); $('input#amount_balance_'+number).val(numberWithCommas((+amount - +value).toFixed(2))...
JavaScript
$(document).ready(function(){ //higlight a selected cell in a calendar $(".this_day").click(function(){ $(".this_day").removeClass("selected"); $(this).addClass("selected"); }); //adds data in database. $("#button").click(function() { var selected = $(".selected .day_num").text(); // gets the...
JavaScript
$(function(){ var currentForm; $( '#msgDialog' ).dialog({ draggable:false, autoOpen: false, resizable: false, maxWidth:600, maxHeight: 500, width: 400, height: 360, modal: true, buttons: { 'No, I want to change something.' : function() { $(this).dialog('close'); }, ...
JavaScript
/** * editable_selects.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ var TinyMCE_EditableSelects = { editSelectElm : null, init : function() { var nl = document.getElementsByTagName("...
JavaScript
/** * mctabs.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ function MCTabs() { this.settings = []; this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tinymce.util.Dispatch...
JavaScript
/** * validate.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** // String validation: if (!Validator.isEmail('myemail')) alert('Invalid email.'); // Form validation: var f = docu...
JavaScript
/** * form_utils.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme")); function getColorPick...
JavaScript
/* 12306 Auto Login => A javascript snippet to help you auto login 12306.com. Copyright (C) 2011 w000.cn Includes jQuery Copyright 2011, John Resig Dual licensed under the MIT or GPL Version 2 licenses. http://jquery.org/license This program is free software: you can redistribute it and/or modify it...
JavaScript
//Script by Aneesh of www.bloggerplugins.org //Released on August 19th August 2009 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.length; i++) { var entry = json.feed...
JavaScript
//<![CDATA[ $(document).ready(function() { // change the dimension variable below to be the pixel size you want var dimension = 199; // this identifies the PopularPosts2 div element, finds each image in it, and resizes it $('#Blog1,#related-posts').find('img').each(function(n, image){ var image = $(image); ...
JavaScript
//<![CDATA[ jQuery(document).ready(function() { //Set Default State of each portfolio piece $(".paging").show(); $(".paging a:first").addClass("active"); //Get size of images, how many there are, then determin the size of the image reel. var imageWidth = $(".sompret").width(); var imageSum = $(".image_reel img").size...
JavaScript
var tabbedTOC_defaults = { blogUrl: "http://www.dte.web.id", // Blog URL containerId: "tabbed-toc", // Container ID activeTab: 1, // The default active tab index (default: the first tab) showDates: false, // true to show the post date showSummaries: false, // true to show the posts summaries numChars: 200, // Nu...
JavaScript
var bcLoadingImage = "http://1.bp.blogspot.com/-vPivuucfViM/UN8jzBwcZKI/AAAAAAAAHbY/at-JwuUBk_4/s1600/horizontal-loading.gif"; var bcLoadingMessage = ""; var bcArchiveNavText = "View Archive"; var bcArchiveNavPrev = '◄'; var bcArchiveNavNext = '►'; var headDays = ["Sunday","Monday","Tuesday","Wednesday","Thursday...
JavaScript
//<![CDATA[ imgr = new Array(); imgr[0] = "http://2.bp.blogspot.com/-uitX7ROPtTU/Tyv-G4NA_uI/AAAAAAAAFBY/NcWLPVnYEnU/s1600/no+image.jpg"; showRandomImg = true; aBold = true; summaryPost1 = 80; summaryTitle = 20; numposts1 = 10; function removeHtmlTag(strx,chop){ var s = strx.split("<"); for(var i=0;i<s.length;...
JavaScript
/* * Copyright (C) 2013 rdrrlabs gmail com, * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This prog...
JavaScript
/* grid control */ /* Source: http://www.datatables.net/blog/Twitter_Bootstrap_2 and at the bottom, all the JS to make datatable compatible with bootstrap's look: http://www.datatables.net/media/blog/bootstrap_2/DT_bootstrap.js */ $.extend( $.fn.dataTableExt.oStdClasses, { "sWrapper": "dataTables_wrapper ...
JavaScript
$(function(){ var aBackgrounds = $( 'section > .bg' ) , $content = $( '#content' ) ; function measureBackgrounds(){ var i, l, oData, $item, $section, fRW, fRH; for( i=0, l=aBackgrounds.length; i<l; i++ ){ $item = aBackgrounds.eq(i); oData = $item.data(); $section = $item.parent(); $s...
JavaScript
$(function() { //LANGUAGE BUTTONS EFFECTS $('#lang > ul > li > a').mouseover(function() { $(this).css({'color': '#E8E595'}); }).mouseout(function() { $(this).css({'color': ''}); }); //SLIDES - WORK SHOW/HIDE BUTTONS $('.how_we_work_nav').find('li').click(function(){ var...
JavaScript
/*! http://mths.be/placeholder v2.0.7 by @mathias */ ;(function(window, document, $) { var isInputSupported = 'placeholder' in document.createElement('input'); var isTextareaSupported = 'placeholder' in document.createElement('textarea'); var prototype = $.fn; var valHooks = $.valHooks; var propHoo...
JavaScript
$(function(){ var $nav = $('#nav'), aRules = []; //create the ul $('section').each(function(){ var $this = $(this) , sTitle = $this.attr('data-nav') || $this.find('h2:first').text() , sId = $this.attr('id').split('-').pop(); //story-header -> header aRules.push('body.section-' + sId + ' #nav li.'...
JavaScript
$(function(){ var $window = $( window ) , $body = $( 'body' ) , $bodyAndHTML = $body.add( 'html' ) , $content = $( '#content' ) , $sections = $content.find( 'section' ) , $scroller = $( '#mock-scroller' ) , fScrPercent = 0 , aAnimProps = [ 'opacity', 'left', 'top', 'width'...
JavaScript
~function(){ function KineticModel() { var min = 0 , max = 1000 , lastPosition = 0 , velocity = 0 , timestamp = Date.now() , timeConstant, ticker ; function clamped(pos) { return (pos > max) ? max : (pos < min) ? min : pos; } function nop() {} this.durat...
JavaScript
/** * @preserve HTML5 Shiv v3.6.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ ;(function(window, document) { /*jshint evil:true */ /** version */ var version = '3.6.2'; /** Preset options */ var options = window.html5 || {}; /** Used to skip problem elements */ var reSkip = /^<|^(?:button|ma...
JavaScript
Calendar.LANG("en", "English", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Go Today", today: "Today", // appears in bottom bar wk: "wk", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "a...
JavaScript
/* * AVIM JavaScript Vietnamese Input Method Source File dated 28-07-2008 * * Copyright (C) 2004-2008 Hieu Tran Dang <lt2hieu2004 (at) users (dot) sf (dot) net * Website: http://noname00.com/hieu * * You are allowed to use this software in any way you want providing: * 1. You must retain this copyright notice...
JavaScript
/* * jFlip plugin for jQuery v0.4 (28/2/2009) * * A plugin to make a page flipping gallery * * Copyright (c) 2008-2009 Renato Formato (rformato@gmail.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * */ ;(function($){ var Flip = function(canvas,width,heig...
JavaScript
$(document).ready(function() { //Sidebar Accordion Menu: $("#main-nav li ul").hide(); //Hide all sub menus $("#main-nav li a.current").parent().find("ul").slideToggle("slow"); // Slide down the current menu item's sub menu $("#main-nav li a.nav-top-item").click( // When a top menu item is clic...
JavaScript
Calendar.LANG("en", "English", { fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc. goToday: "Go Today", today: "Today", // appears in bottom bar wk: "wk", weekend: "0,6", // 0 = Sunday, 1 = Monday, etc. AM: "a...
JavaScript
/* * AVIM JavaScript Vietnamese Input Method Source File dated 28-07-2008 * * Copyright (C) 2004-2008 Hieu Tran Dang <lt2hieu2004 (at) users (dot) sf (dot) net * Website: http://noname00.com/hieu * * You are allowed to use this software in any way you want providing: * 1. You must retain this copyright notice...
JavaScript