jpntrip: add resize event handler.