code
stringlengths
1
2.08M
language
stringclasses
1 value
// JavaScript Document(function(){ (function(){ var vari={ width:960, pics:document.getElementById("pics"), prev:document.getElementById("prev"), next:document.getElementById("next"), len:document.getElementById("pics").getElementsByTagName("li").length, intro:document.getElementById("pics").getEle...
JavaScript
// JavaScript Document var speed=30; var work = document.getElementById("work"); var work1 = document.getElementById("work1"); var work2 = document.getElementById("work2"); work2.innerHTML=work1.innerHTML; work.scrollLeft=0; function Marquee(){ if...
JavaScript
// JavaScript Document var t = n = 0, count = $("#playShow a").size(); $(function(){ $("#playShow a:not(:first-child)").hide(); $('#playNum a:first').addClass('on') $("#playNum a").click(function() { var i = $(this).text() - 1; n = i; if (i >= count) return; $("#playShow a").filter(":visible").hi...
JavaScript
$(function(){ var slider=$("#imgSlider"); //图片列表自动无缝滚动 var speed=30; var step=1; var demo=slider.find(".imgScreen"); var demo1=slider.find(".demo1"); var demo2=slider.find(".demo2"); //将demo1中的内容复制到demo2中 demo2.html(demo1.html()); //自定义函数marquee function Marquee(){ var offsetLeft =Math.abs(...
JavaScript
// JavaScript Document(function(){ (function(){ var vari={ width:960, pics:document.getElementById("pics"), prev:document.getElementById("prev"), next:document.getElementById("next"), len:document.getElementById("pics").getElementsByTagName("li").length, intro:document.getElementById("pics").getEle...
JavaScript
// JavaScript Document var speed=30; var work = document.getElementById("work"); var work1 = document.getElementById("work1"); var work2 = document.getElementById("work2"); work2.innerHTML=work1.innerHTML; work.scrollLeft=0; function Marquee(){ if...
JavaScript
// JavaScript Document var t = n = 0, count = $("#playShow a").size(); $(function(){ $("#playShow a:not(:first-child)").hide(); $('#playNum a:first').addClass('on') $("#playNum a").click(function() { var i = $(this).text() - 1; n = i; if (i >= count) return; $("#playShow a").filter(":visible").hi...
JavaScript
$(function(){ var slider=$("#imgSlider"); //图片列表自动无缝滚动 var speed=30; var step=1; var demo=slider.find(".imgScreen"); var demo1=slider.find(".demo1"); var demo2=slider.find(".demo2"); //将demo1中的内容复制到demo2中 demo2.html(demo1.html()); //自定义函数marquee function Marquee(){ var offsetLeft =Math.abs(...
JavaScript
// JavaScript Document(function(){ (function(){ var vari={ width:960, pics:document.getElementById("pics"), prev:document.getElementById("prev"), next:document.getElementById("next"), len:document.getElementById("pics").getElementsByTagName("li").length, intro:document.getElementById("pics").getEle...
JavaScript
// JavaScript Document var speed=30; var work = document.getElementById("work"); var work1 = document.getElementById("work1"); var work2 = document.getElementById("work2"); work2.innerHTML=work1.innerHTML; work.scrollLeft=0; function Marquee(){ if...
JavaScript
// JavaScript Document var t = n = 0, count = $("#playShow a").size(); $(function(){ $("#playShow a:not(:first-child)").hide(); $('#playNum a:first').addClass('on') $("#playNum a").click(function() { var i = $(this).text() - 1; n = i; if (i >= count) return; $("#playShow a").filter(":visible").hi...
JavaScript
// JavaScript Document var speed=40; var FGDemo=document.getElementById('demo'); var FGDemo1=document.getElementById('demo1'); var FGDemo2=document.getElementById('demo2'); FGDemo2.innerHTML=FGDemo1.innerHTML function Marquee1(){ if(FGDemo2.offsetHeight-FGDemo.scrollTop<=0) FGDemo.scrollTop-=FGDemo1.of...
JavaScript
$(function(){ var slider=$("#imgSlider"); //图片列表自动无缝滚动 var speed=30; var step=1; var demo=slider.find(".imgScreen"); var demo1=slider.find(".demo1"); var demo2=slider.find(".demo2"); //将demo1中的内容复制到demo2中 demo2.html(demo1.html()); //自定义函数marquee function Marquee(){ var offsetLeft =Math.abs(...
JavaScript
//Copyright (c) 2009 The Chromium Authors. All rights reserved. //Use of this source code is governed by a BSD-style license that can be //found in the LICENSE file. // Various functions for helping debug WebGL apps. WebGLDebugUtils = function() { /** * Wrapped logging function. * @param {string} msg Message to lo...
JavaScript
/** $Id$ */ // Title: Fadomatic // Version: 1.2 // Homepage: http://chimpen.com/fadomatic // Author: Philip McCarthy <fadomatic@chimpen.com> // Fade interval in milliseconds // Make this larger if you experience performance issues Fadomatic.INTERVAL_MILLIS = 50; // Creates a fader // element - The element to fade // ...
JavaScript
function postvalid(form){ $('qr').disabled = true; return true; } function dropmenu(obj){ $(obj.id + 'list').style.display = $(obj.id + 'list').style.display == 'none' ? '' : 'none'; } function confirm_delete(id, note, addon) { if(confirm(note)) { self.location.href='?action=del'+(addon ? '&'+addon : ''...
JavaScript
/** $Id: domLib.js 2321 2006-06-12 06:45:41Z dallen $ */ // {{{ license /* * Copyright 2002-2005 Dan Allen, Mojavelinux.com (dan.allen@mojavelinux.com) * * 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 ...
JavaScript
/** $Id: domTT_drag.js 2315 2006-06-12 05:45:36Z dallen $ */ // {{{ license /* * Copyright 2002-2005 Dan Allen, Mojavelinux.com (dan.allen@mojavelinux.com) * * 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...
JavaScript
/** $Id: domTT.js 2324 2006-06-12 07:06:39Z dallen $ */ // {{{ license /* * Copyright 2002-2005 Dan Allen, Mojavelinux.com (dan.allen@mojavelinux.com) * * 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 t...
JavaScript
var pos = 0; var count = 0; function noenter(key) { suggcont = document.getElementById("suggcontainer"); if (suggcont.style.display == "block") { if (key == 13) { choiceclick(document.getElementById(pos)); return false; } else { return true; } } else { return true; } } document.on...
JavaScript
if (navigator.appName=="Netscape") { document.write("<style type='text/css'>body {overflow-y:scroll;}<\/style>"); } var userAgent = navigator.userAgent.toLowerCase(); var is_ie = (userAgent.indexOf('msie') != -1) && userAgent.substr(userAgent.indexOf('msie') + 5, 3); function $() { var elements = new Array(); for (...
JavaScript
if(!window.JSFX)JSFX=new Object(); var LinkFadeInStep=10; var LinkFadeOutStep=10; var LinkEndColor="FF6600" var LinkStartColor="FFFFFF"; var LinkFadeRunning=false; document.onmouseover = theOnOver; document.onmouseout = theOnOut; if(document.captureEvents) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT...
JavaScript
function processElements(list) { var elList = ""; list.each(function() { var el = $(this); var imgs = el.data('img'); img = ''; if(imgs && imgs.length > 0) { var style = ''; var imgEl = {width: 0, url: false}; for(var i=0;i<imgs[0].length;i++) { var result = /photos\/(\d+)x(\d+)/g.exec...
JavaScript
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Called when a message is passed. We assume that the content script // wants to show the page action. function onRequest(request, sender, sendRespo...
JavaScript
$(document).ready(function(){ //Set class current for page page_current = $('.page').val(); $('#'+page_current).addClass('current'); //Delete image, render, panorama, animation $('.delete').click(function(){ rs = confirm_(); var id = $(this).attr('id'); var url_ajax = ''; if( $(this).attr('page') !== ...
JavaScript
//Filament Group modification note: //This version of excanvas is modified to support lazy loading of this file. More info here: http://pipwerks.com/2009/03/12/lazy-loading-excanvasjs/ // Copyright 2006 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file excep...
JavaScript
/*! // iPhone-style Checkboxes jQuery plugin // Copyright Thomas Reynolds, licensed GPL & MIT */ ;(function($, iphoneStyle) { // Constructor $[iphoneStyle] = function(elem, options) { this.$elem = $(elem); // Import options into instance variables var obj = this; $.each(options, function(key, value) { o...
JavaScript
var latlng = new google.maps.LatLng(10.777937,106.70221); var options = { zoom : 15, center : latlng, mapTypeId : google.maps.MapTypeId.ROADMAP, draggableCursor : "crosshair", streetViewControl : false }; var map = new google.maps.Map(document .getElementById("map"), options); $("#zoom").html(5); goo...
JavaScript
var scr=document.getElementsByTagName('script'); var zoombox_path = scr[scr.length-1].getAttribute("src").replace('zoombox.js',''); (function($){ var options = { theme : 'zoombox', //available themes : zoombox,lightbox, prettyphoto, darkprettyphoto, simple opacity : 0.8, ...
JavaScript
$(function(){ /* Scroll animé */ $('a[href^=#]').click(function() { cible=$(this).attr('href'); if(cible=="#"){ return false; } scrollTo(cible); return false; }); /** Put a link on every child **/ $('.parentlink').each(function(){ var href = $(this).attr('href'); v...
JavaScript
/** * WYSIWYG - jQuery plugin 0.97 * (0.97.2 - From infinity) * * Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors * https://github.com/akzhan/jwysiwyg * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.g...
JavaScript
/* * -------------------------------------------------------------------- * jQuery inputToButton plugin * Author: Scott Jehl, scott@filamentgroup.com * Copyright (c) 2009 Filament Group * licensed under MIT (filamentgroup.com/examples/mit-license.txt) * -----------------------------------------------------------...
JavaScript
/** * Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework. * * @namespace */ var jasmine = {}; /** * @private */ jasmine.unimplementedMethod_ = function() { throw new Error("unimplemented method"); }; /** * Use <code>jasmine.undefined</code> instead of <code>undefined</code>,...
JavaScript
jasmine.TrivialReporter = function(doc) { this.document = doc || document; this.suiteDivs = {}; this.logRunningSpecs = false; }; jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) { var el = document.createElement(type); for (var i = 2; i < arguments.length; i++) { var ...
JavaScript
/** * Farbtastic Color Picker 1.2 * © 2008 Steven Wittens * * 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 2 of the License, or * (at your option) any later version. * *...
JavaScript
/** * Autoload */ (function ($) { // Autoload namespace: private properties and methods var Autoload = { /** * Include necessary CSS file */ css: function (file, options) { var collection = $("link[rel=stylesheet]"), path = options.basePath + options.cssPath + file, element, i; for (i =...
JavaScript
/** * Controls: Element CSS Wrapper plugin * * Depends on jWYSIWYG * * By Yotam Bar-On (https://github.com/tudmotu) */ (function ($) { if (undefined === $.wysiwyg) { throw "wysiwyg.cssWrap.js depends on $.wysiwyg"; } /* For core enhancements #143 $.wysiwyg.ui.addControl("cssWrap", { visible : false, gr...
JavaScript
/** * Controls: Colorpicker plugin * * Depends on jWYSIWYG, (farbtastic || other colorpicker plugins) */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.colorpicker.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } /* * Wysiwyg namespace: p...
JavaScript
/** * Controls: Link plugin * * Depends on jWYSIWYG * * By: Esteban Beltran (academo) <sergies@gmail.com> */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.link.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } /* * Wysiwyg namespace: publ...
JavaScript
/** * Controls: Table plugin * * Depends on jWYSIWYG */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.table.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } var insertTable = function (colCount, rowCount, filler) { if (isNaN(rowCount) ||...
JavaScript
/** * Controls: Image plugin * * Depends on jWYSIWYG */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.image.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } /* * Wysiwyg namespace: public properties and methods */ $.wysiwyg.controls.im...
JavaScript
/** * WYSIWYG - jQuery plugin 0.97 * (0.97.2 - From infinity) * * Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors * https://github.com/akzhan/jwysiwyg * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.g...
JavaScript
(function($) { $.wysiwyg.controls = { bold: { tags: ["b", "strong"], css: { fontWeight: "bold" }, tooltip: "Bold", hotkey: { "ctrl": 1, "key": 66 } }, highlight: { tooltip: "Highlight", className: "highlight", css:{ backgroundColor: "rgb(255, 255, 102)" }, command: ($.bro...
JavaScript
/** * WYSIWYG - jQuery plugin @VERSION * (Pretty girl) * * Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors * https://github.com/akzhan/jwysiwyg * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/...
JavaScript
(function ($) { $.wysiwyg.dialog.register("default", function () { var that = this; this._$dialog = null; this.init = function() { var abstractDialog = this, content = this.options.content; if(typeof content == 'object') { if(typeof content.html == 'function') { content = content....
JavaScript
/** * WYSIWYG - jQuery plugin 0.98 dev * (???) * * Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors * https://github.com/akzhan/jwysiwyg * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses...
JavaScript
/** * Fullscreen plugin * * Depends on jWYSIWYG */ (function ($) { if (undefined === $.wysiwyg) { throw "wysiwyg.fullscreen.js depends on $.wysiwyg"; } /* * Wysiwyg namespace: public properties and methods */ var fullscreen = { name: "fullscreen", version: "", defaults: { css: { editor: { ...
JavaScript
/** * Internationalization plugin * * Depends on jWYSIWYG */ (function ($) { if (undefined === $.wysiwyg) { throw "wysiwyg.i18n.js depends on $.wysiwyg"; } /* * Wysiwyg namespace: public properties and methods */ var i18n = { name: "i18n", version: "", defaults: { lang: "en", // change to you...
JavaScript
/** * Autoload plugin * * Depends on jWYSIWYG, autoload */ (function ($) { if (undefined === $.wysiwyg) { throw "wysiwyg.autoload.js depends on $.wysiwyg"; } if (undefined === $.autoload) { throw "wysiwyg.autoload.js depends on $.autoload"; } /* * Wysiwyg namespace: public properties and methods */ ...
JavaScript
/** * File Manager plugin for jWYSIWYG * * Yotam Bar-On, 2011 * * The file manager ui uses the Silk icon set from FAMFAMFAM * */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.fileManager.js depends on $.wysiwyg"; } /* * Wysiwyg namespace: public properties and methods ...
JavaScript
/** * rmFormat plugin * * Depends on jWYSIWYG */ (function ($) { if (undefined === $.wysiwyg) { throw "wysiwyg.rmFormat.js depends on $.wysiwyg"; } /* * Wysiwyg namespace: public properties and methods */ var rmFormat = { name: "rmFormat", version: "", defaults: { rules: { heading: false, ...
JavaScript
(function($) { "use strict"; $.wysiwyg.quirk.register({ defaultBlock: 'p', placeholder: 'br', /** * @author stianlik@github * @link https://github.com/jwysiwyg/jwysiwyg/issues/345 * @param {Wysiwyg} editor Editor instance */ init: function(editor) { if ($.browser.mozilla) { var that = th...
JavaScript
(function($) { $.wysiwyg.quirk.register({ /** * @link https://github.com/jwysiwyg/jwysiwyg/issues/251 * @param {Wysiwyg} editor */ init: function(editor) { setInterval(function () { var offset = null; try { var range = editor.getInternalRange(); if (!range) return; offset = { ...
JavaScript
(function($) { $.wysiwyg.quirk.register({ /** * @author rmlmedia@github * @link https://github.com/jwysiwyg/jwysiwyg/issues/251 * @param {Wysiwyg} editor */ init: function(editor) { $(editor.editorDoc).bind("keyup.wysiwyg", function(event) { var node = null; var selection = editor.getInterna...
JavaScript
/** * Internationalization: Chinese (Simplified) language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: https://github.com/mengxy */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.zh-cn.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.zh-cn.js depends on $.wysiwyg...
JavaScript
/** * Internationalization: japanese language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: https://github.com/rosiro * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.ja.js depends on $.wysiwyg"; return false; } if (undefined === $.wysiwyg.i18n) { throw "lang.ja.js depends on $.wysiwy...
JavaScript
/** * Internationalization: Spanish language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Esteban Beltran (academo) <sergies@gmail.com> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.es.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.es.js depends on $.wysi...
JavaScript
/** * Internationalization: Turkish language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Kadir Atesoglu <kadir.atesoglu@gmail.com> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.tr.js, $.wysiwyg olmadan çalışamaz"; } if (undefined === $.wysiwyg.i18n) { throw "lang.tr.js, $.wysiwyg...
JavaScript
/** * Internationalization: czech language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: deepj on github.com */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.cs.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.cs.js depends on $.wysiwyg.i18n"; } $.wysiwyg.i18n.l...
JavaScript
/** * Internationalization: Dutch * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Erik van Dongen <dongen@connexys.com> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.nl.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.nl.js depends on $.wysiwyg.i18n"; } $.w...
JavaScript
/** * Internationalization: German language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Markus Schirp (mbj) <mbj@seonic.net> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.de.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.de.js depends on $.wysiwyg.i18n";...
JavaScript
/** * Internationalization: swedish language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: ippa@rubylicio.us * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.se.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.se.js depends on $.wysiwyg.i18n"; } $.wysiwyg.i1...
JavaScript
/** * Internationalization: Brazilian Portugese language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Marcelo Wergles <mwergles@gmail.com> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.pt_br.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.pt_br.js depends ...
JavaScript
/** * Internationalization: Russian language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: frost-nzcr4 on github.com */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.ru.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.ru.js depends on $.wysiwyg.i18n"; } $.wysi...
JavaScript
/** * Internationalization: norwegian (bokmål) language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: strauman on github.com / strauman.net */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.nb.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.nb.js depends on $.wysiw...
JavaScript
/** * Internationalization: italian language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Mauro Franceschini <mauro.franceschini@gmail.com> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.it.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.it.js depends on $....
JavaScript
/** * Internationalization: french language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Tom Barbette <mappam0@gmail.com> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.fr.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.fr.js depends on $.wysiwyg.i18n"; } ...
JavaScript
/** * Internationalization: Croatian language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Boris Strahija (bstrahija) <boris@creolab.hr> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.hr.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.hr.js depends on $.wys...
JavaScript
/** * Internationalization: English language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Tudmotu, frost-nzcr4 on github.com * Yotam Bar-On */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.he.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.he.js depends on ...
JavaScript
/** * Internationalization: English language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: frost-nzcr4 on github.com */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.en.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.en.js depends on $.wysiwyg.i18n"; } $.wysi...
JavaScript
/** * Internationalization: Catalan language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Josep Anguera Peralta <josep.anguera@gmail.com> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.ca.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.ca.js depends on $.wy...
JavaScript
/** * Internationalization: Polish language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Andrzej Herok * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.pl.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.pl.js depends on $.wysiwyg.i18n"; } $.wysiwyg.i18n.la...
JavaScript
/** * Internationalization: Slovenian language * * Depends on jWYSIWYG, $.wysiwyg.i18n * * By: Peter Zlatnar <peter.zlatnar@gmail.com> * */ (function ($) { if (undefined === $.wysiwyg) { throw "lang.sl.js depends on $.wysiwyg"; } if (undefined === $.wysiwyg.i18n) { throw "lang.sl.js depends on $.wysiwyg.i...
JavaScript
/*! * jQuery JavaScript Library v1.5 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. *...
JavaScript
base_url = 'http://nuvietclub.com'; function confirm_delete() { var check = confirm('Are you sure to delete?'); if( check ) return true; else return false; }; function check_password_match( pass, repass ) { if( pass != '' && repass != '' && pass != repass ) { alert("Password and Re-password do...
JavaScript
$(document).ready(function() { //Download file ajax $('.download_button').live('click',function(){ return; if( check_login ){ $.ajax({ url: base_url + 'download/ajax_update_product', type: "POST", data: '', dataType: "json", success: function(msg){ if( msg ){ if( m...
JavaScript
var map; function initialize() { var myLatlng = new google.maps.LatLng(32.838963,-97.115179); var myOptions = { zoom: 16, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("picture"), myOptions); // Biến text ch...
JavaScript
var w_height = $(window).height(); var e_height = $('#wrapper').height(); var sub = (w_height - e_height)/2; $('#wrapper').css({'margin-top':sub+'px'}); /**************Set width height for window***************/ //Width, height defautl /* dw = 1366; d...
JavaScript
//Initialize variable image_src = base_url+'public/images/upload'; //***************Menu click manage****************** $('#bottom').delegate('.menu:nth-of-type(n+1) a','click',function(){ var type = $(this).attr('type'); var back_to = $(this).attr('back_to'); var id = $(this).attr('id'); /...
JavaScript
/** * navigation.js * * Handles toggling the navigation menu for small screens. */ ( function() { var nav = document.getElementById( 'site-navigation' ), button, menu; if ( ! nav ) return; button = nav.getElementsByTagName( 'h3' )[0]; menu = nav.getElementsByTagName( 'ul' )[0]; if ( ! button ) return; ...
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
/** * * 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><div></div></div><...
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] ) // jPrompt( me...
JavaScript
/** * jGrowl 1.2.6 * * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Written by Stan Lemon <stosh1985@gmail.com> * Last updated: 2011.03.27 * * jGrowl is a jQuery plugin implementing unobtrusive user...
JavaScript
/** * Controls: Image plugin * * Depends on jWYSIWYG */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.image.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } /* * Wysiwyg namespace: public properties and methods */ $.wysiwyg.controls.im...
JavaScript
/** * Controls: Table plugin * * Depends on jWYSIWYG */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.table.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } var insertTable = function (colCount, rowCount, filler) { if (isNaN(rowCount) ||...
JavaScript
/** * Controls: Link plugin * * Depends on jWYSIWYG * * By: Esteban Beltran (academo) <sergies@gmail.com> */ (function ($) { "use strict"; if (undefined === $.wysiwyg) { throw "wysiwyg.link.js depends on $.wysiwyg"; } if (!$.wysiwyg.controls) { $.wysiwyg.controls = {}; } /* * Wysiwyg namespace: publ...
JavaScript
/** * WYSIWYG - jQuery plugin 0.97 * (0.97.2 - From infinity) * * Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors * https://github.com/akzhan/jwysiwyg * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.g...
JavaScript
/* Flot plugin for rendering pie charts. The plugin assumes the data is coming is as a single data value for each series, and each of those values is a positive value or zero (negative numbers don't make any sense and will cause strange effects). The data values do NOT need to be passed in as percentage values beca...
JavaScript
function showAjaxEffect() { var width = jQuery(document).width(); var height = jQuery(document).height(); jQuery('#opacity').css('width', width + 'px'); jQuery('#opacity').css('height', height + 'px'); jQuery('#opacity').css('display', 'block'); jQuery('#opacity').css('opacity', '0.5'); jQuery('#image_loa...
JavaScript
jQuery(document).ready(function(){ jQuery('.stdtablecb .checkall').click(function(){ var parentTable = jQuery(this).parents('table'); var ch = parentTable.find('tbody input[type=checkbox]'); if(jQuery(this).is(':checked')) { //check all rows in table ch.each(function(){ jQu...
JavaScript
jQuery(document).ready(function(){ //color picker jQuery('#colorpicker').ColorPicker({ onSubmit: function(hsb, hex, rgb, el) { jQuery(el).val('#'+hex); jQuery(el).ColorPickerHide(); }, onBeforeShow: function () { jQuery(this).ColorPickerSetColor(this.value); } }) .bind('keyup', function(){ jQu...
JavaScript
jQuery.noConflict(); jQuery(document).ready(function(){ //search box of header jQuery('#keyword').bind('focusin focusout', function(e){ var t = jQuery(this); if(e.type == 'focusin' && t.val() == 'Search here') { t.val(''); } else if(e.type == 'focusout' && t.val() == '') { t.val('Search here'); } }...
JavaScript
jQuery(document).ready(function(){ jQuery('.chatsearch input').bind('focusin focusout',function(e){ if(e.type == 'focusin') { if(jQuery(this).val() == 'Search') jQuery(this).val(''); } else { if(jQuery(this).val() == '') jQuery(this).val('Search'); } }); jQuery('.messagebox button').click(function()...
JavaScript
jQuery(document).ready(function(){ //image edit jQuery('.ajax').colorbox({ onComplete: function(){ jQuery('.cancel').click(function(){ jQuery.fn.colorbox.close(); return false; //we use return false because we use button and to prevent form submission }); jQuery('#editphoto').submit(function...
JavaScript
jQuery(document).ready(function(){ //dual box var db = jQuery('#dualselect').find('.ds_arrow .arrow'); //get arrows of dual select var sel1 = jQuery('#dualselect select:first-child'); //get first select element var sel2 = jQuery('#dualselect select:last-child'); //get second select element sel2.empty(); //e...
JavaScript
jQuery(document).ready(function() { /* initialize the external events */ jQuery('#external-events div.external-event').each(function() { // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/) // it doesn't need to have a start or end var eventObject = { title: jQuer...
JavaScript
jQuery(document).ready(function(){ var flash = [[0, 2], [1, 6], [2,3], [3, 8], [4, 5], [5, 13], [6, 8]]; //for (var i = 0; i < 14; i += 0.5) // flash.push([i, Math.sin(i)]); function showTooltip(x, y, contents) { jQuery('<div id="tooltip" class="tooltipflot">' + contents + '</div>').css( { p...
JavaScript
jQuery(document).ready(function(){ /*****SIMPLE CHART*****/ var flash = [[0, 2], [1, 6], [2,3], [3, 8], [4, 5], [5, 13], [6, 8]]; var html5 = [[0, 5], [1, 4], [2,4], [3, 1], [4, 9], [5, 10], [6, 13]]; function showTooltip(x, y, contents) { jQuery('<div id="tooltip" class="tooltipflot">' + content...
JavaScript
jQuery(document).ready(function(){ //datepicker jQuery('#datepicker').datepicker(); //show tabbed widget jQuery('#tabs').tabs(); //////////// CHARTS ///////////////// var flash = [], html5 = []; for (var i = 0; i < 14; i += 0.5) { flash.push([i, Math.sin(i)]); html5.push([i, Math.cos(i)]); } ...
JavaScript