2d1 < 4c3 < --- > 13,19c12 < < var numtype=''; < var numtypes=[]; < var saveuntil=2000; < var touches=[]; < var wasscale=1.0, isscale=1.0; < var ote=''; --- > 24c17 < var lastajax='', lasturl='', lasturls=[], waithere=false; --- > var lastajax='', lasturl=''; 90,112d82 < function delayedalert() { < console.log('Here at delayedalert ' + lasturls.length); < var ok=true; < for (var iii=0; iii wos[jdc]=window.open(lasturl, '_blank', 'top=' + eval(-600 + eval('' + screen.height)) + ',left=' + eval(-600 + eval('' + screen.width)) + ',width=600,height=600'); 187,193c146,152 < < function commonev(othis) { < //saveuntil=2000; < if (numtype == '') { numtype='' + event.type + ':' + ('' + event.target.outerHTML).substring(1).split(' ')[0].split('>')[0] + ':' + ('' + othis.outerHTML).substring(1).split(' ')[0].split('>')[0]; } else { numtype+=',' + event.type + ':' + ('' + event.target.outerHTML).substring(1).split(' ')[0].split('>')[0] + ':' + ('' + othis.outerHTML).substring(1).split(' ')[0].split('>')[0]; } < console.log('numtype=' + numtype + ' ' + ('' + new Date())); < numtypes=numtype.split(','); < if (saveuntil == 2000) { setTimeout(assesslater, 100); } --- > > function moi(othis) { > var extras=''; > > switch ('' + event.type) { > case 'mouseover': > if (document.getElementById('mycbomo').checked && document.getElementById('eventtype').value == ('' + event.type)) { 202,294d160 < } < < function ttlook() { < var tspecific=' pinch'; < if (wasscale > isscale) { < tspecific=' Pinch'; < } else if (isscale > wasscale) { < tspecific=' Spread'; < } else if (eval('' + ote.split(':').length) >= 5) { < if (eval(ote.split(':')[1].split(',')[0].trim()) > eval(ote.split(':')[3].split(',')[0].trim())) { < if (eval(ote.split(':')[1].split(',')[1].split(' ')[0].trim()) <= eval(ote.split(':')[3].split(',')[1].split(' ')[0].trim())) { < tspecific=' spread'; < } < } else if (eval(ote.split(':')[1].split(',')[0].trim()) < eval(ote.split(':')[3].split(',')[0].trim())) { < if (eval(ote.split(':')[1].split(',')[1].split(' ')[0].trim()) >= eval(ote.split(':')[3].split(',')[1].split(' ')[0].trim())) { < tspecific=' spread'; < } < } < } else { < tspecific=''; < } < document.getElementById('numbers').innerHTML='of touch' + tspecific + ' gesture '; < document.getElementById('numberst').innerHTML='of touch' + tspecific + ' gesture '; < //document.getElementById('numbers').innerHTML+=ote; //('(' + event.targetTouches.length + ') ' + event.targetTouches[0].clientX + ',' + event.targetTouches[0].clientY + ' to ' + event.targetTouches[1].clientX + ',' + event.targetTouches[1].clientY); < ote=''; < } < < function assesslater() { < saveuntil-=100; < if (saveuntil > 0) { < setTimeout(assesslater, 100); < } else { < if (numtype.indexOf(',') != -1 || numtype.indexOf('touch') != -1) { // multiple event analysis < document.getElementById('numberst').innerHTML=''; < var numtypeslength=numtypes.length; < for (var ii=0; ii case 'mousedown': 300c166,171 < commonev(othis); --- > if (eval('' + jdc) >= eval('' + lotsofsix.length)) { jdc=0; } > jdc=Math.floor(Math.random() * lotsofsix.length); > if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':') != -1) { > if (lastajax != lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))) { > lastajax=lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10)); > ajaxit(lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))); 302,306d172 < break; < < case 'mouseover': < if (document.getElementById('mycbomo').checked && document.getElementById('eventtype').value == ('' + event.type)) { < commonev(othis); 308,312d173 < break; < < case 'mousedown': < if (document.getElementById('mycbomo').checked && document.getElementById('eventtype').value == ('' + event.type)) { < commonev(othis); 318c179,186 < commonev(othis); --- > if (eval('' + jdc) >= eval('' + lotsofsix.length)) { jdc=0; } > jdc=Math.floor(Math.random() * lotsofsix.length); > if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':') != -1) { > if (lastajax != lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))) { > lastajax=lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10)); > ajaxit(lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))); > } > } 322,332c190 < case 'touchstart': // thanks to https://stackoverflow.com/questions/15240946/retrieving-touchstart-coordinates-in-a-touchend-event < try { < wasscale=eval('' + window.visualViewport.scale); < } catch(exgf) { wasscale=1.0; } < var touchList = event.changedTouches; < var touch; < for (var i = 0; i < touchList.length; i++) { < ote=("startX: " + touchList[i].screenX + "," + + touchList[i].screenY + " id: " + touchList[i].identifier + " "); < touch = {x: touchList[i].screenX, y: touchList[i].screenY, id: touchList[i].identifier}; < touches.push(touch); < } --- > case 'touchstart': 334,335c192,199 < waithere=true; < commonev(othis); --- > if (eval('' + jdc) >= eval('' + lotsofsix.length)) { jdc=0; } > jdc=Math.floor(Math.random() * lotsofsix.length); > if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':') != -1) { > if (lastajax != lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))) { > lastajax=lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10)); > ajaxit(lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))); > } > } 341,342c205,212 < waithere=true; < commonev(othis); --- > if (eval('' + jdc) >= eval('' + lotsofsix.length)) { jdc=0; } > jdc=Math.floor(Math.random() * lotsofsix.length); > if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':') != -1) { > if (lastajax != lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))) { > lastajax=lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10)); > ajaxit(lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))); > } > } 346,361c216 < case 'touchend': // thanks to https://stackoverflow.com/questions/15240946/retrieving-touchstart-coordinates-in-a-touchend-event < try { < isscale=eval('' + window.visualViewport.scale); < } catch(exsgf) { isscale=1.0; } < var touchList = event.changedTouches; < var touch; < for (var i = 0; i < touchList.length; i++) { < touch = {x: touchList[i].screenX, y: touchList[i].screenY, id: touchList[i].identifier}; < for (var j = touches.length - 1; j >= 0 ; j--) { < if (touches[j].id == touch.id) { < touches.splice(j, 1); < } else { < ote+=(" endX: "+ touches[j].x + "," + + touches[j].y + " id: " + touchList[i].identifier); < } < } < } --- > case 'touchend': 363,371c218,225 < waithere=true; < //ote=' huh '; < //try { < //ote+='(' + event.touches.length + ') '; < //} catch(etr) { } < //try { < //ote+='' + event.touches[0].clientX + ',' + event.touches[0].clientY + ' to ' + event.touches[1].clientX + ',' + event.touches[1].clientY; < //} catch(etrd) { } < commonev(othis); --- > if (eval('' + jdc) >= eval('' + lotsofsix.length)) { jdc=0; } > jdc=Math.floor(Math.random() * lotsofsix.length); > if ((',' + cindxs + ',').indexOf(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':') != -1) { > if (lastajax != lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))) { > lastajax=lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10)); > ajaxit(lotsofsix[jdc].split(';')[eval((',' + cindxs + ',').split(',' + othis.outerHTML.substring(1).split(' ')[0].split('>')[0] + ':')[1].split(',')[0])].replace(/\/g, String.fromCharCode(10))); > } > } 376,380d229 < //saveuntil=2000; < if (numtype == '') { numtype='' + event.type + ':' + ('' + event.target.outerHTML).substring(1).split(' ')[0].split('>')[0] + ':' + ('' + othis.outerHTML).substring(1).split(' ')[0].split('>')[0]; } else { numtype+=',' + event.type + ':' + ('' + event.target.outerHTML).substring(1).split(' ')[0].split('>')[0] + ':' + ('' + othis.outerHTML).substring(1).split(' ')[0].split('>')[0]; } < console.log('numtype=' + numtype + ' ' + ('' + new Date())); < numtypes=numtype.split(','); < if (saveuntil == 2000) { setTimeout(assesslater, 100); } 431d279 < console.log('huh ' + event.type); 439c287 < --- > 441,448c289,296 <

Sestet Examples

<

RJM Programming - March, 2023

<

Showing Onclick Event Propagation in   Action

<
Thanks to Examples in Poetry and Bilingual Kidspot and Emily Dickinson and William Shakespeare
< < < < --- >

Sestet Examples

>

RJM Programming - March, 2023

>

Showing Onclick Event Propagation in   Action

>
Thanks to Examples in Poetry and Bilingual Kidspot and Emily Dickinson and William Shakespeare
> >
> >