rsync --quiet --recursive src/assets dist/
rsync --quiet --recursive src/vendor/js/* dist/assets/js/
rsync --quiet --recursive src/vendor/css/* dist/assets/css/
-rsync --quiet --recursive src/vendor/images/* dist/assets/images/
+# rsync --quiet --recursive src/vendor/images/* dist/assets/images/
rsync --quiet --recursive src/templates dist/
# rsync --quiet --recursive src/partials dist/
footer p {
margin: 1em;
+}
+
+#error-overlay {
+ text-align: center;
+ font-style: italic;
+ padding: 2em 4em;
+ margin: 4em 8em;
+ background-color: #eee;
}
\ No newline at end of file
el.html(html);
}
+function show_error(html) {
+ $('#error-overlay').html(html).show();
+}
+
+function hide_error() {
+ $('#error-overlay').empty().hide();
+}
+
+
+$(document).ajaxError(function(event, jqXHR, ajaxSettings, thrownError) {
+ // console.log(thrownError);
+ // console.log(ajaxSettings);
+ show_error('Error fetching results from <a href="' + ajaxSettings.url + '">' + ajaxSettings.url + '</a>');
+});
/*********************************************************
* FORWARD/REVERSE SEARCH PAGE
-
+jQuery(document).ready(function(){
+ hide_error();
+});
</div>
<main>
- You need Javascript enable to view this page.
</main>
+ <div id="error-overlay">
+ You need Javascript enabled to view this page.
+ </div>
+
<footer>
<p class="disclaimer">
Addresses and postcodes are approximate