nuts.pug 927 B

123456789101112131415161718192021222324252627282930
  1. html
  2. head
  3. title= region.nuts
  4. link(rel='stylesheet' href='https://unpkg.com/leaflet@1.7.1/dist/leaflet.css' integrity='sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==' crossorigin='')
  5. link(rel='stylesheet' href='/map.css')
  6. script(src='https://unpkg.com/leaflet@1.7.1/dist/leaflet.js' integrity='sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==' crossorigin='')
  7. script(src='/map.js')
  8. style.
  9. body
  10. div#metadata
  11. h1= region.metadata.name + ' (' + region.metadata.code + ')'
  12. div#map
  13. table
  14. tr
  15. th Dataset
  16. th Description
  17. th Region score
  18. each ds in datasets
  19. tr
  20. td= ds.Name
  21. td= ds.Description
  22. td= region[ds.Factor][ds.Name]
  23. script.
  24. let c = !{JSON.stringify(region.metadata.centroid)};
  25. initMap(c);