Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Shelter Database
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
CHARISM
Shelter Database
Commits
d7f7352e
Commit
d7f7352e
authored
Sep 06, 2016
by
Maarten van der Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change picture paths
parent
d17f3d60
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
17 deletions
+25
-17
src/web/static/js/d2utmpx5icup
src/web/static/js/d2utmpx5icup
+0
-0
src/web/static/js/dashboard.js
src/web/static/js/dashboard.js
+5
-1
src/web/static/pictures/shelters/12/CRC A_Foundation_Strip.jpg
...eb/static/pictures/shelters/12/CRC A_Foundation_Strip.jpg
+0
-0
src/web/static/pictures/shelters/12/CRC A_Foundation_Strip2.jpg
...b/static/pictures/shelters/12/CRC A_Foundation_Strip2.jpg
+0
-0
src/web/static/pictures/shelters/12/CRC A_Framed walls_Assembling (2).jpg
...ictures/shelters/12/CRC A_Framed walls_Assembling (2).jpg
+0
-0
src/web/static/pictures/shelters/12/CRC A_Framed walls_Assembling.jpg
...ic/pictures/shelters/12/CRC A_Framed walls_Assembling.jpg
+0
-0
src/web/static/pictures/shelters/12/CRC A_Framed walls_Preassembled.jpg
.../pictures/shelters/12/CRC A_Framed walls_Preassembled.jpg
+0
-0
src/web/static/pictures/shelters/12/CRC A_Identification_Facade.jpg
...atic/pictures/shelters/12/CRC A_Identification_Facade.jpg
+0
-0
src/web/static/pictures/shelters/12/CRC A_Identification_Satellite.jpg
...c/pictures/shelters/12/CRC A_Identification_Satellite.jpg
+0
-0
src/web/static/pictures/shelters/12/CRC A_Roof_Trusses (2).jpg
...eb/static/pictures/shelters/12/CRC A_Roof_Trusses (2).jpg
+0
-0
src/web/static/pictures/shelters/12/CRC A_Roof_Trusses.jpg
src/web/static/pictures/shelters/12/CRC A_Roof_Trusses.jpg
+0
-0
src/web/templates/shelter.html
src/web/templates/shelter.html
+20
-16
No files found.
src/web/static/js/d2utmpx5icup
0 → 100644
View file @
d7f7352e
src/web/static/js/dashboard.js
View file @
d7f7352e
...
...
@@ -541,8 +541,12 @@ generateShelterList = function (data) {
$
(
'
#shelterList
'
).
empty
();
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
var
url
=
''
;
if
(
typeof
(
data
[
i
].
shelterpicture
)
!==
'
undefined
'
&&
Object
.
keys
(
data
[
i
].
shelterpicture
).
length
>
0
){
url
=
data
[
i
].
shelterpicture
[
Object
.
keys
(
data
[
i
].
shelterpicture
[
0
])][
0
];
}
var
shelter
=
$
(
'
<div class="shelter"/>
'
).
appendTo
(
'
#shelterList
'
);
shelter
.
append
(
'
<div class="image" style="background-image: url(
'
+
''
+
'
)"></div>
'
+
shelter
.
append
(
'
<div class="image" style="background-image: url(
'
+
url
+
'
)"></div>
'
+
'
<h4 class="title"><a href="/shelter/
'
+
data
[
i
].
db_id
+
'
">
'
+
data
[
i
].
nameofshelter
+
'
</a></h4>
'
+
'
<div class="country">
'
+
data
[
i
].
country
+
'
</div>
'
+
'
<div class="description"><p>
'
+
''
+
'
</p></div>
'
);
...
...
src/web/static/pictures/shelters/12/CRC A_Foundation_Strip.jpg
0 → 100644
View file @
d7f7352e
1.64 MB
src/web/static/pictures/shelters/12/CRC A_Foundation_Strip2.jpg
0 → 100644
View file @
d7f7352e
1.73 MB
src/web/static/pictures/shelters/12/CRC A_Framed walls_Assembling (2).jpg
0 → 100644
View file @
d7f7352e
1.77 MB
src/web/static/pictures/shelters/12/CRC A_Framed walls_Assembling.jpg
0 → 100644
View file @
d7f7352e
1.97 MB
src/web/static/pictures/shelters/12/CRC A_Framed walls_Preassembled.jpg
0 → 100644
View file @
d7f7352e
2.13 MB
src/web/static/pictures/shelters/12/CRC A_Identification_Facade.jpg
0 → 100644
View file @
d7f7352e
1.02 MB
src/web/static/pictures/shelters/12/CRC A_Identification_Satellite.jpg
0 → 100644
View file @
d7f7352e
177 KB
src/web/static/pictures/shelters/12/CRC A_Roof_Trusses (2).jpg
0 → 100644
View file @
d7f7352e
1.41 MB
src/web/static/pictures/shelters/12/CRC A_Roof_Trusses.jpg
0 → 100644
View file @
d7f7352e
588 KB
src/web/templates/shelter.html
View file @
d7f7352e
...
...
@@ -24,14 +24,18 @@
<div
class=
"dot"
></div>
</div>
</section>
<section
class=
"details"
>
<div
class=
"content"
>
<table
id=
"identification"
>
<tr>
<td>
No data available in this category
</td>
</tr>
</table>
</div>
<section>
<div
class=
"details"
>
<h3>
Identification
</h3>
<div
id=
"location-map"
style=
"width:100%; height:400px;"
></div>
<div
class=
"content"
>
<table
id=
"identification"
>
<tr>
<td>
No data available in this category
</td>
</tr>
</table>
</div>
</div>
</section>
<section
class=
"details details-1"
>
<div
class=
"content"
>
...
...
@@ -43,11 +47,6 @@
</table>
</div>
</section>
<section>
<div
class=
"details"
>
<div
id=
"location-map"
style=
"width:100%; height:400px;"
></div>
</div>
</section>
<section
class=
"details details-2"
>
<div
class=
"content"
>
<h3>
Disaster
&
Response
</h3>
...
...
@@ -140,12 +139,17 @@
if
(
typeof
data
[
shelter_id
][
'
Foundation
'
]
!==
'
undefined
'
)
{
var
foundation
=
data
[
shelter_id
][
'
Foundation
'
][
'
Attributes
'
];
$
(
"
#foundation
"
).
empty
();
tabulate
(
"
#foundation
"
,
foundation
,
d3
.
keys
(
general
));
tabulate
(
"
#foundation
"
,
foundation
,
d3
.
keys
(
foundation
));
}
if
(
typeof
data
[
shelter_id
][
'
Identification
'
]
!==
'
undefined
'
)
{
// Set shelter name
$
(
'
#shelter-name
'
).
text
(
data
[
shelter_id
][
'
Identification
'
][
'
Attributes
'
][
'
Name of shelter
'
]);
// add attributes
var
identification
=
data
[
shelter_id
][
'
Identification
'
][
'
Attributes
'
];
$
(
"
#identification
"
).
empty
();
tabulate
(
"
#identification
"
,
identification
,
d3
.
keys
(
identification
));
// Get coordinates for this shelter
var
lat
=
data
[
shelter_id
][
'
Identification
'
][
'
Attributes
'
][
'
GPS Latitude
'
];
...
...
@@ -172,7 +176,7 @@
function
addCoverPicture
(
elementId
,
section
){
if
(
typeof
section
[
'
Cover
'
]
!==
'
undefined
'
&&
section
[
'
Cover
'
].
length
>
0
)
{
$
(
elementId
).
css
(
"
background-image
"
,
"
url('
"
+
section
[
'
Cover
'
][
0
]
+
"
')
"
);
$
(
elementId
).
css
(
"
background-image
"
,
"
url('
/
"
+
section
[
'
Cover
'
][
0
]
+
"
')
"
);
}
}
...
...
@@ -189,7 +193,7 @@
.
enter
()
.
append
(
"
div
"
)
.
attr
(
"
class
"
,
"
pane
"
)
.
attr
(
"
style
"
,
function
(
d
){
return
"
background-image: url('
"
+
d
+
"
')
"
;});
.
attr
(
"
style
"
,
function
(
d
){
return
"
background-image: url('
/
"
+
d
+
"
')
"
;});
// add dots
// TODO increment show id
...
...
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