|
15 | 15 | } |
16 | 16 | </style> |
17 | 17 | <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css"> |
18 | | -
|
19 | 18 | </head> |
20 | 19 | <body> |
21 | 20 |
|
|
30 | 29 | </div> |
31 | 30 | <button type="submit" class="btn btn-primary" data-ng-click="vm.encode()">Encode!</button> |
32 | 31 | |
33 | | - <input id="display-compressed" type="checkbox" class="form-control" data-ng-model="vm.displayCompressed"> |
34 | | - <label for="display-compressed">Display Compressed Bytes</label> |
| 32 | + <span data-ng-if="vm.activeTab == 'compress64'"> |
| 33 | + <input id="display-compressed" type="checkbox" class="form-control" data-ng-model="vm.displayCompressed"> |
| 34 | + <label for="display-compressed">Display Compressed Bytes</label> |
| 35 | + </span> |
35 | 36 | </form> |
36 | 37 | </div> |
37 | 38 | <br> |
38 | 39 | <br> |
39 | | - <hr> |
40 | 40 | <br> |
41 | | - <div class="col-md-12"> |
42 | | - <table class="table table-condensed"> |
43 | | - <thead> |
44 | | - <tr> |
45 | | - <th>Source</th> |
46 | | - <th data-ng-show="vm.displayCompressed">Compressed</th> |
47 | | - <th data-ng-show="vm.displayCompressed">Compressed [Bytes]</th> |
48 | | - <th>Compressed64</th> |
49 | | - <th>Decompressed</th> |
50 | | - <th>Decompressed64</th> |
51 | | - </tr> |
52 | | - </thead> |
53 | | - <tbody> |
54 | | - <tr data-ng-repeat="row in vm.results | orderBy:'$index':true"> |
55 | | - <td data-ng-bind="row.input"></td> |
56 | | - <td data-ng-show="vm.displayCompressed" ng-class="{warning: row.compressed!=row.php.compressed}"> |
57 | | - <div data-ng-bind="row.compressed"></div> |
58 | | - <div data-ng-bind="row.php.compressed"></div> |
59 | | - </td> |
60 | | - <td data-ng-show="vm.displayCompressed" ng-class="{warning: row.compressedBytesString!=row.php.compressedBytesString}"> |
61 | | - <div data-ng-bind="row.compressedBytesString"></div> |
62 | | - <div data-ng-bind="row.php.compressedBytesString"></div> |
63 | | - </td> |
64 | | - <td ng-class="{warning: row.compressed64!=row.php.compressed64}"> |
65 | | - <div data-ng-bind="row.compressed64"></div> |
66 | | - <div data-ng-bind="row.php.compressed64"></div> |
67 | | - </td> |
68 | | - <td ng-class="{warning: row.decompressed!=row.php.decompressed}"> |
69 | | - <div data-ng-bind="row.decompressed"></div> |
70 | | - <div data-ng-bind="row.php.decompressed"></div> |
71 | | - </td> |
72 | | - <td ng-class="{warning: row.decompressed64!=row.php.decompressed64}"> |
73 | | - <div data-ng-bind="row.decompressed64"></div> |
74 | | - <div data-ng-bind="row.php.decompressed64"></div> |
75 | | - </td> |
76 | | - </tr> |
77 | | - </tbody> |
78 | | - </table> |
| 41 | + <ul class="nav nav-tabs"> |
| 42 | + <li data-ng-class="{active: (vm.activeTab == 'compress64')}"><a href data-ng-click="vm.activeTab = 'compress64'">Compressed64</a></li> |
| 43 | + <li data-ng-class="{active: (vm.activeTab == 'utf16')}"><a href data-ng-click="vm.activeTab = 'utf16'">UTF-16</a></li> |
| 44 | + </ul> |
| 45 | + <br> |
| 46 | + <div data-ng-if="vm.activeTab == 'compress64'"> |
| 47 | + <div class="col-md-12"> |
| 48 | + <table class="table table-condensed"> |
| 49 | + <thead> |
| 50 | + <tr> |
| 51 | + <th>Source</th> |
| 52 | + <th data-ng-show="vm.displayCompressed">Compressed</th> |
| 53 | + <th data-ng-show="vm.displayCompressed">Compressed [Bytes]</th> |
| 54 | + <th>Compressed64</th> |
| 55 | + <th>Decompressed</th> |
| 56 | + <th>Decompressed64</th> |
| 57 | + </tr> |
| 58 | + </thead> |
| 59 | + <tbody> |
| 60 | + <tr data-ng-repeat="row in vm.results | orderBy:'$index':true"> |
| 61 | + <td data-ng-bind="row.input"></td> |
| 62 | + <td data-ng-show="vm.displayCompressed" ng-class="{warning: row.compressed!=row.php.compressed}"> |
| 63 | + <div data-ng-bind="row.compressed"></div> |
| 64 | + <div data-ng-bind="row.php.compressed"></div> |
| 65 | + </td> |
| 66 | + <td data-ng-show="vm.displayCompressed" ng-class="{warning: row.compressedBytesString!=row.php.compressedBytesString}"> |
| 67 | + <div data-ng-bind="row.compressedBytesString"></div> |
| 68 | + <div data-ng-bind="row.php.compressedBytesString"></div> |
| 69 | + </td> |
| 70 | + <td ng-class="{warning: row.compressed64!=row.php.compressed64}"> |
| 71 | + <div data-ng-bind="row.compressed64"></div> |
| 72 | + <div data-ng-bind="row.php.compressed64"></div> |
| 73 | + </td> |
| 74 | + <td ng-class="{warning: row.decompressed!=row.php.decompressed}"> |
| 75 | + <div data-ng-bind="row.decompressed"></div> |
| 76 | + <div data-ng-bind="row.php.decompressed"></div> |
| 77 | + </td> |
| 78 | + <td ng-class="{warning: row.decompressed64!=row.php.decompressed64}"> |
| 79 | + <div data-ng-bind="row.decompressed64"></div> |
| 80 | + <div data-ng-bind="row.php.decompressed64"></div> |
| 81 | + </td> |
| 82 | + </tr> |
| 83 | + </tbody> |
| 84 | + </table> |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + <div data-ng-if="vm.activeTab == 'utf16'"> |
| 88 | + <div class="col-md-12"> |
| 89 | + <table class="table table-condensed"> |
| 90 | + <thead> |
| 91 | + <tr> |
| 92 | + <th>Source</th> |
| 93 | + <th>Compressed [Bytes]</th> |
| 94 | + <th>Decompressed</th> |
| 95 | + </tr> |
| 96 | + </thead> |
| 97 | + <tbody> |
| 98 | + <tr data-ng-repeat="row in vm.results16 | orderBy:'$index':true"> |
| 99 | + <td data-ng-bind="row.input"></td> |
| 100 | + <td ng-class="{warning: row.compressedBytesString!=row.php.compressedBytesString}"> |
| 101 | + <div data-ng-bind="row.compressedBytesString"></div> |
| 102 | + <div data-ng-bind="row.php.compressedBytesString"></div> |
| 103 | + </td> |
| 104 | + <td ng-class="{warning: row.decompressed!=row.php.decompressed}"> |
| 105 | + <div data-ng-bind="row.decompressed"></div> |
| 106 | + <div data-ng-bind="row.php.decompressed"></div> |
| 107 | + </td> |
| 108 | + </tr> |
| 109 | + </tbody> |
| 110 | + </table> |
| 111 | + </div> |
79 | 112 | </div> |
80 | 113 | </div> |
81 | 114 | </div> |
|
0 commit comments