Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stwkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
stwkit
Commits
abc5daf8
Commit
abc5daf8
authored
Jan 05, 2018
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor help links
parent
d69c23f3
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
25 deletions
+38
-25
demo/index.html
demo/index.html
+9
-2
src/components/cards.js
src/components/cards.js
+14
-11
src/components/cards.js.map
src/components/cards.js.map
+1
-1
src/components/cards.ts
src/components/cards.ts
+14
-11
No files found.
demo/index.html
View file @
abc5daf8
...
...
@@ -158,13 +158,17 @@
// if (forcing.features.length > 0) properties["forcing"] = forcing;
class
SimpleCardControl
extends
STWkit
.
CardControl
{
constructor
(
options
)
{
super
(
options
);}
constructor
(
options
)
{
super
(
options
);
this
.
type
=
'
objects
'
;
this
.
subtype
=
'
instant
'
;
}
setup
(
map
)
{
this
.
container
=
STWkit
.
DomUtil
.
create
(
'
div
'
,
+
self
.
name
+
'
-control
'
);
this
.
accordionDiv
=
STWkit
.
DomUtil
.
create
(
'
div
'
,
'
uk-accordion
'
,
this
.
container
);
var
locationoptions
=
{};
var
initials
=
'
fo
'
;
var
type
=
'
object
'
;
var
type
=
'
objects
'
;
var
subtype
=
'
instant
'
;
locationoptions
[
'
single
'
]
=
true
;
locationoptions
[
'
multiple
'
]
=
true
;
locationoptions
[
'
line
'
]
=
true
;
...
...
@@ -173,6 +177,7 @@
// locationoptions['polygon']['name'] = 'Area';
locationoptions
[
'
circle
'
]
=
false
;
locationoptions
[
'
type
'
]
=
type
;
locationoptions
[
'
subtype
'
]
=
subtype
;
// locationoptions['outlettype'] = false;
locationoptions
[
'
initials
'
]
=
initials
;
var
locationid
=
'
locationCard
'
;
...
...
@@ -180,12 +185,14 @@
this
.
cardMap
[
locationid
].
show
();
var
periodoptions
=
{};
periodoptions
[
'
type
'
]
=
type
;
periodoptions
[
'
subtype
'
]
=
subtype
;
periodoptions
[
'
initials
'
]
=
initials
;
// periodoptions['forwardbackward'] = false;
var
periodid
=
'
periodCard
'
;
this
.
cardMap
[
periodid
]
=
new
STWkit
.
PeriodCard
(
periodid
,
'
Simulation period
'
,
this
.
accordionDiv
,
this
.
lang
,
map
,
this
.
domain
,
this
.
forcingmodel
,
periodoptions
);
var
oiltypeoptions
=
{};
oiltypeoptions
[
'
type
'
]
=
type
;
oiltypeoptions
[
'
subtype
'
]
=
subtype
;
oiltypeoptions
[
'
initials
'
]
=
initials
;
// oiltypeoptions['stateofoil'] = false;
var
oiltypeid
=
'
oiltypeCard
'
;
...
...
src/components/cards.js
View file @
abc5daf8
This diff is collapsed.
Click to expand it.
src/components/cards.js.map
View file @
abc5daf8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/components/cards.ts
View file @
abc5daf8
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment