annotate public/viewer/revisionviewer.html @ 131:2b6e9496fb0c draft default tip

modified updateUserConsensusStatus
author one
date Fri, 26 Apr 2013 02:47:01 +0900
parents 21e746cdc99e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
1 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
2 <title>R-Consensus</title>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
3 <link rel='stylesheet' href="form.css">
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
4 <link rel="stylesheet" href="jquery-ui.css">
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
5 <script src='form.js'></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
6 <script type="text/javascript" src="js/lib/jquery-1.8.1-min.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
7 <script type="text/javascript" src="js/lib/jquery-ui-1.8.23-min.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
8 <script type="text/javascript" src="js/lib/jquery.ui.touch-punch.min.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
9 <script type="text/javascript" src="js/lib/jsBezier-0.4-min.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
10 <script type="text/javascript" src="js/1.3.15/jsPlumb-util-1.3.15-RC1.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
11 <script type="text/javascript" src="js/1.3.15/jsPlumb-dom-adapter-1.3.15-RC1.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
12 <script type="text/javascript" src="js/1.3.15/jsPlumb-1.3.15-RC1.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
13 <script type="text/javascript" src="js/1.3.15/jsPlumb-defaults-1.3.15-RC1.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
14 <script type="text/javascript" src="js/1.3.15/jsPlumb-renderers-svg-1.3.15-RC1.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
15 <script type="text/javascript" src="js/1.3.15/jsPlumb-renderers-canvas-1.3.15-RC1.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
16 <script type="text/javascript" src="js/1.3.15/jsPlumb-renderers-vml-1.3.15-RC1.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
17 <script type="text/javascript" src="js/1.3.15/jquery.jsPlumb-1.3.15-RC1.js"></script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
18 <script type="text/javascript" src='treeArrangement.js'></script>
128
c03c7198ec67 add viewrLib.js
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 125
diff changeset
19 <script type="text/javascript" src='viewerLib.js'></script>
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
20 <script type="text/javascript">
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
21 var LOAD_INTERVAL=5;
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
22 var BASE_URL="";
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
23 if(!Array.prototype.filter){
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
24 Array.prototype.filter=function(func){
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
25 var arr=[];
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
26 for(var i=0;i<this.length;i++)if(func(this[i]))arr.push(this[i]);
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
27 return arr;
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
28 }
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
29 }
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
30
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
31 var userName;
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
32 var treeInfo;
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
33 var userList=[];
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
34 var root_id;
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
35 function loadConsensus(id){
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
36 $.ajax({
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
37 url:BASE_URL+"/consensus/browse/"+id,
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
38 success:function(o){onload(o)},
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
39 type:"GET",cache:false,
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
40 error:function(o){console.log("ERROR",o)}
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
41 });
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
42 }
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
43
88
75d45f808217 modified revisionviewer.html
one
parents: 87
diff changeset
44 function loadRevisionInfo(consensus_id) {
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
45 $.ajax({
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
46 url:BASE_URL+"/claims/get/revision/"+consensus_id,
123
bb930ac4cfd8 remove createOptionTag method
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 122
diff changeset
47 success:function(o){ console.log("revision = "+ o)
bb930ac4cfd8 remove createOptionTag method
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 122
diff changeset
48 createSlider(o);
122
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
49 },
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
50 type:"GET",cache:false,
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
51 error:function(o){console.log("ERROR",o)}
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
52 });
88
75d45f808217 modified revisionviewer.html
one
parents: 87
diff changeset
53 }
75d45f808217 modified revisionviewer.html
one
parents: 87
diff changeset
54
90
812bcfae297f modified revisionviewer.html
one
parents: 89
diff changeset
55 function changeRevision(id) {
812bcfae297f modified revisionviewer.html
one
parents: 89
diff changeset
56 root_id = id;
812bcfae297f modified revisionviewer.html
one
parents: 89
diff changeset
57 loadConsensus(id);
812bcfae297f modified revisionviewer.html
one
parents: 89
diff changeset
58 }
812bcfae297f modified revisionviewer.html
one
parents: 89
diff changeset
59
122
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
60 var REVISION_INFO = {};
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
61 var STEP = 5;
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
62 var SLIDE_DISTANCE = 20;
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
63 function createSlider(revisionInfo) {
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
64 $('#slider').css('width',revisionInfo.length * SLIDE_DISTANCE);
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
65 var slideMax = 0;
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
66 for (var i=0; i<revisionInfo.length; i++) {
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
67 var r = revisionInfo[i];
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
68 REVISION_INFO[i*STEP] = r;
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
69 slideMax = i*STEP;
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
70 }
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
71 var MAX_REV = revisionInfo.length-1;
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
72 $('#revisionDisplayId').val("0/"+MAX_REV);
124
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
73 function _slideAction(event, ui) {
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
74 var id = REVISION_INFO[ui.value];
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
75 $('#revisionDisplayId').val(ui.value/STEP+"/"+MAX_REV);
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
76 changeRevision(id);
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
77 }
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
78 function _slideMoveAction(event, ui){
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
79 var id = REVISION_INFO[ui.value];
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
80 $('#revisionDisplayId').val(ui.value/STEP+"/"+MAX_REV);
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
81 }
122
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
82 $('#slider').slider({ step:STEP,
124
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
83 max: slideMax,
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
84 slide: _slideMoveAction,
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
85 stop: _slideAction
122
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
86 });
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
87 $('#slider').slider('option','value',0);
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
88 $('#slider').slider();
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
89 }
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
90
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
91 $(function(){
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
92 userName=localStorage.userName;
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
93 if(userName)start();
129
21e746cdc99e modified viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 128
diff changeset
94 else displayBlock();
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
95 })
129
21e746cdc99e modified viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 128
diff changeset
96
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
97 function login(uname){
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
98 userName=localStorage.userName=uname;
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
99 start();
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
100 }
129
21e746cdc99e modified viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 128
diff changeset
101
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
102 function start(){
128
c03c7198ec67 add viewrLib.js
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 125
diff changeset
103 init();
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
104 var consensus_id=(location.search.match("[0-9]+")||[])[0];
128
c03c7198ec67 add viewrLib.js
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 125
diff changeset
105 loadRevisionInfo(consensus_id);
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
106 }
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
107
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
108 </script>
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
109 <style>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
110 body{background-color:black;}
122
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
111 p.revisionDisplay{
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
112 position:absolute;
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
113 left:5px;
124
26896f0aed2a modified revisionviewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
114 top:40px;
122
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
115 z-index:5;
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
116 color:white;
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
117 }
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
118 div.revisionSlider{
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
119 position:absolute;
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
120 left:20px;top:80px;
119
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
121 z-index:5;
aa5daf38f3e9 viewer.html
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 91
diff changeset
122 width:50%;
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
123 }
122
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
124
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
125 </style>
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
126 <script>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
127 function resetMentionForm(){
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
128 var keys=['title','contents','w','d','b','q','r'];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
129 for(var i=0;i<keys.length;i++)$("#mentionform_"+keys[i]).val("");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
130 $("#mention_option")[0].className="option";
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
131 }
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
132 var formClaim;
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
133 var claimUserMap,mentionUserMap;
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
134 function showClaim(claim){
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
135 formClaim=claim;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
136 var info=claim.info;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
137 var keys=['title','contents','w','d','b','q','r'];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
138 for(var i=0;i<keys.length;i++)$("#claimform_"+keys[i]).val(info.toulmin[keys[i]]);
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
139
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
140 var status="";
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
141 for(var i=0;i<info.users.length;i++)if(info.users[i].id==userName)status=info.users[i].status;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
142 var op=({denied:1,pend:2,agreed:3})[status];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
143
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
144 $("#claim_status").text(info.status)
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
145 $("#claim_status").css("color",({passed:"blue",failed:"red",fail:"red",unknown:"black"})[info.status]);
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
146 $("#agree_option")[0].className="option"+(op?" option"+op:"");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
147 $("#agree_option").css("display",status?"block":"none");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
148
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
149 $("#claim_button").css("display",(userName==info.author)?"block":"none");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
150 $("#claimvote_option").css("display",status?"block":"none");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
151
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
152 $("#claimbody")[0].className="claim_contents";
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
153 $("#mentionbody")[0].className="mention_contents";
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
154
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
155 $("#claim_author").text(info.author);
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
156 $("#mention_author").text(userName);
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
157 $("#claimvote_option")[0].className="option option"+(claim.agreeType=="majority"?2:1);
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
158 $("#mentionvote_option")[0].className="option option1";
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
159 var stateMap={};
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
160 for(var i=0;i<info.users.length;i++)stateMap['#'+info.users[i].id]=info.users[i].status;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
161 claimUserMap=new HashSet(info.users.map(function(u){return u.id}));
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
162 mentionUserMap=new HashSet();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
163 $("#claim_users").text("");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
164 $("#mention_users").text("");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
165 if(userName!=info.author)mentionUserMap.add(info.author);
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
166 for(var i=0;i<userList.length;i++){
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
167 var name=userList[i];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
168 if(name!=info.author){
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
169 var status=stateMap['#'+name];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
170 createUserSelectItem(name,status,claimUserMap).appendTo($("#claim_users"));
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
171 }if(name!=userName){
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
172 createUserSelectItem(name,name==info.author?"unknown":"",mentionUserMap).appendTo($("#mention_users"));
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
173 }
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
174 }
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
175 resetMentionForm();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
176 popupShowMain()
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
177 }
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
178
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
179
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
180 function claimSave(){
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
181 var claim=formClaim;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
182 var info=claim.info;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
183 var id=claim.id||root_id;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
184 var agreeType=[null,"unanimously","majority"][($('#claimvote_option')[0].className.match("[0-9]+")||"0")[0]];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
185 var title=$('#claimform_title').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
186 var contents=$('#claimform_contents').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
187 var d=$('#claimform_d').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
188 var w=$('#claimform_w').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
189 var b=$('#claimform_b').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
190 var q=$('#claimform_q').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
191 var r=$('#claimform_r').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
192 var users=claimUserMap.toArray();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
193 var errors=[];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
194 if(!title)errors.push("タイトル");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
195 if(!agreeType)errors.push("採決方法");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
196 if(users.length==0)errors.push("同意を取るユーザ");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
197 if(errors.length){
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
198 alert("未入力項目:"+errors.join(", "));
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
199 }else{
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
200 $.ajax({
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
201 url:BASE_URL+"/claims/edit/"+id,
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
202 success:function(o){loadConsensus(root_id)},
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
203 type:"POST",cache:false,
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
204 contentType:"application/json",
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
205 data:JSON.stringify({type:agreeType,toulmin:{title:title,contents:contents,q:q,d:d,w:w,b:b,r:r},author:userName,users:users}),
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
206 error:function(o){console.log("ERROR",o)}
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
207 });
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
208 popupHideAll();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
209 }
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
210 }
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
211 function claimAgree(status){
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
212 var claim=formClaim;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
213 var info=claim.info;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
214 var id=claim.id||root_id;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
215 $.ajax({
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
216 url:BASE_URL+"/claims/answer/"+id+"/"+userName+"/"+status,
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
217 success:function(o){loadConsensus(root_id)},
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
218 type:"POST",cache:false,
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
219 error:function(o){console.log("ERROR",o)}
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
220 });
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
221 popupHideAll();
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
222 }
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
223 function mentionSave(){
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
224 var claim=formClaim;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
225 var info=claim.info;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
226 var id=claim.id||root_id;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
227 var mentionType=[null,"refutation","question","suggestion"][($('#mention_option')[0].className.match("[0-9]+")||"0")[0]];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
228 var agreeType=[null,"unanimously","majority"][($('#mentionvote_option')[0].className.match("[0-9]+")||"0")[0]];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
229 var title=$('#mentionform_title').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
230 var contents=$('#mentionform_contents').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
231 var d=$('#mentionform_d').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
232 var w=$('#mentionform_w').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
233 var b=$('#mentionform_b').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
234 var q=$('#mentionform_q').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
235 var r=$('#mentionform_r').val();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
236 var users=mentionUserMap.toArray();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
237 var author=userName;
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
238 var errors=[];
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
239 if(!title)errors.push("タイトル");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
240 if(!agreeType)errors.push("採決方法");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
241 if(!mentionType)errors.push("反論質問提案");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
242 if(users.length==0)errors.push("同意を取るユーザ");
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
243 if(errors.length){
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
244 alert("未入力項目:"+errors.join(", "));
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
245 }else{
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
246 $.ajax({
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
247 url:BASE_URL+"/claims/"+mentionType+"/"+id+"/create",
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
248 success:function(o){loadConsensus(root_id)},
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
249 type:"POST",cache:false,contentType:"application/json",
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
250 data:JSON.stringify({type:agreeType,toulmin:{title:title,contents:contents,q:q,d:d,w:w,b:b,r:r},author:author,users:users}),
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
251 error:function(o){console.log("ERROR",o)}
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
252 });
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
253 popupHideAll();
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
254 }
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
255 }
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
256
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
257 </script>
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
258 <div class='header'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
259 <nobr id='header_title'><a href='index.html'>Home</a><span id='headertitle_main' style='margin-left:40px;'>loading</span></nobr>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
260 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
261 <p class='revisionDisplay'>
122
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
262 <label for="revInfo">Revision Number:</label>
9cfb52e94bd0 implemented slider
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 119
diff changeset
263 <input type="text" id="revisionDisplayId" style='background-color:black; border:0; color:white;'/>
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
264 </p>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
265 <div class="revisionSlider" id="slider" ></div>
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
266
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
267 <div style="position:relative;left:0;top:0;" id='treeMain'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
268 <div style="position:absolute;width:0;height:0;left:100;" id='treeRoot'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
269 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
270 </div>
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
271
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
272 <div class='userList'></div>
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
273
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
274
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
275 <div id='popup_base' style='display:none;z-index:100'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
276 <div id='popup_background'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
277 <div class='popup_center'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
278 <div class='claiminfo' id='claiminfo'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
279 <div class='claim_title'><input placeholder="title" id='claimform_title'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
280 <div id='claimbody' class='claim_contents'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
281 <div class='claim_menu'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
282 <div class='menu_item menu_contents' onclick="$('#claimbody')[0].className='claim_contents'">Contents</div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
283 <div class='menu_item menu_toulmin' onclick="$('#claimbody')[0].className='claim_toulmin'">Toulmin</div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
284 <div class='menu_item menu_users' onclick="$('#claimbody')[0].className='claim_users'">Users</div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
285 <div id='claim_status'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
286 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
287 <div class='claim_main main_contents'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
288 <textarea placeholder='contents' id='claimform_contents'></textarea>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
289 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
290 <div class='claim_main main_toulmin'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
291 <div class='item_toulmin'><span>データ</span><input id='claimform_d'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
292 <div class='item_toulmin'><span>論拠 </span><input id='claimform_w'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
293 <div class='item_toulmin'><span>裏付け</span><input id='claimform_b'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
294 <div class='item_toulmin'><span>限定詞</span><input id='claimform_q'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
295 <div class='item_toulmin'><span>反駁 </span><input id='claimform_r'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
296 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
297 <div class='claim_main main_users'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
298 <span class='author_label'>作者:</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
299 <span class='author_name' id='claim_author'></span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
300 <div class='option option1' id='claimvote_option'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
301 <span class='option option1 vote1' onclick="$('#claimvote_option')[0].className='option option1'">全会一致</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
302 <span class='option option2 vote2' onclick="$('#claimvote_option')[0].className='option option2'">多数決</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
303 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
304 <div id='claim_users'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
305 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
306 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
307 <div class='claim_footer'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
308 <span onclick='popupShowSubMain()' class='button mention_button'>mention</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
309 <div class='option' id='agree_option'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
310 <span class='option option1 agree1' onclick="$('#agree_option')[0].className='option option1';claimAgree('denied');">否認</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
311 <span class='option option2 agree2' onclick="$('#agree_option')[0].className='option option2';claimAgree('pend');">保留</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
312 <span class='option option3 agree3' onclick="$('#agree_option')[0].className='option option3';claimAgree('agreed');">合意</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
313 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
314 <div id='claim_button'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
315 <span class='button cancel' onclick="popupHideAll()">cancel</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
316 <span class='button save' onclick="claimSave()">save</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
317 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
318 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
319 <div class='cover' id='claim_cover'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
320 </div>
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
321
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
322
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
323 <div class='mentioninfo' id='mentioninfo'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
324 <div class='claim_title'><input placeholder="title" id='mentionform_title'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
325 <div id='mentionbody' class='mention_contents'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
326 <div class='claim_menu'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
327 <div class='menu_item menu_contents' onclick="$('#mentionbody')[0].className='mention_contents'">Contents</div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
328 <div class='menu_item menu_toulmin' onclick="$('#mentionbody')[0].className='mention_toulmin'">Toulmin</div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
329 <div class='menu_item menu_users' onclick="$('#mentionbody')[0].className='mention_users'">Users</div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
330 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
331 <div class='mention_main main_contents'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
332 <textarea placeholder='contents' id='mentionform_contents'></textarea>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
333 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
334 <div class='mention_main main_toulmin'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
335 <div class='item_toulmin'><span>データ</span><input id='mentionform_d'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
336 <div class='item_toulmin'><span>論拠 </span><input id='mentionform_w'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
337 <div class='item_toulmin'><span>裏付け</span><input id='mentionform_b'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
338 <div class='item_toulmin'><span>限定詞</span><input id='mentionform_q'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
339 <div class='item_toulmin'><span>反駁 </span><input id='mentionform_r'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
340 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
341 <div class='mention_main main_users'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
342 <span class='author_label'>作者:</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
343 <span class='author_name' id='mention_author'></span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
344 <div class='option option1' id='mentionvote_option'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
345 <span class='option option1 vote1' onclick="$('#mentionvote_option')[0].className='option option1'">全会一致</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
346 <span class='option option2 vote2' onclick="$('#mentionvote_option')[0].className='option option2'">多数決</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
347 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
348 <div id='mention_users'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
349 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
350 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
351 <div class='claim_footer'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
352 <div class='option' id='mention_option'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
353 <span class='option option1 mention1' onclick="$('#mention_option')[0].className='option option1'">反論</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
354 <span class='option option2 mention2' onclick="$('#mention_option')[0].className='option option2'">質問</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
355 <span class='option option3 mention3' onclick="$('#mention_option')[0].className='option option3'">提案</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
356 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
357 <span class='button cancel' onclick="popupShowMain()">cancel</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
358 <span class='button save' onclick="mentionSave()">save</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
359 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
360 <div class='cover' id='mention_cover'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
361 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
362 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
363 </div>
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
364
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
365
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
366
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
367
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
368 <div id="loginPopup" style='position:fixed;left:0;top:0;width:100%;height:100%;z-index:10;display:none;'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
369 <div style='position:absolute;left:0;top:0;width:100%;height:100%;background:black;opacity:0.5'></div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
370 <div style='position:absolute;left:50%;top:50%;'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
371 <div style='position:absolute;left:-160px;top:-80px;width:320px;height:120px;background:white'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
372 <form onsubmit="try{a=$('#loginUserName');if(a.val()){login(a.val());$('#loginPopup').remove();}}catch(e){console.log(e)}return false">
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
373 <div style='position:absolute;left:20px;top:15px;font-size:24px;width:280;text-align:center;'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
374 R-Consensus Login
87
a067d8d6458e add revisionviewer.html
one
parents:
diff changeset
375 </div>
125
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
376 <input type=text placeholder='username' style='position:absolute;left:20px;top:70px;width:180px;font-size:16px;height:24px;' id='loginUserName'>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
377 <span style='position:absolute;left:220px;top:70px;width:80px;font-size:16px;height:24px;line-height:24px;' class='button' value='login' onclick="try{a=$('#loginUserName');if(a.val()){login(a.val());$('#loginPopup').remove();}}catch(e){console.log(e)}return false">login</span>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
378 </form>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
379 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
380 </div>
52b0c88a0b1b modified pass to passed
one
parents: 124
diff changeset
381 </div>