+ Added UserVoice back to TabCandy, but this time without pulling in untrusted code from the web into a privledged context.

+ UserVoice now links from a button near the bottom of the screen. Styled with CSS3 goodness.
This commit is contained in:
Aza Raskin 2010-05-25 15:04:46 -07:00
Родитель 62cf6a56a6
Коммит 837f79367e
2 изменённых файлов: 26 добавлений и 29 удалений

Просмотреть файл

@ -255,8 +255,6 @@ body {
display: none;
}
.newTabAnimatee{
position: absolute;
background-color: white;
@ -350,4 +348,29 @@ input.defaultName:hover{
z-index: 999999 !important;
-moz-border-radius: 0 !important;
-moz-box-shadow: none !important;
}
/* Feedback
----------------------------------*/
#feedback{
position: absolute;
bottom: 0px;
right: 150px;
width: 100px;
height: 20px;
line-height: 20px;
z-index: 99 !important;
background-color: blue;
text-align: center;
color: white;
background-color: #9E9E9E;
-moz-box-shadow: 0px 0px 4px rgba(0,0,0,.3), inset 0px 1px 0px rgba(255,255,255,.4);
}
#feedback:hover{
cursor: pointer;
background-color: #A5A5A5;
-moz-box-shadow: 0px 0px 5px rgba(0,0,0,.6), inset 0px 1px 0px rgba(255,255,255,.4);
}

Просмотреть файл

@ -10,6 +10,7 @@
</head>
<body>
<a href="http://feedback.mozillalabs.com/forums/56804-tabcandy" target="new"><div id="feedback">give feedback</div></a>
<div id="bg" />
<script type="text/javascript;version=1.8">
</script>
@ -38,33 +39,6 @@
<!-- END Switch Control -->
<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>
</html>