The link you provided did not say it was legal. You can’t visit a state once, live somewhere else, and legally vote in the visited state.