-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ We'll build a simple dashboard showing KPI cards that looks like this: | |
|
||
## 2. Include UIFactory | ||
|
||
Add these 2 lines to the HTML. This links directly to UIFactory from CDNJS, and you don't need to install anything. | ||
Add this line to your HTML file. This links directly to UIFactory from the CDN. No need to install anything. | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/uifactory.min.js"></script> | ||
|
@@ -266,9 +266,9 @@ To create this, change the `<p>We will add some text here about performance.</p> | |
|
||
```html | ||
<p> | ||
<% if (percent < 50) { %> | ||
<% if (percent <= 50) { %> | ||
${title} is comfortably low at ${Math.round(percent)}% of the ${limit} limit. | ||
<% } else if (percent < 75) { %> | ||
<% } else if (percent <= 75) { %> | ||
${title} is a bit high at ${Math.round(percent)}% of the ${limit} limit. | ||
<% } else { %> | ||
<strong>Reduce ${title}!</strong> You're at ${Math.round(percent)}% of the ${limit} limit. | ||
|
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