123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <!-- Licensed Materials - Property of IBM
- BI and PM: Mobile
- (C) Copyright IBM Corp. 2013
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <html>
- <head>
- <script type="text/javascript" src="../icd/cwApi.js"></script>
- <script type="text/javascript" src="com.ibm.mobile.client/mobile_cw.js"></script>
- <script type="text/javascript">
-
- var cognosWorkspaceAPI = null;
-
- function loadWorkspace(sGatewayUrl, sWorkspaceId) {
- var oProperties = {
- baseurl: sGatewayUrl,
- workspaceId: sWorkspaceId,
- api: "cwcontainer",
- inline: true,
- container: "mobile",
- listenTo: [
- ["contextmenu", "onRender", cbfOnContextMenu],
- ["workspace", "onTabChanged", cbfOnTabChanged],
- ["workspace", "onOpenView", cbfOnOpenView],
- ["workspace", "onLoad", cbfWorkspaceOnLoad],
- ["workspace", "onError", cbfWorkspaceOnError]
- ]
- };
-
- if ( cognosWorkspaceAPI === null ) {
- cognosWorkspaceAPI = new cwApi(oProperties, "cwcontainer", cbfOnLoad);
- } else {
- cognosWorkspaceAPI.load( oProperties, cbfOnLoad );
- }
- }
-
- function unloadWorkspace() {
- if ( cognosWorkspaceAPI !== null ) {
- cognosWorkspaceAPI.unload();
- }
- }
-
- function setViewport (w, h, s) {
- var str = 'width=' + (w == 0 ? 'device-width' : w) + ', height=' + (h == 0 ? 'device-height' : h);
- if (s > 0) {
- var dscale = Math.floor(s * 10000) / 10000;
- if (dscale == 0) {
- dscale = 0.1;
- }
- str = str + ', initial-scale=' + dscale.toFixed(4);
- }
- str += " ,minimum-scale=0.25, maximum-scale=10, user-scalable=yes";
-
- var vp = document.querySelector('meta[name=viewport]');
- if (vp) {
- vp.setAttribute('content', str);
- } else {
- vp = document.createElement('meta');
- vp.name = 'viewport';
- vp.content = str;
- document.getElementsByTagName('head')[0].appendChild(vp);
- }
- }
-
- function setContainerStyle(styleStr) {
- var container = document.getElementById("cwcontainer");
- container.setAttribute('style', styleStr);
- }
-
- </script>
-
- <title> </title>
- </head>
- <body onload="bodyOnLoad()">
- <div id="cwcontainer" style="display:block;width:100%;height:100%"> </div>
- </body>
- </html>
|