code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
function w3tc_popup(url, name, width, height) {
if (width === undefined) {
width = 800;
}
if (height === undefined) {
height = 600;
}
return window.open(url, name, 'width=' + width + ',height=' + height + ',status=no,toolbar=no,menubar=no,scrollbars=yes');
}
function w3t... | JavaScript |
/*
* Metadata - jQuery plugin for parsing metadata from elements
*
* Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revisio... | JavaScript |
/**
* http://www.openjs.com/scripts/events/keyboard_shortcuts/
* Version : 2.01.B
* By Binny V A
* License : BSD
*/
shortcut = {
'all_shortcuts':{},//All the shortcuts are stored in this array
'add': function(shortcut_combination,callback,opt) {
//Provide a set of default options
var default_options = {
'... | JavaScript |
function getSelectedText()
{
var txt = null;
if (window.getSelection)
{
txt = window.getSelection();
}
else if (document.getSelection)
{
txt = document.getSelection();
}
else if (document.selection)
{
txt = document.selection.createRange().text;
... | JavaScript |
jQuery(document).ready(function () {
jQuery('.akismet-status').each(function () {
var thisId = jQuery(this).attr('commentid');
jQuery(this).prependTo('#comment-' + thisId + ' .column-comment div:first-child');
});
jQuery('.akismet-user-comment-count').each(function () {
var thisId = jQuery(this).attr('commenti... | JavaScript |
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd",
"time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {};
}
... | JavaScript |
(function($) {
$(document).ready( function() {
$('.feature-slider a').click(function(e) {
$('.featured-posts section.featured-post').css({
opacity: 0,
visibility: 'hidden'
});
$(this.hash).css({
opacity: 1,
visibility: 'visible'
... | JavaScript |
var farbtastic;
(function($){
var pickColor = function(a) {
farbtastic.setColor(a);
$('#link-color').val(a);
$('#link-color-example').css('background-color', a);
};
$(document).ready( function() {
$('#default-color').wrapInner('<a href="#" />');
farbtastic = $.farbtastic('#colorPickerDiv', pickColor);
... | JavaScript |
const MIN_SCROLL_TOP = 700;
onScroll = function() {
var up = document.getElementById('up');
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
if (scrollTop > MIN_SCROLL_TOP) {
up.setAttribute('class','shown');
} else {
up.setAttribute('class','hidden');
}
}
upSc... | JavaScript |
$(function(){
// slider init
$('#slider .slider_content').cycle({ fx: 'fade', timeout: 15000, speed: 900, pager: '#nav' });
$('#error_test').click(function(){
$('.comments_form .input-txt').addClass('input-error');
$('.comments_form .input-textarea').addClass('input-textarea-error');
})
//... | JavaScript |
/*!
* jQuery Cycle Plugin (with Transition Definitions)
* Examples and documentation at: http://jquery.malsup.com/cycle/
* Copyright (c) 2007-2010 M. Alsup
* Version: 2.9995 (09-AUG-2011)
* Dual licensed under the MIT and GPL licenses.
* http://jquery.malsup.com/license.html
* Requires: jQuery v1.3.2 or later
*... | JavaScript |
document.write('<div id="layer"> </div> \
<div class="popup" id="popup_window"> \
<div class="popup_wrap"> <a href="javascript:SelectRegionDialog.hide();" id="close"> </a> \
<div class="top clearfix" id="select_region_tabs"></div> \
<div class="top_c"> </div> \
<div class="to... | JavaScript |
var showNotice, adminMenu, columns, validateForm, screenMeta;
(function($){
// sidebar admin menu
adminMenu = {
init : function() {
var menu = $('#adminmenu');
$('.wp-menu-toggle', menu).each( function() {
var t = $(this), sub = t.siblings('.wp-submenu');
if ( sub.length )
t.click(function(){ adminMenu.... | 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
function send_to_editor(h) {
var ed;
if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) {
// restore caret position on IE
if ( tinymce.isIE && ed.windowManager.insertimagebookmark )
ed.selection.moveToBookmark(ed.windowManager.insertimageboo... | 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;
(function($) {
postboxes = {
add_postbox_toggles : function(page,args) {
this.init(page,args);
$('.postbox h3, .postbox .handlediv').click( function() {
var p = $(this).parent('.postbox'), id = p.attr('id');
if ( 'dashboard_browser_nag' == id )
return;
p.toggleClass('closed');
... | 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($) {
// These widgets are sometimes populated via ajax
ajaxWidgets = [
'dashboard_incoming_links',
'dashboard_primary',
'dashboard_secondary',
'dashboard_plugins'
];
ajaxPopulateWidgets = function(el) {
function show(... | 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' );
$('#widgets-right').children('.widgets-holder-wrap').children('.sidebar-name').click(function... | JavaScript |
jQuery(document).ready(function($){
var h = wpCookies.getHash('TinyMCE_content_size');
if ( getUserSetting( 'editor' ) == 'html' ) {
if ( h )
$('#content').css('height', h.ch - 15 + 'px');
} else {
if ( typeof tinyMCE != 'object' ) {
$('#content').css('color', '#000');
} else {
$('#quicktags').hide(... | 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 |
/*----------------------------------------------------------------------------\
| Sortable Table 1.12 |
|-----------------------------------------------------------------------------|
| Created by Erik Arvidsson ... | JavaScript |
/*----------------------------------------------------------------------------\
| String Builder 1.02 |
|-----------------------------------------------------------------------------|
| Created by Erik Arvidsson ... | JavaScript |
var newwindow;
function popupwindow(url)
{
newwindow=window.open(url,'name','height=500,width=500,resizable=yes,scrollbars=yes');
if (window.focus) {
newwindow.focus()
}
}
| JavaScript |
/*
* Cobertura - http://cobertura.sourceforge.net/
*
* Copyright (C) 2005 Mark Doliner
* Copyright (C) 2005 Olivier Parent
*
* Cobertura 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... | JavaScript |
/// <reference path="../../../lib/jquery-1.2.6.js" />
/*
Masked Input plugin for jQuery
Copyright (c) 2007-2009 Josh Bush (digitalbush.com)
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
Version: 1.2.2 (03/09/2009 22:39:06)
*/
(function($) {
var pasteEventNa... | JavaScript |
var dragObject;
var lastMouseX = 0;
var lastMouseY = 0;
var lastPosX;
var lastPosY;
function dragMouseMoveEvent(event) {
event = event || window.event;
var x = event.pageX;
var y = event.pageY;
var dx = x - lastMouseX;
var dy = y - lastMouseY;
lastMouseX = x;
lastMouseY = y;
if(dragObject){
moveObject(dra... | JavaScript |
/**
* JavaScript responsável em criar, ler e excluir informações de cookies.
*/
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+v... | JavaScript |
/* $Id: listforums.js,v 1.12 2008/03/26 02:42:49 phuongpdd Exp $ */
function show(element) {
var tag = document.getElementById(element);
if (tag == null) return;
tag.style.display = '';
}
function hide(element) {
var tag = document.getElementById(element);
if (tag == null) return;
tag... | JavaScript |
/* http://www.kryogenix.org/code/browser/searchhi/ */
/* Modified 20021006 to fix query string parsing and add case insensitivity */
/* Modified 20070316 to stop highlighting inside nosearchhi nodes */
/* Modified 20081217 to do in-page searching and wrap up in an object */
/* Modified 20081218 to scroll to first h... | JavaScript |
//\/////
//\ overLIB 4.21 - You may not remove or change this notice.
//\ Copyright Erik Bosrup 1998-2004. All rights reserved.
//\
//\ Contributors are listed on the homepage.
//\ This file might be old, always check for the latest version at:
//\ http://www.bosrup.com/web/overlib/
//\
//\ Please read th... | JavaScript |
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS PUB 180-1
* Version 2.1 Copyright Paul Johnston 2000 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
... | JavaScript |
/** $Id: domMenu.js,v 1.1 2006/12/26 08:24:23 linhdh Exp $ */
// {{{ 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 obta... | JavaScript |
function show(element) {
var tag = document.getElementById(element);
if (tag == null) return;
tag.style.display = '';
}
function hide(element) {
var tag = document.getElementById(element);
if (tag == null) return;
tag.style.display = 'none';
}
function execute(element, contextPath... | JavaScript |
/** $Id: domLib.js,v 1.1 2006/12/26 08:24:23 linhdh Exp $ */
// {{{ 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 obtai... | JavaScript |
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt... | JavaScript |
/*vietuni.js - V.1.618 - R.11.11.01 @QDJTGSLLA@P*Veni*Vidi*Vici*
* by Tran Anh Tuan [tuan@physik.hu-berlin.de]
* Copyright (c) 2001, 2002 AVYS e.V.. All Rights Reserved.
*
* Originally published and documented at http://www.avys.de/
* You may use this code without fee on noncommercial web sites.
* You may NOT alt... | JavaScript |
/*
* $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/js/mvncode.js,v 1.21 2009/06/03 11:12:48 lexuanttkhtn Exp $
* $Author: lexuanttkhtn $
* $Revision: 1.21 $
* $Date: 2009/06/03 11:12:48 $
*
* ====================================================================
*
* Copyright (C) 2002-2006... | JavaScript |
/*
* $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/js/myvietnam.js,v 1.19 2009/01/06 09:05:23 lexuanttkhtn Exp $
* $Author: lexuanttkhtn $
* $Revision: 1.19 $
* $Date: 2009/01/06 09:05:23 $
*
* ====================================================================
*
* Copyright (C) 2002-20... | JavaScript |
var Ajax;
if (Ajax && (Ajax != null)) {
Ajax.Responders.register({
onCreate: function() {
if($('spinner') && Ajax.activeRequestCount>0)
Effect.Appear('spinner',{duration:0.5,queue:'end'});
},
onComplete: function() {
if($('spinner') && Ajax.activeRequestCount==0)
Effect.Fad... | JavaScript |
//Style Sheet Switcher version 1.1 Oct 10th, 2006
//Author: Dynamic Drive: http://www.dynamicdrive.com
//Usage terms: http://www.dynamicdrive.com/notice.htm
var manual_or_random="manual" //"manual" or "random"
var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap... | JavaScript |
$(document).ready(function () {
jQuery(".widgetContent ul li a, .chatLinks ul li a, .linksForm ul li a").hover(function() {
jQuery(this).stop().animate({ textIndent: "5px" }, 1000,'easeOutElastic');
},function(){
jQuery(this).stop().animate({ textIndent: "0px" }, 1000,'easeOutElastic');
});
jQuery(".blockLink... | JavaScript |
$(document).ready(function () {
$(".Social li, .Social2 li").each(function () {
$("a strong", this).css("opacity", "0");
});
$(".Social li, .Social2 li").hover(function () {
$(this).stop().fadeTo(500, 1).siblings().stop().fadeTo(500, 0.2);
$("a strong", this).stop().animate({
... | JavaScript |
$(document).ready(function() {
$("input[type=submit], a img, .bdayh").stop().fadeTo(250,1);
$("input[type=submit], a img, .bdayh").hover(function() {
$(this).stop().fadeTo(250,0.6); }
, function() {
$(this).stop().fadeTo(250,1); }
);
$('.links li a').hover(function(event) {
$(this).s... | 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 |
var manual_or_random="manual"
var randomsetting="3 days"
function getCookie(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1]
return null}
function setCookie(name,value,days){var expireDate=new Date()
var expstring=(typeof days!="undefined")?expir... | JavaScript |
// Flash Player Version Detection - Rev 1.6
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOp... | JavaScript |
/* jquery.signalR.core.js */
/*global window:false */
/*!
* ASP.NET SignalR JavaScript Library v2.1.0
* http://signalr.net/
*
* Copyright (C) Microsoft Corporation. All rights reserved.
*
*/
/// <reference path="Scripts/jquery-1.6.4.js" />
/// <reference path="jquery.signalR.version.js" />
(function ... | JavaScript |
/* jquery.signalR.core.js */
/*global window:false */
/*!
* ASP.NET SignalR JavaScript Library v2.1.0
* http://signalr.net/
*
* Copyright (C) Microsoft Corporation. All rights reserved.
*
*/
/// <reference path="Scripts/jquery-1.6.4.js" />
/// <reference path="jquery.signalR.version.js" />
(function ... | JavaScript |
/* jFeed : jQuery feed parser plugin
* Copyright (C) 2007 Jean-François Hovinne - http://www.hovinne.com/
* Dual licensed under the MIT (MIT-license.txt)
* and GPL (GPL-license.txt) licenses.
*/
jQuery.getFeed = function(options) {
options = jQuery.extend({
url: null,
data: null,
... | JavaScript |
/*
* jqSlider 1.0 - jQuery plugin
* written by Prog Mania @progmania
* Built for jQuery library
* http://jquery.com
*
*
*/
/*
* markup example for $("#slider").slide();
*
* <div id="slider">
* <li><img src="images/01.jpg" alt="" /></li>
* <li><img src="images/02.jpg" alt="... | JavaScript |
/*
CUSTOM FORM ELEMENTS
Created by Ryan Fait
www.ryanfait.com
The only things you may need to change in this file are the following
variables: checkboxHeight, radioHeight and selectWidth (lines 24, 25, 26)
The numbers you set for checkboxHeight and radioHeight should be one quarter
of the total height of... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
var data={
channels:[{
id:1,
title:'اخبار',
url:'http://www.almasryalyoum.com/rss_feed_term/1/rss.xml',
unreaditems:0,
active:true,
lastItemPubDate:0,
category... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
var util={
/**
* clone object.
* @return the new cloned object
* @param object the object to be cloned.
*/
clone:function (object) { // shallow clone
var clone = {};
for (var ... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
var extension={
openURL:function(url,focus){
if(url.indexOf('http')== -1){
url="http://"+url;
}
chrome.tabs.create({
url:url,
selected:focus
});
... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
var notifications=[];
var VERSION_ID=1.0;
var ReaderBG={
/**
* contructor
*/
ReaderBG:function(){
var systemVersion=null;
if(window.localStorage.sv){
systemVersion=window.lo... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
var background=chrome.extension.getBackgroundPage();
var data=null;
var imgs=[];
var ReaderPOPUP={
/**
* cut text and test if it's white space or not.
*/
cutText:function(text,indexB,append)... | JavaScript |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
var MAYOptions=function(){
var data=JSON.parse(window.localStorage.data);
if(window.localStorage.lang == 'en'){
data=JSON.parse(window.localStorage.data_en);
}
var MAYOptions={
htmlGenera... | JavaScript |
/*
* changing locals to page accourding to the presetted locals or from navegator local language.
* How to : add attribute local to each element you want (i.e.: <div local="localvariable"> Some Text </div> ) to set it's local language and add local value to Mylocals variable for each language
* you want to view (i.e... | JavaScript |
function abrirPag(valor){
var url = valor;
xmlRequest.onreadystatechange = mudancaEstado;
xmlRequest.open("GET",url,true);
xmlRequest.send(null);
if (xmlRequest.readyState == 1) {
document.getElementById("conteudo_mostrar").innerHTML = "<img src='../imagens/loader.gif'>";
... | JavaScript |
function GetXMLHttp() {
var xmlHttp;
try {
xmlHttp = new XMLHttpRequest();
}
catch(ee) {
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
... | JavaScript |
function abrirPag(valor){
var url = valor;
xmlRequest.onreadystatechange = mudancaEstado;
xmlRequest.open("GET",url,true);
xmlRequest.send(null);
if (xmlRequest.readyState == 1) {
document.getElementById("conteudo_mostrar").innerHTML = "<img src='../imagens/loader.gif'>";
... | JavaScript |
function GetXMLHttp() {
var xmlHttp;
try {
xmlHttp = new XMLHttpRequest();
}
catch(ee) {
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
... | JavaScript |
function createExportForm(){
remove_element_by_id('exportDiv');
var exportD = document.createElement('DIV');
exportD.id='exportDiv';
document.body.appendChild(exportD);
setPosition(exportD,580,100);
var submitAnalysis = document.createElement('INPUT');
submitAnalysis.type='button';
submitAnalysis.id='... | JavaScript |
/**
* @author ccpalu
*/
document.title="CNViewer - Exported Analysis";
function reloadAnalysis(){
location.assign(document.getElementById('exportUrl').value+ '#' +
document.getElementById('jsonContent').value);
return false;
}
| JavaScript |
/*
* @author ccpalu
*/
function createChList(){
if (document.getElementById('chList')==null){
remove_element_by_id("chList");
var chList = document.createElement("div");
chList.id = "chList";
chList.visible=false;
chList.style.display="none";
chList.style.zIndex=100;
chList.innerHTML = '<img id="chBgI... | JavaScript |
/**
* @author ccpalu
*/
function getStatements() {
/* It access the Segmented ID data from all patients
* This data will be stored inthe varibles 'segData' and
* 'rawDataY'.
*/
document.body.style.cursor='wait';
document.getElementById('CNV').ready=false;
loadingStatus('Accessing the Project Database');
var... | JavaScript |
/**
* @author ccpalu
*/
function addScript(src,id){
var headID = document.getElementsByTagName("head")[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = src;
headID.appendChild(script); // retrieve answer
return false;
}
function addLink(href,rel){
var headID... | JavaScript |
/**
* @author ccpalu
*/
function closeUploadBox(){
if (document.getElementById('otherOptionDiv').style.display==''){
closeOtherOptionMenu();
}
else{
document.getElementById('addSamples').style.display='';
document.getElementById('addSamples').src='http://cnviewer.googlecode.com/hg/Images/addSamples.png';
... | JavaScript |
/**
* @author CCPalu
*/
function graphicAreaVariables(){
var cnv = document.getElementById('CNV');
var graphic = document.createElement('OBJECT');
document.body.appendChild(graphic);
graphic.name='graphicVariables';
graphic.id='graphicVariables';
graphic.samples = function(){
return cnv.segData[cnv.ch[0]]... | JavaScript |
/**
* @author ccpalu
*/
function createSegLabelForm(labels){
/* Fields in the configForm, listing all the labels of each column of a file uploaded by a user.
* It allows the user to do the correspondence of columns and necessary data, for the browser.
*/
var topBox = 1, intervalBox = 36, topLabel = 4.5, interval... | JavaScript |
/**
* @author ccpalu
* Functions for text file details, that the user must inform when using mannual uploading.
*/
function configOptions(){
/* Creates a box with graph configuration parameters */
var parent = configDiv();
var divTitle = createParagraph('graphConfigP', 'Configurations', parent);
setPositi... | JavaScript |
// Cintia Cristina Palu
function heatMapHexa(value){
var red;
var green;
var blue;
/* var sB='FA', sS='C8', nB=250, nS=100, dif=nB-nS;
var sBv='D9', sSv='64', nBv=200, nSv=50;
var sB='FA', sS='64', nB=250, nS=100, dif=nB-nS;
var sBv='C8', sSv='32', nBv=200, nSv=50;
*/
var sB='FA', sS='32', nB=250, nS=50, d... | JavaScript |
/**
* @author ccpalu
*/
document.title="Loading CNV Browser";
function addDojoScripts(){
/* Dojo needs to be added later because, when reloading a Plot,
* the url's hash is too big to dojo process, so the fiels are not loaded.
* First, is necessary read and erase the hash string, then call dojo.
* Here we are ad... | JavaScript |
/**
* @author ccpalu
*/
function accessUCSC(){
var headID = document.getElementsByTagName("head")[0];
var script = document.createElement('script');
script.id = 'AccessUCSC';
// var src="http://ibl.mdanderson.org/~mhdeus/cintia/download.php?callback=goToUcsc";
var src="http://odin.mdacc.tmc.edu/~ccpalu/CNViewer/d... | JavaScript |
/**
* @author ccpalu
*/
function similarity(){
var proceedAnalysis;
try {
var cnv = document.getElementById('CNV');
switch (document.getElementById("sim_method").value){
case "0":
var sample = document.getElementById("choose_sample").value;
var arrays = document.getElementById('CNV').segData;
v... | JavaScript |
/*
http://www.JSON.org/json2.js
2009-09-29
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 EX... | JavaScript |
/**
* @author ccpalu
*/
function cnvMap(behest, sampleID, dist){
var cnv = document.getElementById('CNV');
var ch = cnv.ch;
var graphicVar= document.getElementById('graphicVariables');
var chrSamples;
var sample;
var chmetrics=chromossomeMetrics();
remove_element_by_id("simpleChart");
/* position sett... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.