[pypy-commit] jitviewer default: minor things - show selected loop

fijal noreply at buildbot.pypy.org
Fri Jul 22 11:51:00 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r156:fd367a7f871d
Date: 2011-07-22 11:48 +0200
http://bitbucket.org/pypy/jitviewer/changeset/fd367a7f871d/

Log:	minor things - show selected loop

diff --git a/_jitviewer/static/script.js b/_jitviewer/static/script.js
--- a/_jitviewer/static/script.js
+++ b/_jitviewer/static/script.js
@@ -3,12 +3,14 @@
 
 function show_loop(no, path)
 {
+    $("#loop-" + glob_bridge_state.no).removeClass("selected");
     glob_bridge_state.no = no;
     if (path) {
         glob_bridge_state.path = path;
     } else {
         delete glob_bridge_state.path;
     }
+    $("#loop-" + no).addClass("selected");
     $.getJSON('/loop', glob_bridge_state, function(arg) {
         $('#main').html(arg.html).ready(function() {
             $.scrollTo($('#line-' + arg.scrollto), 200, {axis:'y'});
diff --git a/_jitviewer/static/style.css b/_jitviewer/static/style.css
--- a/_jitviewer/static/style.css
+++ b/_jitviewer/static/style.css
@@ -198,6 +198,16 @@
     color: #00A;
 }
 
+.selected {
+    background-color: #aa6;
+    -moz-border-radius: 3px;
+		-webkit-border-radius: 3px;
+		border-radius: 3px;
+		-moz-box-shadow: 0px 0px 7px #cacaca;
+		-webkit-box-shadow: 0px 0px 7px #cacaca;
+		box-shadow: 0px 0px 7px #cacaca;
+}
+
 /* End of Formatting 
 -----------------------------------------*/
 


More information about the pypy-commit mailing list