Finish the web app

Remove the "the web app is not complete" message since it is now
complete. Also remove some bogus comments and add copyright, etc.
to the JS file.
This commit is contained in:
Donald Burr 2015-10-13 19:32:14 -07:00
parent 4e28f534e3
commit 4b87fe5a7b
2 changed files with 22 additions and 18 deletions

View file

@ -185,8 +185,6 @@ You will have 50 love gems on 01/16/2016. Good things come to those who wait!
You asked for a web app, and here it is! The [web_app](web_app) directory contains a (mostly) fully featured web app version of SIF Tools. The best part is, you don't need a web server to run it. You should just be able to open the [sif_tools.html](web_app/sif_tools.html) file in your local web browser and run it right on your own computer. You will need to have JavaScript enabled in your browser however. (Of course you can host these files on a web server just like any other website, if you happen to have access to a web server.) You asked for a web app, and here it is! The [web_app](web_app) directory contains a (mostly) fully featured web app version of SIF Tools. The best part is, you don't need a web server to run it. You should just be able to open the [sif_tools.html](web_app/sif_tools.html) file in your local web browser and run it right on your own computer. You will need to have JavaScript enabled in your browser however. (Of course you can host these files on a web server just like any other website, if you happen to have access to a web server.)
**Right now the only parts of the web app that works are the Rank Calculator and Love Gem Calculator. I am working on finishing the rest of the calculators (Card Level-up and Event End.) Stay tuned!**
## Bugs? Need help? Got any suggestions/ideas for new features? Or want to chat? ## Bugs? Need help? Got any suggestions/ideas for new features? Or want to chat?
I wouldn't be surprised if there are any bugs, and/or if I got some of the calculations wrong. If you have any bug reports (or better yet, bug fixes!), suggestions/ideas for new features, or if you need help using these (or if you just want to say hi and/or chat) please feel free to send them my way. Create a pull request on Github or just drop me an email. I wouldn't be surprised if there are any bugs, and/or if I got some of the calculations wrong. If you have any bug reports (or better yet, bug fixes!), suggestions/ideas for new features, or if you need help using these (or if you just want to say hi and/or chat) please feel free to send them my way. Create a pull request on Github or just drop me an email.

View file

@ -1,11 +1,24 @@
// LDM main script of doom // SIFTools <https://github.com/dburr/SIFTools/>
// Donald Burr, VCT Labs // By Donald Burr <dburr@DonaldBurr.com>
// Copyright (c) 2015 Donald Burr.
// Message pane: http://stackoverflow.com/questions/5267569/display-messages-with-jquery-ui //
// Permission is hereby granted, free of charge, to any person obtaining a copy
// up arrow = &#8593; &#x2191; // of this software and associated documentation files (the "Software"), to deal
// down arrow = &#8595; &#x2193; // in the Software without restriction, including without limitation the rights
// bar = &#8213; &#x2015; // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// Set to 0 to disable debugging, 1+ to enable debugging (higher = more verbose) // Set to 0 to disable debugging, 1+ to enable debugging (higher = more verbose)
var DEBUG_LEVEL = 0; var DEBUG_LEVEL = 0;
@ -38,11 +51,7 @@ $(document).ready(function(){
function setup_ui_elements() function setup_ui_elements()
{ {
LOG(1, "setup_ui_elements()"); LOG(1, "setup_ui_elements()");
// set title
// document.title = "LDM Demo @ " + window.location.hostname;
// $( "#header" ).html("<h1>LDM Demo @ " + window.location.hostname + "</h1>");
// set up tabs
$( "#tabs" ).tabs({ $( "#tabs" ).tabs({
active: 0, active: 0,
create: function(event, ui) { create: function(event, ui) {
@ -57,7 +66,7 @@ function setup_ui_elements()
} }
}); });
// set up datepicker // set up date/time pickers
$( "#gem_desired_date" ).datepicker(); $( "#gem_desired_date" ).datepicker();
$( "#event_end_date" ).datepicker(); $( "#event_end_date" ).datepicker();
$( "#event_end_time" ).timepicker(); $( "#event_end_time" ).timepicker();
@ -131,9 +140,6 @@ function set_up_tab(tab)
function rank_calc_tab_selected() function rank_calc_tab_selected()
{ {
LOG(1, "rank_calc_tab_selected"); LOG(1, "rank_calc_tab_selected");
// make sure scan field has focus
// var doh = document.getElementById("barcode-scan-area");
// doh.focus();
} }
function love_gem_calc_tab_selected() function love_gem_calc_tab_selected()