Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:sandb/pamela
Browse files Browse the repository at this point in the history
Conflicts:
	macs.php
  • Loading branch information
sandb committed Mar 21, 2010
2 parents eda14cd + 1e47239 commit 1a9cca6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
Binary file added img/whitespace-logo-square-transp-drop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pamela</title>
<script src="js/jquery-1.3.2.js" type="text/javascript" />
<script src="js/pamela-buttons.js" type="text/javascript" />
<script src="js/pamela-nodes.js" type="text/javascript" />
<script src="js/pamela-matrices.js" type="text/javascript" />
<script src="js/pamela.js" type="text/javascript" />
<script src="js/jquery-1.3.2.js" type="text/javascript"></script>
<script src="js/pamela-buttons.js" type="text/javascript"></script>
<script src="js/pamela-nodes.js" type="text/javascript"></script>
<script src="js/pamela-matrices.js" type="text/javascript"></script>
<script src="js/pamela.js" type="text/javascript"></script>
<style type="text/css">* {margin:0; padding:0} body { background-color: #fff; }</style>
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions js/pamela-nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Node.prototype.draw = Node.prototype.normal.draw;
jQuery.extend(NorbertNode.prototype, Node.prototype);
function NorbertNode() {
this.norbert = new Image();
this.norbert.src = "img/norbert-8bit.png";
this.norbert.src = "img/whitespace-logo-square-transp-drop.png";
self = this;
this.norbertLoaded = false;
this.norbert.onload=function() { self.norbertLoaded = true; }
Expand All @@ -185,8 +185,8 @@ function NorbertNode() {
NorbertNode.prototype.draw = function() {
var s = Math.abs(this.projection.z / (width / 2));
s *= 2;
var x = Math.floor(this.projection.x - (186 / s));
var y = Math.floor(this.projection.y - (50 / s));
var x = Math.floor(this.projection.x - (280 / s));
var y = Math.floor(this.projection.y - (240 / s));
//var x = Math.floor(this.projection.x - (192 / s));
//var y = Math.floor(this.projection.y - (180 / s));
if (this.norbertLoaded)
Expand Down
14 changes: 5 additions & 9 deletions macs.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@
require_once("lib/trans.php");
require_once("lib/macs.php");

//function translator($mac) {
// global $mac_translation_table;
// if (array_key_exists($mac, $mac_translation_table))
// return $mac_translation_table[$mac];
// return $mac;
//}

$macs = macs_get();
$macs = known_macs_translate($macs);
//$macs = array_map("translator", $macs);
echo '["'.implode('", "', $macs).'"]';
if (count($macs) > 0) {
echo '["'.implode('", "', $macs).'"]';
} else {
echo '[]';
}
macs_purge();

0 comments on commit 1a9cca6

Please sign in to comment.