Skip to content

Quiz #1229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 210 commits into
base: master
Choose a base branch
from
Open

Quiz #1229

Show file tree
Hide file tree
Changes from 149 commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
dd5197e
quiz component -- worked on accordion
marvinrusinek Dec 25, 2019
4addcf1
quiz assets
marvinrusinek Dec 25, 2019
a23a7be
added styles.scss
marvinrusinek Dec 25, 2019
6b2b4c9
fixed completionTime and percentage in results
marvinrusinek Jan 2, 2020
a1cac0c
quiz updated
marvinrusinek Jan 2, 2020
b1ba90d
quiz update
marvinrusinek Jan 9, 2020
9e2f984
quiz update2
marvinrusinek Jan 10, 2020
7e5026c
moved percentage to ResultsComponent
marvinrusinek Jan 10, 2020
3012a77
moved percentage to ResultsComponent
marvinrusinek Jan 10, 2020
3c183d7
changed text in mat-card-content paragraph
marvinrusinek Jan 10, 2020
93ccd90
edited elapsedTime formula
marvinrusinek Jan 10, 2020
c255d5f
added % to social media section in results
marvinrusinek Jan 10, 2020
3ad1f7a
refactored code in countdown function
marvinrusinek Jan 10, 2020
ebe830b
refactored countdown some more
marvinrusinek Jan 10, 2020
920dda8
transfer data via state
marvinrusinek Jan 12, 2020
b72cc4e
transfer data via state
marvinrusinek Jan 12, 2020
3c7f416
added more questions back
marvinrusinek Jan 12, 2020
61f94ba
added dynamic accordion to ResultsComponent
marvinrusinek Jan 14, 2020
972684e
made questions inside accordion +/-
marvinrusinek Jan 15, 2020
e11cfb0
added elapsedTime function
marvinrusinek Feb 2, 2020
4bc3ea0
added addElapsedTime function
marvinrusinek Feb 4, 2020
ca6a904
quiz update after first code review
marvinrusinek Feb 27, 2020
d819b7f
quiz app files uploaded 04/02/20
marvinrusinek Apr 2, 2020
9b1c1cd
Initial commit
marvinrusinek Jul 2, 2020
9be7272
Delete README.md
marvinrusinek Jul 2, 2020
2fbbc47
upload quiz app
marvinrusinek Jul 2, 2020
66bfa2c
Created README.md
marvinrusinek Jul 2, 2020
8e40052
Add files via upload
marvinrusinek Jul 2, 2020
a8ca3f6
Update README.md
marvinrusinek Jul 2, 2020
42a2bf1
Update README.md
marvinrusinek Jul 2, 2020
6ec881a
fixed condition inside checkIfAnsweredCorrectly
marvinrusinek Jul 2, 2020
4928b8f
add Angular 9 RxJS quiz app files
marvinrusinek Jul 2, 2020
a2e4c9c
add getters to dependency-injection-quiz.component.ts
marvinrusinek Jul 3, 2020
92fef5c
removed this.quizMetadata.totalQuestions from ngOnInit
marvinrusinek Jul 3, 2020
4e79b9a
simplify multipleAnswer assignment in ngOnChanges
marvinrusinek Jul 3, 2020
53e81d5
add empty promise to this.router.navigate statements
marvinrusinek Jul 3, 2020
c54b1d6
add .then() to this.router.navigate
marvinrusinek Jul 3, 2020
816c923
add .then() to this.router.navigate
marvinrusinek Jul 3, 2020
a99d01c
add .then()
marvinrusinek Jul 3, 2020
ad211c0
simplify this.multipleAnswers assignment
marvinrusinek Jul 3, 2020
7ec6574
add .then() to this.router.navigate routes
marvinrusinek Jul 3, 2020
ac932b0
add .then() to this.router.navigate route
marvinrusinek Jul 3, 2020
2b102ef
remove this.quizMetadata.totalQuestions from ngOnInit
marvinrusinek Jul 3, 2020
cb4e0c4
add explanationText and numberOfCorrectOptions getters to declarations
marvinrusinek Jul 3, 2020
c301d85
Update README.md
marvinrusinek Jul 3, 2020
4196160
Update README.md
marvinrusinek Jul 10, 2020
887e2ed
quiz app after quiz-selection component is added and the routing works
marvinrusinek Jul 18, 2020
1ef4a1a
base app almost done
marvinrusinek Jul 31, 2020
eb793d4
Update README.md
marvinrusinek Jul 31, 2020
c7bf3c4
Update README.md
marvinrusinek Jul 31, 2020
f61bee5
Update README.md
marvinrusinek Jul 31, 2020
06aa7ef
Update README.md
marvinrusinek Jul 31, 2020
9bd6a6d
Update README.md
marvinrusinek Jul 31, 2020
74b8239
removed onClick in QuizSelectionComponent
marvinrusinek Aug 1, 2020
472ff86
Update README.md
marvinrusinek Aug 1, 2020
011a797
previous answer text showing in new quiz
marvinrusinek Aug 4, 2020
f34b1bd
Update README.md
marvinrusinek Aug 6, 2020
4e03d28
added mat-checkbox to shuffle questions/answers in IntroductionComponent
marvinrusinek Aug 6, 2020
db360b7
made some changes to QuizComponent ts file
marvinrusinek Aug 6, 2020
e748bb8
fixed Twitter URL in ResultsComponent
marvinrusinek Aug 6, 2020
6ec2ffe
upload of latest quiz app
marvinrusinek Aug 10, 2020
9fdaef3
Update README.md
marvinrusinek Aug 14, 2020
e531d86
Update README.md
marvinrusinek Aug 14, 2020
17f6d4a
fixed scoring issue for multiple-answer questions
marvinrusinek Aug 14, 2020
84dda0b
Update README.md
marvinrusinek Aug 14, 2020
d055215
Update README.md
marvinrusinek Aug 14, 2020
cb5835f
Update README.md
marvinrusinek Aug 14, 2020
5734ed2
Update README.md
marvinrusinek Aug 14, 2020
1e1a3ab
Update README.md
marvinrusinek Aug 16, 2020
99ca552
Update README.md
marvinrusinek Aug 16, 2020
0f3f0bf
Update README.md
marvinrusinek Aug 16, 2020
b5fca62
Update README.md
marvinrusinek Aug 17, 2020
5da7f18
Update README.md
marvinrusinek Aug 18, 2020
1405e7d
Update README.md
marvinrusinek Aug 18, 2020
74c8109
Update README.md
marvinrusinek Aug 18, 2020
e1e359e
Update README.md
marvinrusinek Aug 19, 2020
6acf547
made some more changes to the app
marvinrusinek Aug 19, 2020
17e0890
Update README.md
marvinrusinek Aug 19, 2020
bbd84ca
Update README.md
marvinrusinek Aug 19, 2020
93858bf
backup of quiz 08-22-20
marvinrusinek Aug 22, 2020
da3f67c
quiz 08-22-20, fixed saveHighScores function
marvinrusinek Aug 22, 2020
590e130
quiz uploaded 08-22-20
marvinrusinek Aug 22, 2020
c668a96
Update README.md
marvinrusinek Aug 22, 2020
0912e23
Update README.md
marvinrusinek Aug 22, 2020
90d5bc2
Update README.md
marvinrusinek Aug 22, 2020
b50edc2
Add files via upload
marvinrusinek Aug 22, 2020
84a1d15
quiz upload 08-23-20
marvinrusinek Aug 23, 2020
e1f5630
Update README.md
marvinrusinek Aug 23, 2020
533c602
Update README.md
marvinrusinek Aug 23, 2020
94d4740
Update README.md
marvinrusinek Aug 24, 2020
c381b03
quiz upload 08-24-20
marvinrusinek Aug 24, 2020
ca4fc4e
fixed completed quiz icon issue
marvinrusinek Aug 24, 2020
50ab27f
Update README.md
marvinrusinek Aug 24, 2020
4f180d3
Update README.md
marvinrusinek Aug 24, 2020
7b31ba7
Update README.md
marvinrusinek Aug 24, 2020
adb8f7d
Update README.md
marvinrusinek Aug 24, 2020
c2cc6d7
fixed the setPreviousUserAnswersText function in QuizService
marvinrusinek Aug 24, 2020
8438a92
Update README.md
marvinrusinek Aug 24, 2020
12f20f9
fixed opacity for completed quizzes in QuizSelectionComponent
marvinrusinek Aug 24, 2020
080630a
Update README.md
marvinrusinek Aug 24, 2020
aed971d
Update README.md
marvinrusinek Aug 24, 2020
896ca7c
Update README.md
marvinrusinek Aug 24, 2020
12eb86c
Update README.md
marvinrusinek Aug 24, 2020
17b357f
Update README.md
marvinrusinek Aug 24, 2020
a57b934
Update README.md
marvinrusinek Aug 25, 2020
0015152
quiz upload 08-27-2020
marvinrusinek Aug 27, 2020
4eabf0e
Merge branch 'master' into quiz
marvinrusinek Aug 27, 2020
bd30a54
Update README.md
marvinrusinek Aug 27, 2020
e507c26
2nd quiz upload 08-27-2020
marvinrusinek Aug 27, 2020
b11d123
Delete app.component.ts
marvinrusinek Aug 27, 2020
44f712b
Delete app.component.html
marvinrusinek Aug 27, 2020
bf5bc85
Delete app.module.ts
marvinrusinek Aug 27, 2020
ad20d20
Delete quiz.module.ts
marvinrusinek Aug 27, 2020
f637654
Delete dependency-injection-quiz.component.html
marvinrusinek Aug 27, 2020
4b6518e
Delete dependency-injection-quiz.component.scss
marvinrusinek Aug 27, 2020
3ded868
Delete dependency-injection-quiz.component.ts
marvinrusinek Aug 27, 2020
a9ac9b9
Update README.md
marvinrusinek Aug 27, 2020
970bc9f
uploading codelab files from 02-27-2020
marvinrusinek Aug 30, 2020
46f5f25
upload files to quiz branch 08-31-20
marvinrusinek Aug 31, 2020
3bcd0f9
upload quiz app folder 09-05-20
marvinrusinek Sep 5, 2020
6c31000
upload app.module.ts, assets folder and index.html
marvinrusinek Sep 5, 2020
afcd29a
Update README.md
marvinrusinek Sep 5, 2020
a455213
screenshot of app
marvinrusinek Sep 5, 2020
cf7a1ae
Update README.md
marvinrusinek Sep 5, 2020
289b922
Update README.md
marvinrusinek Sep 5, 2020
396d4a0
Update README.md
marvinrusinek Sep 5, 2020
f84f338
Update README.md
marvinrusinek Sep 5, 2020
6207c98
Update README.md
marvinrusinek Sep 5, 2020
aa43ea2
Update README.md
marvinrusinek Sep 5, 2020
c286267
Update README.md
marvinrusinek Sep 5, 2020
b3a9941
Update README.md
marvinrusinek Sep 5, 2020
769f3d6
commit before merging
marvinrusinek Sep 6, 2020
f1291a7
commit before merging
marvinrusinek Sep 6, 2020
ad769ba
commit before merge
marvinrusinek Sep 6, 2020
fc2b63d
quiz upload 09-06-20
marvinrusinek Sep 6, 2020
2fe3349
upload assets and index.html
marvinrusinek Sep 6, 2020
04dcb5e
upload app.module.ts 09-06-20
marvinrusinek Sep 6, 2020
fa69698
upload quiz app 09-06-20
marvinrusinek Sep 6, 2020
931316b
commit 09-07-20
marvinrusinek Sep 7, 2020
3a4dddf
upload files
marvinrusinek Sep 7, 2020
824aac3
add .gitignore .editorconfig
marvinrusinek Sep 7, 2020
ae360ed
upload files
marvinrusinek Sep 7, 2020
3dcd241
add files
marvinrusinek Sep 7, 2020
17375f3
Removed submodule
marvinrusinek Sep 7, 2020
97ad2a7
add .gitignore .editorconfig
marvinrusinek Sep 7, 2020
c9fb50b
removed submodule
marvinrusinek Sep 7, 2020
c3b8f0a
commit before merge 09-07-20
marvinrusinek Sep 7, 2020
04e807d
add .git/config
marvinrusinek Sep 7, 2020
c086c90
upload quiz files on codelab/quiz
marvinrusinek Sep 7, 2020
035150f
upload files to codelab/quiz 11-16-20
marvinrusinek Nov 16, 2020
736c144
upload quiz 11-16-20
marvinrusinek Nov 16, 2020
a869d94
commit before merging
marvinrusinek Nov 16, 2020
2efc61b
Add files via upload
marvinrusinek Nov 17, 2020
a7f34ba
got rid of unnecessary variables in QuizSelectionComponent
marvinrusinek Nov 18, 2020
ed66260
removed unncessary unsubscribe and onDestroy
marvinrusinek Nov 18, 2020
6afbc40
get this.quizId using dependency injection, remove OnDestroy
marvinrusinek Nov 18, 2020
d35dd0e
remove unsubscribe$, Subject, activatedRoute from results components
marvinrusinek Nov 18, 2020
eb70025
fix - use semicolons in interfaces
marvinrusinek Nov 20, 2020
cbdbf8b
add currentQuestionIndex back to quiz-selection TS
marvinrusinek Nov 22, 2020
efba79f
remove toString().concat() in setCorrectOptions in QuizService
marvinrusinek Nov 24, 2020
ba76282
move justify into css
marvinrusinek Nov 24, 2020
30cda8a
remove duplicate code using inheritance
marvinrusinek Nov 25, 2020
33aebb1
change public to private in constructor
marvinrusinek Nov 25, 2020
dce7cae
make changes to scss in results containers
marvinrusinek Nov 26, 2020
1c542cc
move next message up a little
marvinrusinek Nov 26, 2020
c300c81
remove sendCurrentQuestion, this.question, this.quizStarted
marvinrusinek Nov 26, 2020
892b962
work on high scores table
marvinrusinek Nov 26, 2020
a3eead2
fixed some html in statistics template
marvinrusinek Nov 26, 2020
edbb5bf
remove class from ul
marvinrusinek Nov 26, 2020
b04e5f8
remove section tag from statistics template
marvinrusinek Nov 26, 2020
74d01a4
remove section tag from summary report
marvinrusinek Nov 26, 2020
f04fa1a
remove section tag from challenge
marvinrusinek Nov 26, 2020
64e795d
simplify the question components some more
marvinrusinek Nov 26, 2020
4aa8fed
move duplicate css into question.component.scss
marvinrusinek Nov 26, 2020
ffc01f2
move next message down a bit
marvinrusinek Nov 26, 2020
99f4837
simplify the css some more
marvinrusinek Nov 26, 2020
f6f25ec
align content inside mat-card-header
marvinrusinek Nov 27, 2020
752d146
move next message up
marvinrusinek Nov 27, 2020
edc25ef
combine styles together
marvinrusinek Nov 27, 2020
55b9273
use mat-card-title-group in quiz
marvinrusinek Nov 27, 2020
7b302b8
move paging up for the last question
marvinrusinek Nov 27, 2020
19b6b7b
fix bootstrap classes and styling in mat-card-header
marvinrusinek Nov 27, 2020
f54e51d
remove display: inline from mat-grid-tile
marvinrusinek Nov 27, 2020
1198744
remove justify-content from mat-grid-tile
marvinrusinek Nov 28, 2020
b50f1c6
use ng-container in form templates
marvinrusinek Nov 28, 2020
bfceccd
use section element for message in form templates
marvinrusinek Nov 28, 2020
1ebd1c4
use mat-card-title-group in introduction component
marvinrusinek Nov 28, 2020
da48800
use conditional two-way binding for elapsedMinute(s)
marvinrusinek Nov 28, 2020
5007ecc
use conditional two-way binding for totalQuestions
marvinrusinek Nov 28, 2020
7bfec42
use conditional 2-way binding with elapsedMinutes in summary report
marvinrusinek Nov 28, 2020
05fda98
rename variables for localStorage
marvinrusinek Nov 28, 2020
72729fc
moved saveHighScores to QuizService
marvinrusinek Nov 29, 2020
9c2adb3
made some changes to quiz service and quiz data files
marvinrusinek Nov 30, 2020
8deb25f
declared enum status globally and refactored
marvinrusinek Nov 30, 2020
ba76a90
fix path for models in imports and use bootstrap for header in quiz c…
marvinrusinek Nov 30, 2020
b2099fc
remove class binding from mat-card-footer and fix scss
marvinrusinek Dec 1, 2020
a171e91
fix last question logic in quiz component and center the quiz-selecti…
marvinrusinek Dec 23, 2020
5d509ad
update mat-card css for centering in styles.scss
marvinrusinek Dec 24, 2020
08cd06c
move start$, reset$ and stop$ variables inside constructor
marvinrusinek Dec 25, 2020
b2b5045
use ngOnInit inside TimerComponent
marvinrusinek Dec 25, 2020
f94426f
remove unused checkedShuffle
marvinrusinek Dec 28, 2020
4864f46
add concat$ observable
marvinrusinek Dec 28, 2020
ab28119
reorder variables in ScoreComponent
marvinrusinek Dec 28, 2020
3f399a5
added void to ngOnChanges
marvinrusinek Dec 28, 2020
067410b
use conditional 2-way binding for number of questions in Introduction…
marvinrusinek Jan 4, 2021
c7a18d9
change matTooltipPosition from below to above for next question
marvinrusinek Jan 7, 2021
844b3e7
remove superfluous heading text in the statistics section of results
marvinrusinek Jan 7, 2021
aab2d21
move currentQuestion variable down
marvinrusinek Jan 15, 2021
e42ec67
added space before closing brace
marvinrusinek Jan 16, 2021
197fa7c
made some changes for responsive quiz app using CSS Grid and media qu…
marvinrusinek May 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<<<<<<< HEAD
# Editor configuration, see https://editorconfig.org
=======
# Editor configuration, see http://editorconfig.org
>>>>>>> 931316b1596d118e9d78dcb00fc326c6e4d3166c
root = true

