OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Inspectable pages</title> | 3 <title>Inspectable pages</title> |
4 <style> | 4 <style> |
5 body { | 5 body { |
6 background-color: rgb(245, 245, 245); | 6 background-color: rgb(245, 245, 245); |
7 font-family: Helvetica, Arial, sans-serif; | 7 font-family: Helvetica, Arial, sans-serif; |
8 text-shadow: rgba(255, 255, 255, 0.496094) 0px 1px 0px; | 8 text-shadow: rgba(255, 255, 255, 0.496094) 0px 1px 0px; |
9 } | 9 } |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 white-space: nowrap; | 75 white-space: nowrap; |
76 overflow: hidden; | 76 overflow: hidden; |
77 background: no-repeat 0; | 77 background: no-repeat 0; |
78 background-size: 16px; | 78 background-size: 16px; |
79 padding: 2px 0px 0px 20px; | 79 padding: 2px 0px 0px 20px; |
80 margin: 4px 0px 0px 4px; | 80 margin: 4px 0px 0px 4px; |
81 } | 81 } |
82 </style> | 82 </style> |
83 | 83 |
84 <script> | 84 <script> |
| 85 |
85 function onLoad() { | 86 function onLoad() { |
86 var tabsListRequest = new XMLHttpRequest(); | 87 var tabsListRequest = new XMLHttpRequest(); |
87 tabsListRequest.open("GET", "/json", true); | 88 var jsonListPath = "/json/list"; |
| 89 if (window.location.search) |
| 90 jsonListPath += "?" + window.location.search; |
| 91 tabsListRequest.open("GET", jsonListPath, true); |
88 tabsListRequest.onreadystatechange = onReady; | 92 tabsListRequest.onreadystatechange = onReady; |
89 tabsListRequest.send(); | 93 tabsListRequest.send(); |
90 } | 94 } |
91 | 95 |
92 function onReady() { | 96 function onReady() { |
93 if(this.readyState == 4 && this.status == 200) { | 97 if(this.readyState == 4 && this.status == 200) { |
94 if(this.response != null) | 98 if(this.response != null) |
95 var responseJSON = JSON.parse(this.response); | 99 var responseJSON = JSON.parse(this.response); |
96 for (var i = 0; i < responseJSON.length; ++i) | 100 for (var i = 0; i < responseJSON.length; ++i) |
97 appendItem(responseJSON[i]); | 101 appendItem(responseJSON[i]); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 137 } |
134 </script> | 138 </script> |
135 </head> | 139 </head> |
136 <body onload='onLoad()'> | 140 <body onload='onLoad()'> |
137 <div id='caption'>Inspectable pages</div> | 141 <div id='caption'>Inspectable pages</div> |
138 <div id='items'> | 142 <div id='items'> |
139 </div> | 143 </div> |
140 <hr> | 144 <hr> |
141 </body> | 145 </body> |
142 </html> | 146 </html> |
OLD | NEW |