From b8ce35253453dbdc1ec8aba6223d26348edef07a Mon Sep 17 00:00:00 2001 From: Andre D Date: Wed, 27 Jan 2016 18:43:38 -0500 Subject: [PATCH] Add configurable footer --- client/config.js.example | 2 +- client/css/up1.css | 1 + client/index.html | 6 +----- client/js/main.js | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/client/config.js.example b/client/config.js.example index 222bd9a..61bcef7 100644 --- a/client/config.js.example +++ b/client/config.js.example @@ -1,4 +1,4 @@ upload.config.server = '' // Empty if the webapp is in the same place as the server // upload.config.server = 'https://yourserver.com/' // If the webapp is separated from the server - remember the trailing slash upload.config.api_key = 'c61540b5ceecd05092799f936e27755f' // Should be the same as the server, used for uploading -upload.config.contact_link = 'mailto:someemail@email' +upload.config.footer = 'Source Code - Contact' diff --git a/client/css/up1.css b/client/css/up1.css index dcf43ba..94d7b99 100644 --- a/client/css/up1.css +++ b/client/css/up1.css @@ -203,6 +203,7 @@ position: fixed; text-align: center; width: 100%; + color: #FFF; } .footer a { diff --git a/client/index.html b/client/index.html index 6cf8d12..0ee4545 100644 --- a/client/index.html +++ b/client/index.html @@ -25,10 +25,6 @@ - + diff --git a/client/js/main.js b/client/js/main.js index 03fe184..3a87dc1 100644 --- a/client/js/main.js +++ b/client/js/main.js @@ -67,9 +67,9 @@ } upload.modules.addmodule({ - name: 'contactlink', + name: 'footer', init: function() { - $('#contact').prop('href', upload.config.contact_link) + $('#footer').html(upload.config.footer) } })