Sha256: cda2bfd2eb09d2ff35e41bead8e3e539293681dc55adcd29d9f50e9cc31e6f2a

Contents?: true

Size: 1.3 KB

Versions: 3

Compression:

Stored size: 1.3 KB

Contents

<% if Tr8n::Config.enabled? and not params[:disable_tr8n_js] %>

	<%= tr8n_splash_screen_tag %>

  <% if Tr8n::Config.enable_software_keyboard? %>
    <script> 
      VKI_default_layout = "<%=Tr8n::KeyboardMapping.current_1_49%>";
    </script>     
    <%=stylesheet_link_tag("tr8n/keyboard_1_49.css") -%>
  <% end %>  

  <%=stylesheet_link_tag("tr8n/tr8n.css") -%>
  <%=javascript_include_tag("tr8n/tr8n-compiled.js", :charset => "UTF-8") -%>

  <script type="text/javascript">
     initializeTr8n();
  </script>

  <% if Tr8n::Config.enable_effects? %>
    <%=javascript_include_tag(Tr8n::Config.effects_library_path) -%>
	<% end %>
	
  <% if Tr8n::Config.enable_client_sdk? and not opts[:disable_tr8n_client_sdk] %>
    <%= tr8n_client_sdk_tag(opts) %>
    <%= tr8n_translations_cache_tag(opts) %>
  <% end %>
  
  <% if Tr8n::Config.enable_google_suggestions? and Tr8n::Config.current_user_is_translator? %>  
    <script type="text/javascript">
			Tr8n.google_api_key = "<%=Tr8n::Config.google_api_key %>";
		</script>
  <% end %>

  <% if Tr8n::Config.enable_keyboard_shortcuts? %>  
    <script type="text/javascript">
       <% Tr8n::Config.default_shortcuts.each do |key, data| %>     	
				  shortcut.add("<%=key%>", function() {
				    <%=data["script"]%>
				  });
			 <% end %>
    </script>
  <% end %>  
  
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tr8n-3.2.3 app/views/tr8n/common/_scripts.html.erb
tr8n-3.2.2 app/views/tr8n/common/_scripts.html.erb
tr8n-3.2.1 app/views/tr8n/common/_scripts.html.erb