Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:modul:m291:learningunits:lu05:loesungen:08 [2025/01/27 13:29] – vdemir | en:modul:m291:learningunits:lu05:loesungen:08 [2025/03/27 09:23] (aktuell) – [Assignment] vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU05.S08 - v-i ====== | + | ====== LU05.S08 - v-if with numbers instead of bool ====== |
- | + | ||
- | ===== Assignment ====== | + | |
- | - Open the URL with the exercise, which is given above. | + | |
- | - Add to the // | + | |
- | - Add a new //div// which incorporates the second style element. | + | |
- | - Toggle in the //script// area with the values //true// and //false//, which activates and deactivates wether the style are being used or not | + | |
- | - Execute your script by having it //run//. | + | |
- | - Save your solution accordingly. Therefore you might need a W3-School-Account. | + | |
===== Sourcecode of the solution ===== | ===== Sourcecode of the solution ===== | ||
- | * {{ : | ||
- | You solution is supposed | + | {{ : |
+ | |||
+ | ===== Assignment ====== | ||
+ | The first assignment checked by using v-if whether a certain variable was checked or not (true/ | ||
+ | |||
+ | - Change the value of the variable // | ||
+ | - Note your realisations as a html-comment. | ||
+ | - Change the content of the variable // | ||
+ | - What happens, if the value // | ||
+ | - Note your realisations as a js-comment or html-comment. | ||
+ | - Save your script acoordingly, | ||
- | {{: | + | {{: |
===== Vocabulary ===== | ===== Vocabulary ===== |