1.0.0 • Published 3 years ago

mi-vaccination-form v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Marviq Vaccination MiForm

Usage

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Marviq Vaccination MiForm</title>
    <!-- Use the specific version you need: -->
    <!-- https://unpkg.com/mi-vaccination-form@0.0.1/dist/mi-vaccination-form.es.js -->
    <!-- Or latest: -->
    <script type="module" crossorigin src="https://unpkg.com/mi-vaccination-form@latest/dist/mi-vaccination-form.es.js" defer></script>
    <link rel="stylesheet" href="https://unpkg.com/mi-vaccination-form@latest/dist/style.css">
</head>
<body>
    <!-- Provide element where form should be rendered: -->
    <div id="mi-vaccination-form" data-mi-form-type="covid"></div>
</body>
<script>
  // You can change element id that plugin is looking for
  // window.miFormIdName = 'mi-vaccination-form';
  
  // You can dynamically change plugin settings (element attributes)
  // Bear in mind that plugin state will reset!
  setTimeout(
    () => document.getElementById('mi-vaccination-form')
          .setAttribute('data-mi-form-type', 'proffessional'),
    3000,
  );
</script>
</html>

NPM

https://www.npmjs.com/package/mi-vaccination-form