Skip to content

Commit

Permalink
DOC: Fix quickstart issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sanand0 committed Sep 28, 2021
1 parent 18555d8 commit 34958a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/quickstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions docs/quickstart/kpi-dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ <h1 class="${ percent <= 50 ? 'ok' : percent <= 75 ? 'warning' : 'danger' }">${t
<section>
<h2>${value}</h2>
<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.
Expand Down

0 comments on commit 34958a5

Please sign in to comment.