Module: FriendConnectHelper

Defined in:
lib/friendconnect_helper.rb

Instance Method Summary collapse

Instance Method Details

#friendconnect_scriptObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/friendconnect_helper.rb', line 2

def friendconnect_script
  %{
      <script type='text/javascript'>
      $(document).ready(function() {
        var skin = {};
        skin['FONT_FAMILY'] = 'trebuchet ms,sans-serif';
        skin['BORDER_COLOR'] = 'transparent';
        skin['ENDCAP_BG_COLOR'] = 'transparent';
        skin['ENDCAP_TEXT_COLOR'] = '#';
        skin['ENDCAP_LINK_COLOR'] = '#';
        skin['ALTERNATE_BG_COLOR'] = 'transparent';
        skin['CONTENT_BG_COLOR'] = 'transparent';
        skin['CONTENT_LINK_COLOR'] = '#';
        skin['CONTENT_TEXT_COLOR'] = '#';
        skin['CONTENT_SECONDARY_LINK_COLOR'] = '#';
        skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#';
        skin['CONTENT_HEADLINE_COLOR'] = '#038AB0';
        skin['NUMBER_ROWS'] = '4';
        google.friendconnect.container.setParentUrl('/');
        google.friendconnect.container.renderMembersGadget({ 
          id: 'members',
          site: '#{settings.friendconnect_id}'}, skin);
      });
    </script>
  }
end