This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// extend jquery ui dialog widget to support enter key triggering "ok" button press. | |
+ $.extend($.ui.dialog.prototype.options, { | |
+ | |
+ create: function() { | |
+ | |
+ var $this = $(this); | |
+ | |
+ // focus first button and bind enter to it | |
+ $this.parent().find('.ui-dialog-buttonpane button:first').focus(); | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).unbind("keypress.selectedSignaturesTableModal"); | |
$(document).bind("keypress.selectedSignaturesTableModal", function(e) { | |
if (e.keyCode === 13) /* enter */ { | |
console.log('ENTER key pressed'); | |
} else if (e.keyCode === 27) /* esc */ { | |
console.log('ESC key pressed'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svg_root_container_selection = d3.select("#svg-root-container") | |
.append("svg") | |
.attr("overflow", "visible") | |
.attr("x", 0) | |
.attr("y", 0) | |
.attr("width", 13 * (scarpa.CSHistogram.bbox.width + scarpa.CSHistogram.bbox.x)) | |
.attr("height", 1.25 * scarpa.CSHistogram.bbox.height); | |
// fun with gradients | |
gradient_selection = svg_root_container_selection.append("defs") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getCSS = function (prop, fromClass) { | |
var $inspector = $("<div>").css('display', 'none').addClass(fromClass); | |
$("body").append($inspector); // add to DOM, in order to read the CSS property | |
try { | |
return $inspector.css(prop); | |
} finally { | |
$inspector.remove(); // and remove from DOM | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//- Perturbagen type | |
.filter-group-title#perturbagen-type-filter | |
| Perturbagen Type | |
.filter-chunk.margin-top-4 | |
div | |
label(for="compound") | |
input(type="checkbox" value="cp" name="perturbagen_type_checkbox_group")#compound | |
| | |
.glyphicon.glyphicon-adjust.glyph-cp.text-center(aria-hidden="true") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = | |
{ | |
$parent: $('#touchstone_table'), | |
height: '628px', | |
data: touchstoneData, | |
doSearch: true, | |
doShowCheckbox: true, | |
doRowSelection: true, | |
customButtons: true, | |
mouseOverHandler: function (tstable, e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var browser, | |
container, | |
options, | |
$e = $("a[href='#igv']"); | |
options = | |
{ | |
reference: { | |
id: "hg19", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<link rel="shortcut icon" href=../img/favicon.ico> | |
<title>Browser</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(document).ready(function () { | |
var browser1, | |
browser2, | |
str; | |
str = 'state=1%2C1%2C4%2C594.253105%2C615.253105%2C1%2CNONE&colorScale=8&hicUrl=https%3A%2F%2Fhicfiles.s3.amazonaws.com%2Fhiseq%2Fgm12878%2Fin-situ%2FHIC046.hic&name=Rao%20and%20Huntley%20et%20al.%20%7C%20Cell%202014%20GM12878%20(human)%20in%20situ%20no%20crosslinking%20HIC046%20(46M)&tracks=https%3A%2F%2Fwww.encodeproject.org%2Ffiles%2FENCFF222NCQ%2F%40%40download%2FENCFF222NCQ.bigWig%7CA375%200%3A1%7C%7Crgb(3%2C%20116%2C%20178)%7C%7C%7Chttps%3A%2F%2Fwww.encodeproject.org%2Ffiles%2FENCFF972ZQA%2F%40%40download%2FENCFF972ZQA.bigWig%7CHepG2%20HNRNPAB0%3A1%7C%7Crgb(3%2C%20116%2C%20178)%7C%7C%7Chttps%3A%2F%2Fwww.encodeproject.org%2Ffiles%2FENCFF027LKU%2F%40%40download%2FENCFF027LKU.bigWig%7CHepG2%20HNRNPU0%3A1%7C%7Crgb(3%2C%20116%2C%20178)'; | |
browser1 = hic.createBrowser($('#app-container-1'), { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://igv.org/web/release/2.0.0-beta7/dist/igv.js |
OlderNewer