アットウィキロゴ

wqqq

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
 
<script>
 
function sample(){
 
 
google.script.run
       .withSuccessHandler(function(x) {
 
var pr=new Array();
 
for(s=1;s<48;s++){
pr[s]="#JP-"+s;    
if(s<10)pr[s]="#JP-0"+s;  
}
 
var r=new Array();
for(s=1;s<48;s++){
r[s]=100;
}
 
for(r1=1;r1<48;r1++){
maxp=0;
sxs=0;
for(s=1;s<48;s++){
h=0;
if(r[s]==100)h=h+1;
if(x[s]>maxp)h=h+1;
if(h==2)maxp=x[s];
if(h==2)sxs=s;
}
r[sxs]=r1;
}
 
for(s=1;s<48;s++){
$(pr[s]).css("fill","blue");
if(r[s]<41)$(pr[s]).css("fill","green");
if(r[s]<31)$(pr[s]).css("fill","yellow");
if(r[s]<21)$(pr[s]).css("fill","pink");
if(r[s]<11)$(pr[s]).css("fill","red");
}
 
 
 
 
 
          })
       .withFailureHandler(function(msg) {})
       .exl();
 
 
}
 
</script>
 
最終更新:2018年06月26日 07:55