I think I have most of it working now, Can you test this to make sure it works as expected.
It is not ready to deploy yet as I have not done the code for loacalStorage so every thing will be lost if the page is reloaded or closed.
So bearing that in mind this is just so you can look at the behaviour yourself, not for you students yet.
There are five passwords listed in the password function.
A student will enter the password and then click the IN OUT button.
If the Password is wrong or not entered. No change will take place.
If the password is correct and the Student is not already using a another password the IN OUT will toggle.
If the password is correct and the Student IS already using a another password the IN OUT will NOT toggle.
Any passwords in use cannot be used under another name until it is put back in the pool of password.
This is done by the student using the password twice. They can only use it under one name.
I have got rid of the unlock and shield as once I had the password code done I realised that they could unlock the IN OUT button but not change anything. This would through the passwords into not being used correctly i.e a student would be locked out and unable to make a change, therefore misinforming you if they are in or out.
The simple solution was to use the IN OUT button to fire the password check and then fire the IN OUT code.
Hope that makes sense.
teachervPSWAORDSAVE2_2Working.hype.zip (33.2 KB)