+function ($) {
var VoiceHub = function() {
this.project = 'madbob/VoiceHub';
this.container = $('
')
.attr('class', 'voicehub')
.css('padding', '10px')
.css('position', 'absolute')
.css('top', '40%')
.css('width', '300px')
.css('right', '-300px')
.css('background-color', '#FFF')
.css('border-top-left-radius', '10px')
.css('border-bottom-left-radius', '10px')
.appendTo('body').append('
Do you have some feedback? Write and send it from here!
');
this.tab = $('
')
.css('position', 'absolute')
.css('top', '40%')
.css('right', this.container.outerWidth() - 30)
.css('-webkit-transform', 'rotate(270deg)')
.css('-moz-transform', 'rotate(270deg)')
.css('-o-transform', 'rotate(270deg)')
.css('writing-mode', 'lr-tb')
.css('padding', '10px')
.css('background-color', '#99E432')
.text('FEEDBACK')
.appendTo(this.container)
.click(
function() {
if (window.voicehub.container.hasClass('open'))
window.voicehub.container.animate({'right': '-300px'}, 300).removeClass('open');
else
window.voicehub.container.animate({'right': '0'}, 300).addClass('open');
}
);
this.form = $('