' : '';
< passeds=location.search.split('sentences=')[1] ? location.search.split('sentences=')[1].split('&')[0] : '';
< if (passeds != '') eval('sentences=[' + decodeURIComponent(passeds) + ']');
< thistitle=location.search.split('title=')[1] ? location.search.split('title=')[1].split('&')[0] : 'Future Choices';
< if (thistitle != 'Future Choices') thistitle=decodeURIComponent(thistitle);
193,196d100
< if (thistitle != 'Future Choices') document.getElementById('myh1').innerHTML=document.getElementById('myh1').innerHTML.replace('Future Choices', thistitle);
< if (strike != '') {
< document.getElementById('score').innerHTML=document.getElementById('score').innerHTML.replace('Correct One (as it appears)','Wrong One');
< }
204,206d107
< aswas.push(choices[0] + ";" + choices[1]);
< goodanswers.push(choices[eval(0 + eval(choices[2]))]);
< if (strike != '') {
209,212d109
< } else {
< answers.push(choices[eval(1 - eval(choices[2]))]);
< tbo.innerHTML+='| ' + postbits[0] + ' | ' + strike + choices[0] + strike.replace(' ' + strike + choices[1] + strike.replace(' | ' + bits[1] + ' |
';
< }
217c114
< if (strike == '') setTimeout(changes, bitcycle);
---
>
224,295d120
<
< function toggle() {
< if (document.URL.indexOf('strike=') != -1) {
< location.href=document.URL.replace('strike=','nowayjose=');
< } else if (document.URL.indexOf('STRIKE=') != -1) {
< location.href=document.URL.replace('STRIKE=','nowayjose=');
< } else if (document.URL.indexOf('?') == -1) {
< location.href=document.URL + '?strike=y';
< } else {
< location.href=document.URL + '&strike=y';
< }
< }
<
< function owndata() {
< var ours=prompt('Optionally specify your own sentences in format like below (where number at end of slash grouping is zero-start indicator of correct answer of two before it, and [] lead should be adhered to ... ' + "\n\n" + '"Look at the quote. It [will cost/is going to cost/1] $14000 to fix the roof.","We think it [will cost/is going to cost/0] around $200 for a new gate."','');
< var spare, postspare, lh='';
< if (ours != null) {
< if (ours != '') {
< if (document.URL.indexOf('sentences=') != -1) {
< spare=document.URL.split('sentences=');
< postspare=spare[1].split('&');
< lh=document.URL.replace('sentences=' + postspare[0], 'sentences=' + encodeURIComponent(ours));
< } else if (document.URL.indexOf('SENTENCES=') != -1) {
< spare=document.URL.split('SENTENCES=');
< postspare=spare[1].split('&');
< lh=document.URL.replace('SENTENCES=' + postspare[0], 'sentences=' + encodeURIComponent(ours));
< } else if (document.URL.indexOf('?') == -1) {
< lh=document.URL + '?sentences=' + encodeURIComponent(ours);
< } else {
< lh=document.URL + '&sentences=' + encodeURIComponent(ours);
< }
< owntitle(lh);
< }
< }
< }
<
< function owntitle(du) {
< var ours=prompt('Optionally specify your own title. Optionally suffix it by ~ to toggle mode of use among Horizontal Flip Click or Strike Reject (from what it is now).',thistitle);
< var spare, postspare;
< if (du == "") du = document.URL;
< if (ours != null) {
< if (ours.indexOf('~') != -1) {
< if (du.indexOf('strike=') != -1) {
< du=du.replace('strike=','nowayjose=');
< } else if (du.indexOf('STRIKE=') != -1) {
< du=du.replace('STRIKE=','nowayjose=');
< } else if (du.indexOf('?') == -1) {
< du=du + '?strike=y';
< } else {
< du=du + '&strike=y';
< }
< ours=ours.replace(/~/g, "");
< if (ours == '') location.href=du;
< }
< if (ours != '') {
< if (du.indexOf('title=') != -1) {
< spare=du.split('title=');
< postspare=spare[1].split('&');
< du=du.replace('title=' + postspare[0], 'title=' + encodeURIComponent(ours));
< } else if (document.URL.indexOf('TITLE=') != -1) {
< spare=du.split('TITLE=');
< postspare=spare[1].split('&');
< du=du.replace('TITLE=' + postspare[0], 'title=' + encodeURIComponent(ours));
< } else if (du.indexOf('?') == -1) {
< du=du + '?title=' + encodeURIComponent(ours);
< } else {
< du=du + '&title=' + encodeURIComponent(ours);
< }
< location.href=du;
< }
< }
< }
298,303c123,126
<
<
<
<
RJM Programming - November, 2015
< Please Click the Correct One (as it appears) - Score: 0 Goes: 0
<
---
>
>
Future Choices Thanks to "How English Works" by Michael Swan and Catherine Walter
>
RJM Programming - November, 2015
> Please Click the Wrong One - Score: 0 Goes: 0