commit
d1cacfc41a
@ -33,12 +33,11 @@ window.plugin.ipasLink.addLink = function(d) {
|
|||||||
window.plugin.ipasLink.getHash = function(d) {
|
window.plugin.ipasLink.getHash = function(d) {
|
||||||
var hashParts=[];
|
var hashParts=[];
|
||||||
$.each(d.resonatorArray.resonators, function(ind, reso) {
|
$.each(d.resonatorArray.resonators, function(ind, reso) {
|
||||||
if ($reso) {
|
if (reso) {
|
||||||
hashParts.push(reso.level + "," + reso.distanceToPortal + "," + reso.energyTotal);
|
hashParts.push(reso.level + "," + reso.distanceToPortal + "," + reso.energyTotal);
|
||||||
} else {
|
} else {
|
||||||
hashParts.push(1 + "," + 35 + "," + 0); // Dummy values, the only important one is energy=0
|
hashParts.push(1 + "," + 35 + "," + 0); // Dummy values, the only important one is energy=0
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return hashParts.join(";")+"|" + "0,0,0,0"; //shields not implemented yet
|
return hashParts.join(";")+"|" + "0,0,0,0"; //shields not implemented yet
|
||||||
}
|
}
|
||||||
@ -62,4 +61,3 @@ if(window.iitcLoaded && typeof setup === 'function') {
|
|||||||
var script = document.createElement('script');
|
var script = document.createElement('script');
|
||||||
script.appendChild(document.createTextNode('('+ wrapper +')();'));
|
script.appendChild(document.createTextNode('('+ wrapper +')();'));
|
||||||
(document.body || document.head || document.documentElement).appendChild(script);
|
(document.body || document.head || document.documentElement).appendChild(script);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user