Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
WIMM
AI Media Technology Landscape
Commits
3babe7ba
Commit
3babe7ba
authored
Jul 25, 2019
by
Marcel Hauck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved visualization
parent
9d2330de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
index.html
index.html
+2
-1
js/scripts.js
js/scripts.js
+28
-0
No files found.
index.html
View file @
3babe7ba
...
...
@@ -32,15 +32,16 @@
<h1>
AI Media Technology Landscape
<span
class=
"counter-text"
>
(
<span
id=
"count-total"
>
0
</span>
Produkte)
</span></h1>
</div>
</div>
<div
class=
"row"
id=
"row-products"
></div>
<div
class=
"row-legend"
>
<h2>
Legende
</h2>
<div>
Was ist der Output des Produktes?
</div>
<div
class=
"legend-item"
><div
class=
"mediatype-video"
>
Video
</div>
</div>
<div
class=
"legend-item"
><div
class=
"mediatype-audio"
>
Audio
</div>
</div>
<div
class=
"legend-item"
><div
class=
"mediatype-text"
>
Text
</div>
</div>
<div
class=
"legend-item"
><div
class=
"mediatype-mixed"
>
Gemischt
</div>
</div>
<div
class=
"legend-item"
><div
class=
"mediatype-other"
>
Sonstiges
</div>
</div>
</div>
<div
class=
"row"
id=
"row-products"
></div>
</div>
<!-- Bootstrap core JavaScript -->
...
...
js/scripts.js
View file @
3babe7ba
$
(
document
).
ready
(
function
()
{
// switches for displaying various information
var
showProductCount
=
false
;
var
showLegend
=
true
;
var
showNavbar
=
false
;
var
showTitle
=
false
;
// configuration files
var
requestCategories
=
$
.
getJSON
(
"
json/categories.json
"
);
var
requestProducts
=
$
.
getJSON
(
"
json/products.json
"
);
...
...
@@ -71,6 +77,28 @@ $( document ).ready(function() {
$
(
"
#
"
+
currentCategory
+
"
span.count-product
"
).
html
(
parseInt
(
$
(
"
#
"
+
currentCategory
+
"
span.count-product
"
).
html
(),
10
)
+
1
);
});
});
// show or hide various information
if
(
showProductCount
){
$
(
"
.counter-text
"
).
show
();
}
else
{
$
(
"
.counter-text
"
).
hide
();
};
if
(
showLegend
){
$
(
"
.row-legend
"
).
show
();
}
else
{
$
(
"
.row-legend
"
).
hide
();
};
if
(
showNavbar
){
$
(
"
nav
"
).
show
();
}
else
{
$
(
"
nav
"
).
hide
();
}
if
(
showTitle
){
$
(
"
h1
"
).
show
();
}
else
{
$
(
"
h1
"
).
hide
();
}
})
.
fail
(
function
()
{
// Executed if at least one request fails
...
...
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