Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskaman82 <albert@wd-design.de>2015-10-24 05:28:19 +0300
committerskaman82 <albert@wd-design.de>2015-10-24 05:28:19 +0300
commit71b9e6dad4cd2739f6a189f058f350c310ecf7be (patch)
tree1aae87b5dc262391023c6d0f4cd8f1fd4214c62d /main.html
parent7dc6fece1dcf43c5347dcaf030640b711e2d7e3e (diff)
testing logview toggle
Diffstat (limited to 'main.html')
-rwxr-xr-xmain.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/main.html b/main.html
index 5b2fbf13..11576aae 100755
--- a/main.html
+++ b/main.html
@@ -90,6 +90,7 @@
<body>
<div id="main-wrapper">
<div class="headerbar">
+ <div class="logswitch"><a href="#" id="showlog">Show Log</a></div>
<div id="logo"></div>
<div id="port-picker">
@@ -232,5 +233,20 @@
<p>Waiting for data ...</p>
</div>
</div>
- </body>
+ <script>
+ /** log trigger **/
+$("#showlog").on('click', function() {
+ var state = $(this).data('state');
+ if ( state ) {
+ $("#log").animate({height: 27}, 800);
+ state = false;
+ }else{
+ $("#log").animate({height: 100}, 800);
+ state = true;
+ }
+ $(this).text(state ? 'Close' : 'Open');
+ $(this).data('state', state);
+});
+ </script>
+ </body>
</html>