Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:modul:m291:learningunits:lu06:aufgaben:08 [2025/05/18 14:04] – angelegt vdemir | en:modul:m291:learningunits:lu06:aufgaben:08 [2025/05/20 13:37] (aktuell) – vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU06.A08 - Events - basic calculator | + | ====== LU06.A08 - Events - basic calculator ====== |
===== Prerequisites | ===== Prerequisites | ||
* Work type: Individual | * Work type: Individual | ||
* Means of aid: only teaching materials, no websearch, no use of ai. | * Means of aid: only teaching materials, no websearch, no use of ai. | ||
- | * Timeframe: | + | * Timeframe: |
- | * Expected result: | + | * Expected result: |
- | * simple-click | + | |
- | * mouseover | + | |
- | * mouse.right-click | + | |
- | * mouse-left-click | + | |
- | * mouse-middle-click | + | |
===== Source ===== | ===== Source ===== | ||
- | * [[https:// | + | * You can take any script an adjust it to your needs. |
- | ===== Assignments | + | ===== Assignment |
- | The idea of this assignment | + | This assignment |
- | {{:en:modul: | + | ===== Assignment A - 3' ====== |
- | | + | * A01: Create in Webstorm in your directory **06_methods** a html file and name it correctly **LU06.S08**. |
+ | * A02: Copy the structure | ||
+ | * A03: Make sure to have | ||
+ | * the assignment | ||
+ | * the description in < | ||
+ | | ||
- | ==== Assignment | + | ===== Assignment |
- | | + | |
- | - Make sure that you have the title < | + | * diggit1:0 |
- | - After moving the mouse over the colour area the background-colour should change randomly. Behind this effect there is a sophisticated Math-Operation. | + | * diggit2:0 |
- | - Replace the math-method with a **simple increment** operation with **step-size 1**. | + | * result:0 |
- | - Start with the **colour value of 0**. | + | |
- | ==== Assignment | + | ===== Assignment |
- | | + | * C01: Create the buttons 1 to 4 (that shall suffice for our purpose) |
- | | + | * C02: When clicking on one of them the content will be saved in the variable |
- | - Decrement | + | |
- | ==== Assignment | + | ===== Assignment |
- | | + | |
- | | + | * D02: When clicking on one of them the content will be saved in the variable |
- | - Increment **step-size is 5** | + | |
- | ==== Assignment | + | ===== Assignment |
- | - Add another area for the a **left-click** event. | + | |
- | - Start with a **colour value of 240** | + | |
- | | + | |
+ | ===== Assignment F: Reset button - 5' | ||
+ | * F01: Create finally | ||
+ | * F02: Meaning clicking on the reset-button uses: result=0, diggit1=0, diggit2=0 | ||
- | ==== Assignment D ==== | ||
- | - Add another area for the a **mouseover** event. | ||
- | - Start with a **colour value of 360** | ||
- | - Decrement **step-size is 10** | ||
- | | ||
- | ==== Assignment E ==== | ||
- | - Add to all four textareas a mouse-middle event which resets all colour to the initial values. | ||
- | - **Hint**: To get the initial values, you need to store te values in separately in the first place: either in 4 variables or in a array with all four initial values. | ||
===== Solution ===== | ===== Solution ===== | ||
Zeile 57: | Zeile 49: | ||
===== Vocabulary ===== | ===== Vocabulary ===== | ||
^ English ^ German ^ | ^ English ^ German ^ | ||
- | | to compraise | + | | diggit | Ziffer | |
- | | sophisticated | + | | initial values | Startwerte | |
- | | appearance | + | | to suffice |
+ | | respectively | ||
+ | | to compraise | ||
+ | | several | einige, etliche | ||
---- | ---- | ||
[[https:// | [[https:// | ||