From 4b87fe5a7bbe336978afbbed35924ad28f1ea949 Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Tue, 13 Oct 2015 19:32:14 -0700 Subject: [PATCH] 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. --- README.md | 2 -- web_app/js/sif_tools.js | 38 ++++++++++++++++++++++---------------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 1feadc3..840929f 100644 --- a/README.md +++ b/README.md @@ -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.) -**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? 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. diff --git a/web_app/js/sif_tools.js b/web_app/js/sif_tools.js index 259be05..e223d1c 100644 --- a/web_app/js/sif_tools.js +++ b/web_app/js/sif_tools.js @@ -1,11 +1,24 @@ -// LDM main script of doom -// Donald Burr, VCT Labs - -// Message pane: http://stackoverflow.com/questions/5267569/display-messages-with-jquery-ui - -// up arrow = ↑ ↑ -// down arrow = ↓ ↓ -// bar = ― ― +// SIFTools +// By Donald Burr +// Copyright (c) 2015 Donald Burr. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// 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) var DEBUG_LEVEL = 0; @@ -38,11 +51,7 @@ $(document).ready(function(){ function setup_ui_elements() { LOG(1, "setup_ui_elements()"); - // set title - // document.title = "LDM Demo @ " + window.location.hostname; - // $( "#header" ).html("

LDM Demo @ " + window.location.hostname + "

"); - // set up tabs $( "#tabs" ).tabs({ active: 0, create: function(event, ui) { @@ -57,7 +66,7 @@ function setup_ui_elements() } }); - // set up datepicker + // set up date/time pickers $( "#gem_desired_date" ).datepicker(); $( "#event_end_date" ).datepicker(); $( "#event_end_time" ).timepicker(); @@ -131,9 +140,6 @@ function set_up_tab(tab) function 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()