Merge branch 'master' of git@github.com:sandb/pamela
Conflicts: macs.php
This commit is contained in:
commit
1a9cca6d0c
BIN
img/whitespace-logo-square-transp-drop.png
Normal file
BIN
img/whitespace-logo-square-transp-drop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
10
index.html
10
index.html
|
@ -1,11 +1,11 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title>Pamela</title>
|
<title>Pamela</title>
|
||||||
<script src="js/jquery-1.3.2.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 src="js/pamela-buttons.js" type="text/javascript"></script>
|
||||||
<script src="js/pamela-nodes.js" type="text/javascript" />
|
<script src="js/pamela-nodes.js" type="text/javascript"></script>
|
||||||
<script src="js/pamela-matrices.js" type="text/javascript" />
|
<script src="js/pamela-matrices.js" type="text/javascript"></script>
|
||||||
<script src="js/pamela.js" type="text/javascript" />
|
<script src="js/pamela.js" type="text/javascript"></script>
|
||||||
<style type="text/css">* {margin:0; padding:0} body { background-color: #fff; }</style>
|
<style type="text/css">* {margin:0; padding:0} body { background-color: #fff; }</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -175,7 +175,7 @@ Node.prototype.draw = Node.prototype.normal.draw;
|
||||||
jQuery.extend(NorbertNode.prototype, Node.prototype);
|
jQuery.extend(NorbertNode.prototype, Node.prototype);
|
||||||
function NorbertNode() {
|
function NorbertNode() {
|
||||||
this.norbert = new Image();
|
this.norbert = new Image();
|
||||||
this.norbert.src = "img/norbert-8bit.png";
|
this.norbert.src = "img/whitespace-logo-square-transp-drop.png";
|
||||||
self = this;
|
self = this;
|
||||||
this.norbertLoaded = false;
|
this.norbertLoaded = false;
|
||||||
this.norbert.onload=function() { self.norbertLoaded = true; }
|
this.norbert.onload=function() { self.norbertLoaded = true; }
|
||||||
|
@ -185,8 +185,8 @@ function NorbertNode() {
|
||||||
NorbertNode.prototype.draw = function() {
|
NorbertNode.prototype.draw = function() {
|
||||||
var s = Math.abs(this.projection.z / (width / 2));
|
var s = Math.abs(this.projection.z / (width / 2));
|
||||||
s *= 2;
|
s *= 2;
|
||||||
var x = Math.floor(this.projection.x - (186 / s));
|
var x = Math.floor(this.projection.x - (280 / s));
|
||||||
var y = Math.floor(this.projection.y - (50 / s));
|
var y = Math.floor(this.projection.y - (240 / s));
|
||||||
//var x = Math.floor(this.projection.x - (192 / s));
|
//var x = Math.floor(this.projection.x - (192 / s));
|
||||||
//var y = Math.floor(this.projection.y - (180 / s));
|
//var y = Math.floor(this.projection.y - (180 / s));
|
||||||
if (this.norbertLoaded)
|
if (this.norbertLoaded)
|
||||||
|
|
12
macs.php
12
macs.php
|
@ -27,15 +27,11 @@ require_once("config.php");
|
||||||
require_once("lib/trans.php");
|
require_once("lib/trans.php");
|
||||||
require_once("lib/macs.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 = macs_get();
|
||||||
$macs = known_macs_translate($macs);
|
$macs = known_macs_translate($macs);
|
||||||
//$macs = array_map("translator", $macs);
|
if (count($macs) > 0) {
|
||||||
echo '["'.implode('", "', $macs).'"]';
|
echo '["'.implode('", "', $macs).'"]';
|
||||||
|
} else {
|
||||||
|
echo '[]';
|
||||||
|
}
|
||||||
macs_purge();
|
macs_purge();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user