1 <%= content_for :css do %>
2 /* Need separate style for each instance of svg div because javascript will manipulate the properties. */
17 stroke-linecap: round;
21 <%= content_for :js do %>
22 $(window).on('load', function() {
23 $(window).on('load resize scroll', function () { graph_zoom("<%= divId %>","<%=svgId %>", 1) } );
27 <div id="_<%= divId %>_container">
28 <div style="text-align: right">
29 <a style="cursor: pointer"><span class="glyphicon glyphicon-zoom-out" onclick="graph_zoom('<%= divId %>', '<%= svgId %>', .9)"></span></a>
30 <a style="cursor: pointer"><span class="glyphicon glyphicon-zoom-in" onclick="graph_zoom('<%= divId %>', '<%= svgId %>', 1./.9)"></span></a>
33 <div id="<%= divId %>" class="smart-scroll">
34 <span id="_<%= divId %>_center" style="padding-left: 0px"></span>