diff --git a/www/bridges.html b/www/bridges.html index d6bcdba1044a0600f769aab5c1af762fcc3dcbc9..f36cf6f10ff6885a56a736ce15828d5e05bbb6e5 100644 --- a/www/bridges.html +++ b/www/bridges.html @@ -35,6 +35,10 @@ </p> <div id="bridge_reachability" style="margin-top:1em; width:98%;"></div> + + <p class="last-modified"> + Last Modified: <span id="last-modified"></span> + </p> </div> <script type="text/javascript" src="js/bridges.js"></script> </body> diff --git a/www/css/index.css b/www/css/index.css index 9bb74a887e0b501773b39fbda6398a517c2adb9f..7ce5e6619d73795b87721cb34be522a18430799e 100644 --- a/www/css/index.css +++ b/www/css/index.css @@ -32,3 +32,7 @@ button { #vanilla_tor, #tor-metrics, p { margin: 0 auto 0 auto; } + +.last-modified { + margin-top: 4em; +} diff --git a/www/index.html b/www/index.html index 495095e35c9743a5a417c27dc1078051a0a03be2..1d6dbb730ce2b7e47b078694ad664a61c0b57cdc 100644 --- a/www/index.html +++ b/www/index.html @@ -41,6 +41,10 @@ <p style="margin-top:2em;"> <a href="bridges.html">What about blocked bridges?</a> </p> + + <p class="last-modified"> + Last Modified: <span id="last-modified"></span> + </p> </div> <script type="text/javascript" src="js/index.js"></script> </body> diff --git a/www/js/bridges.js b/www/js/bridges.js index 4d2941736b674abd790d372486ce5af3460785d7..a515c42edbe02e2a25a3e028704c76910075ee6d 100644 --- a/www/js/bridges.js +++ b/www/js/bridges.js @@ -53,7 +53,8 @@ var bridgeFilter = {field:"type", type:"in", value:["TB", "B"]} var ctrlFilter = {field:"ctrl", type:">=", value:80} $.getJSON("countries-bridges.json") -.done(function( json ) { +.done(function( json, textStatus, jqXHR ) { + $("#last-modified").html(jqXHR.getResponseHeader("Last-Modified")); $("#bridge_reachability").tabulator("setData", json); applyFilter(); }) diff --git a/www/js/index.js b/www/js/index.js index d7388c84a121e1fe3028f23979c1f07d499a1e89..8aebdcd7ba817655458725c654f5d4e188d53726 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -20,7 +20,8 @@ $("#vanilla_tor").tabulator({ }); $.getJSON("countries.json") -.done(function( json ) { +.done(function( json, textStatus, jqXHR ) { + $("#last-modified").html(jqXHR.getResponseHeader("Last-Modified")); $("#vanilla_tor").tabulator("setData", json); showOoniBlocking(); })