mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
+ Added a UserVoice feedback mechanism via UserVoice.
This commit is contained in:
parent
2be74de413
commit
4b810f10c2
@ -39,6 +39,29 @@
|
||||
|
||||
<script type="text/javascript;version=1.8" src="js/ui.js"></script>
|
||||
<script type="text/javascript;version=1.8">
|
||||
var uservoiceOptions = {
|
||||
/* required */
|
||||
key: 'mozillalabs',
|
||||
host: 'feedback.mozillalabs.com',
|
||||
forum: '56804',
|
||||
showTab: true,
|
||||
/* optional */
|
||||
alignment: 'left',
|
||||
background_color:'#E9E9E9',
|
||||
text_color: 'black',
|
||||
hover_color: '#AAA',
|
||||
lang: 'en',
|
||||
};
|
||||
|
||||
function _loadUserVoice() {
|
||||
var s = document.createElement('script');
|
||||
s.setAttribute('type', 'text/javascript');
|
||||
s.setAttribute('src', ("https:" == document.location.protocol ? "https://" : "http://") + "cdn.uservoice.com/javascripts/widgets/tab.js");
|
||||
document.getElementsByTagName('head')[0].appendChild(s);
|
||||
}
|
||||
_loadSuper = window.onload;
|
||||
window.onload = (typeof window.onload != 'function') ? _loadUserVoice : function() {
|
||||
_loadSuper(); _loadUserVoice(); };
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user