diff --git a/website/App.js b/website/App.js index fc13b96..0bc7b2e 100644 --- a/website/App.js +++ b/website/App.js @@ -71,12 +71,21 @@ export default class App extends Component { onKeyBoardMouseUp() { this.setState({ keyStr: [] }); } + openVersionWebsite(e) { + if (e.target && e.target.value) { + window.location.href = e.target.value; + } + } render() { const { keyStr } = this.state; let DocumentStrSource = DocumentStr; if (DocumentStrSource) DocumentStrSource = DocumentStr.replace(/([\s\S]*)/, ''); return (
+ {keyStr.length > -1 && (
{keyStr.map(item => {item})} diff --git a/website/styles/index.less b/website/styles/index.less index 468dbdc..4270756 100644 --- a/website/styles/index.less +++ b/website/styles/index.less @@ -1,3 +1,8 @@ +.version { + position: absolute; + margin: 15px 0 0 15px; +} + .keyCodeInfo { position: fixed; bottom: 10px;