Sha256: b349af54ad6b18e9cd94f3d89f803071929718891bb4966950de00532e2c1d1a

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

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

	<%= tr8n_splash_screen_tag %>

  <%=stylesheet_link_tag("tr8n/tr8n.css") -%>
  <%=javascript_include_tag("tr8n/tr8n.js") -%>

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

  <% if Tr8n::Config.enable_effects? %>
    <%=javascript_include_tag(Tr8n::Config.effects_library_path) -%>
	<% end %>
	
  <% if Tr8n::Config.enable_google_suggestions? and Tr8n::Config.current_user_is_translator? %>
    <script type="text/javascript" src="<%=request.ssl? ? 'https' : 'http' %>://www.google.com/jsapi"></script>
    <script type="text/javascript">
       initializeTr8nGoogleSuggestions();
    </script>
  <% end %>

  <% if Tr8n::Config.enable_software_keyboard? %>
	  <script> 
		  VKI_default_layout = "<%=Tr8n::KeyboardMapping.current_1_36%>";
		</script> 	  
    <%=javascript_include_tag("tr8n/keyboard_1_36.js", :charset => "UTF-8") -%>
    <%=stylesheet_link_tag("tr8n/keyboard_1_36.css") -%>
  <% end %>  

  <% if Tr8n::Config.enable_keyboard_shortcuts? %>  
    <%=javascript_include_tag("tr8n/shortcut.js", :charset => "UTF-8") -%>
    <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

5 entries across 5 versions & 1 rubygems

Version Path
tr8n-3.1.5 app/views/tr8n/common/_scripts.html.erb
tr8n-3.1.4 app/views/tr8n/common/_scripts.html.erb
tr8n-3.1.3 app/views/tr8n/common/_scripts.html.erb
tr8n-3.1.2 app/views/tr8n/common/_scripts.html.erb
tr8n-3.1.1 app/views/tr8n/common/_scripts.html.erb