Created
July 5, 2016 06:51
-
-
Save keiono/068cc684cd5be128fc59b20a91d8dbe9 to your computer and use it in GitHub Desktop.
NDEx Login
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
<html> | |
<head> | |
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400' rel='stylesheet' type='text/css'> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react-with-addons.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react-dom.js"></script> | |
<script src="CyFramework/CyFramework.js"></script> | |
<script src="NDExStore/NDExStore.js"></script> | |
<script src="NDExLogin/NDExLogin.js"></script> | |
</head> | |
<body> | |
<div id="valet"></div> | |
<script src="renderer.js"></script> | |
</body> | |
</html> |
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
function init(loginInfo) { | |
const cyto = CyFramework.config([NDExStore]); | |
cyto.render(NDExLogin, document.getElementById('valet'), { | |
defaults: loginInfo, | |
onSubmit: () => { | |
const state = cyto.getStore('ndex').server.toJS(); | |
connect(state); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment