mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-09-01 10:42:41 +02:00
Added intial files for hindi translation
This commit is contained in:
18
7-bank-project/1-template-route/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
18
7-bank-project/1-template-route/translations/.github/post-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
*Complete this quiz by checking one answer per question.*
|
||||
|
||||
1. HTML templates are part of the DOM by default
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
||||
|
||||
2. Which part of the URL is needed for routing?
|
||||
|
||||
- [ ] window.location.pathname
|
||||
- [ ] window.location.origin
|
||||
- [ ] both
|
||||
|
||||
3. What's the name of the event triggered when calling the `history.pushState()` function?
|
||||
|
||||
- [ ] `pushstate`
|
||||
- [ ] `popstate`
|
||||
- [ ] `navigate`
|
19
7-bank-project/1-template-route/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
19
7-bank-project/1-template-route/translations/.github/pre-lecture-quiz.hi.md
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
*A quick warm-up about web apps*
|
||||
|
||||
*Complete this quiz in class.*
|
||||
|
||||
1. You need to create multiple HTML files to display different screens in a web app
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
||||
|
||||
2. You can store and persist data locally in a web app
|
||||
|
||||
- [ ] true
|
||||
- [ ] false
|
||||
|
||||
3. What's the best data provider for a web app?
|
||||
|
||||
- [ ] A local database
|
||||
- [ ] A JavaScript object
|
||||
- [ ] A server with a JSON API
|
@@ -0,0 +1,14 @@
|
||||
# Improve the routing
|
||||
|
||||
## Instructions
|
||||
|
||||
The routes declaration contains currently only the template ID to use. But when displaying a new page, a bit more is needed sometimes. Let's improve our routing implementation with two additional features:
|
||||
|
||||
- Give titles to each template and update the window title with this new title when the template changes.
|
||||
- Add an option to run some code after the template changes. We want to print `'Dashboard is shown'` in the developer console every time the dashboard page is displayed.
|
||||
|
||||
## Rubric
|
||||
|
||||
| Criteria | Exemplary | Adequate | Needs Improvement |
|
||||
| -------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
|
||||
| | The two features are implemented and working. Title and code addition also work for a new route added in the `routes` declaration. | The two features work, but the behavior is hardcoded and not configurable via the `routes` declaration. Adding a third route with title and code addition does not work or works partially. | One of the features is missing or not working properly. |
|
Reference in New Issue
Block a user