7c7
< hr { /* thanks to http://www.w3schools.com/css/css3_gradients.asp */
---
> hr { /* thanks to http://www.w3schools.com/css/css3_gradients.asp */
15c15
< img.enemy { /* thanks to https://css-tricks.com/examples/GradientBorder/ */
---
> img.enemy { /* thanks to https://css-tricks.com/examples/GradientBorder/ */
24c24
< }
---
> }
29,108d28
< var firstnot=true;
< var iuprefix=location.search.split('imagepath=')[1] ? decodeURIComponent(location.search.split('imagepath=')[1].split('&')[0]) : '';
<
< function irrelevant() {
< document.getElementById('myh2').style.display='none';
< }
<
< function notthis(tthat, wthat) {
< var that=tthat.replace(' ','_').replace(' ','_').replace(' ','_').replace(' ','_').replace(' ','_').replace('.','_');
< if (wthat != '') {
< that=wthat.replace(' ','_').replace(' ','_').replace(' ','_').replace(' ','_').replace(' ','_').replace('.','_');
< }
< var thatis=tthat;
< var xthatis=tthat;
< //if (tthat.indexOf('jpg') != -1) alert(that);
< if (document.URL.indexOf('not' + that + '=') != -1 || document.URL.indexOf('not' + that.toLowerCase() + '=') != -1 || document.URL.indexOf('not' + that.toUpperCase() + '=') != -1 || document.URL.indexOf('not' + that.substring(0,1).toUpperCase() + that.substring(1).toLowerCase() + '=') != -1) {
< //if (tthat.indexOf('jpg') != -1) alert("(location.search.split('not" + that + "=')[1] ? decodeURIComponent(location.search.split('not" + that + "=')[1].split('&')[0]) : '" + tthat + "')");
< thatis=eval("(location.search.split('not" + that + "=')[1] ? decodeURIComponent(location.search.split('not" + that + "=')[1].split('&')[0]).replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ') : '" + tthat + "')");
< //if (firstnot) alert(thatis + ' : ' + tthat);
< if (that.toLowerCase() == that) {
< xthatis=eval("(location.search.split('not" + that.substring(0,1).toUpperCase() + that.substring(1).toLowerCase() + "=')[1] ? decodeURIComponent(location.search.split('not" + that.substring(0,1).toUpperCase() + that.substring(1).toLowerCase() + "=')[1].split('&')[0]).replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ') : '" + tthat.substring(0,1).toUpperCase() + tthat.substring(1).toLowerCase() + "')");
< //if (firstnot) alert(thatis + ' = ' + tthat);
< } else if (that.toUpperCase() == that) {
< xthatis=eval("(location.search.split('not" + that.substring(0,1).toUpperCase() + that.substring(1).toLowerCase() + "=')[1] ? decodeURIComponent(location.search.split('not" + that.substring(0,1).toUpperCase() + that.substring(1).toLowerCase() + "=')[1].split('&')[0]).replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ') : '" + tthat.substring(0,1).toUpperCase() + tthat.substring(1).toLowerCase() + "')");
< //if (firstnot) alert(thatis + ' _ ' + tthat);
< } else if (tthat.indexOf(' ') == -1) {
< xthatis=eval("(location.search.split('not" + that.toLowerCase() + "=')[1] ? decodeURIComponent(location.search.split('not" + that.toLowerCase() + "=')[1].split('&')[0]).replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ') : '" + tthat + "')");
< if (xthatis == tthat) xthatis=eval("(location.search.split('not" + that.toUpperCase() + "=')[1] ? decodeURIComponent(location.search.split('not" + that.toUpperCase() + "=')[1].split('&')[0]).replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ').replace('+',' ') : '" + tthat + "')");
< //if (firstnot) alert(thatis + ' == ' + tthat);
< }
< } //else {
< //alert('tthat=' + tthat + ' and wthat=' + wthat + ' and thatis=' + thatis);
< //}
< // if (firstnot) alert(thatis + ' ' + tthat);
< if (firstnot && (thatis != tthat || xthatis != tthat)) setTimeout(irrelevant, 2000);
< firstnot=false;
< return thatis;
< }
<
< var anothergame='Another game with number of ' + notthis('brick','') + 's in wall, below?';
< var thingswedo=" createStars(-1); startBorderizing(); createBricks(-1); createSuperbugs(-1); setTimeout(counter,1000); ";
< var soundfile1=notthis('http://www.rjmprogramming.com.au/Games/Battleshipsandcruisers/sounds/Wind-SoundBible.com-950807958.wav','soundfile1');
< var soundfile2=notthis('http://www.rjmprogramming.com.au/Games/Battleshipsandcruisers/sounds/Thunder-Mike_Koenig-315681025.wav','soundfile2');
< var formis=document.URL.indexOf('showform=');
<
< var formstr="
";
<
< formstr=formstr.replace('', 'Game Title:
');
< formstr=formstr.replace('', 'Game ' + notthis('Star','') + ' Title:
');
<
< formstr=formstr.replace('', notthis('Star','') + ' (left hand firing object):
');
< formstr=formstr.replace('', notthis('Brick','') + ' (middle Wall component enemy friend object) :
');
< formstr=formstr.replace('', notthis('Superbug','') + ' (right enemy object):
');
<
< formstr=formstr.replace('', 'Image Path:
');
<
< formstr=formstr.replace('', notthis('Star','') + ' Image File 1 of 7:
');
< formstr=formstr.replace('', notthis('Star','') + ' Image File 2 of 7:
');
< formstr=formstr.replace('', notthis('Star','') + ' Image File 3 of 7:
');
< formstr=formstr.replace('', notthis('Star','') + ' Image File 4 of 7:
');
< formstr=formstr.replace('', notthis('Star','') + ' Image File 5 of 7:
');
< formstr=formstr.replace('', notthis('Star','') + ' Image File 6 of 7:
');
< formstr=formstr.replace('', notthis('Star','') + ' Image File 7 of 7:
');
<
<
< formstr=formstr.replace('', notthis('Brick','') + ' Image File:
');
< formstr=formstr.replace('', notthis('Superbug','') + ' Image File:
');
< formstr=formstr.replace('', notthis('Brick','') + ' Sound File:
');
< formstr=formstr.replace('', notthis('Superbug','') + ' Sound File:
Show this Form?
');
<
< var bodyih="" + notthis('Star Proteins Versus Superbugs Game','') + "
"
< + "RJM Programming - September, 2016
"
< + ""
< + "As " + notthis('Star Proteins','') + " Go Yellow Click to Break Down Wall and " + notthis('Superbug','') + " Protection
"
< + "";
<
< if (formis != -1) bodyih=bodyih + formstr;
<
257d176
<
268c187
< var starlist=[iuprefix + notthis('onestar.jpg',''),iuprefix + notthis('twostar.jpg',''),iuprefix + notthis('threestar.jpg',''),iuprefix + notthis('fourstar.jpg',''),iuprefix + notthis('fivestar.jpg',''),iuprefix + notthis('sixstar.jpg',''),iuprefix + notthis('sevenstar.jpg','')];
---
> var starlist=["onestar.jpg","twostar.jpg","threestar.jpg","fourstar.jpg","fivestar.jpg","sixstar.jpg","sevenstar.jpg"];
308c227
< bih+="
";
---
> bih+="
";
333c252
< sih+="
" + suffix;
---
> sih+="
" + suffix;
368c287
< var snd=eval("new Audio('" + notthis('http://www.rjmprogramming.com.au/Games/Battleshipsandcruisers/sounds/Wind-SoundBible.com-950807958.wav','soundfile1') + "')");
---
> var snd=new Audio('http://www.rjmprogramming.com.au/Games/Battleshipsandcruisers/sounds/Wind-SoundBible.com-950807958.wav');
380c299
< var snd=eval("new Audio('" + notthis('http://www.rjmprogramming.com.au/Games/Battleshipsandcruisers/sounds/Thunder-Mike_Koenig-315681025.wav','soundfile2') + "')");
---
> var snd=new Audio('http://www.rjmprogramming.com.au/Games/Battleshipsandcruisers/sounds/Thunder-Mike_Koenig-315681025.wav');
488,493d406
<
< function wbody() {
< document.write(bodyih);
< eval(thingswedo);
< }
<
497c410,417
<
---
>
> Star Proteins Versus Superbugs Game
> RJM Programming - September, 2016
>
> As Star Proteins Go Yellow Click to Break Down Wall and Superbug Protection
>