Mercurial > hg > Members > nobuyasu > Consensus
changeset 124:26896f0aed2a draft
modified revisionviewer.html
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 20 Apr 2013 02:31:44 +0900 |
parents | bb930ac4cfd8 |
children | 52b0c88a0b1b |
files | public/viewer/revisionviewer.html |
diffstat | 1 files changed, 14 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/public/viewer/revisionviewer.html Fri Apr 19 20:29:44 2013 +0900 +++ b/public/viewer/revisionviewer.html Sat Apr 20 02:31:44 2013 +0900 @@ -91,13 +91,19 @@ } var MAX_REV = revisionInfo.length-1; $('#revisionDisplayId').val("0/"+MAX_REV); + function _slideAction(event, ui) { + var id = REVISION_INFO[ui.value]; + $('#revisionDisplayId').val(ui.value/STEP+"/"+MAX_REV); + changeRevision(id); + } + function _slideMoveAction(event, ui){ + var id = REVISION_INFO[ui.value]; + $('#revisionDisplayId').val(ui.value/STEP+"/"+MAX_REV); + } $('#slider').slider({ step:STEP, - max:slideMax, - slide: function(event, ui){ var id = REVISION_INFO[ui.value]; - $('#revisionDisplayId').val(ui.value/STEP+"/"+MAX_REV); - changeRevision(id); - }, - // stop: function(event, ui){ console.log(ui.value); } + max: slideMax, + slide: _slideMoveAction, + stop: _slideAction }); $('#slider').slider('option','value',0); $('#slider').slider(); @@ -247,7 +253,6 @@ function setFocusedShadow(node){ var name=focusedUser||userName; var color; - // console.log(node.info.author) if(node.info.author==name)color="#afa"; else{ var users=node.info.users,status; @@ -333,13 +338,13 @@ p.revisionDisplay{ position:absolute; left:5px; - top:60px; + top:40px; z-index:5; color:white; } div.revisionSlider{ position:absolute; - left:0;top:100px; + left:0;top:80px; z-index:5; width:50%; }