Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
🚧 update, almost working
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmasp committed Jun 13, 2021
1 parent b9f77ab commit c3cc77e
Show file tree
Hide file tree
Showing 6 changed files with 277 additions and 104 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
data
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

## Notes

* Info for inhabitants of municipalities -> [here](http://www.idescat.cat/codis/?id=50&n=9)
* I la api -> [here](http://www.idescat.cat/api/pob/)
To run a small http server and test your changes run...

```bash
python -m http.server
```

and then go to [`http://localhost:8000/`](http://localhost:8000/).

## Data

* Info for inhabitants of municipalities -> [here](http://www.idescat.cat/codis/?id=50&n=9). From here we obtain manually the csv in `data/mpiscatalunya.csv`
* API for inhabitants -> [here](http://www.idescat.cat/api/pob/)
* Vaccination api -> [here](https://analisi.transparenciacatalunya.cat/Salut/Vacunaci-per-al-COVID-19-dosis-administrades-per-m/irki-p3c7)
* To check consistency of the data -> [here](https://dadescovid.cat/?tipus=municipi&codi=08219&id_html=up_1_2&tipus_territori=territori)
32 changes: 32 additions & 0 deletions img/1F3E5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 44 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,50 @@
<html>
<head>

<head>
<link rel="icon" type="image/svg" href="img/1F3E5.svg" />
<script src="https://cdn.jsdelivr.net/npm/p5@1.3.1/lib/p5.js"></script>
<!-- <script src="main.js" type="text/javascript"></script> -->
<script src="sketch.js" type="text/javascript"></script>
</head>
<body>
<main>
<p id="code">Poble:
<link rel="stylesheet" href="styles.css">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
</head>

<body>
<h1 id="code">Municipi
<!-- <input id="cdeIN" type="text" value="082606">
<button id="submit">submit</button> -->
</p>
</main>
</body>
</h1>
<div id="canvasDiv" class="center"> </div>
<p>
nfsdkjfkjdhf
</p>
<div class="container">
<div class="row">
<div class="col">

</div>
<div class="col">
<div class="input-group mb-3">
<input type="text" id="codeX" value="Amposta" class="form-control">
<button id="submit" type="button" class="btn btn-dark">
<i class="bi bi-hand-index-thumb"></i>
</button>
</div>

</div>
<div class="col">

</div>
</div>
</div>
<div></div>


<p>
082606 , 430017, 250030
</p>
</body>

</html>
Loading

0 comments on commit c3cc77e

Please sign in to comment.