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:12, 31 January 2015
39 bytes removed
,
9 years ago
m
thisRoute fix
Line 1:
Line 1:
(function($){
(function($){
"use strict";
"use strict";
−
console.log("Fleet Reporting v0.
3
");
+
console.log("Fleet Reporting v0.
4
");
var routes = {};
var routes = {};
Line 15:
Line 15:
thisFleet.sort();
thisFleet.sort();
fleetIndexer = thisFleet.join("-");
fleetIndexer = thisFleet.join("-");
−
if(typeof routes[] == "undefined"){
+
if(typeof routes[
thisRoute
] == "undefined"){
−
routes[
$(this).data("route")
] = {};
+
routes[
thisRoute
] = {};
}
}
−
if(typeof routes[
$(this).data("route")
][fleetIndexer] == "undefined"){
+
if(typeof routes[
thisRoute
][fleetIndexer] == "undefined"){
−
routes[
$(this).data("route")
][fleetIndexer] = 0;
+
routes[
thisRoute
][fleetIndexer] = 0;
}
}
−
routes[
$(this).data("route")
][fleetIndexer]++;
+
routes[
thisRoute
][fleetIndexer]++;
});
});
console.log(routes);
console.log(routes);
Dragonjet
15
edits