forked from x/ContextOS
opt some
This commit is contained in:
parent
18f8a84f7d
commit
8755fa7347
123
src/hi/hi.html
123
src/hi/hi.html
@ -4,28 +4,103 @@
|
||||
<link rel="stylesheet" href="hi.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>hello world</h1>
|
||||
<h2>hello world</h2>
|
||||
<h3>hello world</h3>
|
||||
<h4>hello world</h4>
|
||||
<h5>hello "'&world</h5>
|
||||
<h6>hello world</h6>
|
||||
<p>hello world</p>
|
||||
<i>hello world</i>
|
||||
<u>hello world</u>
|
||||
<b>hello world</b>
|
||||
<em>hello world</em>
|
||||
<strong>hello world</strong>
|
||||
<a href="https://baidu.com">baidu</a>
|
||||
<ul>
|
||||
<li> 1 </li>
|
||||
<li> 1 </li>
|
||||
<li> 1 </li>
|
||||
</ul>
|
||||
<ol>
|
||||
<li> 1 </li>
|
||||
<li> 1 </li>
|
||||
<li> 1 </li>
|
||||
</ol>
|
||||
<h1>hello world</h1>
|
||||
<h2>hello world</h2>
|
||||
<h3>hello world</h3>
|
||||
<h4>hello world</h4>
|
||||
<h5>hello "'&world</h5>
|
||||
<h6>hello world</h6>
|
||||
<p>hello world</p>
|
||||
<em>hello world</em>
|
||||
<strong>hello world</strong>
|
||||
<i>hello world</i>
|
||||
<u>hello world</u>
|
||||
<b>hello world</b>
|
||||
<a href="https://baidu.com">baidu</a>
|
||||
<a href="mailto:shylinux@163.com?subject=hi&body=hello">contacts</a>
|
||||
<ul>
|
||||
<li> 1 </li>
|
||||
<li> 1 </li>
|
||||
<li> 1 </li>
|
||||
</ul>
|
||||
<ol>
|
||||
<li> 1 </li>
|
||||
<li> 1 </li>
|
||||
<li> 1 </li>
|
||||
</ol>
|
||||
<blockquote>hello world</blockquote>
|
||||
<q>hello world</q>
|
||||
<cite>hello world</cite>
|
||||
<abbr>hello world</abbr>
|
||||
<pre><code>
|
||||
package main
|
||||
func init() {
|
||||
println("hello world")
|
||||
}
|
||||
</code></pre>
|
||||
<var>msg</var><kbd>Ctrl+V</kbd>
|
||||
<samp>hello world <samp>
|
||||
<!--
|
||||
<video muted autoplay loop controls>
|
||||
<source src="http://localhost:9020/share/local/usr/local/image/2c45934eb729ba756771d26a118ec4b8.mp4"/>
|
||||
</video>
|
||||
-->
|
||||
<samp>hello world <samp>
|
||||
<iframe src="http://localhost:9020" width="100%" height="400px" style="border:none"></iframe>
|
||||
<svg width="100%" height="200">
|
||||
<rect width="100%" height="100%" fill="green" />
|
||||
<circle x="%50" y="50%" r="50%" fill="red" />
|
||||
</svg>
|
||||
<table>
|
||||
<colgroup>
|
||||
<col style="background-color:red" span="2"></col>
|
||||
<col style="background-color:blue" span="2"></col>
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th colspan="2" rowspan="2">he</th>
|
||||
<th colspan="2">hi</th>
|
||||
<th>he</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>he</td>
|
||||
<td>he</td>
|
||||
<td>he</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2">hi</td>
|
||||
<td>hi</td>
|
||||
<td>he</td>
|
||||
<td>he</td>
|
||||
<td>he</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>hi</td>
|
||||
<td>he</td>
|
||||
<td>he</td>
|
||||
<td>he</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="display:flex;width:100%">
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
<div style="flex:1">one</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
12
src/hi/hi.js
12
src/hi/hi.js
@ -1,5 +1,9 @@
|
||||
Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg) {
|
||||
msg.Echo("hello world")
|
||||
msg.Echo("<what>")
|
||||
msg.Dump(can)
|
||||
Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb) {
|
||||
can.page.style(can, can._output, html.HEIGHT, "200px")
|
||||
// var ui_top = can.onappend.layout(can, can._output, "tabs-top", can.core.List(5, function(item) { return {name: "hi"+item, list: [{text: "hi"+item}]} }))
|
||||
// var ui_bottom = can.onappend.layout(can, can._output, "tabs-bottom", can.core.List(5, function(item) { return {name: "hi"+item, list: [{text: "hi"+item}]} }))
|
||||
// var ui_left = can.onappend.layout(can, can._output, "tabs-left", can.core.List(5, function(item) { return {name: "hi"+item, list: [{text: "hi"+item}]} }))
|
||||
// var ui_right = can.onappend.layout(can, can._output, "tabs-right", can.core.List(5, function(item) { return {name: "hi"+item, list: [{text: "hi"+item}]} }))
|
||||
// var ui_box = can.onappend.layout(can, can._output, "tabs-box", can.core.List(5, function(item) { return {name: "hi"+item, list: [{text: "hi"+item}]} }))
|
||||
var ui_auto = can.onappend.layout(can, can._output, "auto")
|
||||
}})
|
||||
|
@ -1,3 +1,12 @@
|
||||
field "src/main.go" web.code.inner spark `
|
||||
package main
|
||||
|
||||
func main() {
|
||||
println("hello world")
|
||||
}
|
||||
`
|
||||
return
|
||||
|
||||
title "contexts"
|
||||
refer `
|
||||
官网 https://contexts.com.cn
|
||||
|
Loading…
x
Reference in New Issue
Block a user