Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
add reformal q/a widget
Browse files Browse the repository at this point in the history
  • Loading branch information
PanfilovDenis committed Jan 28, 2013
1 parent 72d50e3 commit 4b4b007
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/layouts/web/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@

%br/
= render "layouts/web/shared/footer"

= render "layouts/web/shared/reformal"
23 changes: 23 additions & 0 deletions app/views/layouts/web/shared/_reformal.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
:javascript
var reformalOptions = {
project_id: 89699,
project_host: "nastachku.reformal.ru",
tab_orientation: "right",
tab_indent: "50%",
tab_bg_color: "#F05A00",
tab_border_color: "#FFFFFF",
tab_image_url: "http://tab.reformal.ru/0JLQvtC%252F0YDQvtGB0Ysg0Lgg0L%252FRgNC10LTQu9C%252B0LbQtdC90LjRjw==/FFFFFF/1f885d8089dc5f859d0ce25bd9769cb4/right/1/tab.png",
tab_border_width: 2
};

(function() {
var script = document.createElement('script');
script.type = 'text/javascript'; script.async = true;
script.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'media.reformal.ru/widgets/v3/reformal.js';
document.getElementsByTagName('head')[0].appendChild(script);
})();

%noscript
= link_to 'http://reformal.ru' do
= image_tag 'http://media.reformal.ru/reformal.png'
= link_to 'http://nastachku.reformal.ru'

0 comments on commit 4b4b007

Please sign in to comment.