Created
March 4, 2016 01:33
-
-
Save grgaortiz/49b24a0bdb157a6df2a5 to your computer and use it in GitHub Desktop.
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" | |
src="https://discovery1.eqc.local:8843/spotfire/wp/GetJavaScriptApi.ashx?Version=1.0"></script> | |
<!-- Scripts --> | |
<script type="text/javascript"> | |
mixpanel.track('Discovery: View'); | |
window.onload = function () { | |
var customization = new spotfire.webPlayer.Customization(); | |
customization.showTopHeader = true; | |
customization.showToolBar = true; | |
customization.showClose = false; | |
customization.showAbout = false; | |
customization.showHelp = false; | |
customization.showLogout = false; | |
customization.showDodPanel = false; | |
var app = new spotfire.webPlayer.Application("https://discovery1.eqc.local:8843/spotfire/wp", customization); | |
// Register an error handler to catch errors. | |
app.onError(errorCallback); | |
// Register event handler for document opened event. | |
app.onOpened(onOpenedCallback); | |
// Register event handler for document closed event. | |
app.onClosed(onDocumentClosedCallback); | |
// Open an analysis. | |
app.open( | |
"/0378/Marietta Market Analysis", | |
"webPlayer", | |
''); | |
}; | |
function errorCallback(errorCode, description) { | |
// Displays an error message if something goes wrong in the Web Player. | |
alert(errorCode + ": " + description); | |
} | |
function onOpenedCallback(analysisDocument) { | |
// Document is now opened and ready for interactions. | |
} | |
function onDocumentClosedCallback(analysisPath) { | |
// Document is now closed. | |
} | |
</script> | |
<div class="container-fluid" style="margin-top:-29px;padding:0;"> | |
<div id="webPlayer" style="width: 100%; height: 700px;"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment