Skip to content

Instantly share code, notes, and snippets.

@joshkh
Created June 23, 2015 13:32
Show Gist options
  • Save joshkh/87f5ed4bdbc575b9f199 to your computer and use it in GitHub Desktop.
Save joshkh/87f5ed4bdbc575b9f199 to your computer and use it in GitHub Desktop.
Intermine Widgets 2.1.2
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
<link href="http://cdn.intermine.org/js/intermine/apps-c/list-widgets/2.1.2/app.bundle.prefixed.min.css" media="all" rel="stylesheet" type="text/css" />
<script src="http://cdn.intermine.org/js/intermine/apps-c/list-widgets/2.1.2/app.bundle.min.js"></script>
<script>
$(function() {
var W = require('list-widgets'),
widgets = new W({
'root': 'http://www.flymine.org/query/service/'
}),
opts = {
matchCb: function() {
console.log('matchCb');
},
listCb: function() {
console.log('listCb');
},
resultsCb: function() {
console.log('resultsCb');
}
};
widgets.all({
'bagName': 'PL FlyAtlas_midgut_top',
'el': '#target',
'opts': opts
});
// widgets.chart({
// 'id': 'flyfish',
// 'bagName': 'PL FlyAtlas_midgut_top',
// 'el': '#target',
// 'opts': opts
// });
// widgets.enrichment({
// 'id': 'go_enrichment_for_gene',
// 'bagName': 'PL FlyAtlas_midgut_top',
// 'el': '#target',
// 'opts': opts
// });
// widgets.table({
// 'id': 'orthologues',
// 'bagName': 'PL FlyAtlas_midgut_top',
// 'el': '#target',
// 'opts': opts
// });
});
</script>
</head>
<body class="-im-listwidgets">
<div class="container">
<div class="row" id="target"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment