33,34c33,34 < margin: 2% auto; < padding: 12px 4px; --- > margin: 5% auto; > padding: 12px 28px; 50,53d49 < .animal { < text-shadow: 0.3px 0.3px 0.4px #2dff95; < } < 76,79d71 < #score { < margin-top: -8px; < } < 91,94d82 < #score { < margin-top: -8px; < } < 124,134c112 < var ngblurb='game '; < < 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'; < } --- > var ngblurb='game '; 144c122 < this.ih=o.ih || '&#' + oteote + ';'; --- > this.ih=o.ih || '🐜'; 180c158 < 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 + ''; --- > document.getElementById('rest').innerHTML+='<' + this.ourtype + ' 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 + ''; 264c242 < curwidth=eval(-18 + eval('' + rectw.width)); --- > curwidth=eval(-9 + eval('' + rectw.width)); 282c260 < 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)})); --- > ants.push(new Ant({ourtype:"div", ourclass:"atbottom", ourid:"ant" + curant, ih:"🐜", x:Math.floor(Math.random() * startx), y:starty, rotation:eval(Math.floor(Math.random() * 40) + 70)})); 288c266 < 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."; --- > document.getElementById('score').innerHTML="Score: " + score + ". Don't mean to scare you but there are " + eval(numants - minus) + " ants left looking for " + goes + " food items. Time survived keeping food and clicking ants away: " + isecs + " seconds."; 293c271 < alert('Congratulations on with some food for ' + isecs + ' seconds.'); --- > alert('Congratulations on keeping some food for ' + isecs + ' seconds.'); 317,318c295,296 < 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."; < top.document.getElementById('custom-alert-1').style.display='inline-block'; // 'inline'; --- > top.document.getElementById('custom-alert-1').innerHTML="Congratulations on keeping 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'; 321,330c299 < 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.
"; < 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'; --- > top.document.body.innerHTML+="
Congratulations on keeping some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix.trim() + "title" + wssuffix + ", or click comma above, for another game.
"; 336,337c305,306 < 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."; < document.getElementById('custom-alert-1').style.display='inline-block'; // 'inline'; --- > document.getElementById('custom-alert-1').innerHTML="Congratulations on keeping 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'; 340,349c309 < 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.
"; < 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'; --- > document.body.innerHTML+="
Congratulations on keeping some food for " + isecs + " seconds. Click Ants Up the Wall " + ngblurb + wsprefix.trim() + "title" + wssuffix + ", or click comma above, for another game.
"; 376c336 < if (ngblurb == 'game ') { --- > if (ngblurb == 'game ') { 387c347 < 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."; --- > document.getElementById('score').innerHTML="Score: 0. Don't mean to scare you but there are 0 ants left looking for 20 food items. Time survived keeping food and clicking ants away: 0 seconds."; 426c386 < ffa='?ffa=ffa' + '&plural=' + plural + '.' + oteote; --- > ffa='?ffa=ffa'; 430c390 < ffa='?ffa=hp' + '&plural=' + plural + '.' + oteote; --- > ffa='?ffa=hp'; 434c394 < ffa='?ffa=hth' + '&plural=' + plural + '.' + oteote; --- > ffa='?ffa=hth'; 437d396 < inev='1000'; 439c398 < ffa='?ffa=ms' + '&plural=' + plural + '.' + oteote; --- > ffa='?ffa=ms'; 495c454 < document.getElementById('oreadyfor').innerHTML=document.getElementById('oreadyfor').getAttribute('data-prefix') + 'last was at ' + inlabis + ') of ' + plural + ' at ...'; --- > document.getElementById('oreadyfor').innerHTML=document.getElementById('oreadyfor').getAttribute('data-prefix') + 'last was at ' + inlabis + ') of ants at ...'; 499,502c458,460 < ngblurb='game (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); }; < } --- > ngblurb='game (or via header link click above to retain snapshots) '; > > document.getElementById('custom-alert-1').onclick=function() { notnew=false; location.href=document.URL.split('#')[0].split('?')[0] + ffa; }; 508c466 < document.getElementById('mysnapshots').innerHTML=''; --- > document.getElementById('mysnapshots').innerHTML=''; 530,543d487 < < 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; < } < 545d488 < 571c514 < 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."; --- > document.getElementById('score').innerHTML="Score: 0. Don't mean to scare you but there are 0 ants left looking for 20 food items. Time survived keeping food and clicking ants away: 0 seconds."; 575,700d517 < < 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('smode').title=document.getElementById('o' + plural).title; < } < < function delayednewanimal() { < document.getElementById('sanimal').value='' + oteote; < 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=''; < if (('' + invis) != '') { < oteote=eval('' + 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"; < zra=0; < while (document.getElementById('f' + zra)) { < newst=newst.replace('', ' .f' + zra + ":before { content: '\\01f34c' } "); < //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 { < plural="ants"; < newst=""; < 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('smode').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; 706,708c523,525 <

Up a Wall Game

<

RJM Programming February, 2018  

<

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.

--- >

Ants Up a Wall Game

>

RJM Programming February, 2018  

>

Score: 0. Don't mean to scare you but there are 0 ants left looking for 20 food items. Time survived keeping food and clicking ants away: 0 seconds.

713d529 <