Mercurial > repos > jay > gaiac_precision
comparison gaiac_sensor_performance_evaluation/test-data/testout.html @ 0:287d6cc86582 draft
planemo upload for repository https://github.com/jaidevjoshi83/gaiac.git commit c29a769ed165f313a6410925be24f776652a9663-dirty
| author | jay |
|---|---|
| date | Thu, 15 May 2025 14:45:45 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:287d6cc86582 |
|---|---|
| 1 | |
| 2 <head> | |
| 3 <meta charset="utf-8"> | |
| 4 <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 5 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> | |
| 6 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
| 7 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | |
| 8 </head> | |
| 9 | |
| 10 <div id="docx"> | |
| 11 <h3> Summary Table </h3> | |
| 12 <div class="WordSection1"> | |
| 13 <table table class="table table-striped"> | |
| 14 <thead> | |
| 15 <tr> | |
| 16 <th>Intercept</th> | |
| 17 <th>Slope</th> | |
| 18 <th>r</th> | |
| 19 <th>R Square</th> | |
| 20 <th>RMSE</th> | |
| 21 <th>NRMSE</th> | |
| 22 <th>Bias</th> | |
| 23 </tr> | |
| 24 <thead> | |
| 25 <tr> | |
| 26 <td>-0.0±0.0</td> | |
| 27 <td>1.0±0.0</td> | |
| 28 <td>1.0</td> | |
| 29 <td>1.0</td> | |
| 30 <td>0.0</td> | |
| 31 <td>0.0</td> | |
| 32 <td>0.0</td> | |
| 33 <tr> | |
| 34 <tr> | |
| 35 <td>-10.39±5.32</td> | |
| 36 <td>1.89±0.18</td> | |
| 37 <td>0.64</td> | |
| 38 <td>0.41</td> | |
| 39 <td>275.84</td> | |
| 40 <td>606.85</td> | |
| 41 <td>55.21</td> | |
| 42 <tr> | |
| 43 | |
| 44 </table> | |
| 45 </div> | |
| 46 </div> | |
| 47 | |
| 48 <button id="export">Export</button> Click to open table in Microsoft Word | |
| 49 | |
| 50 <script type="text/javascript"> | |
| 51 /* HTML to Microsoft Word Export Demo | |
| 52 * This code demonstrates how to export an html element to Microsoft Word | |
| 53 * with CSS styles to set page orientation and paper size. | |
| 54 * Tested with Word 2010, 2013 and FireFox, Chrome, Opera, IE10-11 | |
| 55 * Fails in legacy browsers (IE<10) that lack window.Blob object | |
| 56 */ | |
| 57 window.export.onclick = function() { | |
| 58 | |
| 59 if (!window.Blob) { | |
| 60 alert('Your legacy browser does not support this action.'); | |
| 61 return; | |
| 62 } | |
| 63 | |
| 64 var html, link, blob, url, css; | |
| 65 | |
| 66 // EU A4 use: size: 841.95pt 595.35pt; | |
| 67 // US Letter use: size:11.0in 8.5in; | |
| 68 | |
| 69 css = ( | |
| 70 '<style>' + | |
| 71 '@page WordSection1{size: 841.95pt 595.35pt;mso-page-orientation: landscape;}' + | |
| 72 'div.WordSection1 {page: WordSection1;}' + | |
| 73 'table{border-collapse:collapse;}td{border:1px gray solid;width:5em;padding:2px;}'+ | |
| 74 '</style>' | |
| 75 ); | |
| 76 | |
| 77 html = window.docx.innerHTML; | |
| 78 blob = new Blob(['', css + html], { | |
| 79 type: 'application/msword' | |
| 80 }); | |
| 81 url = URL.createObjectURL(blob); | |
| 82 link = document.createElement('A'); | |
| 83 link.href = url; | |
| 84 // Set default file name. | |
| 85 // Word will append file extension - do not add an extension here. | |
| 86 link.download = 'Document'; | |
| 87 document.body.appendChild(link); | |
| 88 if (navigator.msSaveOrOpenBlob ) navigator.msSaveOrOpenBlob( blob, 'Document.doc'); // IE10-11 | |
| 89 else link.click(); // other browsers | |
| 90 document.body.removeChild(link); | |
| 91 }; | |
| 92 | |
| 93 </script> | |
| 94 | |
| 95 <style type="text/css"> | |
| 96 | |
| 97 table { | |
| 98 border-collapse: collapse; | |
| 99 } | |
| 100 | |
| 101 td { | |
| 102 border: 1px gray solid; | |
| 103 padding: 4px; | |
| 104 width: 5em; | |
| 105 } | |
| 106 </style> | |
| 107 |
