-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename class name, add display toggle for web interface (store displa…
…y preference in local web store).
- Loading branch information
1 parent
4d1495d
commit 420648b
Showing
3 changed files
with
137 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Set web store | ||
if (typeof(Storage) !== "undefined") | ||
{ | ||
if( ! localStorage.performanceToolDisplay) | ||
localStorage.performanceToolDisplay = 'show'; | ||
|
||
if(localStorage.performanceToolDisplay == 'hide') | ||
performanceDisplayToggle(false); | ||
} | ||
|
||
|
||
function performanceDisplayToggle(show) | ||
{ | ||
x = document.getElementById('hiddenContent'); | ||
y = document.getElementById('performance-tool'); | ||
z = document.getElementById('performance-btn-close'); | ||
status = null; | ||
if( x.style.display == 'none' || show == true) | ||
{ | ||
x.style.display = 'block'; | ||
y.style.height = 300; | ||
y.style.maxWidth = 500; | ||
z.innerHTML = '▼'; | ||
status = 'show'; | ||
} | ||
else | ||
{ | ||
x.style.display = 'none'; | ||
y.style.height = 40; | ||
y.style.maxWidth = 36; | ||
z.innerHTML = '▲'; | ||
status = 'hide'; | ||
} | ||
|
||
if(typeof(Storage) !== "undefined" && show == null) | ||
localStorage.performanceToolDisplay = status; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters