Commit d1b7d952 authored by Siltaar's avatar Siltaar
Browse files

Update README.adoc

parent 96262a5d
......@@ -17,13 +17,23 @@ To use it, include the `month_nb.js` file and define a `month_nb_json` variable
containing the `month_nb.json` instantiated object :
```html
<script src="month_nb.js" type="text/javascript"></script>
<script type="text/javascript">
month_nb_json = {};
fetch("month_nb.json").then(r => r.json()).then(json => month_nb_json = json);
</script>
<script src="month_nb.js" type="text/javascript"></script>
```
A expliciter approach would be :
```html
<script src="month_nb.js" type="text/javascript"></script>
<script type="text/javascript">
fetch("month_nb.json").then(r => r.json()).then(month_nb_json => {
month_nb('août', month_nb_json);
});
</script>
```
== Architecture
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment