Skip to content

Commit

Permalink
Update Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gilang-as committed Nov 8, 2021
1 parent 10fdc96 commit f4e0b1b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ npm run main.js
| Districts | https[]()://sig.bps.go.id/rest-bridging/getwilayah?level=kecamatan&parent=**{regency-id}** |
| Villages | https[]()://sig.bps.go.id/rest-bridging/getwilayah?level=kecamatan&parent=**{district-id}** |

## ToDo
+ Single JSON ✅
+ Split JSON ✅
+ Full JSON ✅
+ SQL ✅
+ Mongo ❌ (From JSON)
+ Generate Data With GitHub Actions

## License

* The scripts are license under: [MIT](LICENSE).
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
| Province | https[]()://gilang-as.github.io/indonesian-region-code/json-split/**{code}**/index.json | https[]()://gilang-as.github.io/indonesian-region-code/json-split/11/index.json |
| Regency | https[]()://gilang-as.github.io/indonesian-region-code/json-split/**{code}**/**{code}**/index.json | https[]()://gilang-as.github.io/indonesian-region-code/json-split/11/01/index.json |
| District | https[]()://gilang-as.github.io/indonesian-region-code/json-split/**{code}**/**{code}**/**{code}**/index.json | https[]()://gilang-as.github.io/indonesian-region-code/json-split/11/01/01/index.json |
| Village | https[]()://gilang-as.github.io/indonesian-region-code/json-split/**{code}**/**{code}**/**{code}**/**{code}**.json | https[]()://gilang-as.github.io/indonesian-region-code/json-split/11/01/01/2021.json |
| Village | https[]()://gilang-as.github.io/indonesian-region-code/json-split/**{code}**/**{code}**/**{code}**/**{code}**.json | https[]()://gilang-as.github.io/indonesian-region-code/json-split/11/01/01/2001.json |
22 changes: 22 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE HTML>
<html>

<head>
<title> "First Page" </title>
<script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"> </script>
</head>

<body>

<script>

// You can add your logic to geerate JSON
var customJSON = "[{"id":"1","name":"TEST_1"},{"id":"2","name":"TEST_2"},{"id":"3","name":"TEST_3"},{"id":"4","name":"TEST_4"},{"id":"5","name":"TEST_5"}]"

// Send a message for the outer page
window.top.postMessage(customJSON, '*')

</script>
</body>

</html>

0 comments on commit f4e0b1b

Please sign in to comment.