Last active
August 29, 2015 14:07
-
-
Save turner/65fb46a137a612d6e7f6 to your computer and use it in GitHub Desktop.
CURSOR: Launch App With Session As Parameter
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> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script type="text/javascript" src="js/parseUtils.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
igv.getQueryValue = function(name) { | |
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); | |
var regexS = "[\\?&]" + name + "=([^&#]*)"; | |
var regex = new RegExp(regexS); | |
var results = regex.exec(window.location.href); | |
if (results == null) | |
return ""; | |
else | |
return results[1]; | |
}; | |
console.log(igv.getQueryValue('session')); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment