annotate public/viewer/index.html @ 123:bb930ac4cfd8 draft

remove createOptionTag method
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Fri, 19 Apr 2013 20:29:44 +0900
parents 3440be06e501
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
1 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
a76259e2ca9f add public/viewer
one
parents:
diff changeset
2 <link rel='stylesheet' href="form.css">
a76259e2ca9f add public/viewer
one
parents:
diff changeset
3 <script type="text/javascript" src="js/lib/jquery-1.8.1-min.js"></script>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
4 <script src='form.js'></script>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
5 <script>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
6 var LOAD_INTERVAL=5;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
7 var BASE_URL="";
a76259e2ca9f add public/viewer
one
parents:
diff changeset
8 var viewer_url="viewer.html";
a76259e2ca9f add public/viewer
one
parents:
diff changeset
9 $(function(){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
10 popupInit();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
11 $('body')[0].onresize=function(){placementUpdate()};
56
ffe70c0f1948 modified public/viewer/index.html
one
parents: 53
diff changeset
12 if(localStorage.userName){
ffe70c0f1948 modified public/viewer/index.html
one
parents: 53
diff changeset
13 login(localStorage.userName);
ffe70c0f1948 modified public/viewer/index.html
one
parents: 53
diff changeset
14 }else{
ffe70c0f1948 modified public/viewer/index.html
one
parents: 53
diff changeset
15 var u=$('#loginUserName');
ffe70c0f1948 modified public/viewer/index.html
one
parents: 53
diff changeset
16 $("#loginPopup").css("display","block");
ffe70c0f1948 modified public/viewer/index.html
one
parents: 53
diff changeset
17 u.val(localStorage.userName||'');
ffe70c0f1948 modified public/viewer/index.html
one
parents: 53
diff changeset
18 u.focus();
ffe70c0f1948 modified public/viewer/index.html
one
parents: 53
diff changeset
19 }
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
20 });
a76259e2ca9f add public/viewer
one
parents:
diff changeset
21
a76259e2ca9f add public/viewer
one
parents:
diff changeset
22 var loadedClaimIDs={};
a76259e2ca9f add public/viewer
one
parents:
diff changeset
23 var userList=[];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
24 function loadUserList(){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
25 $.ajax({
a76259e2ca9f add public/viewer
one
parents:
diff changeset
26 url:BASE_URL+"/users/all",
a76259e2ca9f add public/viewer
one
parents:
diff changeset
27 success:function(o){userList=o.sort()},
a76259e2ca9f add public/viewer
one
parents:
diff changeset
28 type:"GET",cache:false,
a76259e2ca9f add public/viewer
one
parents:
diff changeset
29 error:function(o){console.log("ERROR",o)}
a76259e2ca9f add public/viewer
one
parents:
diff changeset
30 });
a76259e2ca9f add public/viewer
one
parents:
diff changeset
31 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
32 function loadClaimIDList(){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
33 $.ajax({
80
712422332f3d modified public/viewer/index.html
one
parents: 63
diff changeset
34 // url:BASE_URL+"/users/consensus/"+userName,
712422332f3d modified public/viewer/index.html
one
parents: 63
diff changeset
35 url:BASE_URL+"/users/latest/consensus/"+userName,
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
36 success:function(o){claimIDListLoaded(o)},
a76259e2ca9f add public/viewer
one
parents:
diff changeset
37 type:"GET",cache:false,
a76259e2ca9f add public/viewer
one
parents:
diff changeset
38 error:function(o){console.log("ERROR",o)}
a76259e2ca9f add public/viewer
one
parents:
diff changeset
39 });
a76259e2ca9f add public/viewer
one
parents:
diff changeset
40 function claimIDListLoaded(arr){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
41 console.log(arr);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
42 for(var i=0;i<arr.length;i++){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
43 var id=arr[i];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
44 if(!loadedClaimIDs[id])loadClaim(id);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
45 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
46 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
47 function loadClaim(id){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
48 loadedClaimIDs[id]="loading";
a76259e2ca9f add public/viewer
one
parents:
diff changeset
49 $.ajax({
a76259e2ca9f add public/viewer
one
parents:
diff changeset
50 url:BASE_URL+"/consensus/browse/"+id,
a76259e2ca9f add public/viewer
one
parents:
diff changeset
51 success:function(o){claimLoaded(id,o)},
a76259e2ca9f add public/viewer
one
parents:
diff changeset
52 dataType:"json",
a76259e2ca9f add public/viewer
one
parents:
diff changeset
53 type:"GET",cache:false,
a76259e2ca9f add public/viewer
one
parents:
diff changeset
54 error:function(o){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
55 console.log("ERROR",o);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
56 if(loadedClaimIDs[id]=="loading")delete loadedClaimIDs[id];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
57 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
58 })
a76259e2ca9f add public/viewer
one
parents:
diff changeset
59 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
60 function claimLoaded(id,o){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
61 console.log(id,o,loadedClaimIDs[id]);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
62 if(loadedClaimIDs[id]&&loadedClaimIDs[id]!="loading")return;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
63 var a=$("<a class='claim'></a>");
a76259e2ca9f add public/viewer
one
parents:
diff changeset
64 a.text(o.toulmin.title);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
65 a[0].href=viewer_url+"?q="+id;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
66 a[0].id=id;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
67 console.log(id)
a76259e2ca9f add public/viewer
one
parents:
diff changeset
68 placementUpdate(a);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
69 loadedClaimIDs[id]={element:a,info:o};
a76259e2ca9f add public/viewer
one
parents:
diff changeset
70 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
71 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
72
a76259e2ca9f add public/viewer
one
parents:
diff changeset
73 var placementList=[];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
74 var headerSize=50;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
75 function placementUpdate(element){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
76 if(element){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
77 element.appendTo(document.body);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
78 placementList.push(element);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
79 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
80 if(placementList.length==0)return;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
81 var W=$('body').width();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
82 var w=placementList[0].outerWidth();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
83 var w2=w+30;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
84 var n=Math.floor(W/w2);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
85 w2=W/n;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
86 var harr=[];for(var i=0;i<n;i++)harr[i]=headerSize;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
87 for(var i=0;i<placementList.length;i++){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
88 var e=placementList[i];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
89 var index=0,y=harr[0];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
90 for(var j=1;j<n;j++)if(harr[j]<y)y=harr[index=j];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
91 var x=index*w2+(w2-w)/2;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
92 harr[index]+=e.outerHeight()+30;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
93 e.css({position:"absolute",left:x,top:y+30});
a76259e2ca9f add public/viewer
one
parents:
diff changeset
94 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
95 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
96
a76259e2ca9f add public/viewer
one
parents:
diff changeset
97 function login(uname){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
98 userName=localStorage.userName=uname;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
99 $('#header_title').text("R-Consensus : "+uname);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
100 $.ajax({
a76259e2ca9f add public/viewer
one
parents:
diff changeset
101 url:BASE_URL+"/users/create/"+uname,
a76259e2ca9f add public/viewer
one
parents:
diff changeset
102 success:function(o){console.log(o)},
a76259e2ca9f add public/viewer
one
parents:
diff changeset
103 type:"PUT",cache:false,
a76259e2ca9f add public/viewer
one
parents:
diff changeset
104 error:function(o){console.log(o)}
a76259e2ca9f add public/viewer
one
parents:
diff changeset
105 });
a76259e2ca9f add public/viewer
one
parents:
diff changeset
106 loadClaimIDList(uname);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
107 loadUserList();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
108 setInterval(function(){loadUserList();loadClaimIDList(uname)},LOAD_INTERVAL*1000);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
109 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
110
a76259e2ca9f add public/viewer
one
parents:
diff changeset
111 var claimUserMap
a76259e2ca9f add public/viewer
one
parents:
diff changeset
112 function showForm(){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
113 $("#claimbody")[0].className="claim_contents";
a76259e2ca9f add public/viewer
one
parents:
diff changeset
114
53
a405991e39d8 modified ClaiMode/computeUnaimously method
one
parents: 51
diff changeset
115 var keys=['title','contents','w','d','b','q','r'];
a405991e39d8 modified ClaiMode/computeUnaimously method
one
parents: 51
diff changeset
116 for(var i=0;i<keys.length;i++)$("#claimform_"+keys[i]).val("");
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
117 $("#claim_author").text(userName);
a76259e2ca9f add public/viewer
one
parents:
diff changeset
118 $("#claimvote_option")[0].className="option1";
a76259e2ca9f add public/viewer
one
parents:
diff changeset
119 claimUserMap=new HashSet();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
120 $("#claim_users").text("");
a76259e2ca9f add public/viewer
one
parents:
diff changeset
121 for(var i=0;i<userList.length;i++){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
122 var name=userList[i];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
123 if(name==userName)continue;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
124 createUserSelectItem(name,"",claimUserMap).appendTo($("#claim_users"));
a76259e2ca9f add public/viewer
one
parents:
diff changeset
125 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
126 popupShowMain();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
127 }
61
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
128 function logout(){
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
129 localStorage.userName = "";
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
130 location.href = "";
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
131 }
63
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
132 function reset(){
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
133 $.ajax({
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
134 url:BASE_URL+"/reset",
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
135 success:function(o){},
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
136 type:"GET",cache:false,
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
137 error:function(o){
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
138 console.log("reset Data");
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
139 }
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
140 })
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
141 logout();
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
142 }
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
143
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
144 function claimSave(){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
145 var agreeType=[null,"unanimously","majority"][($('#claimvote_option')[0].className.match("[0-9]+")||"0")[0]];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
146 var title=$('#claimform_title').val();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
147 var contents=$('#claimform_contents').val();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
148 var d=$('#claimform_d').val();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
149 var w=$('#claimform_w').val();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
150 var b=$('#claimform_b').val();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
151 var q=$('#claimform_q').val();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
152 var r=$('#claimform_r').val();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
153 var users=claimUserMap.toArray();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
154 var errors=[];
a76259e2ca9f add public/viewer
one
parents:
diff changeset
155 if(!title)errors.push("タイトル");
a76259e2ca9f add public/viewer
one
parents:
diff changeset
156 if(!agreeType)errors.push("採決方法");
a76259e2ca9f add public/viewer
one
parents:
diff changeset
157 if(users.length==0)errors.push("同意を取るユーザ");
a76259e2ca9f add public/viewer
one
parents:
diff changeset
158 if(errors.length){
a76259e2ca9f add public/viewer
one
parents:
diff changeset
159 alert("未入力項目:"+errors.join(", "));
a76259e2ca9f add public/viewer
one
parents:
diff changeset
160 }else{
a76259e2ca9f add public/viewer
one
parents:
diff changeset
161 $.ajax({
a76259e2ca9f add public/viewer
one
parents:
diff changeset
162 url:BASE_URL+"/claims/create",
a76259e2ca9f add public/viewer
one
parents:
diff changeset
163 success:function(o){loadClaimIDList()},
a76259e2ca9f add public/viewer
one
parents:
diff changeset
164 type:"POST",cache:false,contentType:"application/json",
a76259e2ca9f add public/viewer
one
parents:
diff changeset
165 data:JSON.stringify({type:agreeType,toulmin:{title:title,contents:contents,q:q,d:d,w:w,b:b,r:r},author:userName,users:users}),
a76259e2ca9f add public/viewer
one
parents:
diff changeset
166 error:function(o){console.log("ERROR",o)}
a76259e2ca9f add public/viewer
one
parents:
diff changeset
167 });
a76259e2ca9f add public/viewer
one
parents:
diff changeset
168 popupHideAll();
a76259e2ca9f add public/viewer
one
parents:
diff changeset
169 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
170 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
171
a76259e2ca9f add public/viewer
one
parents:
diff changeset
172
a76259e2ca9f add public/viewer
one
parents:
diff changeset
173 </script>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
174 <style>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
175 body{
a76259e2ca9f add public/viewer
one
parents:
diff changeset
176 background:black;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
177 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
178 a.claim{
a76259e2ca9f add public/viewer
one
parents:
diff changeset
179 overflow:hidden;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
180 font-size:32px;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
181 border-radius:16px;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
182 background:silver;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
183 display:block;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
184 width:200px;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
185 padding:5px;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
186 background:white;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
187 box-shadow:0 0 10px white;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
188 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
189 a.claim:hover{box-shadow:0 0 30px white;}
a76259e2ca9f add public/viewer
one
parents:
diff changeset
190
a76259e2ca9f add public/viewer
one
parents:
diff changeset
191 </style>
56
ffe70c0f1948 modified public/viewer/index.html
one
parents: 53
diff changeset
192 <div id="loginPopup" style='position:fixed;left:0;top:0;width:100%;height:100%;z-index:10;display:none;'>
118
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
193 <div style='position:absolute;left:0;top:0;width:100%;height:100%;background:black;opacity:0.5'></div>
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
194 <div style='position:absolute;left:50%;top:50%;'>
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
195 <div style='position:absolute;left:-160px;top:-80px;width:320px;height:120px;background:white'>
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
196 <form onsubmit="try{a=$('#loginUserName');if(a.val()){login(a.val());$('#loginPopup').remove();}}catch(e){console.log(e)}return false">
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
197 <div style='position:absolute;left:20px;top:15px;font-size:24px;width:280;text-align:center;'>
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
198 R-Consensus Login
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
199 </div>
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
200 <input type=text placeholder='username' style='position:absolute;left:20px;top:70px;width:180px;font-size:16px;height:24px;' id='loginUserName'>
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
201 <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>
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
202 </form>
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
203 </div>
3440be06e501 modified Claim.java and TPGRaph getLatestVertexId method
one
parents: 80
diff changeset
204 </div>
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
205 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
206
a76259e2ca9f add public/viewer
one
parents:
diff changeset
207
a76259e2ca9f add public/viewer
one
parents:
diff changeset
208
a76259e2ca9f add public/viewer
one
parents:
diff changeset
209
a76259e2ca9f add public/viewer
one
parents:
diff changeset
210
a76259e2ca9f add public/viewer
one
parents:
diff changeset
211
a76259e2ca9f add public/viewer
one
parents:
diff changeset
212 <style>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
213
a76259e2ca9f add public/viewer
one
parents:
diff changeset
214 div.claiminfo{left:-300px;top:-200px;}
a76259e2ca9f add public/viewer
one
parents:
diff changeset
215
a76259e2ca9f add public/viewer
one
parents:
diff changeset
216
a76259e2ca9f add public/viewer
one
parents:
diff changeset
217 body{
a76259e2ca9f add public/viewer
one
parents:
diff changeset
218 margin:0px;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
219 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
220 div.header{
a76259e2ca9f add public/viewer
one
parents:
diff changeset
221 position:fixed;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
222 left:0;top:0;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
223 z-index:5;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
224 height:50px;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
225 width:100%;
53
a405991e39d8 modified ClaiMode/computeUnaimously method
one
parents: 51
diff changeset
226 background:#223;
a405991e39d8 modified ClaiMode/computeUnaimously method
one
parents: 51
diff changeset
227 background:-moz-linear-gradient(top,#002,#223);
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
228 background:-webkit-gradient(linear,left top,left bottom,from(#002),to(#223));
a76259e2ca9f add public/viewer
one
parents:
diff changeset
229 color:silver;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
230 font-size:40px;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
231 }
a76259e2ca9f add public/viewer
one
parents:
diff changeset
232 span.createButton{
a76259e2ca9f add public/viewer
one
parents:
diff changeset
233 position:absolute;right:0;top:0;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
234 text-align:center;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
235 width:160;height:50;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
236 cursor:pointer;
53
a405991e39d8 modified ClaiMode/computeUnaimously method
one
parents: 51
diff changeset
237 background:#334;
a405991e39d8 modified ClaiMode/computeUnaimously method
one
parents: 51
diff changeset
238 background:-moz-linear-gradient(top,#224,#334);
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
239 background:-webkit-gradient(linear,left top,left bottom,from(#224),to(#334));
a76259e2ca9f add public/viewer
one
parents:
diff changeset
240 color:silver;
a76259e2ca9f add public/viewer
one
parents:
diff changeset
241 }
61
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
242 span.logoutButton{
63
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
243 position:absolute;right:500;top:0;
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
244 text-align:center;
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
245 width:160;height:50;
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
246 cursor:pointer;
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
247 background:#334;
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
248 background:-moz-linear-gradient(top,#224,#334);
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
249 background:-webkit-gradient(linear,left top,left bottom,from(#224),to(#334));
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
250 color:silver;
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
251 }
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
252 span.resetButton{
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
253 position:absolute;right:300;top:0;
61
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
254 text-align:center;
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
255 width:160;height:50;
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
256 cursor:pointer;
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
257 background:#334;
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
258 background:-moz-linear-gradient(top,#224,#334);
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
259 background:-webkit-gradient(linear,left top,left bottom,from(#224),to(#334));
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
260 color:silver;
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
261 }
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
262 </style>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
263
a76259e2ca9f add public/viewer
one
parents:
diff changeset
264 <div class='header'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
265 <span id='header_title'>R-Consensus : Login</span>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
266 <span onclick="showForm()" class='createButton'>create</span>
61
0268b4239da1 modified initialData method
one
parents: 56
diff changeset
267 <span onclick="logout()" class='logoutButton'>logout</span>
63
1319e3f78c00 implemented reset method in Claim.java
one
parents: 61
diff changeset
268 <span onclick="reset()" class='resetButton'>reset</span>
51
a76259e2ca9f add public/viewer
one
parents:
diff changeset
269
a76259e2ca9f add public/viewer
one
parents:
diff changeset
270 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
271 <div id='popup_base' style='display:none;z-index:100'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
272 <div id='popup_background' onclick="$('#popup_base').css('display','none')"></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
273 <div class='popup_center'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
274 <div class='mentioninfo' id='mentioninfo'><div class='cover' id='mention_cover'></div></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
275 <div class='claiminfo' id='claiminfo'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
276 <div class='claim_title'><input placeholder="title" id='claimform_title'></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
277 <div id='claimbody' class='claim_contents'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
278 <div class='claim_menu'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
279 <div class='menu_item menu_contents' onclick="$('#claimbody')[0].className='claim_contents'">Contents</div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
280 <div class='menu_item menu_toulmin' onclick="$('#claimbody')[0].className='claim_toulmin'">Toulmin</div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
281 <div class='menu_item menu_users' onclick="$('#claimbody')[0].className='claim_users'">Users</div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
282 <div id='claim_status'></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
283 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
284 <div class='claim_main main_contents'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
285 <textarea placeholder='contents' id='claimform_contents'></textarea>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
286 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
287 <div class='claim_main main_toulmin'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
288 <div class='item_toulmin'><span>データ</span><input id='claimform_d'></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
289 <div class='item_toulmin'><span>論拠 </span><input id='claimform_w'></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
290 <div class='item_toulmin'><span>裏付け</span><input id='claimform_b'></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
291 <div class='item_toulmin'><span>限定詞</span><input id='claimform_q'></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
292 <div class='item_toulmin'><span>反駁 </span><input id='claimform_r'></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
293 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
294 <div class='claim_main main_users'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
295 <span class='author_label'>作者:</span>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
296 <span class='author_name' id='claim_author'></span>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
297 <div class='option option1' id='claimvote_option'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
298 <span class='option option1 vote1' onclick="$('#claimvote_option')[0].className='option option1'">全会一致</span>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
299 <span class='option option2 vote2' onclick="$('#claimvote_option')[0].className='option option2'">多数決</span>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
300 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
301 <div id='claim_users'></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
302 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
303 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
304 <div class='claim_footer'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
305 <div id='claim_button'>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
306 <span class='button cancel' onclick="popupHideAll()">cancel</span>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
307 <span class='button save' onclick="claimSave()">save</span>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
308 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
309 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
310 <div id='claim_cover' class='cover'></div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
311 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
312 </div>
a76259e2ca9f add public/viewer
one
parents:
diff changeset
313 </div>