Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
bitcoin-top
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Daniel Edgecumbe
bitcoin-top
Commits
6b54b594
Commit
6b54b594
authored
Nov 12, 2018
by
Daniel Edgecumbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Autohide navbar based on screen dimensions at load
parent
85c313ef
Pipeline
#297
passed with stages
in 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
index.js
nginx/public_html/index.js
+4
-1
No files found.
nginx/public_html/index.js
View file @
6b54b594
...
...
@@ -100,6 +100,9 @@ var asyncRequest = function(request, callback, raw=false) {
onload
=
function
()
{
el_out
=
document
.
getElementById
(
"output"
);
let
aspect_ratio
=
window
.
innerWidth
/
window
.
innerHeight
;
let
mobile
=
aspect_ratio
<
1.33
;
// smaller than 4:3
var
app
=
new
Vue
({
el
:
'#app'
,
data
:
{
...
...
@@ -107,7 +110,7 @@ onload = function() {
now
:
getCurrentTime
(),
lastpong
:
new
Date
(
0
),
last_updated
:
new
Date
(
0
),
nav_hidden
:
tru
e
,
nav_hidden
:
mobil
e
,
uptime
:
null
,
chaininfo
:
null
,
mininginfo
:
null
,
...
...
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