You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

embed-two-uis.html 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="chrome=1" />
  6. <title>com.vaadin.tests.components.embedded.EmbeddedPdf</title>
  7. <style type="text/css">
  8. html,body {
  9. height: 100%;
  10. margin: 0;
  11. }
  12. </style>
  13. <link rel="shortcut icon" type="image/vnd.microsoft.icon"
  14. href="/VAADIN/themes/reindeer/favicon.ico" />
  15. <link rel="icon" type="image/vnd.microsoft.icon"
  16. href="/VAADIN/themes/reindeer/favicon.ico" />
  17. <script type="text/javascript" src="/VAADIN/vaadinBootstrap.js"></script>
  18. </head>
  19. <body scroll="auto" class=" v-generated-body">
  20. <span>Embed 1 (AbsoluteLayoutClipping)</span>
  21. <div style="width: 300px; height: 300px; border: 1px solid red;"
  22. id="app1" class=" v-app v-app-VaadinServletSession">
  23. <div class=" v-app-loading"></div>
  24. <noscript>You have to enable javascript in your browser to
  25. use an application built with Vaadin.</noscript>
  26. </div>
  27. <iframe tabindex="-1" id="__gwt_historyFrame"
  28. style="position: absolute; width: 0; height: 0; border: 0; overflow: hidden"
  29. src="javascript:false"></iframe>
  30. <script type="text/javascript">
  31. //
  32. if (!window.vaadin)
  33. alert("Failed to load the bootstrap javascript: /VAADIN/vaadinBootstrap.js");
  34. vaadin
  35. .setDefaults({
  36. "appUri" : "/",
  37. "authErrMsg" : {
  38. "caption" : "Authentication problem",
  39. "message" : "Take note of any unsaved data, and <u>click here<\/u>tagtagtag to continue."
  40. },
  41. "comErrMsg" : {
  42. "caption" : "Communication problem",
  43. "message" : "Take note of any unsaved data, and _$t_$tag_$ere<\k here_$t_$tag_$t_$tag to continue."
  44. },
  45. "debug" : true,
  46. "heartbeatInterval" : 300,
  47. "standalone" : true,
  48. "widgetsetBase" : "/VAADIN/widgetsets/"
  49. });
  50. </script>
  51. </script>
  52. <script type="text/javascript">
  53. //
  54. vaadin.initApplication("app1", {
  55. "appUri" : "/embed1",
  56. "initialParams" : {},
  57. "initialPath" : "",
  58. "themeUri" : "/VAADIN/themes/reindeer",
  59. "versionInfo" : {
  60. "vaadinVersion" : "9.9.9.INTERNAL-DEBUG-BUILD"
  61. },
  62. "widgetset" : "com.vaadin.DefaultWidgetSet"
  63. });
  64. //
  65. </script>
  66. <span>Embed 2 (MarginsInLabels)</span>
  67. <div style="width: 300px; height: 300px; border: 1px solid blue;"
  68. id="app2" class=" v-app v-app-VaadinServletSession">
  69. <div class="v-app-loading"></div>
  70. <noscript>You have to enable javascript in your browser to
  71. use an application built with Vaadin.</noscript>
  72. </div>
  73. <iframe tabindex="-1" id="__gwt_historyFrame"
  74. style="position: absolute; width: 0; height: 0; border: 0; overflow: hidden"
  75. src="javascript:false"></iframe>
  76. <script type="text/javascript">
  77. vaadin.initApplication("app2", {
  78. "appUri" : "/embed2",
  79. "initialParams" : {},
  80. "initialPath" : "/",
  81. "themeUri" : "/VAADIN/themes/reindeer",
  82. "versionInfo" : {
  83. "vaadinVersion" : "9.9.9.INTERNAL-DEBUG-BUILD"
  84. },
  85. "widgetset" : "com.vaadin.DefaultWidgetSet"
  86. });
  87. //
  88. </script>
  89. </body>
  90. </html>