Teacher faces jailtime for unsolicited porno popups in class