add class win-fullscreen, optimize code