Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
clovis committed Feb 17, 2023
1 parent 7e885ce commit 3cfbf3f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 44 deletions.
5 changes: 0 additions & 5 deletions www/app/babel.config.js

This file was deleted.

48 changes: 24 additions & 24 deletions www/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions www/app/src/components/TextNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,14 @@ export default {
})
this.gallery.open()
this.gallery.on('slide_changed', () => {
// TODO: only create anchor tag the first time.
let img = Array.from(document.getElementsByClassName(imageType))[
this.gallery.getActiveSlideIndex()
].getAttribute("large-img");
const newNode = document.createElement("a");
newNode.style.cssText = `position: absolute; top: 20px; font-size: 15px; right: 70px; opacity: 0.7; border: solid; padding: 0px 5px; color: #fff !important`
newNode.href = img
newNode.id = "large-img-link"
newNode.target = "_blank"
newNode.innerHTML = "↗"
let closeBtn = document.getElementsByClassName("gclose")[0]
Expand Down
22 changes: 7 additions & 15 deletions www/app/src/components/TimeSeries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,12 @@
<results-summary :description="results.description" :running-total="runningTotal"></results-summary>
<div class="card mt-4" id="time-series">
<div class="btn-group d-inline-block" role="group">
<button
type="button"
class="btn btn-secondary"
:class="{ active: frequencyType == 'absolute_time' }"
@click="toggleFrequency('absolute_time')"
>
<button type="button" class="btn btn-secondary" :class="{ active: frequencyType == 'absolute_time' }"
@click="toggleFrequency('absolute_time')">
{{ $t("common.absoluteFrequency") }}
</button>
<button
type="button"
class="btn btn-secondary"
:class="{ active: frequencyType == 'relative_time' }"
@click="toggleFrequency('relative_time')"
>
<button type="button" class="btn btn-secondary" :class="{ active: frequencyType == 'relative_time' }"
@click="toggleFrequency('relative_time')">
{{ $t("common.relativeFrequency") }}
</button>
</div>
Expand Down Expand Up @@ -170,9 +162,8 @@ export default {
if (vm.interval == 1) {
interval = tooltipItem[0].xLabel;
} else {
interval = `${tooltipItem[0].xLabel}-${
parseInt(tooltipItem[0].xLabel) + parseInt(vm.interval) - 1
}`;
interval = `${tooltipItem[0].xLabel}-${parseInt(tooltipItem[0].xLabel) + parseInt(vm.interval) - 1
}`;
}
return interval;
},
Expand Down Expand Up @@ -310,6 +301,7 @@ export default {
#description {
position: relative;
}
#export-results {
position: absolute;
right: 0;
Expand Down

0 comments on commit 3cfbf3f

Please sign in to comment.