Add configurable footer

This commit is contained in:
Andre D 2016-01-27 18:43:38 -05:00
vanhempi 28b276876d
commit b8ce352534
4 muutettua tiedostoa jossa 5 lisäystä ja 8 poistoa

Näytä tiedosto

@ -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>'

Näytä tiedosto

@ -203,6 +203,7 @@
position: fixed;
text-align: center;
width: 100%;
color: #FFF;
}
.footer a {

Näytä tiedosto

@ -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>

Näytä tiedosto

@ -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)
}
})