Skip to content

Commit

Permalink
new build
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbeeke committed Dec 5, 2023
1 parent b3fc8e2 commit 00bcc9e
Show file tree
Hide file tree
Showing 16 changed files with 71 additions and 41 deletions.
16 changes: 15 additions & 1 deletion demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,24 @@ import { init } from '../src/init'
if (location.pathname === '/alone') {
document.body.innerHTML = `
<div class="page">
<bcp47-picker id="first" multiple value="nl,en"></bcp47-picker>
<form>
<bcp47-picker name="language" multiple value="nl,en"></bcp47-picker>
<button>Submit</button>
</form>
</div>
`

const form = document.querySelector('form')

form.addEventListener('submit', (event) => {
event.preventDefault()
const data = new FormData(form);
console.log(data, form)
for (const [name,value] of data) {
console.log(name, ":", value)
}
})

init({
sources: [
'https://bcp47.mediaworks.global/data/lmt.json',
Expand Down
2 changes: 2 additions & 0 deletions docs/index.1bdd555f.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.1bdd555f.js.map

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions docs/index.a3730719.js → docs/index.62e93560.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.62e93560.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/index.725548e3.css

This file was deleted.

1 change: 0 additions & 1 deletion docs/index.725548e3.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions docs/index.88c9cabe.css

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

Loading

0 comments on commit 00bcc9e

Please sign in to comment.