I wanted to extract information about the army training queue but this is saved in the html file like this:
Code:
<script type="text/html" id="orders_tmpl">
/*<![CDATA[*/
<h4>
<% if(barracks) { %>
In training <% } else { %>
Construction queue <% } %>
(<span id="current_building_order_queue_count">0</span>/7)
</h4>
<% for(var i in orders) {
var order = orders[i]; %>
<div id="unit_order_<%=i%>" class="unit_order_task">
<div style="position: relative;">
<div class="unit_order_task_time">
<%=readableSeconds(order.to_be_completed_at-order.created_at)%>
</div>
<img src="<%=Game.img()%>/game/units/<%=order.unit_id%>_50x50.png" class="unit_order_task_unit"/>
<div class="unit_order_task_value bold"><%=order.units_left%></div>
<% if(i == orders.length-1) { %>
<a href="<%=url(null, 'cancel')%>" class="unit_order_cancel cancel"></a>
<% } %>
</div>
</div>
<% } %>
<% if(orders.length > 0) { %>
<div id="unit_order_task_right"></div>
<% } else { %>
<% if(barracks) { %>
No units in training <% } else { %>
No orders in the construction queue <% } %>
<% } %>
/*]]>*/
</script>
Is there any way I can extract this data?
~Uthar






)