1. Hideo Hattori
  2. pyprof2html

Commits

Hideo Hattori  committed c2b62bb

featured: filtering filename

  • Participants
  • Parent commits dbbf8cf
  • Branches default

Comments (0)

Files changed (2)

File pyprof2html/templates/main.html

View file
     $("table.prof").tablesorter({
       headers: {5: {sorter: false}}
     });
+    $('#iFilter').change(function(event) {
+       var v = $(this).val();
+
+       if (v == "") {
+          $("table.prof tbody tr").show();
+       } else {
+          $("table.prof tbody tr").hide();
+          $("table.prof tbody tr:contains('" + v + "')").show();
+       }
+    });
   });</script>
 {% endblock -%}
 
         {%- else -%}
             index.html">top 20 function&nbsp;&raquo;</a>
         {%- endif -%}
+        <div id="dFilter" title="filltering filename">filter:
+          <input id="iFilter" name="iFilter" type="text" size="50" value="" /></div>
         </h2>
       {%- endif %}
 

File pyprof2html/templates/style.css

View file
 span.bold {
     font-weight: bold;
 }
+#dFilter {
+    float: right;
+}