Commit d741e0f3 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

added amount

parent 42d89ff1
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -75,6 +75,12 @@
margin-right: 3px;
}
.oilspill-control .select {
display: inline-block;
margin-left: 3px;
}
.oilspill-control .acc-content {
padding-top: 0px;
padding-bottom: 15px;
......
......@@ -128,17 +128,20 @@ var L;
self.map = map;
this.container = L.DomUtil.create('div', 'oilspill-control');
var accordionDiv = L.DomUtil.create('div', 'uk-accordion', this.container);
var locationid = 'locationCard';
var locationid = 'oslocationCard';
self.cardMap[locationid] = new OSLocation(locationid, accordionDiv, self.lang, self.langData, self.map);
self.cardMap[locationid].show();
var periodid = 'periodCard';
var periodid = 'osperiodCard';
self.cardMap[periodid] = new OSPeriod(periodid, accordionDiv, self.lang, self.map);
var oiltypeid = 'oiltypeCard';
var oiltypeid = 'osoiltypeCard';
self.cardMap[oiltypeid] = new OSType(oiltypeid, accordionDiv, self.lang, self.map);
var amountid = 'osamountCard';
self.cardMap[amountid] = new OSAmount(amountid, accordionDiv, self.lang, self.map);
var chain = [];
chain[locationid] = periodid;
chain[periodid] = oiltypeid;
chain[oiltypeid] = '';
chain[oiltypeid] = amountid;
chain[amountid] = '';
var startDiv = L.DomUtil.create('div', 'uk-width-medium-1-2 uk-container-center', this.container);
var hr = L.DomUtil.create('hr', 'uk-margin-top', startDiv);
self.startButton = L.DomUtil.create('button', 'uk-button uk-button-success uk-margin-top uk-align-center', startDiv);
......@@ -202,6 +205,9 @@ var L;
self.cardMap[oiltypeid].oncallback = function (gonext) {
callback(oiltypeid, gonext);
};
self.cardMap[amountid].oncallback = function (gonext) {
callback(amountid, gonext);
};
self.startButton.onclick = function () {
self.startButton.disabled = true;
var geojson = {};
......
This diff is collapsed.
......@@ -133,17 +133,20 @@ module L.Control {
self.map = map;
this.container = L.DomUtil.create('div', 'oilspill-control');
var accordionDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-accordion', this.container);
var locationid = 'locationCard';
var locationid = 'oslocationCard';
self.cardMap[locationid] = new OSLocation(locationid, accordionDiv, self.lang, self.langData, self.map);
self.cardMap[locationid].show();
var periodid = 'periodCard';
var periodid = 'osperiodCard';
self.cardMap[periodid] = new OSPeriod(periodid, accordionDiv, self.lang, self.map);
var oiltypeid = 'oiltypeCard';
var oiltypeid = 'osoiltypeCard';
self.cardMap[oiltypeid] = new OSType(oiltypeid, accordionDiv, self.lang, self.map);
var amountid = 'osamountCard';
self.cardMap[amountid] = new OSAmount(amountid, accordionDiv, self.lang, self.map);
var chain = [];
chain[locationid] = periodid;
chain[periodid] = oiltypeid;
chain[oiltypeid] = '';
chain[oiltypeid] = amountid;
chain[amountid] = '';
var startDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-medium-1-2 uk-container-center', this.container);
var hr = <HTMLDivElement>L.DomUtil.create('hr', 'uk-margin-top', startDiv);
self.startButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-success uk-margin-top uk-align-center', startDiv);
......@@ -207,6 +210,9 @@ module L.Control {
self.cardMap[oiltypeid].oncallback = function (gonext) {
callback(oiltypeid, gonext);
};
self.cardMap[amountid].oncallback = function (gonext) {
callback(amountid, gonext);
};
self.startButton.onclick = function () {
self.startButton.disabled = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment