Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
User:Dragonjet/scripts/FleetReporting.js
(view source)
Revision as of 02:36, 31 January 2015
1,167 bytes added
,
9 years ago
m
v6
Line 1:
Line 1:
(function($){
(function($){
"use strict";
"use strict";
−
console.log("Fleet Reporting v0.
5
");
+
console.log("Fleet Reporting v0.
6
");
var routes = {};
var routes = {};
Line 23:
Line 23:
routes[thisRoute][fleetIndexer]++;
routes[thisRoute][fleetIndexer]++;
});
});
+
for(routeName in routes){
+
$(".FleetCompilation").append("<div style='margin:0px 10px 10px; background:#fff; border:1px solid #ccc;'>");
+
$(".FleetCompilation").append("<div style='padding:5px 10px;'>");
+
$(".FleetCompilation").append("<div style='font-size:16px; font-weight:bold;'>"+routeName+"</div>");
+
for(compoName in routes[routeName]){
+
$(".FleetCompilation").append("<div style=''>");
+
$(".FleetCompilation").append("<div style='width:100px; font-size:14px; font-weight:bold; float:left;'>"+compoName+"</div>");
+
+
$(".FleetCompilation").append("<div style='width:200px; height:16px; border:1px solid #000; background:#444; float:left;'>");
+
$(".FleetCompilation").append("<div style='width:"+routes[routeName][compoName]+"px; height:16px; background:#0f0;'></div>");
+
$(".FleetCompilation").append("</div>");
+
+
$(".FleetCompilation").append("<div style='width:100px; float:left;'>"+routes[routeName][compoName]+"</div>");
+
$(".FleetCompilation").append("</div>");
+
+
$(".FleetCompilation").append("<div style='clear:both;'></div>");
+
}
+
$(".FleetCompilation").append("</div></div>");
+
}
console.log(routes);
console.log(routes);
}
}
Dragonjet
15
edits