Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tf-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benedikt Wildenhain
tf-build
Commits
b22d7436
Commit
b22d7436
authored
May 9, 2023
by
Austin Anderson
Browse files
Options
Downloads
Patches
Plain Diff
More debugging
parent
4a18707f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tf_oss_dashboard/script.js
+12
-4
12 additions, 4 deletions
tf_oss_dashboard/script.js
with
12 additions
and
4 deletions
tf_oss_dashboard/script.js
+
12
−
4
View file @
b22d7436
...
...
@@ -106,11 +106,19 @@ $(function () {
// Empty!
// If the hash matches a Category on the page, then scroll to it once the
// window gets focus (this handles e.g. if opened in the background)
}
else
if
(
document
.
getElementById
(
unescaped
))
{
console
.
log
(
"
Scrolling to
"
,
unescaped
)
}
else
if
(
$
(
"
span[id='
"
+
unescaped
+
"
']
"
).
length
)
{
let
scrolled
=
false
console
.
log
(
"
ID detected
"
)
$
(
window
).
focus
(
function
()
{
console
.
log
(
"
Running window focus handler
"
)
if
(
!
scrolled
)
{
console
.
log
(
"
Scrolling in the window focus handler
"
)
document
.
getElementById
(
unescaped
).
scrollIntoView
({
behavior
:
'
smooth
'
});
scrolled
=
true
}
});
// If the hash is exactly 41 chars (hash sign # plus a 40-char sha hash),
// just show that modal.
}
else
if
(
window
.
location
.
hash
.
length
==
41
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment