downsize images
This commit is contained in:
parent
c4f1c61522
commit
02116c9dd1
5 changed files with 3 additions and 3 deletions
BIN
public/creatif.jpg
Normal file
BIN
public/creatif.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
BIN
public/croisiere.jpg
Normal file
BIN
public/croisiere.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
BIN
public/en-charge.jpg
Normal file
BIN
public/en-charge.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
BIN
public/frigo-vide.jpg
Normal file
BIN
public/frigo-vide.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
|
|
@ -12,12 +12,12 @@
|
||||||
|
|
||||||
showMode(event) {
|
showMode(event) {
|
||||||
const image = this.imageTarget
|
const image = this.imageTarget
|
||||||
image.src = event.target.dataset.mode + ".png"
|
image.src = event.target.dataset.mode + ".jpg"
|
||||||
}
|
}
|
||||||
|
|
||||||
showCurrent() {
|
showCurrent() {
|
||||||
const image = this.imageTarget
|
const image = this.imageTarget
|
||||||
image.src = "<%= @mode %>.png"
|
image.src = "<%= @mode %>.jpg"
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
</head>
|
</head>
|
||||||
<main data-controller="mood">
|
<main data-controller="mood">
|
||||||
<div class="mode">
|
<div class="mode">
|
||||||
<img data-mood-target="image" src="<%= @mode %>.png">
|
<img data-mood-target="image" src="<%= @mode %>.jpg">
|
||||||
</div>
|
</div>
|
||||||
<div class="tracker">
|
<div class="tracker">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue