text: // noinspection JSUnresolvedFunction
  
  'use strict';
  
  import $ from 'jquery';
  import 'jqueryui';
  
  import UIkit from "uikit";
  
  // any CSS you import will output into a single css file (app.css in this case)
  import './styles/app.css';
  
  import Edit from './Edit';
  import Update from "./Update";
  
  
  
  // noinspection JSUnresolvedFunction
  $(document).ready(() => {
  
      $('.edit-staff-row').click(Update.editSchoolStaffRow);
  
      $('#save-user-settings').click(Update.saveUserData);
  
      let approveUserModalDiv = $('#approve-user-modal');
      if(approveUserModalDiv.length){
          let approveUserModal = UIkit.modal('#approve-user-modal');
          approveUserModal.show();
          approveUserModalDiv.find(':submit').click(Update.approveUsers);
      }
  
      $('div#register-user').find('button').click(Update.registerAsUser);
  
      $('.editable').change(Edit.change);
  
      $('.editable-slider').each((i, el) => {
          let $slider = $(el);
          $slider.slider({
              //change(Edit.updateRangeLabel)
              min: 5,
              max: 35,
              range: false,
              value: $slider.attr('value'),
              animate: true,
              change: Edit.change,
              slide: function (event, ui) {
                  console.log(ui.value);
                  $slider.attr('value', ui.value);
                  let id = $slider.attr('id');
                  $('#' + id + '_label').text(ui.value);
              }
          });
      });
  });
  
  
  