Skip to content

Instantly share code, notes, and snippets.

@grgaortiz
Created March 4, 2016 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grgaortiz/49b24a0bdb157a6df2a5 to your computer and use it in GitHub Desktop.
Save grgaortiz/49b24a0bdb157a6df2a5 to your computer and use it in GitHub Desktop.
<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