-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added presets and implemented vaccination.
- Loading branch information
1 parent
77042c4
commit 8fe1c39
Showing
19 changed files
with
288 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,6 @@ | |
[(ngModel)]="showRate"> | ||
Show Rate | ||
</mat-slide-toggle> | ||
<div [chart]="chart"></div> | ||
|
||
<div [chart]="chart"></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div style="padding-left: 40px;"> | ||
<div> | ||
<a href="https://github.com/SilverLinings89/VirusSimulator/" target="_blank"> | ||
<img src="../../assets/GitHub-Mark-32px.png" width="15"/> <span style="color:#1A2D41; font-size: smaller;"> View code and propose features on GitHub</span> | ||
</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
<p>initial-infection works!</p> | ||
<div class="card"> | ||
<div class="card__header"> | ||
<div class="card__header-title text-light"><strong>Initial Infections</strong> | ||
<a class="card__header-link text-bold" *ngIf="!showAll" (click)="showAll = !showAll">View All</a> | ||
<a class="card__header-link text-bold" *ngIf="showAll" (click)="showAll = !showAll">View Less</a> | ||
</div> | ||
<div class="settings"> | ||
<div class="settings__block"><i class="fas fa-edit"></i></div> | ||
<div class="settings__block"><i class="fas fa-cog"></i></div> | ||
</div> | ||
</div> | ||
<div class="card__main"> | ||
<ul style="padding-inline-start: 0;"> | ||
<ng-container *ngFor="let c of baseData.countries"> | ||
<li *ngIf="showAll || c.initialInfected !== 0" style="list-style: none;"> | ||
<div> | ||
<mat-form-field> | ||
<mat-label>{{ c.nameFull }} ({{c.nameCode}})</mat-label> | ||
<input matInput type="number" [(ngModel)]="c.initialInfected" /> | ||
</mat-form-field> | ||
</div> | ||
</li> | ||
</ng-container> | ||
</ul> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<div style="width: 900px; height: 500px;" id="myDiv"></div> | ||
<div style="width: 100%; height: 600px;" id="myDiv"></div> | ||
<button mat-raised-button color="primary" (click)="visualize()">Run full animation</button> <br /> | ||
<button mat-raised-button color="primary" (click)="draw()">Draw single frame</button> <br /> | ||
<mat-slider | ||
class="example-margin" | ||
[disabled]="disabled" | ||
[invert]="invert" | ||
[max]="max" | ||
[min]="min" | ||
[step]="step" | ||
[thumbLabel]="thumbLabel" | ||
[tickInterval]="tickInterval" | ||
[(ngModel)]="currentTime" | ||
[vertical]="vertical"> | ||
</mat-slider> | ||
class="example-margin" | ||
[disabled]="disabled" | ||
[invert]="invert" | ||
[max]="max" | ||
[min]="min" | ||
[step]="step" | ||
[thumbLabel]="thumbLabel" | ||
[tickInterval]="tickInterval" | ||
[(ngModel)]="currentTime" | ||
[vertical]="vertical"> | ||
</mat-slider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.