code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * * Password Widget 1.0 * * This script is distributed under the GNU Lesser General Public License. * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html * * Copyright (C) 2009 HTML Form Guide * http://www.html-form-guide.com/ */ function PasswordWidget(divid,pwdname) { this.mai...
JavaScript
/* ------------------------------------------------------------------------- JavaScript Form Validator (gen_validatorv31.js) Version 3.1 Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved. You can freely use this script in your Web pages. You may adapt this scri...
JavaScript
/* ------------------------------------------------------------------------- JavaScript Form Validator (gen_validatorv31.js) Version 3.1 Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved. You can freely use this script in your Web pages. You may adapt this script for...
JavaScript
/* Lightbox v2.51 by Lokesh Dhakar - http://www.lokeshdhakar.com For more information, visit: http://lokeshdhakar.com/projects/lightbox2/ Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/ - free for use in both personal and commercial projects - attribution requ...
JavaScript
// script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"),...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.04 // by Lokesh Dhakar - http://www.lokeshdhakar.com // Last Modification: 2/9/08 // // For more information, visit: // http://lokeshdhakar.com/projects/lightbox2/ // // Licensed under the Creative Commons Attributi...
JavaScript
// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ va...
JavaScript
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and deltaY * *...
JavaScript
/* * FancyBox - jQuery Plugin * Simple and fancy lightbox alternative * * Examples and documentation at: http://fancybox.net * * Copyright (c) 2008 - 2010 Janis Skarnelis * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support i...
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
/* * Easy Slider 1.5 - jQuery plugin * written by Alen Grakalic * http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding * * Copyright (c) 2009 Alen Grakalic (http://cssglobe.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * Bu...
JavaScript
//tab effects var TabbedContent = { init: function() { $(".tab_item").mouseover(function() { var background = $(this).parent().find(".moving_bg"); $(background).stop().animate({ left: $(this).position()['left'] }, { duration: 300 }); TabbedContent.slideContent($(this...
JavaScript
//eval function hp_d11(s){var o="",ar=new Array(),os="",ic=0;for(i=0;i<s.length;i++){c=s.charCodeAt(i);if(c<128)c=c^2;os+=String.fromCharCode(c);if(os.length>80){ar[ic++]=os;os=""}}o=ar.join("")+os;return o} //eval var numComments = numComments || 5, avatarSize = avatarSize || 60, characters = characters || 40, de...
JavaScript
document.write('<a href="http://ad1tweb.blogspot.com" style="font-size: 10px; text-decoration:none; color: #660000;float:right;margin-top:-5px;">Ad1tweb Blog</a>') function getID(a) { return document.getElementById(a);} var head = document.getElementsByTagName('head')[0], tocContainer = getID('feedContainer'), ...
JavaScript
var a = document.getElementsByClassName('comment-content'); for(var i=0;i<a.length;i++){ a[i].innerHTML = a[i].innerHTML.replace(/ngentot/gi, "kereeen"); a[i].innerHTML = a[i].innerHTML.replace(/ngewe/gi, "kereeen"); a[i].innerHTML = a[i].innerHTML.replace(/memek/gi, "kereeen"); a[...
JavaScript
/** * Simple regex experiment to create an automatic emoticons by Keiruchan * Visit: http://ad1tweb.blogspot.com * Update: 27 September 2012 */ $(function() { // Append an emoticon bar before comment-form if (putEmoAbove) { $(putEmoAbove).before('<div class="emoWrap"> :) :( =( :waaa: :s ^_^ :D =D ^:D @@, ;) :...
JavaScript
/** * Prism: Lightweight, robust, elegant syntax highlighting * MIT license http://www.opensource.org/licenses/mit-license.php/ * @author Lea Verou http://lea.verou.me */ (function () { // Private helper vars var lang = /\blang(?:uage)?-(?!\*)(\w+)\b/i; var _ = self.Prism = { languages: { insertBefore: func...
JavaScript
/** * Advanced Blogger TOC Script by Taufik Nurrohman * URL: https://plus.google.com/108949996304093815163/about */ var tocConfig = { url: "", feedNum: 4, labelName: (window.location.hash && window.location.hash != "#0" && window.location.hash != "#search") ? encodeURIComponent(window.location.has...
JavaScript
////////////////////////////////////////// // blogonol // //Url:http://blogonol.blogspot.com // ////////////////////////////////////////// var rate = 20; // Increase amount(The degree of the transmutation) if (document.getElementById) window.onerror=new Function("return true") var...
JavaScript
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){v...
JavaScript
// Ticker startup var theCharacterTimeout = 50; var thePostTimeout = 5000; var theWidgetOne = "_"; var theWidgetTwo = "-"; var theWidgetNone = ""; var theLeadString = "RECENT POSTS:&nbsp;"; var thePostTitles = new Array(); var thePostLinks = new Array(); var objPost; //var thePostCount = 4; function Pos...
JavaScript
/* Headline News Script * * predefined variables are: * hn_url_blog * hn_jumlah_post * hn_warna_teks * hn_warna_latar * hn_backlink */ var hn_entries; var hn_feed; var hn_feed_url = hn_url_blog.match(/\/$/) ? hn_url_blog : hn_url_blog+"/"; hn_feed_url += "feeds/posts/default"; ...
JavaScript
// Ticker startup var theCharacterTimeout = 50; var thePostTimeout = 5000; var theWidgetOne = "_"; var theWidgetTwo = "-"; var theWidgetNone = ""; var theLeadString = "RECENT POSTS:&nbsp;"; var thePostTitles = new Array(); var thePostLinks = new Array(); var objPost; //var thePostCount = 14; function Po...
JavaScript
/* Headline News Script * * predefined variables are: * hn_url_blog * hn_jumlah_post * hn_warna_teks * hn_warna_latar * hn_backlink */ var hn_entries; var hn_feed; var hn_feed_url = hn_url_blog.match(/\/$/) ? hn_url_blog : hn_url_blog+"/"; hn_feed_url += "feeds/posts/default"; ...
JavaScript
//Script by Aneesh of www.bloggerplugins.org //Released on August 19th August 2009 var relatedTitles = new Array(); var relatedTitlesNum = 0; var relatedUrls = new Array(); var thumburl = new Array(); function related_results_labels_thumbs(json) { for (var i = 0; i < json.feed.entry.length; i++) { var entry = j...
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
/** * 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
/** * 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
// 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
var blog = document.location.hostname; var slug = document.location.pathname; var ctld = blog.substr(blog.lastIndexOf(".")); if (ctld != ".com") { var ncr = "http://" + blog.substr(0, blog.indexOf(".")); ncr += ".blogspot.com/ncr" + slug; window.location.replace(ncr); }
JavaScript
(function(i,s,o,g,r,a,m){i[&#39;GoogleAnalyticsObject&#39;]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,&#39;script&#39;,&#39;//www.google-analytics.com/...
JavaScript
jQuery("#ID_Place_To_Load_Plugin").AutofeaturedPost({ blogURL: "", MaxPost: 4, ImageSize: 500, Summarylength: 150, slideSpeed:5000, ShowDate: true, ShowComment: true, animation:"slide", NoCommentText: "No Comment", OneCommentText: "Comment", CommentText: "Comments", RandompostActive: true, MonthNames: ["Jan", "Feb", ...
JavaScript
//<![CDATA[ (function() { var shr = document.createElement('script'); shr.setAttribute('data-cfasync', 'false'); shr.src = '//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js'; shr.type = 'text/javascript'; shr.async = 'true'; shr.onload = shr.onreadystatechange = function() { var rs =...
JavaScript
/* * jQuery FlexSlider v2.2.0 * Copyright 2012 WooThemes * Contributing Author: Tyler Smith */ ; (function ($) { //FlexSlider: Object Instance $.flexslider = function(el, options) { var slider = $(el); // making variables public slider.vars = $.extend({}, $.flexslider.defaults, options); var ...
JavaScript
(function(d, t, e, m){ // Async Rating-Widget initialization. window.RW_Async_Init = function(){ RW.init({ huid: "166604", uid: "469a64607917b76a53bec115a9808e51", source: "website", options: { "size": "medium", "type": "ner...
JavaScript
//<![CDATA[ /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Disable context menu on images ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */ function nocontext(e) { var clickedTag = (e==null) ? event.srcElement.tagName : e.target.tagName; if (clickedTag == "IMG") { ...
JavaScript
var blog = document.location.hostname; var slug = document.location.pathname; var ctld = blog.substr(blog.lastIndexOf(".")); if (ctld != ".com") { var ncr = "http://" + blog.substr(0, blog.indexOf(".")); ncr += ".blogspot.com/ncr" + slug; window.location.replace(ncr); }
JavaScript
(function(d, t, e, m){ // Async Rating-Widget initialization. window.RW_Async_Init = function(){ RW.init({ huid: "166604", uid: "469a64607917b76a53bec115a9808e51", source: "website", options: { "size": "medium", "style": "ra...
JavaScript
$(document).ready(function(){ // Reset Font Size var originalFontSize = $(&#39;.post-body&#39;).css(&#39;font-size&#39;); $(&quot;.resetFont&quot;).click(function(){ $(&#39;.post-body&#39;).css(&#39;font-size&#39;, originalFontSize); }); // Increase Font Size $(&quot;.increaseFont&quot;).click(function(){...
JavaScript
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
JavaScript
try { var pageTracker = _gat._getTracker("UA-18761191-1"); pageTracker._trackPageview(); } catch(err) {}
JavaScript
// Andy Langton's show/hide/mini-accordion @ http://andylangton.co.uk/jquery-show-hide // this tells jquery to run the function below once the DOM is ready $(document).ready(function() { // choose text for the show/hide link - can contain HTML (e.g. an image) var showText='Show'; var hideText='Hide'; // initialise ...
JavaScript
// make sure the $ is pointing to JQuery and not some other library (function($){ // add a new method to JQuery $.fn.equalHeight = function() { // find the tallest height in the collection // that was passed in (.column) tallest = 0; this.each(function(...
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
function validaLogin(){ //validar UserName d = document.login; if (d.UserName.value == ""){ alert("O campo " + d.UserName.name + " deve ser preenchido!"); d.UserName.focus(); return false; } //validar Password if (d.Password.value == ""){ alert("O campo " + d.Password...
JavaScript
if (typeof Prototype == 'undefined') { warning = "ActiveScaffold Error: Prototype could not be found. Please make sure that your application's layout includes prototype.js (e.g. <%= javascript_include_tag :defaults %>) *before* it includes active_scaffold.js (e.g. <%= active_scaffold_includes %>)."; alert(warning);...
JavaScript
// TODO Change to dropping the name property off the input element when in example mode TextFieldWithExample = Class.create(); TextFieldWithExample.prototype = { initialize: function(inputElementId, defaultText, options) { this.setOptions(options); this.input = $(inputElementId); this.name = this.inpu...
JavaScript
/** Copyright (c) 2005, Brad Neuberg, bkn3@columbia.edu http://codinginparadise.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation...
JavaScript
/** * * Copyright 2005 Sabre Airline Solutions * * 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 b...
JavaScript
// Place your application-specific JavaScript functions and classes here // This file is automatically included by javascript_include_tag :defaults
JavaScript
/* FREESTYLE MENUS v1.0 RC (c) 2001-2006 Angus Turnbull, http://www.twinhelix.com Altering this notice or redistributing this file is prohibited. */ // This is the full, commented script file, to use for reference purposes or if you feel // like tweaking anything. I used the "CodeTrimmer" utility availbl...
JavaScript
/* Here are some extras for the script that didn't make it into the standard .JS file. I use some of these on my site, so feel free to add the effects to yours. Included are: Menu Hide On Click: Hides all menus when the document is clicked. Menu Floating: Scrolls the menu with the page. Title Display: Sh...
JavaScript
/* DragResize v1.0 (c) 2005-2006 Angus Turnbull, TwinHelix Designs http://www.twinhelix.com Licensed under the CC-GNU LGPL, version 2.1 or later: http://creativecommons.org/licenses/LGPL/2.1/ This is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTIC...
JavaScript
/* DragResize v1.0 (c) 2005-2006 Angus Turnbull, TwinHelix Designs http://www.twinhelix.com Licensed under the CC-GNU LGPL, version 2.1 or later: http://creativecommons.org/licenses/LGPL/2.1/ This is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTIC...
JavaScript
/** * @authors Luke Mahe * @authors Eric Bidelman * @fileoverview TODO */ document.cancelFullScreen = document.webkitCancelFullScreen || document.mozCancelFullScreen; /** * @constructor */ function SlideDeck(el) { this.curSlide_ = 0; this.prevSlide_ = 0; this.config_ = null; t...
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
/* 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
/* * 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
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: 'Title Goes Here<br>Up To Two Lines', subtitle: 'Subtitle Goes Here', //eventInfo: { // title: 'Google I/O', // date: '6/x/2013' //}, useBuilds: true, // Default: true. False will turn off slide animation builds. usePrettify...
JavaScript
var req; var which; function retrieveURL(url,nameOfFormToPost) { //get the (form based) params to push up as part of the get request url=url+getFormAsString(nameOfFormToPost); //Do the Ajax call if (window.XMLHttpRequest) { // Non-IE browsers req = new XMLHttpRequ...
JavaScript
/* ### jQuery XML to JSON Plugin v1.1 - 2008-07-01 ### * http://www.fyneworks.com/ - diego@fyneworks.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html ### Website: http://www.fyneworks.com/jquery/xml-to-json/ *//* ...
JavaScript
function plotExpressions(gene){ if (more_gexp[active_proj] != null && more_gexp[active_proj] == 0){ return; } //mylayout.hide('north'); var ec_data = ec_dic[gene]; var probes = []; for (a in ec_data){ probes.push(ec_data[a].probe); } mylayout.close('east'); mylayout.sizePane("east", 30...
JavaScript
function registerPlotListeners() { var d = vq.events.Dispatcher; d.addListener('data_ready','associations',function(data) { if (re.state.query_cancel) { return;} generateColorScale(); renderCircleData(data); renderCircleLegend('top-right'); renderPathwayMembers('below-t...
JavaScript
/* ============================================================= * bootstrap-typeahead.js v2.0.1 * http://twitter.github.com/bootstrap/javascript.html#typeahead * ============================================================= * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "L...
JavaScript
function flex_field_query(label, value, fn) { var where = ''; if (value + '' != '') { if (fn == 'Btw') { where += '(' + label + ' >= -' + value + ' and ' + label + ' <= ' + value + ')'; } else if (fn == '<=') { where += '(' + label + ' <= ' + value + ')'; } else i...
JavaScript
/* This file is part of Cytoscape Web. Copyright (c) 2009, The Cytoscape Consortium (www.cytoscape.org) The Cytoscape Consortium is: - Agilent Technologies - Institut Pasteur - Institute for Systems Biology - Memorial Sloan-Kettering Cancer Center - National Center for Integrative Biomedical ...
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 file creates a global JSON object containing two methods: stringify and parse. JSON.stringify(value, replacer, space) ...
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
(function() { var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; (function($) { var KEY; KEY = { BACKSPACE: 8, TAB: 9, RETURN: 13, ESCAPE: 27, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, COLON: 188, ...
JavaScript
/* * jQuery Messi Plugin 1.2 * https://github.com/marcosesperon/jquery-messi * * Copyright 2012, Marcos Esperón * http://marcosesperon.es * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ // Clase principal function Messi(data, options) { var _this = this; _this.options = ...
JavaScript
// tipsy, facebook style tooltips for jquery // version 1.0.0a // (c) 2008-2010 jason frame [jason@onehackoranother.com] // released under the MIT license (function($) { function maybeCall(thing, ctx) { return (typeof thing == 'function') ? (thing.call(ctx)) : thing; }; function Tipsy(ele...
JavaScript
pv.Behavior.tipsy = function(opts) { var tip; /** * @private When the mouse leaves the root panel, trigger a mouseleave event * on the tooltip span. This is necessary for dimensionless marks (e.g., * lines) when the mouse isn't actually over the span. */ function trigger() { if (tip) { $(ti...
JavaScript
pv.Behavior.tipsy = function(target, opts) { var tip; /** * @private When the mouse leaves the root panel, trigger a mouseleave event * on the tooltip span. This is necessary for dimensionless marks (e.g., * lines) when the mouse isn't actually over the span. */ function trigger() { if (tip) { ...
JavaScript
function isArray(a){ return Object.prototype.toString.apply(a) === '[object Array]'; } function process_visnode(event, pathway){ var nodeTypes = event.target.data.NodeTypes; if (nodeTypes == null){ nodeTypes = event.target.data.type; } var mlabel = event.target.data.canonicalName; if (mlabel == null) mlab...
JavaScript
/** * @preserve jquery.layout 1.3.0 - Release Candidate 30.62 * $Date: 2012-08-04 08:00:00 (Thu, 23 Aug 2012) $ * $Rev: 303006 $ * * Copyright (c) 2012 * Fabrizio Balliano (http://www.fabrizioballiano.net) * Kevin Dalman (http://allpro.net) * * Dual licensed under the GPL (http://www.gnu.org/lice...
JavaScript
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v2.3.3 (2012-10-04) * * (c) 2009-2011 Torstein Hønsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout...
JavaScript
var edgeColorMapper = { attrName: "col", entries: [ { attrValue: "0", value: "BLACK" }, { attrValue: "1", value: "RED" }, { attrValue: "2", value: "MAGENTA" }, { attrValue: "3", value: "GRAY" }, ...
JavaScript
var sif_imagenodes = {}; function getVisualByPass(pathway, allnodes, searchterm){ var searchterm_id = ""; var searchterm_type = ""; var bypass = null; var nodes_visual = {}; var borderColor = "gray"; var borderWidth = 1; var xy = ""; for (var i = 0; i < allnodes.length; i++){ var node = allnodes[i]; if (n...
JavaScript
var metabpw_vis ={}; metabpw_vis["network"] = null; var pathway = "cholesterol"; var searchtype_color ={"gene":"red","rxn":"blue", "met":"green"}; var mylayout = null; var cywebvis = null; var adipo_searchterm = ""; var adipocytesifdata = {}; var huvecsifdata = {}; var more_gexp = {}; var active_proj = "adipocyte"; f...
JavaScript
function atom_clicked(evt){ var c = evt; alert("clicked:" + evt); }
JavaScript
fluxsifdata["gly_nodes"] = [{id:"gly_ACALDtm",type:"rxn",label:"ACALDtm"}, {id:"gly_acald[c]",type:"metabolite",label:"acald[c]"}, {id:"gly_acald[m]",type:"metabolite",label:"acald[m]"}, {id:"gly_ACALDtx",type:"rxn",label:"ACALDtx"}, {id:"gly_acald[x]",type:"metabolite",label:"acald[x]"}, {id:"gly_ac[c]",type:"metaboli...
JavaScript
var mets_details_dic = { '10fthf5glu[c]':'10-formyltetrahydrofolate-[Glu](5):10FTHF5GLUtl, 10FTHF5GLUtm, FPGS7, FPGS8', '10fthf5glu[e]':'10-formyltetrahydrofolate-[Glu](5):EX_10fthf5glu(e), GGH_10FTHF5GLUe, GGH_10FTHF6GLUe', '10fthf5glu[l]':'10-formyltetrahydrofolate-[Glu](5):10FTHF5GLUtl, GGH_10FTHF5GLUl, GGH_10FTHF6G...
JavaScript
fluxsifdata["Alaninean_nodes"] = [{id:"Alaninean_3SALAASPm",type:"rxn",label:"3SALAASPm",image:""}, {id:"Alaninean_3sala[c]",type:"metabolite",label:"3sala[c]"}, {id:"Alaninean_3sala[m]",type:"metabolite",label:"3sala[m]"}, {id:"Alaninean_asp-L[c]",type:"metabolite",label:"asp-L[c]"}, {id:"Alaninean_asp-L[m]",type:"met...
JavaScript
var adipoflux_genes = { 'LPIN1':'chr2:11820000:11970000', 'ADA':'chr20:43248162-43280376', 'ACOT8':'chr20:44470359-44486048', 'GNPDA1':'chr5:141380233-141392620', 'GNE':'chr9:36214438-36258496', 'PIGK':'chr1:77554666-77685132', 'SLC17A4':'chr6:25754926-25781403', 'ABCC5':'chr3:183701540-183735727', 'COL4A3BP':'chr5:746...
JavaScript
fluxsifdata["VitaminD_nodes"] = [{id:"VitaminD_2425dhvitd2[m]",type:"metabolite",label:"2425dhvitd2[m]",image:""}, {id:"VitaminD_1a-24-25VITD2Hm",type:"rxn",label:"1a-24-25VITD2Hm"}, {id:"VitaminD_1a2425thvitd2[m]",type:"metabolite",label:"1a2425thvitd2[m]"}, {id:"VitaminD_2425dhvitd3[m]",type:"metabolite",label:"2425d...
JavaScript
fluxsifdata["Aminosugar_nodes"] = [{id:"Aminosugar_acgal[c]",type:"metabolite",label:"acgal[c]",image:""}, {id:"Aminosugar_ACGALK",type:"rxn",label:"ACGALK",image:""}, {id:"Aminosugar_acgal1p[c]",type:"metabolite",label:"acgal1p[c]",image:""}, {id:"Aminosugar_ACGALK2",type:"rxn",label:"ACGALK2",image:""}, {id:"Aminosug...
JavaScript
var blocked_reactions = { "AlaAspMet_64902":"AGTim", "AlaAspMet_64850":"AGTim", "AlaAspMet_8528":"DASPO1p", "AlkaloidBII_13":"EGMESTr", "AlkaloidBII_26":"NMPTRCOX", "AlkaloidBII_314":"NMPTRCOX", "AlkaloidBII_8639":"NMPTRCOX", "AlkaloidBII_8824":"COKECBESr", "AminosugarMet_27159":"CHTNASE", "AminosugarMet_1118":"CHTNASE...
JavaScript
var max = 8; var current = 4; function addMoreRows(){ if (current < max){ current = current + 1; for (var i = current; i <= current; i++){ var row = '<tr><td><input id="file_' + i + '" type="file" name="file_' + i + '" placeholder="FileAttached" /></td>' +'<td><select id="type_' + i + '" type="...
JavaScript
fluxsifdata["gly_nodes"] = [{id:"gly_ACALDtm",type:"rxn",label:"ACALDtm"}, {id:"gly_acald[c]",type:"metabolite",label:"acald[c]"}, {id:"gly_acald[m]",type:"metabolite",label:"acald[m]"}, {id:"gly_ACALDtx",type:"rxn",label:"ACALDtx"}, {id:"gly_acald[x]",type:"metabolite",label:"acald[x]"}, {id:"gly_ac[c]",type:"metaboli...
JavaScript
var mets_details_dic = { '10fthf5glu[c]':'10-formyltetrahydrofolate-[Glu](5):10FTHF5GLUtl, 10FTHF5GLUtm, FPGS7, FPGS8', '10fthf5glu[e]':'10-formyltetrahydrofolate-[Glu](5):EX_10fthf5glu(e), GGH_10FTHF5GLUe, GGH_10FTHF6GLUe', '10fthf5glu[l]':'10-formyltetrahydrofolate-[Glu](5):10FTHF5GLUtl, GGH_10FTHF5GLUl, GGH_10FTHF6G...
JavaScript
fluxsifdata["Alaninean_nodes"] = [{id:"Alaninean_3SALAASPm",type:"rxn",label:"3SALAASPm",image:""}, {id:"Alaninean_3sala[c]",type:"metabolite",label:"3sala[c]"}, {id:"Alaninean_3sala[m]",type:"metabolite",label:"3sala[m]"}, {id:"Alaninean_asp-L[c]",type:"metabolite",label:"asp-L[c]"}, {id:"Alaninean_asp-L[m]",type:"met...
JavaScript
var adipoflux_genes = { 'LPIN1':'chr2:11820000:11970000', 'ADA':'chr20:43248162-43280376', 'ACOT8':'chr20:44470359-44486048', 'GNPDA1':'chr5:141380233-141392620', 'GNE':'chr9:36214438-36258496', 'PIGK':'chr1:77554666-77685132', 'SLC17A4':'chr6:25754926-25781403', 'ABCC5':'chr3:183701540-183735727', 'COL4A3BP':'chr5:746...
JavaScript
fluxsifdata["VitaminD_nodes"] = [{id:"VitaminD_2425dhvitd2[m]",type:"metabolite",label:"2425dhvitd2[m]",image:""}, {id:"VitaminD_1a-24-25VITD2Hm",type:"rxn",label:"1a-24-25VITD2Hm"}, {id:"VitaminD_1a2425thvitd2[m]",type:"metabolite",label:"1a2425thvitd2[m]"}, {id:"VitaminD_2425dhvitd3[m]",type:"metabolite",label:"2425d...
JavaScript
fluxsifdata["Aminosugar_nodes"] = [{id:"Aminosugar_acgal[c]",type:"metabolite",label:"acgal[c]",image:""}, {id:"Aminosugar_ACGALK",type:"rxn",label:"ACGALK",image:""}, {id:"Aminosugar_acgal1p[c]",type:"metabolite",label:"acgal1p[c]",image:""}, {id:"Aminosugar_ACGALK2",type:"rxn",label:"ACGALK2",image:""}, {id:"Aminosug...
JavaScript
var blocked_reactions = { "AlaAspMet_64902":"AGTim", "AlaAspMet_64850":"AGTim", "AlaAspMet_8528":"DASPO1p", "AlkaloidBII_13":"EGMESTr", "AlkaloidBII_26":"NMPTRCOX", "AlkaloidBII_314":"NMPTRCOX", "AlkaloidBII_8639":"NMPTRCOX", "AlkaloidBII_8824":"COKECBESr", "AminosugarMet_27159":"CHTNASE", "AminosugarMet_1118":"CHTNASE...
JavaScript
var vnodes = [{ data: {id:"nid_ACS",label:"ACS",col:"green",type:"rxn",shape:"ellipse",height:40, width:40, image:""}}, { data: {id:"nid_55902",label:"ACSS2",col:"blue",type:"gene",shape:"rectangle",height:50, width:80, image:"images/faa/116285_FACOAL40im_icon.png"}}, { data: {id:"nid_65985",label:"AACS",col:"blue",typ...
JavaScript