Add resize handler. Add bounds checking. Add HTML copy.