Add configurable footer
This commit is contained in:
parent
28b276876d
commit
b8ce352534
4 changed files with 5 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
upload.config.server = '' // Empty if the webapp is in the same place as the server
|
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.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.api_key = 'c61540b5ceecd05092799f936e27755f' // Should be the same as the server, used for uploading
|
||||||
upload.config.contact_link = 'mailto:someemail@email'
|
upload.config.footer = '<a href="https://github.com/Upload/Up1" target="_blank">Source Code</a> - <a href="mailto:someemail@email" id="contact" target="_blank">Contact</a>'
|
||||||
|
|
|
@ -203,6 +203,7 @@
|
||||||
position: fixed;
|
position: fixed;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
color: #FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer a {
|
.footer a {
|
||||||
|
|
|
@ -25,10 +25,6 @@
|
||||||
</h2>
|
</h2>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
<div id="footer" class="footer">
|
<div id="footer" class="footer"><a href="https://github.com/Upload/Up1" target="_blank">Source Code</div>
|
||||||
<a href="https://github.com/Upload/Up1" target="_blank">Source Code</a>
|
|
||||||
-
|
|
||||||
<a href="#" id="contact" target="_blank">Contact</a>
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -67,9 +67,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
upload.modules.addmodule({
|
upload.modules.addmodule({
|
||||||
name: 'contactlink',
|
name: 'footer',
|
||||||
init: function() {
|
init: function() {
|
||||||
$('#contact').prop('href', upload.config.contact_link)
|
$('#footer').html(upload.config.footer)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue