Skip to content

Commit c70a5ca

Browse files
add option to disable welcome panel on startup
1 parent 8270e17 commit c70a5ca

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ <h2>Contribute</h2>
9898
<div class="slimContainer">
9999
<h2><i class="icon-settings rfloat"></i>Settings</h2>
100100
<hr/>
101+
<div class="row option">
102+
<span><b>Hide welcome on startup</b></span>
103+
<div class="switch off" id="sw_nowelcome">
104+
<span class="thumb"></span>
105+
<input type="checkbox" id="opt_nowelcome">
106+
</div>
107+
</div>
101108
<div class="row option">
102109
<span><b>Imperial units</b></span>
103110
<div class="switch off" id="sw_imperial">

js/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,8 @@ $(window).ready(function() {
626626
"#sw_daylight",
627627
"#sw_hide_receivers",
628628
"#sw_hide_timebox",
629-
"#sw_hilight_vehicle"
629+
"#sw_hilight_vehicle",
630+
"#sw_nowelcome",
630631
];
631632

632633
// applies functionality when switches are toggled

js/tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ function load() {
464464
});
465465

466466
// if we there is enough screen space open aboutbox on startup
467-
if(!is_mobile && $(window).width() > 900) $('.nav li.about').click();
467+
if(!is_mobile && !offline.get('opt_nowelcome') && $(window).width() > 900) $('.nav li.about').click();
468468

469469
}, 500);
470470

0 commit comments

Comments
 (0)