Files
factorio-clusterio/static/index.html
T
David Roberts bdf4225dec Clean up web interface storage tab.
- Use diffing algorithm so you can select text and images.
	- This uses textcontent, plugs a vulnerability where you could inject arbitrary javascript if you could upload a modded item with html in the name, eg, "iron-plate<img src=\"\" onerror=\"console.log('hi')\">".
- Fall back to transparent png if item image not found.
	- This stops the flashing box when the image does not exist.
- (internal) Simplify `sortByKey(array, key)`.
2017-08-29 13:25:15 -07:00

19 lines
438 B
HTML

<!doctype HTML>
<head>
<%- include("head.html") %>
<script src="storage.js"></script>
</head>
<body>
<%- include("sidebar.html") %>
<div id="body">
<div id="storage">
<h2>Storage</h2>
<input type="text" placeholder="search" id="search"></input>
<div id="contents">
<table><tbody><!-- populated by js --></tbody></table>
</div>
<canvas id="contentGraph" width="200" height="200"></canvas>
</div>
</div>
</body>