Skip to content

Commit

Permalink
docs: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Jul 25, 2024
1 parent b64aca6 commit 2ea52ef
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
4 changes: 2 additions & 2 deletions examples/generic_editor/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<html lang="en">
<head>
<title>Generic editor - Demo lib CanvasEditor</title>
<title>Generic editor - CanvasEditor demo</title>
<link rel="stylesheet" href="../base.css" />
<script type="module" src="demo/demo.ts"></script>
</head>
<body>
<h1>Generic editor - Demo lib CanvasEditor</h1>
<h1>Generic editor - CanvasEditor demo</h1>
<section
class="grid gap-2"
style="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

<html lang="en">
<head>
<title>Generic editor - Demo CanvasEditorElement (WebComponent)</title>
<title>Generic editor - &lt;openchemlib-editor> (Web Component) demo</title>
<link rel="stylesheet" href="../base.css" />
<script type="module" src="demo.ts"></script>
<script type="module">
import OCL from '../../distesm/full.pretty';

OCL.registerCustomElement();
</script>

<style>
openchemlib-editor:defined {
Expand All @@ -13,7 +17,7 @@
</style>
</head>
<body>
<h1>Generic editor - Demo CanvasEditorElement (WebComponent)</h1>
<h1>Generic editor - &lt;openchemlib-editor> (Web Component) demo</h1>

<p>Empty editor</p>
<openchemlib-editor></openchemlib-editor>
Expand All @@ -34,6 +38,15 @@ <h1>Generic editor - Demo CanvasEditorElement (WebComponent)</h1>
fragment
></openchemlib-editor>

<p>
Molecule readonly
<code>ffc`P@H`QxNQQJJIJIZJHiSkQSejB`jFjhhaEqFUh@</code>
</p>
<openchemlib-editor
readonly
idcode="ffc`P@H`QxNQQJJIJIZJHiSkQSejB`jFjhhaEqFUh@"
></openchemlib-editor>

<p>Reaction <code>gJX@@eKU@@ gGQHDHaImfh@!defH@DAIfUVjj`@</code></p>
<openchemlib-editor
idcode="gJX@@eKU@@ gGQHDHaImfh@!defH@DAIfUVjj`@"
Expand All @@ -51,12 +64,12 @@ <h1>Generic editor - Demo CanvasEditorElement (WebComponent)</h1>
></openchemlib-editor>

<p>
Molecule readonly
<code>ffc`P@H`QxNQQJJIJIZJHiSkQSejB`jFjhhaEqFUh@</code>
Reaction readonly <code>gJX@@eKU@@ gGQHDHaImfh@!defH@DAIfUVjj`@</code>
</p>
<openchemlib-editor
idcode="gJX@@eKU@@ gGQHDHaImfh@!defH@DAIfUVjj`@"
mode="reaction"
readonly
idcode="ffc`P@H`QxNQQJJIJIZJHiSkQSejB`jFjhhaEqFUh@"
></openchemlib-editor>
</body>
</html>
6 changes: 3 additions & 3 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ <h1>OpenChemLib JS examples</h1>
<h2>Generic editor</h2>
<ul>
<li>
<a href="generic_editor/demo.html">Demo lib CanvasEditor</a>
<a href="generic_editor/demo.html">CanvasEditor demo</a>
</li>
<li>
<a href="web_component/demo.html"
>Demo CanvasEditorElement (WebComponent)</a
<a href="generic_editor/web_component.html"
>&lt;openchemlib-editor> (Web Component) demo</a
>
</li>
</ul>
Expand Down
3 changes: 0 additions & 3 deletions examples/web_component/demo.ts

This file was deleted.

0 comments on commit 2ea52ef

Please sign in to comment.