Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 28, 2021 21:20
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 bjoerntx/9b5dfc713cef45c062ff157ab8ed6462 to your computer and use it in GitHub Desktop.
Save bjoerntx/9b5dfc713cef45c062ff157ab8ed6462 to your computer and use it in GitHub Desktop.
<html>
<head>
<!-- jQuery CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"
integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg=="
crossorigin="anonymous">
</script>
<!-- DocumentServices JavaScript -->
<script src="DocumentServices.DocumentViewer.js"></script>
</head>
<body>
<!-- Host container for the document viewer -->
<div id="txViewer" style="width: 800px; height: 500px;"></div>
<script>
var clientID = "";
var clientSecret = "";
var serviceURL = "https://trial.dsserver.io";
// initialize DocumentViewer
DocumentServices.DocumentViewer.setUserNames(["user1"]);
DocumentServices.DocumentViewer.setShowThumbnailPane(true);
DocumentServices.DocumentViewer.init(clientID, clientSecret, serviceURL, "txViewer");
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment