54,85d53
<
< .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;
< }
<
166,180d133
< } 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';
183,184d135
<
<
229c180
< 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 + '>';
---
> document.getElementById('rest').innerHTML+='<' + this.ourtype + ' class=animal id=' + this.ourid + ' ontouchstart="exterminate(this);" onmousedown="exterminate(this);" style="z-index:9;position:absolute;font-size:18px;width:22px;height:22px;top:' + Math.round(this.y) + 'px;left:' + Math.round(this.x) + 'px;-o-transform: rotate(' + this.rotation + 'deg); -moz-transform: rotate(' + this.rotation + 'deg); -ms-transform: rotate(' + this.rotation + 'deg); -webkit-transform: rotate(' + this.rotation + 'deg); transform: rotate(' + this.rotation + 'deg);">' + this.ih + '' + this.ourtype + '>';
234,249d184
< 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 '';
< }
<
267,268c202,203
< 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 != '') document.getElementById('status').innerHTML+=(eval(('' + midfoodx)) + ' .ge. ' + eval(('' + ants[i].x)) + ' && ' + eval(('' + midfoodx)) + ' .le. ' + eval(18 + eval(('' + ants[i].x))));
> if (eval(('' + midfoodx)) >= eval(('' + ants[i].x)) && eval(('' + midfoodx)) <= eval(18 + eval(('' + ants[i].x)))) {
270c205
< 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(eval(('' + midfoody)) + ' >= ' + eval(('' + ants[i].y)) + ' && ' + eval(('' + midfoody)) + ' <= ' + eval(18 + eval(('' + ants[i].y))));
273c208
< 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)))) {
---
> if (eval(('' + midfoody)) >= eval(('' + ants[i].y)) && eval(('' + midfoody)) <= eval(18 + eval(('' + ants[i].y)))) {
329c264
< curwidth=eval((plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? -30 : (plural == 'crabs' ? -24 : -18)) + eval('' + rectw.width));
---
> curwidth=eval(-18 + eval('' + rectw.width));
332c267
< document.getElementById('rest').innerHTML+='
';
---
> document.getElementById('rest').innerHTML+='
';
334c269
< document.body.setAttribute('data-walltop', '' + eval((plural.replace('pandas','monkeys').replace('koalas','monkeys') == 'monkeys' ? 30 : (plural == 'crabs' ? 24 : 18)) + eval('' + wally)));
---
> document.body.setAttribute('data-walltop', '' + eval(18 + eval('' + wally)));
358c293
< alert('Congratulations on being with some food for ' + isecs + ' seconds.');
---
> alert('Congratulations on with some food for ' + isecs + ' seconds.');
382c317
< 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').innerHTML="Congratulations on with some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix.trim() + "title" + wssuffix + ", or click comma above, for another game.";
386c321
< top.document.body.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.body.innerHTML+="Congratulations on with some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix.trim() + "title" + wssuffix + ", or click comma above, for another game.
";
401c336
< 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').innerHTML="Congratulations on with some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix + "title" + wssuffix.trim() + ", or click comma above, for another game.";
405c340
< document.body.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.
";
---
> document.body.innerHTML+="Congratulations on with some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix.trim() + "title" + wssuffix + ", or click comma above, for another game.
";
600c535
< ffa='?plural=' + plural + '.' + oteote;
---
> ffa='?plural=' + plural + '.' + oteote;;
602c537
< ffa='?ffa=' + ffa + '&plural=' + plural + '.' + oteote;
---
> ffa='?ffa=' + ffa + '&plural=' + plural + '.' + oteote;;
661,662c596
< document.getElementById('sanimal').title=document.getElementById('o' + plural).title;
< document.getElementById('spanimal').title=document.getElementById('o' + plural).title;
---
> document.getElementById('smode').title=document.getElementById('o' + plural).title;
666c600
< document.getElementById('sanimal').value=('' + oteote).replace('128028','');
---
> document.getElementById('sanimal').value='' + oteote;
673c607
< var zra=1, newst='', choice='', choices=[];
---
> var zra=1, newst='';
676,679d609
< 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;
< }
692,693d621
< document.getElementById('sanimal').title=document.getElementById('omonkeys').title;
< document.getElementById('spanimal').title=document.getElementById('omonkeys').title;
695d622
< choices=('1f34c' + choice).split(',');
697,699d623
< if (eval('' + choices.length) > 1) {
< newst=newst.replace('', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } ");
< } else {
701d624
< }
710,816d632
< } 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('', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } ");
< } else {
< newst=newst.replace('', ' .f' + zra + ":before { content: '\\01f990' } ");
< }
< //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('', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } ");
< } else {
< newst=newst.replace('', ' .f' + zra + ":before { content: '\\01f36f' } ");
< }
< //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('', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } ");
< } else {
< newst=newst.replace('', ' .f' + zra + ":before { content: '\\01F331' } ");
< }
< //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('', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } ");
< } else {
< newst=newst.replace('', ' .f' + zra + ":before { content: '\\01f343' } ");
< }
< //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('', ' .f' + zra + ":before { content: '\\0" + choices[Math.floor(Math.random() * eval('' + choices.length))] + "' } ");
< } else {
< newst=newst.replace('', ' .f' + zra + ":before { content: '\\01F38B' } ");
< }
< //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';
858,859c674
< document.getElementById('sanimal').title=document.getElementById('o' + plural).title;
< document.getElementById('spanimal').title=document.getElementById('o' + plural).title;
---
> document.getElementById('smode').title=document.getElementById('o' + plural).title;
890,891c705,706
<
< 🐜 Ants 🐒 Monkeys 🐞 Ladybirds 🐝 Bees 🐨 Koalas 🦀 Crabs 🐼 Pandas Up a Wall Game
---
>
> 🐜 Ants 🐒 Monkeys Up a Wall Game