Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SWD
SWLab UI
Commits
cf2dea9f
Commit
cf2dea9f
authored
Nov 11, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update style
parent
4ed961b1
Pipeline
#21901
passed with stages
in 4 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
header.css
src/css/header.css
+1
-0
10-check-offline.js
src/js/10-check-offline.js
+3
-1
No files found.
src/css/header.css
View file @
cf2dea9f
...
@@ -174,6 +174,7 @@ body {
...
@@ -174,6 +174,7 @@ body {
.navbar-item.has-dropdown
{
.navbar-item.has-dropdown
{
padding
:
0
;
padding
:
0
;
width
:
145px
;
}
}
.navbar-item
.icon
{
.navbar-item
.icon
{
...
...
src/js/10-check-offline.js
View file @
cf2dea9f
...
@@ -3,12 +3,14 @@
...
@@ -3,12 +3,14 @@
'use strict'
'use strict'
const
chatButton
=
document
.
querySelector
(
'.chat-btn'
)
const
chatButton
=
document
.
querySelector
(
'.chat-btn'
)
const
topButton
=
document
.
querySelector
(
'.top-scroll-btn'
)
const
menu
=
document
.
querySelector
(
'.navbar-menu'
)
const
menu
=
document
.
querySelector
(
'.navbar-menu'
)
// 네트워크 상태 확인 및 버튼 제어
// 네트워크 상태 확인 및 버튼 제어
function
checkIfLocalFile
()
{
function
checkIfLocalFile
()
{
if
(
window
.
location
.
protocol
=
==
'file:'
)
{
if
(
window
.
location
.
protocol
!
==
'file:'
)
{
chatButton
.
style
.
display
=
'none'
// 오프라인 상태면 chatButton 숨김
chatButton
.
style
.
display
=
'none'
// 오프라인 상태면 chatButton 숨김
topButton
.
style
.
bottom
=
'20px'
menu
.
style
.
display
=
'none'
menu
.
style
.
display
=
'none'
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment