0a1
>
4c5
<
Canvas HTML Element Suffix Ology Board Game Tutorial ... RJM Programming ... March 2016 ... thanks to //stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element
---
> Canvas HTML Element Suffix Ology Board Game Tutorial ... RJM Programming ... March 2016 ... thanks to http://stackoverflow.com/questions/9880279/how-do-i-add-a-simple-onclick-event-handler-to-a-canvas-element
6c7,12
<
---
>
>
7a14,16
>
>
>
9c18
< // Thanks to //chemistry.about.com/od/mathsciencefundamentals/a/ologylist_3.htm
---
> // Thanks to http://chemistry.about.com/od/mathsciencefundamentals/a/ologylist_3.htm
14a24,31
> var yourone = " ";
> var yourtwo = " ";
> var yourthree = " ";
> var ourd = "";
> var nourd = -5000;
> var aclick = true;
>
>
268c285
< //sis.innerHTML = "Score is " + score.toString() + " from " + goes.toString() + " goes.";
---
> //sis.innerHTML = "Score is " + score.toString() + " from " + goes.toString() + " goes.";
274c291
< omyadot.href='//chemistry.about.com/od/mathsciencefundamentals/a/ologylist_3.htm';
---
> omyadot.href='http://chemistry.about.com/od/mathsciencefundamentals/a/ologylist_3.htm';
279,280c296,357
< var two="", three="", one=prompt("Enter first of your Suffix Ology parts (adjust accordingly)", "ology");
< if (one != "") {
---
> var two=" ", three=" ", one=" ";
> if (yourone == "" && ourd != "") {
> one=prompt("Enter first of your Suffix Ology parts (adjust accordingly)", ourd);
> //ourd='';
> //alert(12);
> //ourone=one;
> if (eval(nourd) > 0) {
> //alert(67);
> setTimeout(addsome,nourd);
> return;
> } else {
> //alert(56);
> yourone=one;
> //alert(yourone);
> //alert('One=@' + one + '@ and ourd=@' + ourd + '@ and yourone=@' + yourone + '@ and ourone=@' + ourone + '@');
> }
> } else if (yourone != " ") {
> one=yourone;
> } else {
> preinput=" ";
> within=false;
> if (ourd != "") {
> //alert(670);
> one=prompt("Enter first of your Suffix Ology parts (adjust accordingly)", ourd);
> } else if (aclick) {
> aclick=false;
> //alert(6700);
> one=prompt("Enter first of your Suffix Ology parts (adjust accordingly)", "ology");
> if (eval(nourd) < 0) {
> yourone=one;
> }
> } else {
> return;
> }
> //ourd='';
> //alert('*' + ourone + ')');
> ourone=one;
> if (eval(nourd) > 0) return;
> }
> if (one != " ") {
> //alert(nourd + ' one=@' + one + '@ and ourd=@' + ourd + '@ and yourone=@' + yourone + '@ and ourone=@' + ourone + '@');
> //alert(97);
> if (yourtwo == "" && ourd != "") {
> two=prompt("Enter second of your Suffix Ology parts (adjust accordingly) that started with " + one, ourd);
> //ourd='';
> //alert(120);
> //ourtwo=two;
> if (eval(nourd) > 0) {
> setTimeout(addsome,nourd);
> return;
> } else {
> yourtwo=two;
> }
> } else if (yourtwo != " ") {
> two=yourtwo;
> //alert('two=' + two + ' ourd=' + ourd);
> } else {
> preinput=" ";
> within=false;
> if (ourd != "") {
> two=prompt("Enter second of your Suffix Ology parts (adjust accordingly) that started with " + one, ourd);
> } else {
282c359,388
< if (two != "") {
---
> if (eval(nourd) < 0) {
> yourtwo=two;
> }
> }
> //ourd='';
> ourtwo=two;
> //alert('Two=' + two + ' ourd=' + ourd);
> if (eval(nourd) > 0) return;
> }
> if (two != " ") {
> //alert('two=@' + two + '@ and ourd=@' + ourd + '@ and yourtwo=@' + yourtwo + '@ and ourtwo=@' + ourtwo + '@');
> if (yourthree == "" && ourd != "") {
> three=prompt("Enter third of your Suffix Ology parts (adjust accordingly) that started with " + one + " " + two, ourd);
> //ourd='';
> //alert(1200);
> //ourthree=three;
> if (eval(nourd) > 0) {
> setTimeout(addsome,nourd);
> return;
> } else {
> yourthree=three;
> }
> } else if (yourthree != " ") {
> three=yourthree;
> } else {
> preinput=" ";
> within=false;
> if (ourd != "") {
> three=prompt("Enter third of your Suffix Ology parts (adjust accordingly) that started with " + one + " " + two, ourd);
> } else {
284,287c390,404
< if (three != "") {
< sentenceparts[sentenceparts.length] = one;
< sentenceparts[sentenceparts.length] = two;
< sentenceparts[sentenceparts.length] = three;
---
> if (eval(nourd) < 0) {
> yourthree=three;
> }
> }
> //ourd='';
> ourthree=three;
> if (eval(nourd) > 0) return;
> }
> if (three != " ") {
> //alert('*' + ourthree + '*');
> //alert(ourtwo);
> //alert(ourone);
> sentenceparts[sentenceparts.length] = yourone;
> sentenceparts[sentenceparts.length] = yourtwo;
> sentenceparts[sentenceparts.length] = yourthree;
290c407
< document.getElementById('altview').innerHTML="" + was + "";
---
> document.getElementById('altview').innerHTML="" + was + "";
295a413,427
> ourone=" ";
> ourtwo=" ";
> ourthree=" ";
> if (ourd == '') {
> yourone=" ";
> yourtwo=" ";
> yourthree=" ";
> } else {
> ourd='';
> //yourone=" ";
> //yourtwo=" ";
> //yourthree=" ";
> //alert(12000);
> return;
> }
320c452
< document.getElementById('myadot').href='//www.thefreedictionary.com/' + ob.alt.replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+');
---
> document.getElementById('myadot').href='http://www.thefreedictionary.com/' + ob.alt.replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+');
327,342c459
< function onloading() {
< oklist = ":";
< pseudo_sentence = "";
< real_sentence = "";
< twothings = ["", ""];
< cderived_sentences = "";
< derived_sentences = [];
< prefix = [];
< midbit= [""];
< midlist = ":";
< suffix = [];
< cprefix = "";
< cmidbit = "";
< csuffix = "";
< bword="";
< unknownselect = "";
---
> function buttxxonbit() {
388a506,530
> }
>
> function onloading() {
> //document.getElementById('myeg').style.display='block';
> //document.getElementById('abutton').click();
> var oms=document.getElementById('modesel'), omsval='';
> if (oms) omsval=document.getElementById('modesel').value;
> if (omsval == '') {
> oklist = ":";
> pseudo_sentence = "";
> real_sentence = "";
> twothings = ["", ""];
> cderived_sentences = "";
> derived_sentences = [];
> prefix = [];
> midbit= [""];
> midlist = ":";
> suffix = [];
> cprefix = "";
> cmidbit = "";
> csuffix = "";
> bword="";
> unknownselect = "";
>
> //buttonbit();
503a646
> }
534c677
< document.getElementById('myadot').href='//www.thefreedictionary.com/' + real_sentence.replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+');
---
> document.getElementById('myadot').href='http://www.thefreedictionary.com/' + real_sentence.replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+');
540c683
< document.getElementById('myadot').href='//www.thefreedictionary.com/' + real_sentence.replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+');
---
> document.getElementById('myadot').href='http://www.thefreedictionary.com/' + real_sentence.replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+');
547c690
< document.getElementById('myadot').href='//www.thefreedictionary.com/' + real_sentence.replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+');
---
> document.getElementById('myadot').href='http://www.thefreedictionary.com/' + real_sentence.replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+').replace(' ','+');
658c801
< location.href='./ology_chalkboard.html';
---
> location.href=document.URL; //'./ology_chalkboard.html';
666c809,833
<
---
> function unfixpar30() {
> //var qis=location.search.split('q=')[1] ? location.search.split('q=')[1].split('&')[0] : '';
> //var dis=location.search.split('d=')[1] ? location.search.split('d=')[1].split('&')[0] : '';
> //if (qis != '' || dis != '') {
> //var ansis=prompt("huh " + decodeURIComponent(qis), decodeURIComponent(dis));
> //if (ansis == null) ansis = '';
> if (top.document.getElementById('promptinput')) {
> //alert(ansis);
> preinput="";
> top.document.getElementById('promptinput').value="";
> //alert(ansis);
> if (yourone == " " || (yourone == "" && ourd != "")) {
> yourone="";
> } else if (yourtwo == " " || (yourtwo == "" && ourd != "")) {
> yourtwo="";
> //alert('yourtwo=' + yourtwo + ' ourd=' + ourd);
> } else if (yourthree == " " || (yourthree == "" && ourd != "")) {
> yourthree="";
> }
> ourd=top.document.getElementById('myin').value;
> nourd=30000;
> setTimeout(addsome,100);
> }
> //}
> }
668,672c835,884
<
<
<
<
<
---
> function unfixpar5() {
> //var qis=location.search.split('q=')[1] ? location.search.split('q=')[1].split('&')[0] : '';
> //var dis=location.search.split('d=')[1] ? location.search.split('d=')[1].split('&')[0] : '';
> //if (qis != '' || dis != '') {
> //var ansis=prompt("huh " + decodeURIComponent(qis), decodeURIComponent(dis));
> //if (ansis == null) ansis = '';
> if (top.document.getElementById('promptinput')) {
> //alert(ansis);
> preinput="";
> top.document.getElementById('promptinput').value="";
> //alert(ansis);
> if (yourone == " " || (yourone == "" && ourd != "")) {
> yourone="";
> } else if (yourtwo == " " || (yourtwo == "" && ourd != "")) {
> yourtwo="";
> //alert('yourtwo=' + yourtwo + ' ourd=' + ourd);
> } else if (yourthree == " " || (yourthree == "" && ourd != "")) {
> yourthree="";
> }
> ourd=top.document.getElementById('myin').value;
> nourd=5000;
> setTimeout(addsome,100);
> }
> //}
> }
>
> function unfixpar() {
> //var qis=location.search.split('q=')[1] ? location.search.split('q=')[1].split('&')[0] : '';
> //var dis=location.search.split('d=')[1] ? location.search.split('d=')[1].split('&')[0] : '';
> //if (qis != '' || dis != '') {
> //var ansis=prompt("huh " + decodeURIComponent(qis), decodeURIComponent(dis));
> //if (ansis == null) ansis = '';
> if (top.document.getElementById('promptinput')) {
> //alert(ansis);
> preinput="";
> top.document.getElementById('promptinput').value="";
> //alert(ansis);
> if (yourone == " " || (yourone == "" && ourd != "")) {
> yourone="";
> } else if (yourtwo == " " || (yourtwo == "" && ourd != "")) {
> yourtwo="";
> //alert('yourTwo=' + yourtwo + ' ourd=' + ourd);
> } else if (yourthree == " " || (yourthree == "" && ourd != "")) {
> yourthree="";
> }
> ourd='';
> setTimeout(addsome,100);
> }
> //}
> }
673a886,927
> function fixpar() {
> //var qis=location.search.split('q=')[1] ? location.search.split('q=')[1].split('&')[0] : '';
> //var dis=location.search.split('d=')[1] ? location.search.split('d=')[1].split('&')[0] : '';
> //if (qis != '' || dis != '') {
> //var ansis=prompt("huh " + decodeURIComponent(qis), decodeURIComponent(dis));
> //if (ansis == null) ansis = '';
> if (top.document.getElementById('promptinput')) {
> //alert(ansis);
> preinput=top.document.getElementById('myin').value;
> top.document.getElementById('promptinput').value=top.document.getElementById('myin').value;
> //alert(ansis);
> if (yourone == " " || (yourone == "" && ourd != "")) {
> yourone=top.document.getElementById('myin').value;
> } else if (yourtwo == " " || (yourtwo == "" && ourd != "")) {
> yourtwo=top.document.getElementById('myin').value;
> //alert('YourTwo=' + yourtwo + ' ourd=' + ourd);
> } else if (yourthree == " " || (yourthree == "" && ourd != "")) {
> yourthree=top.document.getElementById('myin').value;
> }
> ourd='';
> setTimeout(addsome,100);
> }
> //}
> }
>
> function fixparent(ansis) {
> //var qis=location.search.split('q=')[1] ? location.search.split('q=')[1].split('&')[0] : '';
> //var dis=location.search.split('d=')[1] ? location.search.split('d=')[1].split('&')[0] : '';
> //if (qis != '' || dis != '') {
> //var ansis=prompt("huh " + decodeURIComponent(qis), decodeURIComponent(dis));
> //if (ansis == null) ansis = '';
> if (top.document.getElementById('promptinput')) {
> //alert(ansis);
> ourd='';
> preinput=ansis;
> top.document.getElementById('promptinput').value=ansis;
> //setTimeout(addsome,100);
> }
> //}
> }
>
>
675,678c929,934
<
< Suffix Ology DotDotDot Game
< Score is 0 from 0 goes.
<
---
>
>
>
> Suffix Ology DotDotDot Game
> Score is 0 from 0 goes.
>
682c938
<
---
>
739a996,1043
> function fixthings() {
> }
>
> $(document).ready(function() {
> $("#myeg").dialog({
> autoOpen: false,
> modal: true,
> position: [0,0],
> draggable: true,
> show: "blind",
> hide: "explode",
> height: "auto",
> width: "auto",
> resizable: true,
> overlay: {
> opacity: 0.9,
> background: "black"
> },
> buttons: {
> "Will Append More in 30": function(event, ui) {
> unfixpar30();
> $(this).dialog('close');
> },
> "Will Append More in 5": function(event, ui) {
> unfixpar5();
> $(this).dialog('close');
> },
> "Cancel": function(event, ui) {
> unfixpar();
> $(this).dialog('close');
> },
> "OK": function(event, ui) {
> fixpar();
> $(this).dialog('close');
> }
> }
> });
>
> $('#abutton').click(function(event) {
> fixthings();
> event.preventDefault();
> $('#myeg').dialog('open');
> return false;
> });
>
> });
>
>
740a1045,1046
>
> setTimeout(onloading, 1000);