Skip to content

Commit

Permalink
added code for new pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakodan007 committed Mar 8, 2024
1 parent 395d4bb commit 3debe2a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions pupil-submission-page/src/components/Stepper_2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Trainieren kann.<br>
Alle deine Bilder sollten dafür am besten in zwei entsprechend
benannten Ordnern auf deinem Computer abgespeichert sein.<br>
Falls du keine eigenen Bilder hast, kannst du <a href="javascript:void(0)" @click="downloadData"> hier welche
Falls du keine eigenen Bilder hast, kannst du <a href="javascript:void(0)" @click="downloadBackupData"> hier welche
herunterladen</a>.
<br>
<br>
Expand Down Expand Up @@ -40,7 +40,7 @@

<script lang="ts">
import UploadImagesForClass from '@/components/UploadImagesForClass.vue'
import trainingDataPath from '@/assets/training-data.zip';
import backupDataPath from '@/assets/backup-data.zip';
Expand All @@ -51,10 +51,10 @@ export default {
}),
components: { UploadImagesForClass },
methods: {
downloadData() {
downloadBackupData() {
const link = document.createElement('a');
link.href = trainingDataPath;
link.download = 'training-data.zip';
link.href = backupDataPath;
link.download = 'backup-data.zip';
link.click();
}
},
Expand Down
10 changes: 5 additions & 5 deletions pupil-submission-page/src/components/Stepper_4.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
<a href="javascript:void(0)" @click="downloadTestData"> Testdaten</a>
<br>
<br>
<a href="javascript:void(0)" @click="downloadValidationData">Trainingsdaten</a>
<a href="javascript:void(0)" @click="downloadTrainingData">Trainingsdaten</a>
</v-container>
</v-expansion-panel-text>
</v-expansion-panel>
Expand Down Expand Up @@ -246,7 +246,7 @@ import car_accident1 from '@/assets/car_accident1.jpg';
import car_accident2 from '@/assets/car_accident2.jpg';
import car_accident3 from '@/assets/car_accident3.jpg';
import car_accident4 from '@/assets/car_accident4.jpg';
import validationDataPath from '@/assets/validation-data.zip';
import trainingDataPath from '@/assets/training-data.zip';
import testDataPath from '@/assets/test-data.zip';
export default {
Expand Down Expand Up @@ -328,10 +328,10 @@ export default {
return ret
},
downloadValidationData() {
downloadTrainingData() {
const link = document.createElement('a');
link.href = validationDataPath;
link.download = 'validation-data.zip';
link.href = trainingDataPath;
link.download = 'training-data.zip';
link.click();
},
downloadTestData() {
Expand Down

0 comments on commit 3debe2a

Please sign in to comment.