[*]
Expand All @@ -8,6 +12,12 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

<<<<<<< HEAD
[*.ts]
quote_type = single

=======
>>>>>>> 931316b1596d118e9d78dcb00fc326c6e4d3166c
[*.md]
max_line_length = off
trim_trailing_whitespace = false
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@
/dist
/tmp
/out-tsc
<<<<<<< HEAD
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json
=======

# dependencies
/node_modules
yarn.lock
>>>>>>> 931316b1596d118e9d78dcb00fc326c6e4d3166c

# IDEs and editors
/.idea
Expand All @@ -24,11 +36,26 @@ yarn.lock
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
<<<<<<< HEAD
.history/*
=======
>>>>>>> 931316b1596d118e9d78dcb00fc326c6e4d3166c

# misc
/.sass-cache
/connect.lock
/coverage
<<<<<<< HEAD
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
=======
/typings
.firebase
*.log
Expand All @@ -47,3 +74,4 @@ yarn.lock
ehthumbs.db
Thumbs.db

>>>>>>> 931316b1596d118e9d78dcb00fc326c6e4d3166c
50 changes: 14 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,27 @@
[![Join our Slack, #codelab channel](https://img.shields.io/badge/slack-%23codelab-yellowgreen)](https://nycjsorg.now.sh) [![Check out the demo](https://img.shields.io/badge/see%20the-Demo-brightgreen)](https://codelab.fun)
# Quiz

# Angular Codelab - [codelab.fun](https://codelab.fun)
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.7.

Angular Codelab is a self-paced interactive Angular course:
## Development server

<img alt="interactive exercises" src="https://user-images.githubusercontent.com/2545357/66274607-4d17a880-e84e-11e9-8ed0-a1ae678988a5.gif" width="600">

- 🔥 Everything in the browser - **no setup needed**
- 🔥 **Interactive code samples** - Change the code and see the result immediately!
- 🔥 Hands-on **Exercises** to solidify your knowledge
- 🔥 **Free** - Made for Angular enthusiasts by Angular enthusiasts
- 🔥 Written in Angular and **open source**
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

Try it out yourself at [codelab.fun](https://codelab.fun)
## Code scaffolding

## Help us make Codelab.fun better
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

- [Contribute to the codebase](#contribute-to-the-codebase)
- [Host a live Angular Codelab event in your city](#host-a-live-angular-codelab-event-in-your-city)
- [Translate Codelab to your language](#translate-codelab-to-your-language)
## Build

### Contribute to the codebase
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.

Codelab.fun is an Angular app!
## Running unit tests

It uses [angular-cli](https://cli.angular.io/) with [nx](https://nx.dev) and all materials are in a form of Angular components.
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

![image](https://user-images.githubusercontent.com/2545357/66277059-0edab300-e867-11e9-863e-340e6d888ea5.png)
## Running end-to-end tests

See what [Good first issues](https://github.com/codelab-fun/codelab/issues?q=is%3Aissue+is%3Aopen+label%3Agood-first-issue) are available.
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

See [CONTRIBUTING.md](./docs/CONTRIBUTING.md) for detailed instructions.
## Further help

### Host a live Angular Codelab event in your city

We have hosted multiple live codelab events in 10+ cities, and you can help us host one in yours!

See how in [HOSTING.md](./docs/HOSTING.md)

<img alt="People learning angular" src="https://user-images.githubusercontent.com/2545357/66275179-1fcdf900-e854-11e9-8c44-69e4368ba6c1.png" width="600">

### Translate Codelab to your language

Currently codelab.fun is availble in English and Russian.

See [TRANSLATING.md](./docs/TRANSLATING.md) for how you can help us translate the codelab into your language.

Thanks to amazing [PoEditor](https://poeditor.com) for providing us with an open source licence
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
Loading