# HG changeset patch # User IBBoard # Date 1561578070 -3600 # Node ID a42497c3964ce3ece19e39b8af95de77f774d9af # Parent db2811ebfbd24e5d1c4d001d4b2081aedfcbbcf0 Move scripts & CSS to files to play nicely with CSP diff -r db2811ebfbd2 -r a42497c3964c exif-graphr.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/exif-graphr.css Wed Jun 26 20:41:10 2019 +0100 @@ -0,0 +1,35 @@ +.axis path, +.axis line { + fill: none; + stroke: black; + shape-rendering: crispEdges; +} + +.axis text { + font-family: sans-serif; + font-size: 11px; +} + +.d3-tip { + background-color: rgba(51, 51, 51, 0.9); + border-radius: 5px; + border: 1px solid #000; + color: #f0f0f0; + font-size: 80%; + padding: 0.5em; + max-width: 25em; +} +.d3-tip:after { + display: block; + content: " "; + position: absolute; + top: 100%; + left: 50%; + margin-left: -5px; + border: 5px solid transparent; + border-width: 10px 5px 0 5px; + border-top-color: #000; +} +table { border-collapse: collapse; width: 100% } +td, th { border: 1px solid #aaa } +th { background-color: #ddd } diff -r db2811ebfbd2 -r a42497c3964c exif-graphr.js --- a/exif-graphr.js Sat Jun 03 21:00:48 2017 +0100 +++ b/exif-graphr.js Wed Jun 26 20:41:10 2019 +0100 @@ -1,6 +1,9 @@ var debug = false; var photo_data = {}; +document.getElementById('submit').onclick = visualise; +document.getElementById('username').onkeypress = function() { if (event.keyCode==13) { visualise(); return false; } } + /* Helper functions */ function byID(d) { return d.id; } function byValue(d) { return d; } diff -r db2811ebfbd2 -r a42497c3964c index.html --- a/index.html Sat Jun 03 21:00:48 2017 +0100 +++ b/index.html Wed Jun 26 20:41:10 2019 +0100 @@ -8,43 +8,7 @@ - +

Exif Graphr

@@ -57,7 +21,7 @@
  • Colour saturation is based on ISO (higher ISO is more sensitive, so the colour is brighter)
  • - +