Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist-types/client/europlate.client.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist-types/countries.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!doctype html>
<html lang="it">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>@codecorn/euro-plate-validator — Demo</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@codecorn/euro-plate-validator@1.0.14/dist/assets/css/styles.css" />
<style>
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 32px; }
.wrap { max-width: 760px; margin: 0 auto; }
h1 { font-size: 24px; margin-bottom: 8px; }
p { color:#555; }
.demo { margin-top: 20px; }
</style>
</head>
<body>
<div class="wrap">
<h1>@codecorn/euro-plate-validator — Demo</h1>
<p>Inserisci una targa: seleziona un paese o usa AUTO. Minuscole accettate e forzate a MAIUSCOLO.</p>

<div id="plateBox" class="demo"></div>

<p style="margin-top:24px">
<a href="https://www.npmjs.com/package/@codecorn/euro-plate-validator" target="_blank" rel="noreferrer">npm</a> ·
<a href="https://github.com/<YOUR_ORG>/<YOUR_REPO>" target="_blank" rel="noreferrer">GitHub</a>
</p>
</div>

<script type="module">
import * as EuroMod from "https://cdn.jsdelivr.net/npm/@codecorn/euro-plate-validator@1.0.14/dist/browser/index.esm.js";
import { createEuroPlate } from "https://cdn.jsdelivr.net/npm/@codecorn/euro-plate-validator@1.0.14/dist/client/index.mjs";

const instance = createEuroPlate(EuroMod, {
wrapper: "#plateBox",
mode: "AUTO",
i18n: "IT",
allowedCountries: ["IT","FR","DE","ES","NL","UK"],
vehicleType: "any",
ui: { statusMode: "inline", statusIcon: "icon", showStatusText: false, iconPosition: "right" },
// autoload UMD deps — opzionali
autoLoadDeps: { inputmask: true, jquery: true, toastr: true },
useToastrLogger: true,
debug: true
});

// Esempio: pre-seleziona IT dopo 2s
// setTimeout(()=>instance.setCountry("IT"), 2000);
</script>
</body>
</html>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"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.",
"keywords": [
"license-plate",
"plate",
"validator",
"regex",
"europe",
Expand Down