Advertisement
Guest User

GOL:TW battle bar bookmarlet with marker

a guest
Oct 31st, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:$("#board").append('<div style="width:100%;height:20px;margin-top:35px;"><div style="width:1px;margin-top:-5px;height:5px;margin-left:50%;margin-right:50%;background:#000000;"></div><div id="a_b" style="display:inline-block;margin:0px;padding:0px;background:#660000;height:100%;min-width:1px;"></div><div id="c_b" style="display: inline-block;margin:0px;padding:0px;background:#666600;height:100%;min-width:1px;"></div><div id="d_b" style="display: inline-block;margin:0px;padding:0px;background:#000066;height:100%;min-width:1px;"></div></div>');setInterval(function(){var e=parseInt($("#challengers").html());var t=parseInt($("#civilians").html());var n=parseInt($("#defenders").html());var r=e+t+n;$("#a_b").css("width",e/r*100+"%");$("#c_b").css("width",t/r*100+"%");$("#d_b").css("width",n/r*100+"%")},200);void(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement