-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
report(redesign): fireworks #8660
Changes from 3 commits
83bbdb1
eddf592
2e29a7a
ef686a2
72b1331
50907fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -244,16 +244,16 @@ class ReportRenderer { | |
|
||
// TODO(hoten) - fireworks show will commence later. | ||
// Fireworks | ||
// const scoresAll100 = report.reportCategories.every(cat => cat.score === 1); | ||
// if (!this._dom.isDevTools() && scoresAll100) { | ||
// if (scoresAll100) { | ||
// const scoresContainer = this._dom.find('.lh-scores-container', headerContainer); | ||
// scoresContainer.classList.add('score100'); | ||
// scoresContainer.addEventListener('click', _ => { | ||
// scoresContainer.classList.toggle('fireworks-paused'); | ||
// }); | ||
// } | ||
// } | ||
const scoresAll100 = report.reportCategories.every(cat => cat.score === 1); | ||
if (!this._dom.isDevTools() && scoresAll100) { | ||
if (scoresAll100) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need to double check |
||
const scoresContainer = this._dom.find('.lh-scores-container', headerContainer); | ||
scoresContainer.classList.add('score100'); | ||
scoresContainer.addEventListener('click', _ => { | ||
scoresContainer.classList.toggle('fireworks-paused'); | ||
}); | ||
} | ||
} | ||
|
||
if (scoreHeader) { | ||
const scoreGauges = | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,7 +186,12 @@ | |
} | ||
</style> | ||
<div class="lh-scores-wrapper"> | ||
<div class="lh-scores-container"></div> | ||
<div class="lh-scores-container"> | ||
<div class="pyro"> | ||
<div class="before"></div> | ||
<div class="after"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
|
@@ -362,6 +367,7 @@ | |
*/ | ||
.pyro { | ||
display: none; | ||
z-index: 1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need |
||
} | ||
.score100 .pyro { | ||
display: block; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nuke