javascript - Uservoice Widget for Rails 3 App -


i'm having trouble displaying uservoice widget on page. copied javascript code uservoice admin, converted haml pasted on app:

layouts/_uservoice.html.haml

    :javascript       (function(){         var uv=document.createelement('script');         uv.type='text/javascript';uv.async=true;         uv.src='//widget.uservoice.com/qho4zf2w4o43bj8opc65g.js';         var s=document.getelementsbytagname('script')[0];         s.parentnode.insertbefore(uv,s)         })()      :javascript       uservoice = window.uservoice || [];       uservoice.push(['showtab', 'classic_widget', {         mode: 'full',         primary_color: '#cc6d00',         link_color: '#007dbf',         default_mode: 'support',         forum_id: 216289,         tab_label: 'feedback & support',         tab_color: '#cc6d00',         tab_position: 'middle-right',         tab_inverted: false      }]); 

and home view:

    <doctype html>     %html       %head         = render 'shared/meta'         = favicon_link_tag 'tgnd_favicon.png'       %body          = render 'shared/fb'         #main{:role => "main"}            = render 'shared/header'            = render 'shared/sub_header'            .content_wrap.container            .content.box_normal               = render 'layouts/messages'               = yield            / ! end of .container        .push         = render 'layouts/uservoice'         = render 'shared/footer'         = render 'shared/dialogs' 


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -