Add configurable footer

Questo commit è contenuto in:
Andre D 2016-01-27 18:43:38 -05:00
parent 28b276876d
commit b8ce352534
4 ha cambiato i file con 5 aggiunte e 8 eliminazioni

Vedi file

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

Vedi file

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

Vedi file

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

Vedi file

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