<!doctype html>
<html>
<head>
<title>Ants Up the Wall Game - RJM Programming - February, 2018</title>
<style>
.f1:before { content: '\01f371' }
.f2:before { content: '\01f358' }
.f3:before { content: '\01f359' }
.f4:before { content: '\01f35a' }
.f5:before { content: '\01f35b' }
.f6:before { content: '\01f35c' }
.f7:before { content: '\01f35d' }
.f8:before { content: '\01f360' }
.f9:before { content: '\01f362' }
.f10:before { content: '\01f363' }
.f11:before { content: '\01f364' }
.f12:before { content: '\01f365' }
.f13:before { content: '\01f361' }
.f14:before { content: '\01F366' }
.f15:before { content: '\01F367' }
.f16:before { content: '\01F368' }
.f17:before { content: '\01F369' }
.f18:before { content: '\01F36A' }
.f19:before { content: '\01F382' }
.f0:before { content: '\01F370' }
.custom-alert {
display: inline-block;
visibility: visible;
background-color: rgba(102,102,102,0.8);
color: #fff;
text-align: enter;
margin: 2% auto;
padding: 12px 4px;
}
.atbottom {
position: absolute;
left: calc(100% - 10px);
top: calc(100% - 28px);
font-size: 18px;
z-index: 9;
-o-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
transform: rotate(90deg);
}
.animal {
text-shadow: 0.3px 0.3px 0.4px #2dff95;
}
.crabs {
font-size: 24px !important;
}
.pandas {
font-size: 30px !important;
-o-transform: rotate(20deg) !important;
-moz-transform: rotate(20deg) !important;
-ms-transform: rotate(20deg) !important;
-webkit-transform: rotate(20deg) !important; /* Chrome, Safari, Opera */
transform: rotate(20deg) !important;
}
.koalas {
font-size: 30px !important;
-o-transform: rotate(20deg) !important;
-moz-transform: rotate(20deg) !important;
-ms-transform: rotate(20deg) !important;
-webkit-transform: rotate(20deg) !important; /* Chrome, Safari, Opera */
transform: rotate(20deg) !important;
}
.monkeys {
font-size: 30px !important;
-o-transform: rotate(20deg) !important;
-moz-transform: rotate(20deg) !important;
-ms-transform: rotate(20deg) !important;
-webkit-transform: rotate(20deg) !important; /* Chrome, Safari, Opera */
transform: rotate(20deg) !important;
}
#wall {
position: absolute;
left: 0px;
top: calc(100% - 550px);
width: 100%;
z-index: 0;
border-bottom: 550px solid rgba(127,0,0,0.3);
background-color: rgba(192,192,192,0.1);
background-image: linear-gradient(335deg, rgba(176,0,0,0.1) 23px, transparent 23px),
linear-gradient(155deg, rgba(208,0,0,0.1) 1px, transparent 23px),
linear-gradient(335deg, rgba(176,0,0,0.1) 23px, transparent 23px),
linear-gradient(155deg, rgba(208,0,0,0.1) 23px, transparent 23px);
background-size: 58px 58px;
background-position: 0px 2px, 4px 35px, 29px 31px, 34px 6px;
}
@media only screen and (min-device-width: 320px) and (max-device-width: 865px) and (orientation: portrait) {
.atboXttom {
top: 200px;
}
#score {
margin-top: -8px;
}
#wall {
top: 218px;
height: calc(100vh - 218px);
}
}
@media only screen and (min-device-width: 320px) and (max-device-width: 765px) and (orientation: landscape) {
.atboXttom {
top: 200px;
}
#score {
margin-top: -8px;
}
#wall {
top: 218px;
height: calc(100vh - 218px);
}
}
</style>
<script type="text/javascript">
var ffa=(location.search.split('ffa=')[1] ? decodeURIComponent(location.search.split('ffa=')[1]).split('&')[0] : '');
var curant=1;
var startx=-1;
var starty=-1;
var wally=-1;
var maxf=-1;
var curwidth=-1;
var eating_now_maybe=false;
var score=0;
var numants=0;
var goes=20;
var isecs=0;
var minus=0;
var notnew=true;
var okay=true;
var twentythree=23;
var wsprefix='';
var wssuffix='';
var byih='';
var woois=null;
var gwoois=null;
var ngblurb='<a id=agame target=_self style=color:orange; href=//www.rjmprogramming.com.au/HTMLCSS/ants_up_the_wall.html>game</a> ';
var oteote=128028;
var plural=(location.search.split('plural=')[1] ? decodeURIComponent(location.search.split('plural=')[1]).split('&')[0] : 'ants');
if (plural.indexOf('.') != -1) {
oteote=eval(('' + plural).split('.')[1]);
plural=('' + ('' + plural).split('.')[0] + 's').replace(/ss$/g,'s');
} else if (plural.toLowerCase().indexOf('monkey') == 0 || plural == '128018') {
oteote=128018;
plural='monkeys';
} else if (plural.toLowerCase().indexOf('crab') == 0 || plural == '129408') {
oteote=129408;
plural='crabs';
} else if (plural.toLowerCase().indexOf('bee') == 0 || plural == '128029') {
oteote=128029;
plural='bees';
} else if (plural.toLowerCase().indexOf('lady') == 0 || plural == '128030') {
oteote=128030;
plural='ladybirds';
} else if (plural.toLowerCase().indexOf('panda') == 0 || plural == '128060') {
oteote=128060;
plural='pandas';
} else if (plural.toLowerCase().indexOf('koala') == 0 || plural == '128040') {
oteote=128040;
plural='koalas';
}
var slowants=1000;
var Ant = function(o){
this.ourtype=o.ourtype || 'div';
this.ourclass=o.ourclass || 'atbottom';
this.ourid=o.ourid || 'ant' + curant;
this.twentythree=23;
curant++;
this.ih=o.ih || '' + oteote + ';';
this.x=o.x || Math.floor(Math.random() * eval(document.getElementById('ant0').style.left.replace('px','')));
this.y=o.y || eval(document.getElementById('ant0').style.left.replace('px',''));
this.rotation=o.rotation || eval(Math.floor(Math.random() * 40) + 70);
this.dist=eval(Math.floor(Math.random() * 7) + 1);
this.moveY = function () {
return this.y-=(Math.sin(eval(this.rotation * Math.PI / 180.0)) * this.dist);
};
this.moveX = function () {
var ghtit=Math.floor(Math.random() * 50);
if (ghtit == 35 && ('' + document.getElementById(this.ourid).style.position) == 'absolute') {
this.dist=0;
this.twentythree=53;
this.rotation=o.rotation || eval(Math.floor(Math.random() * 178) - 89);
document.getElementById(this.ourid).style.position='fixed';
//document.getElementById(this.ourid).style.border='1px dotted green';
document.getElementById(this.ourid).style.backgroundColor='rgba(255, 0, 0, 0.2)';
} else if (ghtit == 5 && ('' + document.getElementById(this.ourid).style.position) == 'absolute') {
this.dist=0;
this.twentythree=23;
this.rotation=o.rotation || eval(Math.floor(Math.random() * 178) - 89);
document.getElementById(this.ourid).style.position='fixed';
//document.getElementById(this.ourid).style.border='1px dotted green';
document.getElementById(this.ourid).style.backgroundColor='rgba(144, 238, 144, 0.1)';
} else if (('' + document.getElementById(this.ourid).style.position) == 'fixed') {
ghtit=Math.floor(Math.random() * 5);
if (ghtit == 3) {
this.dist=eval(Math.floor(Math.random() * this.twentythree) + 1);
document.getElementById(this.ourid).style.border='';
document.getElementById(this.ourid).style.backgroundColor='';
document.getElementById(this.ourid).style.position='absolute';
}
}
if (curwidth > 0 && eval(this.x - (Math.cos(eval(this.rotation * Math.PI / 180.0)) * this.dist)) > curwidth) { return curwidth; }
return this.x-=(Math.cos(eval(this.rotation * Math.PI / 180.0)) * this.dist);
};
document.getElementById('rest').innerHTML+='<' + this.ourtype + ' class="animal ' + plural + '" id=' + this.ourid + ' ontouchstart="exterminate(this);" onmousedown="exterminate(this);" style="z-index:9;position:absolute;font-size:' + (plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? '30' : (plural == 'crabs' ? '24' : '18')) + 'px;width:22px;height:22px;top:' + Math.round(this.y) + 'px;left:' + Math.round(this.x) + 'px;-o-transform: rotate(' + this.rotation + 'deg)' + imm(plural) + '; -moz-transform: rotate(' + jmm('' + this.rotation) + 'deg)' + imm(plural) + '; -ms-transform: rotate(' + jmm('' + this.rotation) + 'deg)' + imm(plural) + '; -webkit-transform: rotate(' + jmm('' + this.rotation) + 'deg)' + imm(plural) + '; transform: rotate(' + jmm('' + this.rotation) + 'deg)' + imm(plural) + ';">' + this.ih + '</' + this.ourtype + '>';
}
var ants=[];
var foods=[];
function jmm(inpl) {
if (plural.toLowerCase() == 'monkeys') {
return '' + eval(-70 + eval('' + inpl));
} else if (plural.toLowerCase() == 'crabs') {
return '' + eval(-70 + eval('' + inpl));
}
return inpl;
}
function imm(inpl) {
if (inpl.toLowerCase() == 'monkeys' || inpl.toLowerCase() == 'crabs') {
return ' !important';
}
return '';
}
function moveants() {
var midfoodx=0, midfoody=0;
for (var i=0; i<ants.length; i++) {
if (document.getElementById('ant' + eval(1 + eval(('' + i)))).innerHTML != '') {
ants[i].moveY();
ants[i].moveX();
if (ants[i].y <= maxf) eating_now_maybe=true;
document.getElementById(ants[i].ourid).style.top=Math.round(ants[i].y) + 'px';
document.getElementById(ants[i].ourid).style.left=Math.round(ants[i].x) + 'px';
if (eating_now_maybe) {
if (eval(('' + ants[i].y)) <= eval(('' + maxf))) {
for (var j=0; j<foods.length; j++) {
if (document.getElementById('f' + j).className != '') {
if (document.getElementById('ant' + eval(1 + eval(('' + i)))).innerHTML != '') {
if (midfoodx == 0) document.getElementById('status').innerHTML='';
midfoodx=eval(9 + eval(eval(('' + foods[j].left).replace('px',''))));
midfoody=eval(22 + eval(eval(('' + foods[j].top).replace('px',''))));
if (document.getElementById('f' + j).title != '') document.getElementById('status').innerHTML+=(eval(('' + midfoodx)) + ' .ge. ' + eval(('' + ants[i].x)) + ' && ' + eval(('' + midfoodx)) + ' .le. ' + eval((plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? 30 : (plural == 'crabs' ? 24 : 18)) + eval(('' + ants[i].x))));
if (eval(('' + midfoodx)) >= eval(('' + ants[i].x)) && eval(('' + midfoodx)) <= eval((plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? 30 : (plural == 'crabs' ? 24 : 18)) + eval(('' + ants[i].x)))) {
if (document.getElementById('f' + j).title != '') {
alert(eval(('' + midfoody)) + ' >= ' + eval(('' + ants[i].y)) + ' && ' + eval(('' + midfoody)) + ' <= ' + eval((plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? 30 : (plural == 'crabs' ? 24 : 18)) + eval(('' + ants[i].y))));
}
//alert('herex');
if (eval(('' + midfoody)) >= eval(('' + ants[i].y)) && eval(('' + midfoody)) <= eval((plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? 30 : (plural == 'crabs' ? 24 : 18)) + eval(('' + ants[i].y)))) {
//alert('ants eating now');
document.getElementById('f' + j).className='';
document.getElementById('ant' + eval(1 + eval(('' + i)))).innerHTML='';
document.getElementById('ant' + eval(1 + eval(('' + i)))).style.backgroundColor='';
document.getElementById('ant' + eval(1 + eval(('' + i)))).style.border='';
delete ants[i];
minus++;
delete foods[j];
goes--;
}
}
}
}
}
if (document.getElementById('ant' + eval(1 + eval(('' + i)))).innerHTML != '') {
document.getElementById('ant' + eval(1 + eval(('' + i)))).innerHTML='';
document.getElementById('ant' + eval(1 + eval(('' + i)))).style.backgroundColor='';
document.getElementById('ant' + eval(1 + eval(('' + i)))).style.border='';
delete ants[i];
minus++;
score++;
}
}
}
}
}
setTimeout(moveants,slowants);
}
function exterminate(ow) {
//alert(ow.id);
//document.getElementById('rest').innerHTML=document.getElementById('rest').innerHTML.replace(ow.outerHTML,'');
if (ow.innerHTML != '') {
ow.innerHTML='';
score++;
minus++;
ow.style.backgroundColor='';
ow.style.border='';
delete ants[eval(-1 + eval(('' + ow.id.replace('ant',''))))];
}
}
function preanotherant() {
anotherant();
//setTimeout(preanotherant, eval(Math.floor(Math.random() * 3000) + 1000));
setTimeout(preanotherant, eval(Math.floor(Math.random() * 300) + 100));
}
function anotherant() {
if (startx == -1 && starty == -1) {
var rect=document.getElementById('ant0').getBoundingClientRect();
starty=eval(('' + rect.top).replace('px',''));
startx=eval(('' + rect.left).replace('px',''));
document.getElementById('ant0').style.display='none';
var rectw = document.getElementById('wall').getBoundingClientRect(), rectf;
curwidth=eval((plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? -30 : (plural == 'crabs' ? -24 : -18)) + eval('' + rectw.width));
wally=eval(('' + rectw.top).replace('px','') - 25);
for (var ii=0; ii<=19; ii++) {
document.getElementById('rest').innerHTML+='<div id=f' + ii + ' onclick="if (1 == 2) { this.title=String.fromCharCode(32); }" title="" class=f' + Math.floor(Math.random() * 19) + ' style="position:absolute;font-size:' + (plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? '30' : (plural == 'crabs' ? '24' : '18')) + 'px;width:22px;height:22px;z-index:3;top:' + wally + 'px;left:' + Math.floor(Math.random() * eval(eval(-60 + eval(('' + startx))) + 30)) + 'px;"></div>';
if (ii == 0) {
document.body.setAttribute('data-walltop', '' + eval((plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? 30 : (plural == 'crabs' ? 24 : 18)) + eval('' + wally)));
}
rectf=document.getElementById('f' + ii).getBoundingClientRect();
foods.push(rectf);
if (maxf == -1) {
maxf=eval(eval(('' + rectf.top).replace('px','')) + eval(('' + rectf.height).replace('px','')));
} else {
maxf=Math.max(maxf,eval(eval(('' + rectf.top).replace('px','')) + eval(('' + rectf.height).replace('px',''))));
}
}
//alert(maxf);
}
numants++;
ants.push(new Ant({ourtype:"div", ourclass:"atbottom", ourid:"ant" + curant, ih:"" + oteote + ";", x:Math.floor(Math.random() * startx), y:starty, rotation:eval(Math.floor(Math.random() * 40) + 70)}));
}
function isecm() {
if (okay) {
isecs++;
document.getElementById('score').innerHTML="Score: " + score + ". Don't mean to scare you but there are " + eval(numants - minus) + " " + plural + " left looking for " + goes + " food items. Time survived with food & clicking " + plural + " away: " + isecs + " seconds.";
if (goes == 0) {
goes=-1;
okay=false;
if (1 == 2) {
alert('Congratulations on being with some food for ' + isecs + ' seconds.');
location.href=document.URL.split('#')[0].split('?')[0];
} else {
document.getElementById('myh1').title='Click to restart';
document.getElementById('myh1').style.textDecoration='underline';
document.getElementById('myh1').style.cursor='pointer';
if (window.top) {
if (wsprefix == '') {
wsprefix=' ';
var tifs=top.document.getElementsByTagName('iframe');
for (var jtifs=0; jtifs<tifs.length; jtifs++) {
if (('' + tifs[jtifs].src).indexOf('ants_up_the_wall.htm') != -1) {
if (('' + tifs[jtifs].id) != '') {
wsprefix='<a style=color:lightgreen; href="#' + tifs[jtifs].id + '">';
wssuffix='</a>';
} else {
var gbcr=tifs[jtifs].getBoundingClientRect();
wsprefix='<a style="cursor:pointer;text-decoration:underline;color:lightgreen;" onclick=" window.top.scroll(0,' + gbcr.top + '); ">';
wssuffix='</a>';
}
}
}
}
if (top.document.getElementById('custom-alert-1')) {
top.document.getElementById('custom-alert-1').innerHTML="Congratulations on being with some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix.trim() + "title" + wssuffix + ", or click comma above, for another game.";
top.document.getElementById('custom-alert-1').style.display='inline-block'; // 'inline';
top.document.getElementById('custom-alert-1').style.visibility='visible';
} else {
top.document.body.innerHTML+="<div id='custom-alert-1' class='custom-alert' style='visibility: visible;display: inline-block;margin-top:-8px;'>Congratulations on being with some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix.trim() + "title" + wssuffix + ", or click comma above, for another game.</div>";
if (top.document.getElementById('custom-alert-1')) {
top.document.getElementById('custom-alert-1').onclick=function() { notnew=false; location.href=document.URL.split('#')[0].split('?')[0] + affa(ffa); };
}
}
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
top.document.getElementById('wall').style.opacity='0.5';
top.document.getElementById('wall').style.zIndex='-1';
top.document.getElementById('custom-alert-1').style.zIndex='543';
top.document.getElementById('agame').style.zIndex='543';
}
makesnapshot();
setTimeout(top.document.hideIt, 10000);
} else {
if (document.getElementById('custom-alert-1')) {
document.getElementById('custom-alert-1').innerHTML="Congratulations on being with some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix + "title" + wssuffix.trim() + ", or click comma above, for another game.";
document.getElementById('custom-alert-1').style.display='inline-block'; // 'inline';
document.getElementById('custom-alert-1').style.visibility='visible';
} else {
document.body.innerHTML+="<div id='custom-alert-1' class='custom-alert' style='visibility: visible;display: inline-block;margin-top:-8px;'>Congratulations on being with some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix.trim() + "title" + wssuffix + ", or click comma above, for another game.</div>";
if (document.getElementById('custom-alert-1')) {
document.getElementById('custom-alert-1').onclick=function() { notnew=false; location.href=document.URL.split('#')[0].split('?')[0] + affa(ffa); };
}
}
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
document.getElementById('wall').style.opacity='0.5';
document.getElementById('wall').style.zIndex='-1';
document.getElementById('custom-alert-1').style.zIndex='543';
document.getElementById('agame').style.zIndex='543';
}
makesnapshot();
setTimeout(hideIt, 10000);
}
// setTimeout(hideIt, 10000);
}
// location.href=document.URL.split('#')[0].split('?')[0];
}
}
}
function hideIt() {
if (window.top) {
if (top.document.getElementById('custom-alert-1')) {
top.document.getElementById('custom-alert-1').style.display='none';
top.document.getElementById('custom-alert-1').style.visibility='hidden';
}
} else {
if (document.getElementById('custom-alert-1')) {
document.getElementById('custom-alert-1').style.display='none';
document.getElementById('custom-alert-1').style.visibility='hidden';
}
}
}
function cthen() {
if (ngblurb == '<a id=agame target=_self style=color:orange; href=//www.rjmprogramming.com.au/HTMLCSS/ants_up_the_wall.html>game</a> ') {
goes=0;
notnew=false;
location.href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (1 == 1) {
goes=0;
notnew=false;
gwoois=window.open(document.URL.split('#')[0].split('?')[0] + ffa, '_blank');
} else if (1 == 12) {
document.getElementById('rest').innerHTML='';
document.getElementById('status').innerHTML='';
document.getElementById('score').innerHTML="Score: 0. Don't mean to scare you but there are 0 " + plural + " left looking for 20 food items. Time survived with food & clicking " + plural + " away: 0 seconds.";
var wash=byih.split('<div id="score">')
var ish=document.body.innerHTML.split('<div id="score">')
document.body.innerHTML=byih.replace(wash[0], ish[0]); //document.body.innerHTML.replace(document.getElementById('custom-alert-1').outerHTML,'');
var tag = document.createElement('script');
var onls=document.head.outerHTML.split('<scr' + 'ipt type="text/javascript">');
var onlstuff=onls[1].split('</sc' + 'ript>')[0];
tag.innerHTML = onlstuff;
var firstScriptTag = document.getElementsByTagName('script')[eval(-1 + document.getElementsByTagName('script').length)];
firstScriptTag.parentNode.insertAfter(tag, firstScriptTag);
//firstScriptTag.insertAdjacentElement("afterend", tag);
startx=-1;
starty=-1;
goes=20;
score=0;
slowants=1000;
curant=1;
wally=-1;
maxf=-1;
eating_now_maybe=false;
numants=0;
isecs=0;
minus=0;
okay=true;
twentythree=23;
wsprefix='';
wssuffix='';
woois=null;
//involvednewgame();
}
}
function oureval(inev, osel) {
if (inev != '') {
if (inev == '100') {
document.getElementById('adjective').innerHTML='Fewer Faster ';
ffa='?ffa=ffa' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (inev == '500') {
document.getElementById('adjective').innerHTML='Half Paced ';
ffa='?ffa=hp' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (inev == '50') {
document.getElementById('adjective').innerHTML='Hard to Handle ';
ffa='?ffa=hth' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (inev == '1000') {
inev='1000';
document.getElementById('adjective').innerHTML='Many Slow ';
ffa='?ffa=ms' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
}
slowants=eval(inev);
osel.value='';
}
}
function doffa() {
if (ffa != '') {
if (ffa == 'ffa') {
document.getElementById('adjective').innerHTML='Fewer Faster ';
slowants=eval('100');
ffa='?ffa=ffa';
} else if (ffa == 'hp') {
document.getElementById('adjective').innerHTML='Half Paced ';
slowants=eval('500');
ffa='?ffa=hp';
} else if (ffa == 'hth') {
document.getElementById('adjective').innerHTML='Hard to Handle ';
slowants=eval('50');
ffa='?ffa=hth';
} else if (ffa == 'ms') {
document.getElementById('adjective').innerHTML='Many Slow ';
slowants=eval('1000');
ffa='?ffa=ms';
}
}
}
function showtval(tvalis) {
try {
if (tvalis.trim() != '') {
var woois=window.open('', '_blank', 'top=0,left=0,width=' + screen.width + ',height=' + screen.height);
//woois.document.write('<html><head>' + document.head.innerHTML + '</head><body>' + window.atob(document.body.getAttribute(tvalis)) + '</body></html>');
woois.document.write('<html><head>' + document.head.innerHTML.replace('calc(10' + '0% - 550px);', '' + document.body.getAttribute('data-walltop') + 'px;') + '</head><body>' + decodeURIComponent(document.body.getAttribute(tvalis)) + '</body></html>');
document.getElementById('selsnapshots').value='';
}
} catch(hfgdhg) {
}
}
function involvednewgame() {
//goes=0;
woois=window.open('', '_blank'); //, 'top=0,left=0,width=' + screen.width + ',height=' + screen.height);
//woois.document.write('<html><head>' + document.head.innerHTML + '</head><body>' + window.atob(document.body.getAttribute(tvalis)) + '</body></html>');
woois.document.write('<html><head>' + fixsome(document.head.innerHTML.replace('calc(10' + '0% - 550px);', '' + document.body.getAttribute('data-walltop') + 'px;') + '</head>' + document.body.outerHTML.replace(document.getElementById('custom-alert-1').outerHTML,'')) + '</html>');
//woois.document.write('<html><head>' + document.head.innerHTML.replace('calc(10' + '0% - 550px);', '' + document.body.getAttribute('data-walltop') + 'px;') + '</head>' + document.body.outerHTML.split('>')[0] + '>' + byih + '</body></html>');
}
function makesnapshot() {
if (document.getElementById('selsnapshots') && !woois && !gwoois && notnew) {
var inlabis='' + (new Date());
var labis=('data-' + inlabis).replace(/\:/g,'_').replace(/\//g,'_').replace(/\ /g,'_').replace(/\./g,'_').replace(/\+/g,'_').replace(/\)/g,'_').replace(/\(/g,'_');
//document.body.setAttribute(labis, window.btoa(document.body.innerHTML));
document.body.setAttribute(labis, encodeURIComponent(document.body.innerHTML));
document.getElementById('oreadyfor').innerHTML=document.getElementById('oreadyfor').getAttribute('data-prefix') + 'last was at ' + inlabis + ') of ' + plural + ' at ...';
document.getElementById('selsnapshots').innerHTML+='<option value="' + labis + '">' + inlabis + '</option>';
//ngblurb='<button style=color:orange;z-index:9987; onclick=involvednewgame();>game</button> ';
//ngblurb='game via header link click ';
ngblurb='<a id=agame target=_self style=color:orange; href=//www.rjmprogramming.com.au/HTMLCSS/ants_up_the_wall.html>game</a> (or via header link click above to retain snapshots) ';
if (document.getElementById('custom-alert-1')) {
document.getElementById('custom-alert-1').onclick=function() { notnew=false; location.href=document.URL.split('#')[0].split('?')[0] + affa(ffa); };
}
}
}
function doshot(itv) {
if (eval('' + itv) > 0) {
document.getElementById('mysnapshots').innerHTML='<select id=selsnapshots onchange="showtval(this.value);"><option data-prefix="See ' + itv + ' sec' + 'ond snapshots (" id=oreadyfor value="">Se' + 'e ' + itv + ' sec' + 'ond snapshots (first yet to come) of ' + plural + ' at ...</option></select>';
setInterval(makesnapshot, Math.round(eval(1000.0 * eval('' + itv))));
}
}
function fixsome(inidea) {
var outidea=inidea;
var onls=inidea.split('<bo' + 'dy onload="');
var onlstwo=inidea.split('</s' + 'cript>');
var onlstuff='';
if (eval('' + onls.length) > 1 && eval('' + onlstwo.length) > 1) {
onlstuff=onls[1].split('"')[0];
outidea=outidea.replace(onlstwo[0], onlstwo[0] + String.fromCharCode(10) + ' function onlis() { ' + onlstuff + ' } ' + String.fromCharCode(10) + ' setTimeout(onlis, 2000); ' + String.fromCharCode(10));
outidea=outidea.replace('<bo' + 'dy onload="', '<bo' + 'dy data-onload="');
outidea=outidea.replace('cal' + 'c(100% - 10px)', '' + eval(-10 + screen.width) + 'px');
outidea=outidea.replace('cal' + 'c(100% - 28px)', '' + eval(-28 + screen.height) + 'px');
}
return outidea;
}
function lfd() {
var datas=[], idatas=0;
if (('' + oteote).replace('128028','') != '') {
document.getElementById('sanimal').value='' + oteote;
document.getElementById('ant0').innerHTML='' + oteote + ';';
if (ffa == '') {
ffa='?plural=' + plural + '.' + oteote;
} else {
ffa='?ffa=' + ffa + '&plural=' + plural + '.' + oteote;
}
setTimeout(delayednewanimal, 500);
} else if (ffa.indexOf('?') == -1 && ffa != '') {
ffa='?ffa=' + ffa;
}
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
var wq=null;
if (window.opener) {
try {
wq=window.opener.document.getElementById('mysnapshots');
} catch (hfgdhjg) {
wq=null;
}
}
if (wq) {
document.getElementById('mysnapshots').innerHTML=window.opener.document.getElementById('mysnapshots').innerHTML;
datas=window.opener.document.body.outerHTML.split('>')[0].split(' data-');
for (idatas=1; idatas<datas.length; idatas++) {
document.body.setAttribute('data-' + datas[idatas].split('=')[0], datas[idatas].split('="')[1].split('"')[0]);
}
setInterval(makesnapshot, Math.round(eval(1000.0 * eval('' + document.getElementById('mysnapshots').innerHTML.split('>Se' + 'e ')[1].split(' ')[0] ))));
//alert('Good');
} else if (document.head.innerHTML.indexOf('calc(1' + '00% - 550px)') == -1) {
//alert('good');
startx=-1;
starty=-1;
goes=20;
score=0;
slowants=1000;
document.getElementById('rest').innerHTML='';
document.getElementById('status').innerHTML='';
document.getElementById('score').innerHTML="Score: 0. Don't mean to scare you but there are 0 " + plural + " left looking for 20 food items. Time survived with food & clicking " + plural + " away: 0 seconds.";
//} else {
//alert('why? ' + document.head.innerHTML.split('<scr')[0]);
}
if ((location.search.split('ffa=')[1] ? decodeURIComponent(location.search.split('ffa=')[1]).split('&')[0] : '') != '') { slowants=eval('' + (location.search.split('ffa=')[1] ? decodeURIComponent(location.search.split('ffa=')[1]).split('&')[0] : '').replace('ffa','100').replace('hp','500').replace('hth','50').replace('ms','1000')); document.getElementById('smode').value='' + (location.search.split('ffa=')[1] ? decodeURIComponent(location.search.split('ffa=')[1]).split('&')[0] : '').replace('ffa','100').replace('hp','500').replace('hth','50').replace('ms','1000'); }
var inev=document.getElementById('smode').value;
if (document.getElementById('adjective').innerHTML == 'Fewer Faster ' || inev == '100') {
document.getElementById('adjective').innerHTML='Fewer Faster ';
ffa='?ffa=ffa' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (document.getElementById('adjective').innerHTML == 'Half Paced ' || inev == '500') {
document.getElementById('adjective').innerHTML='Half Paced ';
ffa='?ffa=hp' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (document.getElementById('adjective').innerHTML == 'Hard to Handle ' || inev == '50') {
document.getElementById('adjective').innerHTML='Hard to Handle ';
ffa='?ffa=hth' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (document.getElementById('adjective').innerHTML == 'Many Slow ' || inev == '1000') {
document.getElementById('adjective').innerHTML='Many Slow ';
ffa='?ffa=ms' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
}
document.getElementById('smode').value='';
document.getElementById('sanimal').title=document.getElementById('o' + plural).title;
document.getElementById('spanimal').title=document.getElementById('o' + plural).title;
}
function delayednewanimal() {
document.getElementById('sanimal').value=('' + oteote).replace('128028','');
document.getElementById('sanimal').innerHTML=document.getElementById('sanimal').innerHTML.replace(' value="' + oteote + '">', ' value="' + oteote + '" selected>');
newanimal('' + oteote);
//alert('' + oteote);
}
function newanimal(invis) {
var zra=1, newst='<style> </style>', choice='', choices=[];
if (('' + invis) != '') {
oteote=eval('' + invis);
if (document.getElementById('sanimal').innerHTML.indexOf(' selected') != -1) {
document.getElementById('sanimal').innerHTML=document.getElementById('sanimal').innerHTML.replace(' selected=', 'data-junk=').replace(' selected', '')
document.getElementById('sanimal').value=invis;
}
if (document.getElementById('ant0').innerHTML != '') {
document.getElementById('ant0').innerHTML='' + invis + ';';
}
while (document.getElementById('ant' + zra)) {
if (document.getElementById('ant' + zra).innerHTML != '') {
document.getElementById('ant' + zra).innerHTML='' + invis + ';';
}
zra++;
}
if (('' + invis) == '128018') { // monkey will eat bananas 127820
plural="monkeys";
document.getElementById('sanimal').title=document.getElementById('omonkeys').title;
document.getElementById('spanimal').title=document.getElementById('omonkeys').title;
zra=0;
choices=('1f34c' + choice).split(',');
while (document.getElementById('f' + zra)) {
if (eval('' + choices.length) > 1) {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } </style>");
} else {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\01f34c' } </style>");
}
//document.getElementById('f' + zra).innerHTML='🍌';
zra++;
}
document.getElementById('dnewst').innerHTML+=newst;
//document.getElementById('wall').style.backgroundImage=' linear-gradient(335deg, rgba(276,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 1px, transparent 23px),linear-gradient(235deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 23px, transparent 23px)';
// Thanks to https://codepen.io/josetxu/pen/poLoayv
document.getElementById('wall').style.background=' conic-gradient(from 60deg at 66.5% 100%, #dce9ef 0 30deg, #fff0 0 360deg) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), conic-gradient(from 270deg at 33.5% 100%, #7d9099 0 30deg, #fff0 0 360deg) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), radial-gradient(circle at 99.5% 53%, #142f3c 0 calc(3.12vmin * 1.65), #fff0 calc(3.12vmin * 1.65 + 1px) 100%) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), radial-gradient(circle at 0.5% 53%, #142f3c 0 calc(3.12vmin * 1.65), #fff0 calc(3.12vmin * 1.65 + 1px) 100%) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), radial-gradient(circle at 50% 100%, #142f3c 0 calc(3.12vmin * 1.65), #fff0 calc(3.12vmin * 1.65 + 1px) 100%) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), conic-gradient(from 120deg at 50% 50%, #2a4856 0 120deg, #fff0 0 360deg) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), conic-gradient(from 90deg at 82.85% 50.5%, #142f3c 0 90deg, #fff0 0 360deg) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), conic-gradient(from 180deg at 17.15% 50.5%, #142f3c 0 90deg, #fff0 0 360deg) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), conic-gradient(from 120deg at 50% 17.5%, #7d9099 0 60deg, #dce9ef 0 120deg, #fff0 0 360deg) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), linear-gradient(90deg, #fff0 0 33.5%, #142f3c 0 66.5%, #fff0 0 100%) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71), conic-gradient(from 0deg at 50% 50%, #dce9ef 0 60.5deg, #2a4856 0 299.5deg, #7d9099 0 360deg) 50%/ calc(3.12vmin * 10) calc(3.12vmin * 5.71)';
} else if (('' + invis) == '129408') { // crab will eat shrimp 129424
plural="crabs";
document.getElementById('sanimal').title=document.getElementById('ocrabs').title;
document.getElementById('spanimal').title=document.getElementById('ocrabs').title;
zra=0;
choices=('1f990' + choice).split(',');
while (document.getElementById('f' + zra)) {
if (eval('' + choices.length) > 1) {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } </style>");
} else {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\01f990' } </style>");
}
//document.getElementById('f' + zra).innerHTML='🍌';
zra++;
}
document.getElementById('dnewst').innerHTML+=newst;
//document.getElementById('wall').style.backgroundImage=' linear-gradient(335deg, rgba(276,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 1px, transparent 23px),linear-gradient(235deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 23px, transparent 23px)';
// Thanks to https://codepen.io/josetxu/pen/poLoayv
document.getElementById('wall').style.background='URL(//www.rjmprogramming.com.au/HTMLCSS/crab_wall_two.jpg)';
document.getElementById('wall').style.backgroundRepeat='no-repeat';
document.getElementById('wall').style.backgroundSize='cover';
} else if (('' + invis) == '128029') { // bee will eat honeypot 1f36f
plural="bees";
document.getElementById('sanimal').title=document.getElementById('obees').title;
document.getElementById('spanimal').title=document.getElementById('obees').title;
zra=0;
choices=('1f36f' + choice).split(',');
while (document.getElementById('f' + zra)) {
if (eval('' + choices.length) > 1) {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } </style>");
} else {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\01f36f' } </style>");
}
//document.getElementById('f' + zra).innerHTML='🍌';
zra++;
}
document.getElementById('dnewst').innerHTML+=newst;
//document.getElementById('wall').style.backgroundImage=' linear-gradient(335deg, rgba(276,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 1px, transparent 23px),linear-gradient(235deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 23px, transparent 23px)';
// Thanks to https://codepen.io/josetxu/pen/poLoayv
document.getElementById('wall').style.background='URL(//img.freepik.com/free-vector/honey-comb-pattern_225004-641.jpg?w=900&t=st=1688364826~exp=1688365426~hmac=b41d4c8905719fbe44c07a0cac87f4783dccf193f85f79c029a98f9e6c032359)';
document.getElementById('wall').style.backgroundRepeat='no-repeat';
document.getElementById('wall').style.backgroundSize='cover';
} else if (('' + invis) == '128030') { // ladybird will eat leaf 1F331,1f343
plural="ladybirds";
choice=',1f343';
choices=('1F331' + choice).split(',');
document.getElementById('sanimal').title=document.getElementById('oladybirds').title;
document.getElementById('spanimal').title=document.getElementById('oladybirds').title;
zra=0;
while (document.getElementById('f' + zra)) {
if (eval('' + choices.length) > 1) {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } </style>");
} else {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\01F331' } </style>");
}
//document.getElementById('f' + zra).innerHTML='🍌';
zra++;
}
document.getElementById('dnewst').innerHTML+=newst;
//document.getElementById('wall').style.backgroundImage=' linear-gradient(335deg, rgba(276,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 1px, transparent 23px),linear-gradient(235deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 23px, transparent 23px)';
// Thanks to https://codepen.io/josetxu/pen/poLoayv
document.getElementById('wall').style.background='URL(//jooinn.com/images/green-leaf-tree-15.jpg)';
document.getElementById('wall').style.backgroundRepeat='no-repeat';
document.getElementById('wall').style.backgroundSize='cover';
} else if (('' + invis) == '128040') { // koala will eat leaf 1f343
plural="koalas";
document.getElementById('sanimal').title=document.getElementById('oladybirds').title;
document.getElementById('spanimal').title=document.getElementById('oladybirds').title;
zra=0;
choices=('1f343' + choice).split(',');
while (document.getElementById('f' + zra)) {
if (eval('' + choices.length) > 1) {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } </style>");
} else {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\01f343' } </style>");
}
//document.getElementById('f' + zra).innerHTML='🍌';
zra++;
}
document.getElementById('dnewst').innerHTML+=newst;
//document.getElementById('wall').style.backgroundImage=' linear-gradient(335deg, rgba(276,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 1px, transparent 23px),linear-gradient(235deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 23px, transparent 23px)';
// Thanks to https://codepen.io/josetxu/pen/poLoayv
document.getElementById('wall').style.background='URL(//upload.wikimedia.org/wikipedia/commons/c/c7/Blue_Gum_Forest_Blue_Sky.jpg)';
document.getElementById('wall').style.backgroundRepeat='no-repeat';
document.getElementById('wall').style.backgroundSize='cover';
} else if (('' + invis) == '128060') { // panda will eat bamboo 1F38B
plural="pandas";
document.getElementById('sanimal').title=document.getElementById('opandas').title;
document.getElementById('spanimal').title=document.getElementById('opandas').title;
zra=0;
while (document.getElementById('f' + zra)) {
if (eval('' + choices.length) > 1) {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } </style>");
} else {
newst=newst.replace('</style>', ' .f' + zra + ":before { content: '\\01F38B' } </style>");
}
//document.getElementById('f' + zra).innerHTML='🍌';
zra++;
}
document.getElementById('dnewst').innerHTML+=newst;
//document.getElementById('wall').style.backgroundImage=' linear-gradient(335deg, rgba(276,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 1px, transparent 23px),linear-gradient(235deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 23px, transparent 23px)';
// Thanks to https://codepen.io/josetxu/pen/poLoayv
document.getElementById('wall').style.background='URL(//img.freepik.com/free-vector/bamboo_1308-3828.jpg?w=740&t=st=1688368840~exp=1688369440~hmac=431a49cf1c5597e535cf87ef9398dde5dfa74b183130c066fe6bb254245ba28e)';
document.getElementById('wall').style.backgroundRepeat='no-repeat';
document.getElementById('wall').style.backgroundSize='cover';
}
} else {
plural="ants";
newst="<style> .f1:before { content: '\\01f371' } .f2:before { content: '\\01f358' } .f3:before { content: '\\01f359' } .f4:before { content: '\\01f35a' } .f5:before { content: '\\01f35b' } .f6:before { content: '\\01f35c' } .f7:before { content: '\\01f35d' } .f8:before { content: '\\01f360' } .f9:before { content: '\\01f362' } .f10:before { content: '\\01f363' } .f11:before { content: '\\01f364' } .f12:before { content: '\\01f365' } .f13:before { content: '\\01f361' } .f14:before { content: '\\01F366' } .f15:before { content: '\\01F367' } .f16:before { content: '\\01F368' } .f17:before { content: '\\01F369' } .f18:before { content: '\\01F36A' } .f19:before { content: '\\01F382' } .f0:before { content: '\\01F370' } </style>";
oteote=eval('128028');
if (document.getElementById('ant0').innerHTML != '') {
document.getElementById('ant0').innerHTML='🐜';
}
while (document.getElementById('ant' + zra)) {
if (document.getElementById('ant' + zra).innerHTML != '') {
document.getElementById('ant' + zra).innerHTML='🐜';
}
zra++;
}
document.getElementById('dnewst').innerHTML+=newst;
document.getElementById('wall').style.background=''; //' linear-gradient(335deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 1px, transparent 23px),linear-gradient(335deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 23px, transparent 23px)';
document.getElementById('wall').style.backgroundImage=' linear-gradient(335deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 1px, transparent 23px),linear-gradient(335deg, rgba(176,0,0,0.1) 23px, transparent 23px),linear-gradient(155deg, rgba(208,0,0,0.1) 23px, transparent 23px)';
}
var inev=document.getElementById('smode').value;
if (document.getElementById('adjective').innerHTML == 'Fewer Faster ' || inev == '100') {
document.getElementById('adjective').innerHTML='Fewer Faster ';
ffa='?ffa=ffa' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (document.getElementById('adjective').innerHTML == 'Half Paced ' || inev == '500') {
document.getElementById('adjective').innerHTML='Half Paced ';
ffa='?ffa=hp' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (document.getElementById('adjective').innerHTML == 'Hard to Handle ' || inev == '50') {
document.getElementById('adjective').innerHTML='Hard to Handle ';
ffa='?ffa=hth' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (document.getElementById('adjective').innerHTML == 'Many Slow ' || inev == '1000' || inev == '') {
document.getElementById('adjective').innerHTML='Many Slow ';
ffa='?ffa=ms' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else {
document.getElementById('adjective').innerHTML='';
ffa='?plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
}
document.getElementById('sanimal').title=document.getElementById('o' + plural).title;
document.getElementById('spanimal').title=document.getElementById('o' + plural).title;
}
function affa(whatever) {
var inev=document.getElementById('smode').value;
if (document.getElementById('adjective').innerHTML == 'Fewer Faster ' || inev == '100') {
document.getElementById('adjective').innerHTML='Fewer Faster ';
ffa='?ffa=ffa' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (document.getElementById('adjective').innerHTML == 'Half Paced ' || inev == '500') {
document.getElementById('adjective').innerHTML='Half Paced ';
ffa='?ffa=hp' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (document.getElementById('adjective').innerHTML == 'Hard to Handle ' || inev == '50') {
document.getElementById('adjective').innerHTML='Hard to Handle ';
ffa='?ffa=hth' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else if (document.getElementById('adjective').innerHTML == 'Many Slow ' || inev == '1000' || inev == '') {
document.getElementById('adjective').innerHTML='Many Slow ';
ffa='?ffa=ms' + '&plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
} else {
document.getElementById('adjective').innerHTML='';
ffa='?plural=' + plural + '.' + oteote;
document.getElementById('angame').href=document.URL.split('#')[0].split('?')[0] + ffa;
}
return ffa;
}
</script>
</head>
<body style=overflow:hidden; onload=' lfd(); byih=document.body.innerHTML; doffa(); setInterval(isecm,1000); anotherant(); setTimeout(moveants,slowants); setTimeout(preanotherant,2000);'>
<h1 id=myh1 onclick='cthen();'><span id=adjective></span><span id=spanimal><select title='Thanks to https://werner-zenk.de/css/farbverlauf_mit_css2.php' onclick="event.stopPropagation();" id=sanimal onchange=newanimal(this.value);><option id=oants title='Thanks to https://werner-zenk.de/css/farbverlauf_mit_css2.php' value=''>🐜 Ants</option><option id=omonkeys title='Thanks to https://codepen.io/josetxu/pen/poLoayv' value=128018>🐒 Monkeys</option><option id=oladybirds title='Thanks to https://jooinn.com/images/green-leaf-tree-15.jpg' value=128030>🐞 Ladybirds</option><option id=obees title='Thanks to https://img.freepik.com/free-vector/honey-comb-pattern_225004-641.jpg?w=900&t=st=1688364826~exp=1688365426~hmac=b41d4c8905719fbe44c07a0cac87f4783dccf193f85f79c029a98f9e6c032359' value=128029>🐝 Bees</option><option id=okoalas title='Thanks to https://upload.wikimedia.org/wikipedia/commons/c/c7/Blue_Gum_Forest_Blue_Sky.jpg' value=128040>🐨 Koalas</option><option id=ocrabs title='Thanks to https://www.publicdomainpictures.net/pictures/120000/velka/sea-wall-ruins.jpg' value=129408>🦀 Crabs</option><option id=opandas title='Thanks to https://img.freepik.com/free-vector/bamboo_1308-3828.jpg?w=740&t=st=1688368840~exp=1688369440~hmac=431a49cf1c5597e535cf87ef9398dde5dfa74b183130c066fe6bb254245ba28e' value=128060>🐼 Pandas</option></select></span> Up a Wall Game</h1>
<h3>RJM Programming <select id=smode title="Modes of Play defaults to Many Slow Ants" style="width:34px;" onchange="oureval(this.value, this);"><option value=''>-</option><option value='1000'>Many Slow</option><option value='500'>Half Paced</option><option value='100'>Fewer Faster</option><option value='50'>Hard to Handle</option></select> February<a title='New game' target=_self id=angame href=./ants_up_the_wall.html style=cursor:pointer;text-decoration:none;color:purple;>,</a> 2018 <span data-style='width:40%;' id=mysnapshots><input style='width:40%;' type=number step=1 onblur=doshot(this.value); value='' title='Seconds between snapshots that are recallable [None]' placeholder='Seconds between snapshots that are recallable [None]' min='-1'></input></span></h3>
<h4 id="score">Score: 0. Don't mean to scare you but there are 0 ants left looking for 20 food items. Time survived with food & clicking ants away: 0 seconds.</h4>
<h4 id=status></h4>
<hr id=wall></hr>
<div class=atbottom id=ant0>🐜</div>
<div id=rest></div>
<div id=dnewst style=display:none;></div>
</body>
</html>