You can nor sort the tables, yay
|
@ -22,7 +22,7 @@ app.set('views', path.join(__dirname, 'views'));
|
|||
app.set('view engine', 'hbs');
|
||||
|
||||
// uncomment after placing your favicon in /public
|
||||
//app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
|
||||
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
|
||||
app.use(logger('dev'));
|
||||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.urlencoded({ extended: false }));
|
||||
|
|
|
@ -7,12 +7,21 @@ var items = require('./items.json');
|
|||
var systems = require('./systems.json');
|
||||
var marketUrl = "https://market.fuzzwork.co.uk/aggregates/?region=60003760&types=";
|
||||
var testMarketUrl = "https://market.fuzzwork.co.uk/aggregates/?region=60003760&types=34,35,36";
|
||||
var cron = require('node-cron');
|
||||
|
||||
//genItems(); //generate base item collection
|
||||
|
||||
addDaily();
|
||||
cron.schedule('*/30 * * * *', function() {
|
||||
console.log("Updating Items!");
|
||||
newUpdateItems();
|
||||
console.log("Updating Cost Index!");
|
||||
updateCostIndex();
|
||||
});
|
||||
|
||||
cron.schedule('10 12 * * *', function() {
|
||||
console.log("Adding daily price!");
|
||||
addDaily();
|
||||
});
|
||||
|
||||
function getItemID(name) {
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
|
@ -73,7 +82,7 @@ function updateCostIndex() {
|
|||
db.collection('systems').bulkWrite(sys, { "ordered": true, "w": 1 }, function(err, result) {
|
||||
if (err) throw err;
|
||||
console.log(result.modifiedCount);
|
||||
console.log("success!!");
|
||||
console.log("Cost Index UPDATED!");
|
||||
db.close();
|
||||
});
|
||||
}
|
||||
|
@ -130,7 +139,7 @@ function genItems() {
|
|||
} else {
|
||||
db.collection('items').insertMany(itms, function(err, result) {
|
||||
if (err) throw err;
|
||||
console.log("success!!");
|
||||
console.log("Iems Generated!!");
|
||||
db.close();
|
||||
});
|
||||
}
|
||||
|
@ -174,7 +183,6 @@ function newUpdateItems() {
|
|||
}
|
||||
|
||||
function updateDB(itms) {
|
||||
console.log("UPDATING DB");
|
||||
mongo.connect(svurl, function(err, db) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
|
@ -182,7 +190,7 @@ function updateDB(itms) {
|
|||
db.collection('items').bulkWrite(itms, { "ordered": true, "w": 1 }, function(err, result) {
|
||||
if (err) throw err;
|
||||
console.log(result.modifiedCount);
|
||||
console.log("success!!");
|
||||
console.log("Items Updated!!");
|
||||
db.close();
|
||||
});
|
||||
}
|
||||
|
@ -223,7 +231,7 @@ function addDaily() { //need to re-write this
|
|||
console.log(err);
|
||||
} else {
|
||||
db.collection('history').insert(insert, function(err, result) {
|
||||
console.log("success!!");
|
||||
console.log("Daily Added!!");
|
||||
db.close();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -320,6 +320,11 @@
|
|||
"require_optional": "1.0.1"
|
||||
}
|
||||
},
|
||||
"node-cron": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/node-cron/-/node-cron-1.2.1.tgz",
|
||||
"integrity": "sha1-jJC8XccjpWKJsHhmVatKHEy2A2g="
|
||||
},
|
||||
"oauth-sign": {
|
||||
"version": "0.8.2",
|
||||
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz",
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
"async": "^2.6.0",
|
||||
"fs": "0.0.1-security",
|
||||
"mongodb": "^2.2.33",
|
||||
"node-cron": "^1.2.1",
|
||||
"request": "^2.83.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13074,10 +13074,6 @@
|
|||
"solarSystemID": 30003269,
|
||||
"solarSystemName": "F67E-Q"
|
||||
},
|
||||
{
|
||||
"solarSystemID": 30003270,
|
||||
"solarSystemName": 0
|
||||
},
|
||||
{
|
||||
"solarSystemID": 30003271,
|
||||
"solarSystemName": "Poitot"
|
||||
|
|
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 8.0 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 30 KiB |
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
|
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 1.1 KiB |
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"name": "App",
|
||||
"icons": [
|
||||
{
|
||||
"src": "\/android-icon-36x36.png",
|
||||
"sizes": "36x36",
|
||||
"type": "image\/png",
|
||||
"density": "0.75"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-48x48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image\/png",
|
||||
"density": "1.0"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-72x72.png",
|
||||
"sizes": "72x72",
|
||||
"type": "image\/png",
|
||||
"density": "1.5"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-96x96.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image\/png",
|
||||
"density": "2.0"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image\/png",
|
||||
"density": "3.0"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image\/png",
|
||||
"density": "4.0"
|
||||
}
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 7.1 KiB |
|
@ -18,3 +18,11 @@ a {
|
|||
/* Vertically center the text there */
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.isk::after{
|
||||
content: " ISK";
|
||||
}
|
||||
|
||||
.col-sm-12{
|
||||
padding: 0 !important;
|
||||
}
|
|
@ -11,7 +11,7 @@ var svurl = "mongodb://localhost:27017/eve-reactor";
|
|||
|
||||
function getCostIndex(sys, name) {
|
||||
for (let i = 0; i < sys.length; i++) {
|
||||
if (sys[i].name.toUpperCase() === name.toUpperCase()) {
|
||||
if (sys[i].name.toLowerCase() === name.toLowerCase()) {
|
||||
return sys[i].index;
|
||||
}
|
||||
}
|
||||
|
@ -65,15 +65,15 @@ router.get('/', function(req, res, next) {
|
|||
//set cookies if not found
|
||||
var ck = req.cookies;
|
||||
//console.log(ck);
|
||||
if (!ck.input) { res.cookie('input', 'buy'); var imeth = "buy"; }
|
||||
if (!ck.output) { res.cookie('output', 'sell'); var ometh = "sell"; }
|
||||
if (!ck.skill) { res.cookie('skill', 5); var skill = 5; }
|
||||
if (!ck.facility) { res.cookie('facility', 'large'); var facility = "large"; }
|
||||
if (!ck.rig) { res.cookie('rig', 1); var rig = 1; var rige = true; }
|
||||
if (!ck.space) { res.cookie('space', 'null'); var space = "null"; }
|
||||
if (!ck.indyTax) { res.cookie('indyTax', 0); var indyTax = 0; }
|
||||
if (!ck.duration) { res.cookie('duration', 10080); var duration = 10080; }
|
||||
if (!ck.system) { res.cookie('system', 'Basgerin'); var syst = "Basgerin" }
|
||||
if (!ck.input) { res.cookie('input', 'buy', { maxAge: 31556952000, }); var imeth = "buy"; }
|
||||
if (!ck.output) { res.cookie('output', 'sell', { maxAge: 31556952000, }); var ometh = "sell"; }
|
||||
if (!ck.skill) { res.cookie('skill', 5, { maxAge: 31556952000, }); var skill = 5; }
|
||||
if (!ck.facility) { res.cookie('facility', 'large', { maxAge: 31556952000, }); var facility = "large"; }
|
||||
if (!ck.rig) { res.cookie('rig', 1, { maxAge: 31556952000, }); var rig = 1; var rige = true; }
|
||||
if (!ck.space) { res.cookie('space', 'null', { maxAge: 31556952000, }); var space = "null"; }
|
||||
if (!ck.indyTax) { res.cookie('indyTax', 0, { maxAge: 31556952000, }); var indyTax = 0; }
|
||||
if (!ck.duration) { res.cookie('duration', 10080, { maxAge: 31556952000, }); var duration = 10080; }
|
||||
if (!ck.system) { res.cookie('system', 'Basgerin', { maxAge: 31556952000, }); var syst = "Basgerin" }
|
||||
|
||||
//set internal vars to use cookie values
|
||||
if (ck.input.toLowerCase() === "buy" || ck.input.toLowerCase() === "sell") {
|
||||
|
@ -119,7 +119,12 @@ router.get('/', function(req, res, next) {
|
|||
var duration = 10080;
|
||||
}
|
||||
if (ck.system) {
|
||||
var re = /^[a-zA-Z0-9-]+$/;
|
||||
if (re.test(ck.system)) {
|
||||
var syst = ck.system;
|
||||
} else {
|
||||
var syst = 'Basgerin';
|
||||
}
|
||||
}
|
||||
|
||||
//calc bonus with opts
|
||||
|
@ -325,9 +330,9 @@ router.get('/', function(req, res, next) {
|
|||
"prof": numeral(rout.sell - (tibuy + ttax)).format('0,0.00'),
|
||||
"per": numeral(((rout.sell - (tibuy + ttax)) / rout.sell)).format('0.00%')
|
||||
}
|
||||
if (((rout.sell - tibuy) / rout.sell) > 0) {
|
||||
if (((rout.sell - (tibuy + ttax)) / rout.sell) > 0) {
|
||||
temp.pos = true;
|
||||
} else if (((rout.sell - tibuy) / rout.sell) < 0) {
|
||||
} else if (((rout.sell - (tibuy + ttax)) / rout.sell) < 0) {
|
||||
temp.neg = true;
|
||||
}
|
||||
} else if (imeth === "buy" && ometh === "buy") {
|
||||
|
@ -346,9 +351,9 @@ router.get('/', function(req, res, next) {
|
|||
"prof": numeral(rout.buy - (tibuy + ttax)).format('0,0.00'),
|
||||
"per": numeral(((rout.buy - (tibuy + ttax)) / rout.buy)).format('0.00%')
|
||||
}
|
||||
if (((rout.buy - tibuy) / rout.buy) > 0) {
|
||||
if (((rout.buy - (tibuy + ttax)) / rout.buy) > 0) {
|
||||
temp.pos = true;
|
||||
} else if (((rout.buy - tibuy) / rout.buy) < 0) {
|
||||
} else if (((rout.buy - (tibuy + ttax)) / rout.buy) < 0) {
|
||||
temp.neg = true;
|
||||
}
|
||||
} else if (imeth === "sell" && ometh === "sell") {
|
||||
|
@ -367,9 +372,9 @@ router.get('/', function(req, res, next) {
|
|||
"prof": numeral(rout.sell - (tisell + ttax)).format('0,0.00'),
|
||||
"per": numeral(((rout.sell - (tisell + ttax)) / rout.sell)).format('0.00%')
|
||||
}
|
||||
if (((rout.sell - tisell) / rout.sell) > 0) {
|
||||
if (((rout.sell - (tisell + ttax)) / rout.sell) > 0) {
|
||||
temp.pos = true;
|
||||
} else if (((rout.sell - tisell) / rout.sell) < 0) {
|
||||
} else if (((rout.sell - (tisell + ttax)) / rout.sell) < 0) {
|
||||
temp.neg = true;
|
||||
}
|
||||
} else if (imeth === "sell" && ometh === "buy") {
|
||||
|
@ -388,9 +393,9 @@ router.get('/', function(req, res, next) {
|
|||
"prof": numeral(rout.buy - (tisell + ttax)).format('0,0.00'),
|
||||
"per": numeral(((rout.buy - (tisell + ttax)) / rout.buy)).format('0.00%')
|
||||
}
|
||||
if (((rout.buy - tisell) / rout.buy) > 0) {
|
||||
if (((rout.buy - (tisell + ttax)) / rout.buy) > 0) {
|
||||
temp.pos = true;
|
||||
} else if (((rout.buy - tisell) / rout.buy) < 0) {
|
||||
} else if (((rout.buy - (tisell + ttax)) / rout.buy) < 0) {
|
||||
temp.neg = true;
|
||||
}
|
||||
} else if (ometh === "buy") {
|
||||
|
@ -409,9 +414,9 @@ router.get('/', function(req, res, next) {
|
|||
"prof": numeral(rout.buy - (tibuy + ttax)).format('0,0.00'),
|
||||
"per": numeral(((rout.buy - (tibuy + ttax)) / rout.buy)).format('0.00%')
|
||||
}
|
||||
if (((rout.buy - tibuy) / rout.buy) > 0) {
|
||||
if (((rout.buy - (tibuy + ttax)) / rout.buy) > 0) {
|
||||
temp.pos = true;
|
||||
} else if (((rout.buy - tibuy) / rout.buy) < 0) {
|
||||
} else if (((rout.buy - (tibuy + ttax)) / rout.buy) < 0) {
|
||||
temp.neg = true;
|
||||
}
|
||||
} else if (imeth === "sell") {
|
||||
|
@ -430,9 +435,9 @@ router.get('/', function(req, res, next) {
|
|||
"prof": numeral(rout.sell - (tisell + ttax)).format('0,0.00'),
|
||||
"per": numeral(((rout.sell - (tisell + ttax)) / rout.sell)).format('0.00%')
|
||||
}
|
||||
if (((rout.sell - tisell) / rout.sell) > 0) {
|
||||
if (((rout.sell - (tisell + ttax)) / rout.sell) > 0) {
|
||||
temp.pos = true;
|
||||
} else if (((rout.sell - tisell) / rout.sell) < 0) {
|
||||
} else if (((rout.sell - (tisell + ttax)) / rout.sell) < 0) {
|
||||
temp.neg = true;
|
||||
}
|
||||
} else { //default I BUY / S SELL
|
||||
|
@ -451,9 +456,9 @@ router.get('/', function(req, res, next) {
|
|||
"prof": numeral(rout.sell - (tibuy + ttax)).format('0,0.00'),
|
||||
"per": numeral(((rout.sell - (tibuy + ttax)) / rout.sell)).format('0.00%')
|
||||
}
|
||||
if (((rout.sell - tibuy) / rout.sell) > 0) {
|
||||
if (((rout.sell - (tibuy + ttax)) / rout.sell) > 0) {
|
||||
temp.pos = true;
|
||||
} else if (((rout.sell - tibuy) / rout.sell) < 0) {
|
||||
} else if (((rout.sell - (tibuy + ttax)) / rout.sell) < 0) {
|
||||
temp.neg = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,15 +5,15 @@ var router = express.Router();
|
|||
router.get('/', function(req, res, next) {
|
||||
//set cookies if not found
|
||||
var ck = req.cookies;
|
||||
if (!ck.input) { res.cookie('input', 'buy'); var imeth = "buy"; }
|
||||
if (!ck.output) { res.cookie('output', 'sell'); var ometh = "sell"; }
|
||||
if (!ck.skill) { res.cookie('skill', 5); var skill = 5; }
|
||||
if (!ck.facility) { res.cookie('facility', 'large'); var facility = "large"; }
|
||||
if (!ck.rig) { res.cookie('rig', 1); var rig = 1; var rige = true; }
|
||||
if (!ck.space) { res.cookie('space', 'null'); var space = "null"; }
|
||||
if (!ck.indyTax) { res.cookie('indyTax', 0); var indyTax = 0; }
|
||||
if (!ck.duration) { res.cookie('duration', 10080); var duration = 10080; }
|
||||
if (!ck.system) { res.cookie('system', 'Basgerin'); var syst = "Basgerin" }
|
||||
if (!ck.input) { res.cookie('input', 'buy', { maxAge: 31556952000, }); var imeth = "buy"; }
|
||||
if (!ck.output) { res.cookie('output', 'sell', { maxAge: 31556952000, }); var ometh = "sell"; }
|
||||
if (!ck.skill) { res.cookie('skill', 5, { maxAge: 31556952000, }); var skill = 5; }
|
||||
if (!ck.facility) { res.cookie('facility', 'large', { maxAge: 31556952000, }); var facility = "large"; }
|
||||
if (!ck.rig) { res.cookie('rig', 1, { maxAge: 31556952000, }); var rig = 1; var rige = true; }
|
||||
if (!ck.space) { res.cookie('space', 'null', { maxAge: 31556952000, }); var space = "null"; }
|
||||
if (!ck.indyTax) { res.cookie('indyTax', 0, { maxAge: 31556952000, }); var indyTax = 0; }
|
||||
if (!ck.duration) { res.cookie('duration', 10080, { maxAge: 31556952000, }); var duration = 10080; }
|
||||
if (!ck.system) { res.cookie('system', 'Basgerin', { maxAge: 31556952000, }); var syst = "Basgerin" }
|
||||
//reply
|
||||
res.render('index', { title: 'EVE Reactions Calculator', root: true });
|
||||
});
|
||||
|
|
|
@ -13,47 +13,52 @@ router.get('/set', function(req, res, next) {
|
|||
let ck = req.query;
|
||||
|
||||
if (ck.input.toLowerCase() === "buy" || ck.input.toLowerCase() === "sell") {
|
||||
res.cookie('input', ck.input.toLowerCase());
|
||||
res.cookie('input', ck.input.toLowerCase(), { maxAge: 31556952000});
|
||||
} else {
|
||||
res.cookie('input', 'buy');
|
||||
res.cookie('input', 'buy', { maxAge: 31556952000, });
|
||||
}
|
||||
if (ck.output.toLowerCase() === "buy" || ck.output.toLowerCase() === "sell") {
|
||||
res.cookie('output', ck.output.toLowerCase());
|
||||
res.cookie('output', ck.output.toLowerCase(), { maxAge: 31556952000});
|
||||
} else {
|
||||
res.cookie('output', 'sell');
|
||||
res.cookie('output', 'sell', { maxAge: 31556952000 });
|
||||
}
|
||||
if (parseInt(ck.skill) >= 0 && parseInt(ck.skill) <= 5) {
|
||||
res.cookie('skill', parseInt(ck.skill));
|
||||
res.cookie('skill', parseInt(ck.skill), { maxAge: 31556952000, });
|
||||
} else {
|
||||
res.cookie('skill', 5);
|
||||
res.cookie('skill', 5, { maxAge: 31556952000, });
|
||||
}
|
||||
if (ck.facility.toLowerCase() === "med" || ck.facility.toLowerCase() === "large") {
|
||||
res.cookie('facility', ck.facility.toLowerCase());
|
||||
res.cookie('facility', ck.facility.toLowerCase(), { maxAge: 31556952000, });
|
||||
} else {
|
||||
res.cookie('facility', 'large');
|
||||
res.cookie('facility', 'large', { maxAge: 31556952000, });
|
||||
}
|
||||
if (parseInt(ck.rig) >= 0 && parseInt(ck.rig) <= 2) {
|
||||
res.cookie('rig', parseInt(ck.rig));
|
||||
if (parseInt(ck.rigs) >= 0 && parseInt(ck.rigs) <= 2) {
|
||||
res.cookie('rig', parseInt(ck.rigs), { maxAge: 31556952000, });
|
||||
} else {
|
||||
res.cookie('rig', 1);
|
||||
res.cookie('rig', 1, { maxAge: 31556952000, });
|
||||
}
|
||||
if (ck.space.toLowerCase() === "low" || ck.space.toLowerCase() === "null") {
|
||||
res.cookie('space', ck.space.toLowerCase());
|
||||
res.cookie('space', ck.space.toLowerCase(), { maxAge: 31556952000, });
|
||||
} else {
|
||||
res.cookie('space', 'null');
|
||||
res.cookie('space', 'null', { maxAge: 31556952000, });
|
||||
}
|
||||
if (parseFloat(ck.indyTax) >= 0 && parseFloat(ck.indyTax) <= 50) {
|
||||
res.cookie('indyTax', parseFloat(ck.indyTax));
|
||||
res.cookie('indyTax', parseFloat(ck.indyTax), { maxAge: 31556952000, });
|
||||
} else {
|
||||
res.cookie('indyTax', 0);
|
||||
res.cookie('indyTax', 0, { maxAge: 31556952000, });
|
||||
}
|
||||
if (parseInt(ck.duration) >= 1 && parseInt(ck.duration) <= 43200) {
|
||||
res.cookie('duration', parseInt(ck.duration));
|
||||
res.cookie('duration', parseInt(ck.duration), { maxAge: 31556952000, });
|
||||
} else {
|
||||
res.cookie('duration', 10080);
|
||||
res.cookie('duration', 10080, { maxAge: 31556952000, });
|
||||
}
|
||||
if (ck.system) {
|
||||
res.cookie('system', ck.system);
|
||||
var re = /^[a-zA-Z0-9-]+$/;
|
||||
if (re.test(ck.system)) {
|
||||
res.cookie('system', ck.system, { maxAge: 31556952000, });
|
||||
} else {
|
||||
res.cookie('system', 'Basgerin', { maxAge: 31556952000, });
|
||||
}
|
||||
}
|
||||
|
||||
//reply
|
||||
|
|
|
@ -1,3 +1,49 @@
|
|||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#stab').DataTable( {
|
||||
searching: false,
|
||||
info: false,
|
||||
paging: false,
|
||||
columnsDefs: [
|
||||
null,
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
null
|
||||
]
|
||||
} );
|
||||
$('#ctab').DataTable( {
|
||||
searching: false,
|
||||
info: false,
|
||||
paging: false,
|
||||
columnsDefs: [
|
||||
null,
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
null
|
||||
]
|
||||
} );
|
||||
$('#chtab').DataTable( {
|
||||
searching: false,
|
||||
info: false,
|
||||
paging: false,
|
||||
columnsDefs: [
|
||||
null,
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
{ "sType": "numeric" },
|
||||
null
|
||||
]
|
||||
} );
|
||||
});
|
||||
</script>
|
||||
<div class="container">
|
||||
<div class="row mt-4">
|
||||
<table class="table table-sm table-bordered text-center">
|
||||
|
@ -28,74 +74,72 @@
|
|||
</table>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<table class="table table-bordered text-center">
|
||||
<h5 class="bg-info text-white text-center w-100 p-2">Simple Reactions</h5>
|
||||
<table width="100%" id="stab" 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>
|
||||
<tr>
|
||||
<td class="bg-info text-white text-center" id="simple" colspan="7">Simple Reactions</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">Reaction</th>
|
||||
<th scope="col">Inputs</th>
|
||||
<th scope="col">Tax</th>
|
||||
<th scope="col">Output</th>
|
||||
<th scope="col">Profit</th>
|
||||
<th scope="col">% prof</th>
|
||||
</tr>
|
||||
{{#stable}}
|
||||
<tr class="text-white {{#if pos}}bg-success{{/if}}{{#if neg}}bg-danger{{/if}}">
|
||||
<td>{{name}}</td>
|
||||
<td>{{i}} ISK</td>
|
||||
<td>{{tax}} ISK</td>
|
||||
<td>{{o}} ISK</td>
|
||||
<td>{{prof}} ISK</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>
|
||||
{{/stable}}
|
||||
<tr>
|
||||
<td class="" colspan="7"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bg-info text-white text-center" id="complex" colspan="7">Complex Reactions</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">Reaction</th>
|
||||
<th scope="col">Inputs</th>
|
||||
<th scope="col">Tax</th>
|
||||
<th scope="col">Output</th>
|
||||
<th scope="col">Profit</th>
|
||||
<th scope="col">% prof</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h5 class="bg-info text-white text-center w-100 p-2 mt-3">Complex Reactions</h5>
|
||||
<table width="100%" id="ctab" 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>
|
||||
{{#ctable}}
|
||||
<tr class="text-white {{#if pos}}bg-success{{/if}}{{#if neg}}bg-danger{{/if}}">
|
||||
<td>{{name}}</td>
|
||||
<td>{{i}} ISK</td>
|
||||
<td>{{tax}} ISK</td>
|
||||
<td>{{o}} ISK</td>
|
||||
<td>{{prof}} ISK</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>
|
||||
{{/ctable}}
|
||||
<tr>
|
||||
<td class="" colspan="7"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bg-info text-white text-center" id="chain" colspan="7">Complex Chain Reactions</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">Reaction</th>
|
||||
<th scope="col">Inputs</th>
|
||||
<th scope="col">Tax</th>
|
||||
<th scope="col">Output</th>
|
||||
<th scope="col">Profit</th>
|
||||
<th scope="col">% prof</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h5 class="bg-info text-white text-center w-100 p-2 mt-3">Complex Chain Reactions</h5>
|
||||
<table width="100%" id="chtab" 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>
|
||||
{{#chtable}}
|
||||
<tr class="text-white {{#if pos}}bg-success{{/if}}{{#if neg}}bg-danger{{/if}}">
|
||||
<td>{{name}}</td>
|
||||
<td>{{i}} ISK</td>
|
||||
<td>{{tax}} ISK</td>
|
||||
<td>{{o}} ISK</td>
|
||||
<td>{{prof}} ISK</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>
|
||||
{{/chtable}}
|
||||
|
|
|
@ -16,12 +16,24 @@
|
|||
<meta name="author" content="Oxed G">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>{{title}}</title>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
|
||||
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.0/js/dataTables.responsive.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.0/js/responsive.bootstrap4.min.js"></script>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/stylesheets/style.css">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/dataTables.bootstrap4.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/responsive/2.2.0/css/responsive.bootstrap4.min.css"/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 text-center">
|
||||
<h1 class="mt-5">A Bootstrap 4 Starter Template</h1>
|
||||
<p class="lead">{{reac}}</p>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -118,7 +118,7 @@
|
|||
<label for="indyTax" class="col-4 col-form-label">Industry Tax</label>
|
||||
<div class="col-8">
|
||||
<div class="input-group">
|
||||
<input id="indyTax" name="indyTax" placeholder="0" type="number" value="{{sett.indyTax}}" class="form-control here" aria-describedby="indyTaxHelpBlock" required="required">
|
||||
<input id="indyTax" name="indyTax" placeholder="0" type="number" step="0.01" value="{{sett.indyTax}}" class="form-control here" aria-describedby="indyTaxHelpBlock" required="required">
|
||||
<div class="input-group-addon append">%</div>
|
||||
</div>
|
||||
<span id="indyTaxHelpBlock" class="form-text text-muted">What's your industry tax % ?</span>
|
||||
|
|