19d18
< var nonen='it';
26,40d24
< function fixall(iti) {
< was='';
< otv='';
< document.getElementById('conjugationcell').innerHTML='';
< document.getElementById('sl').value=iti;
< document.getElementById('sltwo').value=iti;
< document.getElementById('slto').value=iti;
< document.getElementById('slito').value=iti;
< document.getElementById('slverb').value=iti;
< document.getElementById('slconj').value=iti;
< document.getElementById('mybodtr').style.backgroundImage="url('" + iti + ".jpg')";
< document.getElementById('englishtoitalian').style.backgroundImage="url('" + iti + ".jpg')";
< return iti;
< }
<
46c30
< document.getElementById('conjugationcell').innerHTML = but(wholeshebang.substring(wholeshebang.indexOf('
document.getElementById('conjugationcell').innerHTML = but(wholeshebang.substring(wholeshebang.indexOf('model for ')));
49c33
< function andthenit(ourv) {
---
> function andthen(ourv) {
195,230d178
<
< function andthenes(ourv) {
< var wasprefix='', isprefix='';
< if (ourv != '') {
< if ((ourv + '~').indexOf('ar~') != -1) {
< getirregularverb("http://www.wordreference.com/conj/EsVerbs.aspx?v=" + encodeURIComponent(ourv));
< setTimeout(waitabit, 2000);
< } else if ((ourv + '~').indexOf('er~') != -1) {
< getirregularverb("http://www.wordreference.com/conj/EsVerbs.aspx?v=" + encodeURIComponent(ourv));
< setTimeout(waitabit, 2000);
< } else if ((ourv + '~').indexOf('ir~') != -1) {
< getirregularverb("http://www.wordreference.com/conj/EsVerbs.aspx?v=" + encodeURIComponent(ourv));
< setTimeout(waitabit, 2000);
< }
< }
< }
<
<
< function andthenfr(ourv) {
< var wasprefix='', isprefix='';
< if (ourv != '') {
< if ((ourv + '~').indexOf('er~') != -1) {
< getirregularverb("http://www.wordreference.com/conj/FrVerbs.aspx?v=" + encodeURIComponent(ourv));
< setTimeout(waitabit, 2000);
< } else if ((ourv + '~').indexOf('re~') != -1) {
< getirregularverb("http://www.wordreference.com/conj/FrVerbs.aspx?v=" + encodeURIComponent(ourv));
< setTimeout(waitabit, 2000);
< } else if ((ourv + '~').indexOf('ir~') != -1) {
< getirregularverb("http://www.wordreference.com/conj/FrVerbs.aspx?v=" + encodeURIComponent(ourv));
< setTimeout(waitabit, 2000);
< }
< }
< }
<
<
<
241,265c189
< document.getElementById('work_enit').src = 'http://www.wordreference.com/en' + nonen + '/' + encodeURIComponent(tv);
< document.getElementById('work_enit').style.display = 'block';
< setTimeout(backtopish, 6000);
< }
< }
<
< function enes(tv) {
< if (tv != was && tv != '') {
< document.getElementById('conjugationcell').innerHTML='';
< was=tv;
< from=tv;
< getverb(tv);
< document.getElementById('work_enit').src = 'http://www.wordreference.com/en' + nonen + '/' + encodeURIComponent(tv);
< document.getElementById('work_enit').style.display = 'block';
< setTimeout(backtopish, 6000);
< }
< }
<
< function enfr(tv) {
< if (tv != was && tv != '') {
< document.getElementById('conjugationcell').innerHTML='';
< was=tv;
< from=tv;
< getverb(tv);
< document.getElementById('work_enit').src = 'http://www.wordreference.com/en' + nonen + '/' + encodeURIComponent(tv);
---
> document.getElementById('work_enit').src = 'http://www.wordreference.com/enit/' + encodeURIComponent(tv);
272d195
<
277,299c200
< document.getElementById('work_enit').src = 'http://www.wordreference.com/' + nonen + 'en/' + encodeURIComponent(tv);
< document.getElementById('work_enit').style.display = 'block';
< otv=tv;
< setTimeout(iotv, 4000);
< }
< }
<
< function esen(tv) {
< if (tv != was && tv != '') {
< document.getElementById('conjugationcell').innerHTML='';
< was=tv;
< document.getElementById('work_enit').src = 'http://www.wordreference.com/' + nonen + 'en/' + encodeURIComponent(tv);
< document.getElementById('work_enit').style.display = 'block';
< otv=tv;
< setTimeout(iotv, 4000);
< }
< }
<
< function fren(tv) {
< if (tv != was && tv != '') {
< document.getElementById('conjugationcell').innerHTML='';
< was=tv;
< document.getElementById('work_enit').src = 'http://www.wordreference.com/' + nonen + 'en/' + encodeURIComponent(tv);
---
> document.getElementById('work_enit').src = 'http://www.wordreference.com/iten/' + encodeURIComponent(tv);
308,309c209
< was='';
< eval(nonen + nonen + "('" + otv + "')");
---
> itit(otv);
327,374c227
< //andthen(ourv);
< eval("andthen" + nonen + "('" + ourv + "')");
< } else {
< //enit(ourv);
< eval("en" + nonen + "('" + ourv + "')");
< }
< was=ourv;
< }
< }
<
< function eses(ourv) {
< if (ourv != was && ourv != '') {
< document.getElementById('conjugationcell').innerHTML='';
< verbis='';
< from='';
< if ((ourv + '~').indexOf('ar~') != -1) {
< verbis=ourv;
< } else if ((ourv + '~').indexOf('er~') != -1) {
< verbis=ourv;
< } else if ((ourv + '~').indexOf('ir~') != -1) {
< verbis=ourv;
< }
< if (verbis != '') {
< //andthen(ourv);
< eval("andthen" + nonen + "('" + ourv + "')");
< } else {
< //enit(ourv);
< eval("en" + nonen + "('" + ourv + "')");
< }
< was=ourv;
< }
< }
<
< function frfr(ourv) {
< if (ourv != was && ourv != '') {
< document.getElementById('conjugationcell').innerHTML='';
< verbis='';
< from='';
< if ((ourv + '~').indexOf('er~') != -1) {
< verbis=ourv;
< } else if ((ourv + '~').indexOf('re~') != -1) {
< verbis=ourv;
< } else if ((ourv + '~').indexOf('ir~') != -1) {
< verbis=ourv;
< }
< if (verbis != '') {
< //andthen(ourv);
< eval("andthen" + nonen + "('" + ourv + "')");
---
> andthen(ourv);
376,377c229
< //enit(ourv);
< eval("en" + nonen + "('" + ourv + "')");
---
> enit(ourv);
393c245
< $.ajax({ url: "http://www.wordreference.com/en" + nonen + "/" + encodeURIComponent(tvis),
---
> $.ajax({ url: "http://www.wordreference.com/enit/" + encodeURIComponent(tvis),
396d247
< var offset=0;
398,404c249
< var spare=''
< for (var ii=0; ii','').split('<');
< if (spare[0].trim().substring(0,7) == '.engusg') offset++;
< //alert('postarr=arr[' + ii + '] blah=' + spare[0] + '=');
< }
< var postarr = arr[eval(offset + 5)].replace("'","").replace('>','').split('<');
---
> var postarr = arr[5].replace("'","").replace('>','').split('<');
406,441c251,252
< var words=verbis.trim().replace('%20',' ').replace('%20',' ').split(' ');
< verbis=words[eval(-1 + words.length)];
< if (words[0].length <= 3 && words.length == 2) verbis=(words[0] + ' ' + words[1]);
< verbis=('~' + verbis).replace("~d'","").replace("~","");
< //alert(verbis + ' ... ' + arr[eval(offset + 5)]);
< //andthen(verbis);
< if (encodeURIComponent(tvis).substring(0,5) == 'to%20' || tvis.substring(0,3) == 'to ') {
< if (nonen == 'it') {
< if ((verbis + '~').indexOf('are~') == -1 && (verbis + '~').indexOf('ere~') == -1 && (verbis + '~').indexOf('ire~') == -1) {
< verbis=tvis.replace('to ','').replace('to%20','');
< document.getElementById('ine').value=verbis;
< getverb(verbis);
< } else {
< eval("andthen" + nonen + "('" + verbis + "')");
< }
< } else if (nonen == 'es') {
< if ((verbis + '~').indexOf('ar~') == -1 && (verbis + '~').indexOf('er~') == -1 && (verbis + '~').indexOf('ir~') == -1) {
< verbis=tvis.replace('to ','').replace('to%20','');
< document.getElementById('ine').value=verbis;
< getverb(verbis);
< } else {
< eval("andthen" + nonen + "('" + verbis + "')");
< }
< } else if (nonen == 'fr') {
< if ((verbis + '~').indexOf('ar~') == -1 && (verbis + '~').indexOf('re~') == -1 && (verbis + '~').indexOf('er~') == -1) {
< verbis=tvis.replace('to ','').replace('to%20','');
< document.getElementById('ine').value=verbis;
< getverb(verbis);
< } else {
< eval("andthen" + nonen + "('" + verbis + "')");
< }
< }
< } else {
< eval("andthen" + nonen + "('" + verbis + "')");
< }
<
---
> //alert(verbis);
> andthen(verbis);
444a256
>
447,448c259,260
<
< Conjugate, Style
---
>
> Conjugate, Italian Style
452,458c264,270
<