not really known
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.

97 lines
4.4 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>QR Code</title>
  6. <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover"/>
  7. <link rel="prefetch" type="application/l10n" href="locale.ini">
  8. <link rel="stylesheet" media="not screen and (device-width: 1200px) and (device-height: 900px)"
  9. href="lib/sugar-web/graphics/css/sugar-96dpi.css">
  10. <link rel="stylesheet" media="screen and (device-width: 1200px) and (device-height: 900px)"
  11. href="lib/sugar-web/graphics/css/sugar-200dpi.css">
  12. <link rel="stylesheet" href="css/activity.css">
  13. <link rel="stylesheet" href="css/libnotify.css">
  14. <script data-main="js/loader" src="lib/require.js"></script>
  15. <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
  16. <script type="text/javascript" src="js/grid.js"></script>
  17. <script type="text/javascript" src="js/version.js"></script>
  18. <script type="text/javascript" src="js/detector.js"></script>
  19. <script type="text/javascript" src="js/formatinf.js"></script>
  20. <script type="text/javascript" src="js/errorlevel.js"></script>
  21. <script type="text/javascript" src="js/bitmat.js"></script>
  22. <script type="text/javascript" src="js/datablock.js"></script>
  23. <script type="text/javascript" src="js/bmparser.js"></script>
  24. <script type="text/javascript" src="js/datamask.js"></script>
  25. <script type="text/javascript" src="js/rsdecoder.js"></script>
  26. <script type="text/javascript" src="js/gf256poly.js"></script>
  27. <script type="text/javascript" src="js/gf256.js"></script>
  28. <script type="text/javascript" src="js/decoder.js"></script>
  29. <script type="text/javascript" src="js/qrcode.js"></script>
  30. <script type="text/javascript" src="js/findpat.js"></script>
  31. <script type="text/javascript" src="js/alignpat.js"></script>
  32. <script type="text/javascript" src="js/databr.js"></script>
  33. <script type="text/javascript" src="js/webqr.js"></script>
  34. <script type="text/javascript" src="js/qrcodegen.js"></script>
  35. <script type="text/javascript" src="../../cordova.js"></script>
  36. <script>if (window.module) module = window.module;</script>
  37. </head>
  38. <body>
  39. <div id="main-toolbar" class="toolbar">
  40. <button class="toolbutton" id="activity-button" title="QR Code"></button>
  41. <!-- Add more buttons here -->
  42. <div class="splitbar"></div>
  43. <button class="toolbutton" id="photo-button" title="Photo"></button>
  44. <div class="splitbar"></div>
  45. <button class="toolbutton" id="png-button" title="Export to PNG"></button>
  46. <!-- Buttons with class="pull-right" will be right aligned -->
  47. <button class="toolbutton pull-right" id="stop-button" title="Stop"></button>
  48. <button class="toolbutton pull-right" id="fullscreen-button" title="Fullscreen"></button>
  49. </div>
  50. <!-- The content of your activity goes inside the canvas -->
  51. <div id="canvas">
  52. <div id="input-box">
  53. <select id="qrtextdropdown">
  54. </select>
  55. <input id="user-text" name="userText" type="text"></input>
  56. <button id="erasetext-button" class="user-text-cancel" title="Erase Input"></button>
  57. <button id="generate-button" class="toolbutton" title="Generate"></button>
  58. <br>
  59. <hr>
  60. </div>
  61. <div id="outdiv">
  62. </div>
  63. <canvas id="qr-canvas"></canvas>
  64. <div id="qr-code"></div>
  65. </div>
  66. <div id="loading-spinner">
  67. <div style="text-align: center;">
  68. <svg id="loading-svg" version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
  69. width="40px" height="40px" viewBox="0 0 40 40" enable-background="new 0 0 40 40" xml:space="preserve">
  70. <path opacity="0.2" fill="#000" d="M20.201,5.169c-8.254,0-14.946,6.692-14.946,14.946c0,8.255,6.692,14.946,14.946,14.946
  71. s14.946-6.691,14.946-14.946C35.146,11.861,28.455,5.169,20.201,5.169z M20.201,31.749c-6.425,0-11.634-5.208-11.634-11.634
  72. c0-6.425,5.209-11.634,11.634-11.634c6.425,0,11.633,5.209,11.633,11.634C31.834,26.541,26.626,31.749,20.201,31.749z"/>
  73. <path fill="#000" d="M26.013,10.047l1.654-2.866c-2.198-1.272-4.743-2.012-7.466-2.012h0v3.312h0
  74. C22.32,8.481,24.301,9.057,26.013,10.047z">
  75. <animateTransform attributeType="xml"
  76. attributeName="transform"
  77. type="rotate"
  78. from="0 20 20"
  79. to="360 20 20"
  80. dur="1s"
  81. repeatCount="indefinite"/>
  82. </path>
  83. </svg>
  84. <br/>
  85. </div>
  86. </div>
  87. <button class="toolbutton" id="unfullscreen-button" title="Unfullscreen"></button>
  88. <button class="toolbutton" id="switchcamera-button" title="Switch camera"></button>
  89. <button class="toolbutton" id="close-button" title="Close"></button>
  90. </body>
  91. </html>