Skip to content

Commit 4d6f6b6

Browse files
committed
fix: update demo
1 parent d50f013 commit 4d6f6b6

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

demo/index.html

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,15 @@
1111
<link rel="manifest" href="/manifest.webmanifest" />
1212
</head>
1313
<body>
14-
<input value="12" calculate="* 100" />
15-
<input class="we" key="total" id="id1" value="12" />
16-
<input class="we" key="total" id="id2" value="13" />
17-
<!--<input id="id3" value="14"><br><br><br>-->
14+
<input value="12" calculate="$value * 100" />
15+
<input class="class1" key="total" id="id1" value="12" />
16+
<input class="class1" key="total" id="id2" value="13" />
1817

19-
<input id="te" calculate="{(#id1)} + {(#id2)}" />
20-
<!--<input calculate="1 + 3 * 5">-->
21-
<input calculate="{[key='total']} + 1" />
22-
<h1 calculate="{[key='total']} + {(#te)}">sum</h1>
23-
24-
<!--<h1 calculate="sum[.we]">sum</h1>-->
25-
<!--<h1 calculate="1 + {(#id1)} * 5 + {(#id3)}/{(#id2)} + {(#id2)}"></h1>-->
26-
<!--<h1 calculate="(({#id1} + {#id2})) * {#id3}"></h1>-->
18+
<input id="te" calculate="($selctor #id1) + ($selctor #id2)" />
19+
<input calculate="($selctor [key='total']) + 1" />
20+
<h1 calculate="($selctor [key='total']) + ($selctor .class1)">sum</h1>
2721

2822
<!--<script src="../dist/CoCreate-calculate.js"></script>-->
29-
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
23+
<script src="https://dev.CoCreate.app/dist/CoCreate.js"></script>
3024
</body>
3125
</html>

0 commit comments

Comments
 (0)