Add configurable footer
This commit is contained in:
szülő
28b276876d
commit
b8ce352534
4 fájl változott, egészen pontosan 5 új sor hozzáadva és 8 régi sor törölve
|
@ -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 = '<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;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.footer a {
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
</h2>
|
||||
</noscript>
|
||||
|
||||
<div id="footer" class="footer">
|
||||
<a href="https://github.com/Upload/Up1" target="_blank">Source Code</a>
|
||||
-
|
||||
<a href="#" id="contact" target="_blank">Contact</a>
|
||||
</div>
|
||||
<div id="footer" class="footer"><a href="https://github.com/Upload/Up1" target="_blank">Source Code</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Betöltés…
Reference in a new issue