Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions JetStreamDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,14 @@ class Benchmark {
updateCounter() {
const counter = JetStream.counter;
++counter.loadedResources;
const statusElement = document.getElementById("status");
statusElement.innerHTML = `Loading ${counter.loadedResources} of ${counter.totalResources} ...`;

const statusElement = document.getElementById("status-text");
statusElement.innerText = `Loading ${counter.loadedResources} of ${counter.totalResources} ...`;

const percent = (counter.loadedResources / counter.totalResources) * 100;
const progressBar = document.getElementById("status-progress-bar");
progressBar.style.width = `${percent}%`;

}

prefetchResourcesForBrowser() {
Expand Down
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ <h2>Non-standard Parameters</h2>
<p class="summary" id="mode-description"></p>

<div id="result-summary"></div>
<div id="status" class="loading">Loading Benchmark...</div>
<div id="status" class="loading">
<div id="status-text">Loading Benchmark...</div>
<div id="status-progress-container">
<div id="status-progress-bar" style="width: 0%"></div>
</div>
</div>

<div id="results"></div>
</main>
Expand Down
59 changes: 39 additions & 20 deletions resources/JetStream.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@
*/

:root {
--color-primary: #34AADC;
--color-secondary: #86D9FF;
--color-primary: #34aadc;
--color-secondary: #86d9ff;
--text-color-inverse: white;
--text-color-primary: black;
--text-color-secondary: #555555;
--text-color-tertiary: #444444;
--text-color-subtle: #6c6c71;
--text-color-very-subtle: #8E8E93;
--heading-color: #2C98D1;
--link-hover-color: #0086BF;
--text-color-very-subtle: #8e8e93;
--heading-color: #2c98d1;
--link-hover-color: #0086bf;
--button-color-primary: rgb(52, 170, 220);
--error-text-color: #d24a59;
--benchmark-heading-color: rgb(183, 183, 183);
--benchmark-error-text-color: #ff8686;
--benchmark-done-result-color: #4A4A4A;
--benchmark-done-result-color: #4a4a4a;
--gap: 3rem;
--width: 200px;
}
Expand All @@ -63,7 +63,7 @@ body {
background-position: center -5vw;
background-size: 100vw;
padding-bottom: 0px;
background-image: url('clouds.svg');
background-image: url("clouds.svg");
overflow-y: hidden;
height: 100%;
}
Expand All @@ -86,7 +86,7 @@ body.nonDefaultParams {

& h2 {
text-align: center;
}
}

& p {
text-align: center;
Expand Down Expand Up @@ -125,7 +125,6 @@ body.nonDefaultParams {
color: var(--highlight);
}


.overflow-scroll {
overflow-y: auto;
}
Expand All @@ -134,7 +133,6 @@ body.nonDefaultParams {
overflow: visible;
}


::selection {
background-color: var(--color-primary);
color: var(--text-color-inverse);
Expand Down Expand Up @@ -173,15 +171,15 @@ img {
box-sizing: border-box;
background-repeat: no-repeat;
background-position: center;
background-image: url('JetStream3Logo.svg');
background-image: url("JetStream3Logo.svg");
color: transparent;
animation: swingin 350ms ease-out forwards;
will-change: transform, opacity;
height: 75px;
}

#jetstreams {
background-image: url('jetstreams.svg');
background-image: url("jetstreams.svg");
background-repeat: no-repeat;
background-size: contain;
background-position: center;
Expand Down Expand Up @@ -231,7 +229,6 @@ h1 {
margin-bottom: 0;
}


h2,
h3,
h4,
Expand All @@ -241,7 +238,6 @@ h6 {
text-align: left;
}


h4,
h5,
h6 {
Expand Down Expand Up @@ -312,6 +308,19 @@ a.button {
background-image: none;
}

#status.loading,
#status-progress-bar {
background-image: linear-gradient(
132deg,
#96e5ff 0%,
#96e5ff 2%,
#86d9ff 42%,
#8bdaff 84%,
#96e5ff 98%,
#96e5ff 100%
);
}

#status.loading {
position: absolute;
top: 0;
Expand All @@ -322,9 +331,8 @@ a.button {
font-size: 4rem;
font-style: italic;
font-weight: 500;
letter-spacing: -0.10rem;
letter-spacing: -0.1rem;
color: transparent;
background-image: linear-gradient(132deg, #96E5FF 0%, #96E5FF 2%, #86D9FF 42%, #8BDAFF 84%, #96E5FF 98%, #96E5FF 100%);
-webkit-background-clip: text;
background-repeat: no-repeat;
-webkit-touch-callout: none;
Expand All @@ -336,6 +344,18 @@ a.button {
margin: 0 auto 1rem;
}

#status-progress-container {
height: 2.4rem;
width: 80%;
margin: 1rem auto;
overflow: hidden;
}

#status-progress-bar {
height: 100%;
width: 0%;
}

.error h2,
.error p {
color: var(--error-text-color);
Expand Down Expand Up @@ -416,7 +436,8 @@ a.button {
.benchmark h4,
.benchmark .result,
.benchmark label,
.benchmark .plot {
.benchmark .plot,
#status-progress-container {
color: transparent;
background: linear-gradient(160deg, rgba(249, 249, 249, 1) 0%, rgba(238, 238, 238, 1) 100%);
border-radius: 3px;
Expand All @@ -435,7 +456,6 @@ a.button {
background-image: none;
}


.benchmark-done h3,
.benchmark-done h4,
.benchmark-done .result,
Expand Down Expand Up @@ -488,10 +508,9 @@ a.button {
vertical-align: middle;
font-style: italic;
font-weight: bold;
font-family: 'Times New Roman', Times, serif;
font-family: "Times New Roman", Times, serif;
line-height: 1.6rem;
margin-top: -0.2rem;

}

.benchmark-running a.info {
Expand Down
Loading