Loading calc.html +22 −24 Original line number Diff line number Diff line Loading @@ -97,21 +97,14 @@ } #help-overlay-container { width: 700px; height: 100vh; max-height: 523px; /*I just want to cover the page content*/ background: rgba(65,105,225,0.2); position: fixed; top: 10px; margin: 0px auto; } #help-overlay-content { width: 500px; margin: 0px auto; background: white; box-shadow: 3px 3px 3px black; width: 100%; padding: 20px; } #help-overlay-content h4 { margin: 0px 0; margin: 0; } #close-help-overlay { position: relative; Loading Loading @@ -166,7 +159,7 @@ width: 300px; } #help-overlay-content { width: 300px; padding: 10px; } #close-help-overlay { position: relative; Loading Loading @@ -239,6 +232,7 @@ <p>Trail <a title="clear trail" id="clear-trail" href="#">Clear Trail</a> <a title="expand trail" id="expand-trail" href="#">Expand Trail</a></p> <div id="trail-content"></div> </div> </div> <div id="help-overlay-container" class="overlay"> <div id="help-overlay-content"> <h3>HELP <a id="close-help-overlay" class="close-help-overlay" href="#">Close</a></h3> Loading @@ -256,7 +250,6 @@ </div> </div> </div> </div> <script type="text/javascript" src="vendor/localforage.min.js"></script> <script type="text/javascript" src="vendor/jquery.min.js"></script> Loading Loading @@ -669,20 +662,20 @@ updateUI(rpnCalculator); return false; }); const showHelpOverlay = function () { $('#container').hide(); $('#help-overlay-container').slideDown(); }; const hideHelpOverlay = function () { $('#help-overlay-container').hide(); $('#container').show(); }; $('#help-link').click(function (evt) { $('#help-overlay-container').show(); showHelpOverlay(); return false; }); $('#help-overlay-container').show(); // TODO remove me. $('.close-help-overlay').click(function (evt) { $('#help-overlay-container').hide(); return false; }); $('#help-overlay-container').click(function (evt) { $(event.target).hide(); }); $('#help-overlay-content').click(function (evt) { // consume this event, do not propagate to #help-overlay-container. hideHelpOverlay(); return false; }); $('#refresh-page').click(function (evt) { Loading Loading @@ -782,7 +775,12 @@ updateUI(rpnCalculator); } else { if (evt.key === "?") { $('#help-overlay-container').toggle(); const helpVisible = $('#help-overlay-container').css("display") === "block"; if (helpVisible) { hideHelpOverlay(); } else { showHelpOverlay(); } } } }); Loading operational +20 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,26 @@ Time-stamp: <2017-01-28> #+STARTUP: content * notes :entry: ** 2017-01-28 visual design notes - desktop - #container width: 700px margin: 10px auto; - #stack width: 200px - #keyboard width: 300px - #trail width: 200px - mobile - #container width: 300px - #stack width: 300px - #keyboard width: 300px - #trail width: 300px ** 2017-01-27 steps to add new operator button. :doc: - add button in UI HTML. - update fsm.js keyNames, shortKeyNames, operatorKeyList. Loading Loading
calc.html +22 −24 Original line number Diff line number Diff line Loading @@ -97,21 +97,14 @@ } #help-overlay-container { width: 700px; height: 100vh; max-height: 523px; /*I just want to cover the page content*/ background: rgba(65,105,225,0.2); position: fixed; top: 10px; margin: 0px auto; } #help-overlay-content { width: 500px; margin: 0px auto; background: white; box-shadow: 3px 3px 3px black; width: 100%; padding: 20px; } #help-overlay-content h4 { margin: 0px 0; margin: 0; } #close-help-overlay { position: relative; Loading Loading @@ -166,7 +159,7 @@ width: 300px; } #help-overlay-content { width: 300px; padding: 10px; } #close-help-overlay { position: relative; Loading Loading @@ -239,6 +232,7 @@ <p>Trail <a title="clear trail" id="clear-trail" href="#">Clear Trail</a> <a title="expand trail" id="expand-trail" href="#">Expand Trail</a></p> <div id="trail-content"></div> </div> </div> <div id="help-overlay-container" class="overlay"> <div id="help-overlay-content"> <h3>HELP <a id="close-help-overlay" class="close-help-overlay" href="#">Close</a></h3> Loading @@ -256,7 +250,6 @@ </div> </div> </div> </div> <script type="text/javascript" src="vendor/localforage.min.js"></script> <script type="text/javascript" src="vendor/jquery.min.js"></script> Loading Loading @@ -669,20 +662,20 @@ updateUI(rpnCalculator); return false; }); const showHelpOverlay = function () { $('#container').hide(); $('#help-overlay-container').slideDown(); }; const hideHelpOverlay = function () { $('#help-overlay-container').hide(); $('#container').show(); }; $('#help-link').click(function (evt) { $('#help-overlay-container').show(); showHelpOverlay(); return false; }); $('#help-overlay-container').show(); // TODO remove me. $('.close-help-overlay').click(function (evt) { $('#help-overlay-container').hide(); return false; }); $('#help-overlay-container').click(function (evt) { $(event.target).hide(); }); $('#help-overlay-content').click(function (evt) { // consume this event, do not propagate to #help-overlay-container. hideHelpOverlay(); return false; }); $('#refresh-page').click(function (evt) { Loading Loading @@ -782,7 +775,12 @@ updateUI(rpnCalculator); } else { if (evt.key === "?") { $('#help-overlay-container').toggle(); const helpVisible = $('#help-overlay-container').css("display") === "block"; if (helpVisible) { hideHelpOverlay(); } else { showHelpOverlay(); } } } }); Loading
operational +20 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,26 @@ Time-stamp: <2017-01-28> #+STARTUP: content * notes :entry: ** 2017-01-28 visual design notes - desktop - #container width: 700px margin: 10px auto; - #stack width: 200px - #keyboard width: 300px - #trail width: 200px - mobile - #container width: 300px - #stack width: 300px - #keyboard width: 300px - #trail width: 300px ** 2017-01-27 steps to add new operator button. :doc: - add button in UI HTML. - update fsm.js keyNames, shortKeyNames, operatorKeyList. Loading