Skip to content

Commit

Permalink
tika on mouseover
Browse files Browse the repository at this point in the history
  • Loading branch information
tyage committed Sep 5, 2018
1 parent b490b40 commit ffda66a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions cmsranking/static/Overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,15 @@ var Overview = new function () {
self.rank_axis.node.setAttribute("stroke", self.rank_axis.node.getAttribute("fill"));
self.rank_axis.node.setAttribute("fill", "none");

setInterval(() => {
self.rank_axis.attr(
{"stroke": "#" + Math.random().toString(16).slice(2,8)});
}, 100);
var tika = () => {
self.paper.canvas.removeEventListener('mouseover', tika);
setInterval(() => {
self.rank_axis.attr({
"stroke": "#" + Math.random().toString(16).slice(2,8)
});
}, 100);
};
self.paper.canvas.addEventListener('mouseover', tika);
}
};

Expand Down

0 comments on commit ffda66a

Please sign in to comment.