Skip to content

Commit

Permalink
some art work
Browse files Browse the repository at this point in the history
  • Loading branch information
yinwang0 committed Feb 11, 2014
1 parent f30a372 commit 8e2558c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 8 additions & 1 deletion src/main/resources/org/yinwang/rubysonar/css/demo.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
body { color: #666666; border: 1px solid #dddddd; padding: 1in; }
a {text-decoration: none; color: #5AA2A7; border-radius: 1px}
a {
text-decoration: none; color: #5AA2A7;
border: solid 1px white;
}
table, th, td { border: 1px solid lightgrey; padding: 5px; corner: rounded; }
.builtin {color: #B17E41;}
.comment, .block-comment {color: #aaaaaa; font-style: italic;}
Expand All @@ -18,3 +21,7 @@ table, th, td { border: 1px solid lightgrey; padding: 5px; corner: rounded; }
.string {color: #999999;}
.type-name {color: #4682b4;}
.warning {border-bottom: 1px dotted orange;}
a.active {
background: -webkit-linear-gradient(top,rgba(255, 255, 200, 0.35) 0,rgba(255, 255, 200, 0.55) 100%);
border: solid 1px #E5E600;
}
12 changes: 4 additions & 8 deletions src/main/resources/org/yinwang/rubysonar/javascript/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@ function highlight(xid)
var elms = document.querySelectorAll('[xid="' + xid + '"]');
for (k in elms) {
v = elms[k]
if (v.style) {
v.style.backgroundColor = '#dddddd';
}
v.className="active";
}
highlighted = xid;
}
}

function clearHighlight() {
var elms = document.querySelectorAll('[xid="' + highlighted + '"]');
for (k in elms) {
v = elms[k]
if (v.style) {
v.style.backgroundColor='white';
}
}
v.className="";
}
}

window.onload =
Expand Down

0 comments on commit 8e2558c

Please sign in to comment.