-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,10 @@ | |
<link rel="icon" href=favicon.png type="image/png"> | ||
<link rel="stylesheet" href="lib/codemirror/style.css"> | ||
<link rel="stylesheet" href="style.css?3e7f4fb5e44596523a3cc50355b529cd"> | ||
<link rel="preconnect" href="https://cdnjs.cloudflare.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com"> | ||
<link href="https://fonts.googleapis.com/css2?family=PT+Mono&display=swap" rel="stylesheet"> | ||
<script>(window.customElements && document.head.attachShadow) || (document.querySelector('html').className += ' oldie')</script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/css-doodle.js"></script> | ||
<script type="module">import 'https://esm.sh/[email protected].5'</script> | ||
</head> | ||
<body> | ||
|
||
|
@@ -23,7 +22,8 @@ | |
<h1> | ||
<span class="title"> | ||
< <em>css-doodle</em> /> | ||
<a class="version" href="https://cdn.jsdelivr.net/npm/[email protected]/css-doodle.js">v0.40.3</a> | ||
<a class="version" href="https://cdn.jsdelivr.net/npm/[email protected]/css-doodle.min.js">v0.40.5</a> | ||
</span> | ||
</span> | ||
</h1> | ||
<p>A web component for drawing patterns with CSS</p> | ||
|
@@ -87,26 +87,43 @@ <h3> | |
<section class="gettting-started wrap"> | ||
<h2><a name="getting-started"></a>Getting Started</h2> | ||
<p> | ||
Download the <a href="https://cdn.jsdelivr.net/npm/css-doodle@0.40.3/css-doodle.js">latest version</a> or include it directly from a CDN: | ||
Download the <a href="https://cdn.jsdelivr.net/npm/css-doodle@latest/css-doodle.min.js">latest version</a> or include it directly from a CDN: | ||
</p> | ||
<p class="first-code-sample"> | ||
<textarea code> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/css-doodle.js"></script> | ||
|
||
<css-doodle> | ||
/* put your code here */ | ||
</css-doodle> | ||
<script src="https://cdn.jsdelivr.net/npm/css-doodle@latest/css-doodle.min.js"></script> | ||
</textarea> | ||
</p> | ||
<p>You can also install it from <a href="http://npmjs.org/package/css-doodle">npm</a> and import the module in JavaScript: | ||
<p>You can also use ES Modules in modern browsers:</p> | ||
<p> | ||
<textarea code> | ||
<script type="module"> | ||
import 'https://esm.sh/css-doodle@latest' | ||
</script> | ||
</textarea> | ||
</p> | ||
|
||
<p>If you're using a build tool, you can install it via <a href="http://npmjs.org/package/css-doodle">npm</a> and import it in JavaScript:</p> | ||
|
||
<p> | ||
<textarea code> | ||
npm install css-doodle | ||
|
||
/* import it */ | ||
import 'css-doodle'; | ||
/* index.js */ | ||
import 'css-doodle' | ||
</textarea> | ||
</p> | ||
|
||
<p>Start creating!</p> | ||
|
||
<p> | ||
<textarea code> | ||
<css-doodle> | ||
/* put your code here */ | ||
</css-doodle> | ||
</textarea> | ||
</p> | ||
|
||
</section> | ||
|
||
<!-- usage --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters