How do the if statements in the fullscreen JavaScript code determine fullscreen functionality

join shbcf.ru