Sha256: e2ad9c6e37d39ed2353e369ffe21a878c28f35601d3adf694a36fe409c678357
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
<script> <% agent_host = Tml.config.agent[:host] || 'https://tools.translationexchange.com/agent/agent.min.js' if Tml.config.agent[:cache] t = Time.now t = t - (t.to_i % Tml.config.agent[:cache].to_i).seconds agent_host += "?ts=#{t.to_i}" end %> (function() { var script = window.document.createElement('script'); script.setAttribute('id', 'tml-agent'); script.setAttribute('type', 'application/javascript'); script.setAttribute('src', '<%= agent_host %>'); script.setAttribute('charset', 'UTF-8'); script.onload = function() { Trex.init("<%=tml_application.key%>", <%=Tml.config.agent.to_json.html_safe%>); }; window.document.getElementsByTagName('head')[0].appendChild(script); })(); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tml-rails-5.2.2 | app/views/tml_rails/tags/_scripts_agent.html.erb |