Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
en:modul:m291:learningunits:lu05:loesungen:14 [2025/03/14 16:44] – angelegt vdemiren:modul:m291:learningunits:lu05:loesungen:14 [2025/03/28 11:36] (aktuell) vdemir
Zeile 1: Zeile 1:
-====== LU05.S13 - v-show simple applied to images ======+====== LU05.S14 - v-show and v-if combined ======
  
 ===== Hints ==== ===== Hints ====
Zeile 6: Zeile 6:
   * The result will be presented in the right hand side of the window.   * The result will be presented in the right hand side of the window.
  
-{{ :en:modul:m291:learningunits:lu05:loesungen:lu05.s13.zip | Codesolution of v-show simple}}+===== Assignment ====== 
 +This assignment consists of using both, the v-if and the v-show, and comparing the html-dom reaktion.
  
-{{:en:modul:m291:learningunits:lu05:loesungen:lu05.s13_v-show.png?800|Codesolution of v-show simple}}+  - Click the link above to the code-exambpe to get to the W3School-TryOut area. 
 +  - Save the code with a suitable name, such as LU05.S14.html. 
 +  - Have it run by clicking the //run-button//
 +  - Just after the //div-tag// create a paragraph and move the current text in it (This text can be hidden). 
 +  - Move the v-show from div-tag into the paragraph-tag.  
 +  - Change the variable in the //script-area// from //showDiv// to //showText//
 +  - Add another paragraph-tag for the //v-if// which contains a image and a suitable comment to it. 
 +  - The corresponding variable in the //script-area// for the v-if is called //showImage// which can also contain the values //true// and //false//
 +  - Now we can seperately control the visibility of the text and image ressource.  
 +  - Try out all four values for the //showText// and //showImage//. Possible combination of values are  
 +    * true / true 
 +    * true / false 
 +    * false / true 
 +    * false / false 
 +  - Note the result as a html-comment und beobachten Sie die Reaktion der Applikation. 
 +  - Save your result, you may need it as a exam-preparation. 
 + 
 +===== Solution ===== 
 + 
 +{{ :en:modul:m291:learningunits:lu05:loesungen:lu05.s14.zip | Codesolution of v-show simple}} 
 + 
 +{{:en:modul:m291:learningunits:lu05:loesungen:lu05.s14_v-show.png?1200|Codesolution of v-show simple}}
  
 ---- ----
 [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Volkan Demir [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Volkan Demir
      
  • en/modul/m291/learningunits/lu05/loesungen/14.1741967076.txt.gz
  • Zuletzt geändert: 2025/03/14 16:44
  • von vdemir