diff --git a/README.md b/README.md index fb92acc..f060a01 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Still in development. -See deployment here: https://kwheelan.github.io/budget-request-demo/ +See deployment here: https://kwheelan.github.io/Departmental-Budget-Request-Form ## Contributing @@ -28,4 +28,4 @@ yarn start Run webpack bundler: ```bash yarn build -``` \ No newline at end of file +``` diff --git a/js/init.js b/js/init.js new file mode 100644 index 0000000..5e91277 --- /dev/null +++ b/js/init.js @@ -0,0 +1,19 @@ +// import functions +import { loadPageState } from './utils/data_utils/local_storage_handlers.js' +import { visitPage } from './views/view_logic.js' + +export let REVENUE = 0; +export let TARGET = 2000000; +export var FISCAL_YEAR = '26'; + +// variables on the salary +export var fringe = 0.36 +export var cola = 0.02 +export var merit = 0.02 + + +document.addEventListener('DOMContentLoaded', function () { + var page_state = loadPageState(); + visitPage(page_state); +}); +