Skip to content

Commit

Permalink
feat: add installation instructions and change src for _hsql to CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
anandgeorge committed May 24, 2024
1 parent e6b1c53 commit d454d17
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>_hsql Demo</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.10.3/sql-wasm.js" integrity="sha512-+6Q7hv5pGUBXOuHWw8OdQx3ac7DzM3oJhYqz7SHDku0yl9EBdMqegoPed4GsHRoNF/VQYK2LTYewAIEBrEf/3w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://unpkg.com/hyperscript.org"></script>
<script src="./index.js"></script>
<script src="https://cdn.jsdelivr.net/gh/3c2f3e/[email protected]/index.min.js"></script>
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
Expand Down
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ <h1>_hsql</h1>
<h2>requirements</h2>
SQL database running in the browser

<h2>installation</h2>
<ol>
<li>include <a href="https://github.com/sql-js/sql.js">sql.js</a>
<pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.10.3/sql-wasm.js"&gt;&lt;/script&gt;</code></pre>
</li>
<li>include <a href="https://hyperscript.org/">_hyperscript</a>
<pre><code>&lt;script src="https://unpkg.com/[email protected]/dist/_hyperscript.min.js"&gt;&lt;/script&gt;</code></pre></li>
<li>include _hsql:
<pre><code>&lt;script src="https://cdn.jsdelivr.net/gh/3c2f3e/[email protected]/index.min.js"&gt;&lt;/script&gt;</code></pre></li>

<h2>usage</h2>
<h3>statements</h3>
<h4>direct SQL statements</h4>
Expand Down
2 changes: 1 addition & 1 deletion multiple.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>_hsql Multiple Statements Demo</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.10.3/sql-wasm.js" integrity="sha512-+6Q7hv5pGUBXOuHWw8OdQx3ac7DzM3oJhYqz7SHDku0yl9EBdMqegoPed4GsHRoNF/VQYK2LTYewAIEBrEf/3w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://unpkg.com/hyperscript.org"></script>
<script src="./index.js"></script>
<script src="https://cdn.jsdelivr.net/gh/3c2f3e/[email protected]/index.min.js"></script>
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>_hsql Playground</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.10.3/sql-wasm.js" integrity="sha512-+6Q7hv5pGUBXOuHWw8OdQx3ac7DzM3oJhYqz7SHDku0yl9EBdMqegoPed4GsHRoNF/VQYK2LTYewAIEBrEf/3w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://unpkg.com/hyperscript.org"></script>
<script src="./index.js"></script>
<script src="https://cdn.jsdelivr.net/gh/3c2f3e/[email protected]/index.min.js"></script>
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
Expand Down

0 comments on commit d454d17

Please sign in to comment.