Commits

Hideo Hattori committed 10577b2

changed: improved html output.

Comments (0)

Files changed (3)

pyprof2html/templates/callers.html

 {% extends 'base.html' %}
 
 {%- block head -%}
+<script type="text/javascript" src="./jquery.js"></script>
+<script type="text/javascript" id="js">
+  $(document).ready(function() {
+      $("tr").mouseover(function() {
+          $(this).addClass("hover");
+          }).mouseout(function() {
+          $(this).removeClass("hover");
+          });
+  });</script>
 {%- endblock -%}
 
 {% block content %}

pyprof2html/templates/main.html

 <script type="text/javascript" src="./jquery.tablesorter.min.js"></script>
 <script type="text/javascript" id="js">
   $(document).ready(function() {
+      $("tr").mouseover(function() {
+          $(this).addClass("hover");
+          }).mouseout(function() {
+          $(this).removeClass("hover");
+          });
+  });
+  $(document).ready(function() {
     $("table.prof").tablesorter({
       headers: {5: {sorter: false}}
     });

pyprof2html/templates/style.css

     padding:0px 1px 0px 0px;
     text-align: left;
 }
+tr.hover {
+    background-color: #e0c0e0;
+}
 #footer {
     clear: both;
     text-align: center;