+ Added a UserVoice feedback mechanism via UserVoice.

This commit is contained in:
Aza Raskin 2010-05-13 13:34:25 -07:00
parent 2be74de413
commit 4b810f10c2

View File

@ -39,7 +39,30 @@
<script type="text/javascript;version=1.8" src="js/ui.js"></script>
<script type="text/javascript;version=1.8">
</script>
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>
</html>