Make contact configurable
This commit is contained in:
parent
9b3cb6fe86
commit
ff9a6de339
4 changed files with 9 additions and 4 deletions
|
@ -1,3 +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'
|
|
@ -370,7 +370,7 @@
|
|||
<div id="footer" class="footer">
|
||||
<a href="https://github.com/Upload/Up1" target="_blank">Source Code</a>
|
||||
-
|
||||
<a href="mailto:contact@up1.ca" target="_blank">Contact</a>
|
||||
<a href="#" id="contact" target="_blank">Contact</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -16,9 +16,6 @@ upload.modules.addmodule({
|
|||
><a class="btn" id="inbrowserbtn" target="_blank" href="#">View In Browser</a\
|
||||
><a class="btn" id="deletebtn" href="#">Delete</a>\
|
||||
</div>\
|
||||
<div id="dlfooter" class="footer">\
|
||||
<a href="mailto:contact@up1.ca" target="_blank">Contact</a>\
|
||||
</div>\
|
||||
</div>\
|
||||
',
|
||||
init: function () {
|
||||
|
|
|
@ -19,6 +19,13 @@ upload.modules = {
|
|||
}
|
||||
}
|
||||
|
||||
upload.modules.addmodule({
|
||||
name: 'contactlink',
|
||||
init: function() {
|
||||
$('#contact').prop('href', upload.config.contact_link)
|
||||
}
|
||||
})
|
||||
|
||||
upload.modules.addmodule({
|
||||
name: 'route',
|
||||
init: function () {
|
||||
|
|
Loading…
Reference in a new issue