diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim index 5042648..b0a9fe5 100644 --- a/app/views/layouts/application.html.slim +++ b/app/views/layouts/application.html.slim @@ -30,4 +30,5 @@ html = javascript_include_tag '/bootstrap/js/bootstrap.min.js' = javascript_include_tag '/fancyapps-fancyBox-2bb0da9/source/jquery.fancybox.pack.js' = javascript_include_tag "http://maps.googleapis.com/maps/api/js?key=#{ENV['GOOGLE_API']}&sensor=false" - = yield :javascript_includes \ No newline at end of file + = yield :javascript_includes + = javascript_include_tag '/uservoice.js' \ No newline at end of file diff --git a/app/views/layouts/landing.html.slim b/app/views/layouts/landing.html.slim index dcc4663..b008748 100644 --- a/app/views/layouts/landing.html.slim +++ b/app/views/layouts/landing.html.slim @@ -14,4 +14,5 @@ html = javascript_include_tag 'application' = javascript_include_tag 'https://login.persona.org/include.js' - = javascript_include_tag '/bootstrap/js/bootstrap.min.js' \ No newline at end of file + = javascript_include_tag '/bootstrap/js/bootstrap.min.js' + = javascript_include_tag '/uservoice.js' \ No newline at end of file diff --git a/app/views/layouts/no_header.html.slim b/app/views/layouts/no_header.html.slim index 8a938a7..1a07ada 100644 --- a/app/views/layouts/no_header.html.slim +++ b/app/views/layouts/no_header.html.slim @@ -11,4 +11,5 @@ html = yield = javascript_include_tag 'application' - = yield :javascript_includes \ No newline at end of file + = yield :javascript_includes + = javascript_include_tag '/uservoice.js' \ No newline at end of file diff --git a/public/uservoice.js b/public/uservoice.js new file mode 100644 index 0000000..fbb8834 --- /dev/null +++ b/public/uservoice.js @@ -0,0 +1,6 @@ +var uvOptions = {}; +(function() { + var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true; + uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/5ZpcaLisAVBrQKDlRrOA.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s); +})(); \ No newline at end of file