Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Knowledge Space WP Plugin
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alg
Knowledge Space WP Plugin
Commits
fa668589
Commit
fa668589
authored
3 years ago
by
Matthias Konitzny
Browse files
Options
Downloads
Patches
Plain Diff
Added a tooltip to the fullscreen button.
parent
b0fba4b2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
display/display.css
+1
-1
1 addition, 1 deletion
display/display.css
display/display.js
+6
-5
6 additions, 5 deletions
display/display.js
with
7 additions
and
6 deletions
display/display.css
+
1
−
1
View file @
fa668589
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
user-select
:
none
;
user-select
:
none
;
z-index
:
1
;
z-index
:
1
;
pointer-events
:
none
;
pointer-events
:
none
;
cursor
:
default
;
}
}
.no-select
{
.no-select
{
...
@@ -56,7 +57,6 @@
...
@@ -56,7 +57,6 @@
-ms-user-select
:
none
;
/* Internet Explorer/Edge */
-ms-user-select
:
none
;
/* Internet Explorer/Edge */
user-select
:
none
;
/* Non-prefixed version, currently
user-select
:
none
;
/* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
supported by Chrome, Edge, Opera and Firefox */
cursor
:
default
;
}
}
.close-button
{
.close-button
{
...
...
This diff is collapsed.
Click to expand it.
display/display.js
+
6
−
5
View file @
fa668589
...
@@ -15,18 +15,19 @@ function loadComponents() {
...
@@ -15,18 +15,19 @@ function loadComponents() {
function
createFullScreenButton
()
{
function
createFullScreenButton
()
{
const
sceneNode
=
Helpers
.
getCanvasDivNode
();
const
sceneNode
=
Helpers
.
getCanvasDivNode
();
const
overlayNode
=
document
.
createElement
(
"
div
"
);
const
overlayNode
=
Helpers
.
createDiv
(
"
fullscreen-button
"
,
sceneNode
,
{
overlayNode
.
className
=
"
fullscreen-button
"
;
innerHTML
:
"
<p>⤢</p>
"
,
overlayNode
.
innerHTML
=
"
<p>⤢</p>
"
;
title
:
"
Vollbild
"
,
});
overlayNode
.
classList
.
add
(
"
no-select
"
);
overlayNode
.
addEventListener
(
"
click
"
,
function
()
{
overlayNode
.
addEventListener
(
"
click
"
,
function
()
{
if
(
screenfull
.
isEnabled
)
{
if
(
screenfull
.
isEnabled
)
{
screenfull
.
toggle
(
Helpers
.
getCanvasDiv
Node
()
);
screenfull
.
toggle
(
scene
Node
);
G
.
resize
();
G
.
resize
();
}
else
{
}
else
{
console
.
log
(
"
No fullscreen mode available :(
"
);
console
.
log
(
"
No fullscreen mode available :(
"
);
}
}
});
});
sceneNode
.
appendChild
(
overlayNode
);
}
}
let
G
=
null
;
let
G
=
null
;
...
...
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