27,36d26 < .custom-alert { < display: inline-block; < visibility: visible; < background-color: rgba(102,102,102,0.8); < color: #fff; < text-align: enter; < margin: 5% auto; < padding: 12px 28px; < } < 68d57 < var ffa=(location.search.split('ffa=')[1] ? decodeURIComponent(location.search.split('ffa=')[1]).split('&')[0] : ''); 82,85d70 < var wsprefix=''; < var wssuffix=''; < < var slowants=1000; 152,154c137 < if (document.getElementById('f' + j).title != '') { < alert(eval(('' + midfoody)) + ' >= ' + eval(('' + ants[i].y)) + ' && ' + eval(('' + midfoody)) + ' <= ' + eval(18 + eval(('' + ants[i].y)))); < } --- > if (document.getElementById('f' + j).title != '') alert(eval(('' + midfoody)) + ' >= ' + eval(('' + ants[i].y)) + ' && ' + eval(('' + midfoody)) + ' <= ' + eval(18 + eval(('' + ants[i].y)))); 183c166 < setTimeout(moveants,slowants); --- > setTimeout(moveants,1000); 234d216 < goes=-1; 236d217 < if (1 == 2) { 239,280d219 < } 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'; < wssuffix=''; < } else { < var gbcr=tifs[jtifs].getBoundingClientRect(); < wsprefix=''; < wssuffix=''; < } < } < } < } < if (top.document.getElementById('custom-alert-1')) { < top.document.getElementById('custom-alert-1').innerHTML="Congratulations on keeping some food for " + isecs + " seconds. Click Ants Up the Wall game " + wsprefix.trim() + "title" + wssuffix + " for another game."; < top.document.getElementById('custom-alert-1').style.display='inline'; < top.document.getElementById('custom-alert-1').style.visibility='visible'; < } else { < top.document.body.innerHTML+="
Congratulations on keeping some food for " + isecs + " seconds. Click Ants Up the Wall game " + wsprefix.trim() + "title" + wssuffix + " for another game.
"; < } < setTimeout(top.document.hideIt, 10000); < } else { < if (document.getElementById('custom-alert-1')) { < document.getElementById('custom-alert-1').innerHTML="Congratulations on keeping some food for " + isecs + " seconds. Click Ants Up the Wall game " + wsprefix + "title" + wssuffix.trim() + " for another game."; < document.getElementById('custom-alert-1').style.display='inline'; < document.getElementById('custom-alert-1').style.visibility='visible'; < } else { < document.body.innerHTML+="
Congratulations on keeping some food for " + isecs + " seconds. Click Ants Up the Wall game " + wsprefix.trim() + "title" + wssuffix + " for another game.
"; < } < setTimeout(hideIt, 10000); < } < // setTimeout(hideIt, 10000); < } < // location.href=document.URL.split('#')[0].split('?')[0]; 284,345d222 < < 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() { < goes=0; < location.href=document.URL.split('#')[0].split('?')[0] + ffa; < } < < function oureval(inev, osel) { < if (inev != '') { < if (inev == '100') { < document.getElementById('adjective').innerHTML='Fewer Faster '; < ffa='?ffa=ffa'; < } else if (inev == '500') { < document.getElementById('adjective').innerHTML='Half Paced '; < ffa='?ffa=hp'; < } else if (inev == '50') { < document.getElementById('adjective').innerHTML='Hard to Handle '; < ffa='?ffa=hth'; < } else if (inev == '1000') { < document.getElementById('adjective').innerHTML='Many Slow '; < ffa='?ffa=ms'; < } < 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'; < } < } < } < 348,350c225,227 < <

Ants Up a Wall Game

<

RJM Programming February, 2018

--- > >

Ants Up a Wall Game

>

RJM Programming - February, 2018

357c234 < --- > \ No newline at end of file