summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlpha <ngcoder@live.com>2015-08-15 08:25:48 -0400
committerAlpha <ngcoder@live.com>2015-08-15 08:38:49 -0400
commit9a90e9335327db4ad4c0b2cf31b49f389fa71784 (patch)
treeb3fbca4015989c819a6955be3c6b5ce6427f45e3
parentd2d81a33e38f328d72bb45bb441510fdebf67e44 (diff)
downloadwebgrind-9a90e9335327db4ad4c0b2cf31b49f389fa71784.zip
webgrind-9a90e9335327db4ad4c0b2cf31b49f389fa71784.tar.gz
webgrind-9a90e9335327db4ad4c0b2cf31b49f389fa71784.tar.bz2
Minor render tweaks
-rw-r--r--config.php2
-rw-r--r--index.php6
-rw-r--r--styles/style.css2
-rw-r--r--templates/index.phtml12
4 files changed, 12 insertions, 10 deletions
diff --git a/config.php b/config.php
index dffb69a..814c49d 100644
--- a/config.php
+++ b/config.php
@@ -28,7 +28,7 @@ class Webgrind_Config extends Webgrind_MasterConfig {
* Image type of graph to output
* Can be png or svg
*/
- static $graphImageType = 'png';
+ static $graphImageType = 'svg';
static $defaultTimezone = 'Europe/Copenhagen';
static $dateFormat = 'Y-m-d H:i:s';
diff --git a/index.php b/index.php
index 4476618..0b1d596 100644
--- a/index.php
+++ b/index.php
@@ -169,9 +169,11 @@ try {
break;
case 'version_info':
- header('Content-type: application/json');
$response = @file_get_contents('http://alpha0010.github.io/webgrind/webgrindupdate.json?version='.Webgrind_Config::$webgrindVersion);
- echo $response;
+ if ($response) {
+ header('Content-type: application/json');
+ echo $response;
+ }
break;
case 'clear_files':
diff --git a/styles/style.css b/styles/style.css
index 7b3fb0a..8548419 100644
--- a/styles/style.css
+++ b/styles/style.css
@@ -49,7 +49,7 @@ h2 {
#options {
float: right;
- width: 580px;
+ width: 600px;
padding: 10px 0 0 0;
}
#options form {
diff --git a/templates/index.phtml b/templates/index.phtml
index d96c9c6..fd84a43 100644
--- a/templates/index.phtml
+++ b/templates/index.phtml
@@ -55,12 +55,11 @@
var breakdown_sum = data.breakdown['internal']+data.breakdown['procedural']+data.breakdown['class']+data.breakdown['include'];
$("#breakdown").html(
'<img src="img/gradient_left.png" height="20" width="10">'+
- '<img src="img/gradient_internal.png" height="20" width="'+Math.floor(data.breakdown['internal']/breakdown_sum*300)+'">'+
- '<img src="img/gradient_include.png" height="20" width="'+Math.floor(data.breakdown['include']/breakdown_sum*300)+'">'+
- '<img src="img/gradient_class.png" height="20" width="'+Math.floor(data.breakdown['class']/breakdown_sum*300)+'">'+
- '<img src="img/gradient_procedural.png" height="20" width="'+Math.floor(data.breakdown['procedural']/breakdown_sum*300)+'">'+
- '<img src="img/gradient_right.png" height="20" width="10">'+
- '<div title="internal functions, include/require, class methods and procedural functions." style="position:relative;top:-20px;left:10px;width:301px;height:19px"></div>'
+ '<img src="img/gradient_internal.png" title="internal functions" height="20" width="'+Math.floor(data.breakdown['internal']/breakdown_sum*300)+'">'+
+ '<img src="img/gradient_include.png" title="include/require" height="20" width="'+Math.floor(data.breakdown['include']/breakdown_sum*300)+'">'+
+ '<img src="img/gradient_class.png" title="class methods" height="20" width="'+Math.floor(data.breakdown['class']/breakdown_sum*300)+'">'+
+ '<img src="img/gradient_procedural.png" title="procedural functions" height="20" width="'+Math.floor(data.breakdown['procedural']/breakdown_sum*300)+'">'+
+ '<img src="img/gradient_right.png" height="20" width="10">'
);
$("#hello_message").hide();
@@ -405,6 +404,7 @@
<div id="version_info">&nbsp;</div>
<?php endif?>
Copyright © 2008-2011 Jacob Oettinger &amp; Joakim Nygård. <a href="http://github.com/jokkedk/webgrind/">webgrind homepage</a>
+ <a href="http://github.com/alpha0010/webgrind/">dev fork</a>
</div>
</div>
</body>