1 [% META title = 'Raid claiming' %]
3 <fieldset> <legend>Message</legend>
4 <p><b>REMEMBER TO PASTE LAUNCH CONFIRMATION IF YOU WANT AN ATTACK POINT</b></p>
5 <p><b style="color: red;">DO NOT JOIN A WAVE UNLESS YOU HAVE PERMISSION FROM THE PERSON WHO CLAIMED IT</b></p>
6 <p><b style="color: purple;">TARGETS IN YOUR GALAXY ARE NOT SHOWN</b></p>
7 <p>Landing tick first wave: [% landingtick %]</p>
11 <div id="floatmenu" style="right: 1em; top: 50px; position: absolute; marigin-left:120px;">
12 <form action="" method="post">
14 <li><input type="button" value="Update claims"
16 <li><input type="button" value="Update target list"
17 onclick = "listTargets()">
22 [% FOR t IN targets %]
23 <fieldset class="[% t.style %]"> <legend><a name="target[% t.id %]">Target: #[% t.id %]</a></legend>
24 <div class="leftinfo"><ul>
25 <li><a href="[% c.uri_for('targetcalc',t.id) %]" rel="external">Calc</a></li>
26 [% IF raid.released_coords %]
27 <li>Coords: <a href="[% c.uri_for('/stats/planet',t.pid) %]">[% t.x %]:[% t.y %]:[% t.z %]</a></li>
29 <li>Size: [% t.size %]</li>
30 <li class="[% t.scorebash %]">Score: [% t.score %]</li>
31 <li class="[% t.valuebash %]">Value: [% t.value %]</li>
32 <li>Fleet value: [% t.fleetvalue %]</li>
33 <li>Resource value: [% t.resvalue %]</li>
34 <li>Hidden value: [% t.hidden %]</li>
35 <li>Factory Usage: [% t.light %], [% t.medium %], [% t.heavy %]</li>
36 <li>Race: [% t.race %]</li>
37 <li>Cap: [% t.cap * 100 | format('%.02f') %]</li>
38 [% FOR r IN t.roids %]
39 <li>Roids wave [% r.wave %]: [% r.roids %] ([% r.xp | commify %] xp)</li>
43 <fieldset> <legend>Comment</legend>
48 <tr><th></th><th>Metal</th><th>Crystal</th><th>Eonium</th></tr>
51 <td>[% t.metal_roids | commify %]</td>
52 <td>[% t.crystal_roids | commify %]</td>
53 <td>[% t.eonium_roids | commify %]</td>
57 <td>[% t.metal | commify %]</td>
58 <td>[% t.crystal | commify %]</td>
59 <td>[% t.eonium | commify %]</td>
64 <div class="leftinfo">
66 <tr><th>Waves</th></tr>
69 <td>[% t.waves %]</td>
77 <td>[% t.distorters %]</td>
79 <tr><th>Production</th></tr>
82 <td>[% t.hulls %]</td>
85 <td>Light factory</td>
86 <td>[% t.light_fac %]</td>
89 <td>Medium factory</td>
90 <td>[% t.medium_fac %]</td>
93 <td>Heavy factory</td>
94 <td>[% t.heavy_fac %]</td>
98 [% FOR m IN t.missions %]
99 <div class="leftinfo">
102 Tick: [% m.tick %]<br>
103 Ships: [% m.amount %]
106 [% FOR s IN m.ships %]
107 <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
108 <td>[% s.ship %]</td><td>[% s.amount | commify %]</td>
114 <div class="clear"> </div>
115 <form action="" method="post">
116 <p class="claimlinks">
117 <span id="claim[% t.id %]">
118 [% FOR w IN t.claims %]
119 <input type="button" value="Claim wave [% w.wave %]"
120 onclick = "claim([% t.id %], [% w.wave %], 'claim')">
128 <script type="text/javascript">
130 $.get("/jsrpc/update/[% raid.id %]/"+modified,{},parseUpdate);
133 function claim(target,wave,command){
134 $.get("/jsrpc/"+command+"/"+[% raid.id %]+"/"+modified+"/"+target+"/"+wave,{},parseUpdate);
137 function join(target,wave,joinable){
138 $.get("/jsrpc/joinable/"+[% raid.id %]+"/"+modified+"/"+target+"/"+wave+"/"+joinable,{},parseUpdate);
141 $(document).ready(function(){
143 var targets = $('#targets');
144 $('#targets').remove();
145 $('#floatmenu').append(targets);
146 var menuYloc = parseInt($("#floatmenu").css("top").substring(0,$("#floatmenu").css("top").indexOf("px")))
147 $(window).scroll(function () {
148 var offset = menuYloc+$(document).scrollTop()+"px";
149 $('#floatmenu').animate({top:offset},{duration:500,queue:false});