Skip to content

Commit

Permalink
update remote data url for production and update download-all-metadat…
Browse files Browse the repository at this point in the history
…a.html

even though the file is not currently used

close #35
  • Loading branch information
jaylenw committed Sep 19, 2024
1 parent 10cb4d0 commit f4ca381
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _config_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment: production
# ga_prod: 'paste UA code here'

# Uncomment and configure to point to a different data source for production.
remote_data_prefix: https://sdgdatabase.lamayor.org
remote_data_prefix: https://data.sdg.lacity.gov
remote_translations:
- https://open-sdg.github.io/sdg-translations/translations-2.1.0.json
analytics:
Expand Down
8 changes: 5 additions & 3 deletions _includes/components/download-all-metadata.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<!-- File is currently not being used on the website 2024-09-19 -->

<div id="main-content" class="container search-results" role="main">
<div id='mydiv'>
<button class='btn btn-primary btn-download'>Download All Metadata</button>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.1.0/papaparse.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js" integrity="sha512-aVKKRRi/Q/YV+4mjoKBsE4x3H+BkegoM/em46NNlCqNTmUYADjBbeNefNxYV7giUp0VxICtqdrbqU7iVaeZNXA==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.1.0/papaparse.js" integrity="sha512-psmE9mPOijgkia3d84n+hmabnYqFn2qVRcDtED22ou0gGd49DVAOLtx6rNk92U/0kPkSIKWgA0y6KnehTLv4Cg==" crossorigin="anonymous"></script>
<script>
$(document).ready(function () {
$('button').click(function () {
fetch("https://dawncomer.github.io/open-sdg-data-starter/meta/all.json")
fetch("data.sdg.lacity.gov/en/meta/all.json")
.then(response => response.json())
.then(function (data) {
var metadataArray = Object.values(data);
Expand Down

0 comments on commit f4ca381

Please sign in to comment.