Rust编写的JavaScript引擎,该项目是一个试验性质的项目。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Webpack App</title>
|
|
|
|
<link href="assets/bootstrap.min.css" rel="stylesheet" />
|
|
|
|
</head>
|
|
|
|
<style>
|
|
|
|
.demo__img {
|
|
|
|
width: 400px;
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea.textbox {
|
|
|
|
height: 400px;
|
|
|
|
border: 1px solid #8db5e4;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
flex: 2;
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.demo__repl {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.output {
|
|
|
|
flex: 1;
|
|
|
|
border: 1px solid black;
|
|
|
|
padding: 8px;
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<img class="demo__img" src="boa/assets/01_rust_loves_js.png" />
|
|
|
|
|
|
|
|
<div class="demo__repl">
|
|
|
|
<textarea class="form-control textbox"> </textarea>
|
|
|
|
<p class="output"></p>
|
|
|
|
</div>
|
|
|
|
<button type="buttont" class="btn btn-primary">Evaluate</button>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|