Skip to content

Commit 6b0d6df

Browse files
authored
Merge pull request #1 from CodeCornTech/chore/metadata-and-pages
Chore/metadata and pages
2 parents 01b3f31 + c3aad68 commit 6b0d6df

4 files changed

Lines changed: 53 additions & 2 deletions

File tree

dist-types/client/europlate.client.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist-types/countries.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!doctype html>
2+
<html lang="it">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width,initial-scale=1" />
6+
<title>@codecorn/euro-plate-validator — Demo</title>
7+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@codecorn/euro-plate-validator@1.0.14/dist/assets/css/styles.css" />
8+
<style>
9+
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 32px; }
10+
.wrap { max-width: 760px; margin: 0 auto; }
11+
h1 { font-size: 24px; margin-bottom: 8px; }
12+
p { color:#555; }
13+
.demo { margin-top: 20px; }
14+
</style>
15+
</head>
16+
<body>
17+
<div class="wrap">
18+
<h1>@codecorn/euro-plate-validator — Demo</h1>
19+
<p>Inserisci una targa: seleziona un paese o usa AUTO. Minuscole accettate e forzate a MAIUSCOLO.</p>
20+
21+
<div id="plateBox" class="demo"></div>
22+
23+
<p style="margin-top:24px">
24+
<a href="https://www.npmjs.com/package/@codecorn/euro-plate-validator" target="_blank" rel="noreferrer">npm</a> ·
25+
<a href="https://github.com/<YOUR_ORG>/<YOUR_REPO>" target="_blank" rel="noreferrer">GitHub</a>
26+
</p>
27+
</div>
28+
29+
<script type="module">
30+
import * as EuroMod from "https://cdn.jsdelivr.net/npm/@codecorn/euro-plate-validator@1.0.14/dist/browser/index.esm.js";
31+
import { createEuroPlate } from "https://cdn.jsdelivr.net/npm/@codecorn/euro-plate-validator@1.0.14/dist/client/index.mjs";
32+
33+
const instance = createEuroPlate(EuroMod, {
34+
wrapper: "#plateBox",
35+
mode: "AUTO",
36+
i18n: "IT",
37+
allowedCountries: ["IT","FR","DE","ES","NL","UK"],
38+
vehicleType: "any",
39+
ui: { statusMode: "inline", statusIcon: "icon", showStatusText: false, iconPosition: "right" },
40+
// autoload UMD deps — opzionali
41+
autoLoadDeps: { inputmask: true, jquery: true, toastr: true },
42+
useToastrLogger: true,
43+
debug: true
44+
});
45+
46+
// Esempio: pre-seleziona IT dopo 2s
47+
// setTimeout(()=>instance.setCountry("IT"), 2000);
48+
</script>
49+
</body>
50+
</html>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "European license plate validator (Russia excluded).Syntax-only validation via regex for multiple EU/EEA countries including Italy, UK, Germany, France, Spain and more.Supports Node.js (TypeScript package) and PHP library.",
55
"keywords": [
66
"license-plate",
7+
"plate",
78
"validator",
89
"regex",
910
"europe",

0 commit comments

Comments
 (0)