Eve-Reactions-Calculator/views/hyb.hbs

81 lines
1.9 KiB
Handlebars
Raw Permalink Normal View History

<script>
$(document).ready(function() {
$('#tab').DataTable( {
searching: false,
info: false,
paging: false,
columnsDefs: [
null,
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
null
]
} );
$(".link-row").click(function() {
window.location = $(this).data("href");
});
});
</script>
2017-11-16 20:13:36 +00:00
<div class="container">
<div class="row mt-4">
<table class="table table-sm table-bordered text-center">
<thead>
<th>In Method</th>
<th>Out Method</th>
<th>Reactions</th>
<th>Facility</th>
<th>Rig</th>
<th>Space</th>
<th>System</th>
<th>IndyTax</th>
<th>Build Time</th>
</thead>
<tbody>
<tr class="">
<td>{{sett.input}}</td>
<td>{{sett.output}}</td>
<td>Level {{sett.skill}}</td>
<td>{{sett.facility}} Refinery</td>
<td>T{{sett.rig}} Rig</td>
<td>{{sett.space}}sec</td>
<td>{{sett.system}}</td>
<td>{{sett.indyTax}}</td>
<td>{{sett.duration}} Minutes</td>
</tr>
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="card w-100">
<div class="card-header bg-info text-white text-center w-100">
Hybrid Reactions
</div>
<table width="100%" id="tab" class="table table-bordered text-center">
<thead>
<th>Reaction</th>
<th>Inputs</th>
<th>Tax</th>
<th>Output</th>
<th>Profit</th>
<th>% prof.</th>
</thead>
<tbody>
{{#htab}}
<tr class="text-white {{#if pos}}bg-success{{/if}}{{#if neg}}bg-danger{{/if}} link-row" data-href='/hybrid/{{id}}'>
<td>{{name}}</td>
<td class="isk">{{i}}</td>
<td class="isk">{{tax}}</td>
<td class="isk">{{o}}</td>
<td class="isk">{{prof}}</td>
<td>{{per}}</td>
</tr>
{{/htab}}
</tbody>
</table>
</div>
2017-11-16 20:13:36 +00:00
</div>
</div>