This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
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
8 changed files
with
29 additions
and
23 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 |
---|---|---|
|
@@ -24,24 +24,24 @@ npm install tagin | |
|
||
Install from cdn: | ||
```html | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].1/dist/tagin.min.css"> | ||
<script src="https://unpkg.com/[email protected].1/dist/tagin.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].2/dist/tagin.min.css"> | ||
<script src="https://unpkg.com/[email protected].2/dist/tagin.min.js"></script> | ||
``` | ||
|
||
## Usage/Examples | ||
|
||
Place `css` between `<head></head>` tags: | ||
```html | ||
<head> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].1/dist/tagin.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].2/dist/tagin.min.css"> | ||
</head> | ||
``` | ||
|
||
Place `js` before `</body>` tag: | ||
```html | ||
<body> | ||
... | ||
<script src="https://unpkg.com/[email protected].1/dist/tagin.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/tagin.min.js"></script> | ||
</body> | ||
``` | ||
* You can also use tagin as javascript module: | ||
|
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].1/dist/tagin.min.css"> | ||
<script src="https://unpkg.com/[email protected].1/dist/tagin.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].2/dist/tagin.min.css"> | ||
<script src="https://unpkg.com/[email protected].2/dist/tagin.min.js"></script> |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/prismjs/themes/prism.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].1/dist/tagin.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].2/dist/tagin.min.css"> | ||
<title>Tagin</title> | ||
</head> | ||
<body class="bg-lights position-relative" data-bs-spy="scroll" data-bs-target="#list-example"> | ||
|
@@ -22,7 +22,7 @@ | |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z" /> | ||
</svg> | ||
<h1>Tagin</h1> | ||
<small>v2.0.1</small> | ||
<small>v2.0.2</small> | ||
</div> | ||
<p class="text-secondary">Simple tag input for Bootstrap</p> | ||
<p class="mb-5"> | ||
|
@@ -52,12 +52,12 @@ <h3 class="mt-5" id="installation">Installation</h3> | |
<h3 class="mt-5" id="usage">Usage/Examples</h3> | ||
<p class="text-secondary">Place <code>css</code> between <code><head></head></code> tags:</p> | ||
<pre><code class="language-html"><head> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].1/dist/tagin.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected].2/dist/tagin.min.css"> | ||
</head></code></pre> | ||
<p class="text-secondary mt-5">Place <code>js</code> before <code></body></code> tag:</p> | ||
<pre><code class="language-html"><body> | ||
... | ||
<script src="https://unpkg.com/[email protected].1/dist/tagin.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/tagin.min.js"></script> | ||
</body></code></pre> | ||
<p class="mt-5">* You can also use tagin as javascript module:</p> | ||
<pre><code class="language-html"><script src="yourscript.js" type="module"></script></code></pre> | ||
|
@@ -412,7 +412,7 @@ <h3 class="mt-5" id="methods">Methods</h3> | |
</tr> | ||
<tr> | ||
<td><code>getTags</code></td> | ||
<td>null</td> | ||
<td><code>null</code></td> | ||
<td><code>array</code></td> | ||
<td> | ||
<pre><code class="language-javascript">tagin.getTags()</code></pre> | ||
|
@@ -426,7 +426,7 @@ <h3 class="mt-5" id="methods">Methods</h3> | |
<script src="https://unpkg.com/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
<script src="https://unpkg.com/prismjs/prism.js"></script> | ||
<script src="https://unpkg.com/prismjs/plugins/file-highlight/prism-file-highlight.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/tagin.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/tagin.min.js"></script> | ||
<script> | ||
|
||
document.querySelectorAll('.tagin:not([id])').forEach((el) => { | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.