Changes

m
v15
Line 1: Line 1:  
(function($){
 
(function($){
 
"use strict";
 
"use strict";
console.log("Fleet Reporting v0.14");
+
console.log("Fleet Reporting v0.15");
 
 
 
var routes = {};
 
var routes = {};
Line 41: Line 41:  
CompilationString += "<div style='margin:0px 10px 10px; background:#fff; border:1px solid #ccc;'>";
 
CompilationString += "<div style='margin:0px 10px 10px; background:#fff; border:1px solid #ccc;'>";
 
CompilationString += "<div style='padding:5px 10px;'>";
 
CompilationString += "<div style='padding:5px 10px;'>";
CompilationString += "<div style='font-size:16px; font-weight:bold;'>"+routeName+"</div>";
+
CompilationString += "<div style='font-size:18px; font-weight:bold; margin:0px 0px 10px 0px;'>"+routeName+"</div>";
 
for(compoName in routes[routeName]){
 
for(compoName in routes[routeName]){
CompilationString += "<div style='margin:0px 0px 5px 0px;'><div style='width:200px; font-size:14px; font-weight:bold; float:left;'>"+compoName+"</div><div style='width:200px; height:16px; border:1px solid #000; background:#444; float:left; margin:0px 10px 0px 0px;'><div style='width:"+routes[routeName][compoName]+"px; height:16px; background:#0f0;'></div></div><div style='width:100px; float:left; font-weight:bold;'>"+routes[routeName][compoName]+"</div><div style='clear:both;'></div></div>";
+
CompilationString += "<div style='margin:0px 0px 5px 0px;'><div style='width:200px; height:16px; font-size:14px; font-weight:bold; float:left;'>"+compoName+"</div><div style='width:200px; height:16px; border:1px solid #000; background:#444; float:left; margin:0px 10px 0px 0px;'><div style='width:"+routes[routeName][compoName]+"px; height:16px; background:#0f0;'></div></div><div style='width:100px; height:16px; float:left; font-weight:bold;'>"+routes[routeName][compoName]+"</div><div style='clear:both;'></div></div>";
 
}
 
}
 
CompilationString += "</div></div>";
 
CompilationString += "</div></div>";
 
}
 
}
 
$(".FleetCompilation").append(CompilationString);
 
$(".FleetCompilation").append(CompilationString);
console.log(routes);
   
}
 
}
 
});
 
});
    
}(jQuery));
 
}(jQuery));
15

edits