diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/coupons.css | 27 | ||||
-rw-r--r-- | static/images/food lion.png | bin | 0 -> 7372 bytes | |||
-rw-r--r-- | static/images/ingles.png | bin | 0 -> 15401 bytes | |||
-rw-r--r-- | static/images/lidl.png | bin | 0 -> 7974 bytes | |||
-rw-r--r-- | static/images/publix.png | bin | 0 -> 12467 bytes | |||
-rw-r--r-- | static/results.js | 22 |
6 files changed, 49 insertions, 0 deletions
diff --git a/static/coupons.css b/static/coupons.css new file mode 100644 index 0000000..ea225ff --- /dev/null +++ b/static/coupons.css @@ -0,0 +1,27 @@ +/* +publix #64953F; +ingles #EA2754; +food lion #004FAC; +lidl #00508D; + */ + +div .store { + border-style: solid; + border-width: 5px; +} +div .publix { + border-color: #64953F; +} +div .ingles { + border-color: #EA2754; +} +div .food.lion { + border-color: #004FAC; +} +div .lidl { + border-color: #00508D; +} + +.storeimg { + max-height: 60px; +} diff --git a/static/images/food lion.png b/static/images/food lion.png Binary files differnew file mode 100644 index 0000000..293f019 --- /dev/null +++ b/static/images/food lion.png diff --git a/static/images/ingles.png b/static/images/ingles.png Binary files differnew file mode 100644 index 0000000..53a2a74 --- /dev/null +++ b/static/images/ingles.png diff --git a/static/images/lidl.png b/static/images/lidl.png Binary files differnew file mode 100644 index 0000000..5ba8cfa --- /dev/null +++ b/static/images/lidl.png diff --git a/static/images/publix.png b/static/images/publix.png Binary files differnew file mode 100644 index 0000000..488fdf4 --- /dev/null +++ b/static/images/publix.png diff --git a/static/results.js b/static/results.js new file mode 100644 index 0000000..5d0be34 --- /dev/null +++ b/static/results.js @@ -0,0 +1,22 @@ +/* References: + * formie/static/new_form.js + */ +function react() { + event.preventDefault(); + // App uses all lowercase matches but does not convert input to lowercase so we must do it here. + var ss = document.getElementById("search").value.toLowerCase(); + var topurl = document.getElementById("topurl").innerHTML; + var path = (topurl + "/search/").replace("//","/"); + let xhr = new XMLHttpRequest(); + xhr.open("POST", path, false); + xhr.setRequestHeader("Accept", "application/html"); + xhr.setRequestHeader("From", "javascript"); + // the API supports parameter ?nocache=1 but this is not supported here. + xhr.onload = function() { + var r = document.getElementById("results"); + //console.log("Got result:"); + //console.log(xhr.responseText); + r.innerHTML = xhr.responseText; + }; + xhr.send(ss); +}; |