Description
diff --git a/public/parts/nav.php b/public/parts/nav.php
index a4311a6..10cf1b4 100644
--- a/public/parts/nav.php
+++ b/public/parts/nav.php
@@ -53,7 +53,11 @@ foreach ($cats as $c) {
-
- Cart
+ Cart
-
diff --git a/public/static/script.js b/public/static/script.js
new file mode 100644
index 0000000..dc9702e
--- /dev/null
+++ b/public/static/script.js
@@ -0,0 +1,12 @@
+/*
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+
+$(".item-picker").on('click', function () {
+ $("#bigImage").attr('src', $(this).data('imgurl'));
+ $(".item-picker").removeClass('border-primary');
+ $(this).addClass('border-primary');
+});
\ No newline at end of file
diff --git a/public/static/style.css b/public/static/style.css
new file mode 100644
index 0000000..419c696
--- /dev/null
+++ b/public/static/style.css
@@ -0,0 +1,23 @@
+/*
+This Source Code Form is subject to the terms of the Mozilla Public
+License, v. 2.0. If a copy of the MPL was not distributed with this
+file, You can obtain one at http://mozilla.org/MPL/2.0/.
+*/
+
+.item-line-img {
+ height: 4rem;
+}
+
+.item-picker-img {
+ height: 4rem;
+ width: 4rem;
+}
+
+#bigImage {
+ display: block;
+ max-height: 18rem;
+ max-width: 100%;
+ height: auto;
+ width: auto;
+ margin: 0 auto;
+}
\ No newline at end of file
diff --git a/settings.template.php b/settings.template.php
index d17f4e0..8c537a5 100644
--- a/settings.template.php
+++ b/settings.template.php
@@ -25,6 +25,9 @@ define("BINSTACK_DB_USER", "inventory");
define("BINSTACK_DB_PASS", "");
define("BINSTACK_DB_CHARSET", "utf8");
+// Absolute path to image.php in the BinStack installation folder
+// Required for item images to load
+define("BINSTACK_URL_IMAGEPHP", "/binstack/image.php");
// Name of the app.
define("SITE_TITLE", "NickelBox");