Skip to content

Commit

Permalink
Add Uservoice code
Browse files Browse the repository at this point in the history
  • Loading branch information
pointcom committed Apr 6, 2009
1 parent cc76607 commit d15e76f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/views/layouts/application.html.erb
Expand Up @@ -42,6 +42,23 @@
<%= render :partial => 'shared/footer' %>
</div>
</div>
<script type="text/javascript">
var uservoiceJsHost = ("https:" == document.location.protocol) ? "https://uservoice.com" : "http://cdn.uservoice.com";
document.write(unescape("%3Cscript src='" + uservoiceJsHost + "/javascripts/widgets/tab.js' type='text/javascript'%3E%3C/script%3E"))
</script>
<script type="text/javascript">
UserVoice.Tab.show({
key: 'railscastsfr',
host: 'railscastsfr.uservoice.com',
forum: 'general',
alignment: 'left', /* 'left', 'right' */
background_color:'#BE4545',
text_color: 'white', /* 'white', 'black' */
hover_color: '#06C',
lang: 'fr' /* 'en', 'de', 'nl', 'es', 'fr' */
})
</script>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
Expand Down

0 comments on commit d15e76f

Please sign in to comment.