3c3 < The Australian Rules Visual Change Drop Punt Analysis Game - RJM Programming - May 2014 --- > The Australian Rules Drop Punt Analysis Game - RJM Programming - May 2014 9d8 < var woo = null; 14,44d12 < var ua = navigator.userAgent; < var isiPad = /iPad/i.test(ua) || /iPhone OS 3_1_2/i.test(ua) || /Andrxoid/i.test(ua) || /iPhone OS 3_2_2/i.test(ua); < var prevvisualpart = ""; < var thelook = "top=200,left=700,width=720,height=600"; < var biggestsofar = 0.0; < < function onion(thisone) { < var newone = thisone; < if (prevvisualpart != "") { < var newwords = thisone.split("%20"); < var oldwords = prevvisualpart.split("%20"); < var olddata = prevvisualpart.split("data="); < newone = newone.replace("scatter_chart.php", "scatter_chart_diff.php"); < newone = newone.replace("Trajectory", "Comparison%20of%20trajectories"); < newone = newone.replace("Punt", "Punts"); < newone = newone.replace("height", "heights"); < newone = newone.replace("angle", "angles"); < newone = newone.replace("is%20kick", "are%20kicks"); < newone = newone.replace(newwords[2] + "%20m%20Drop", newwords[2] + "%20m%20and%20" + oldwords[2] + "%20m%20Drop"); < newone = newone.replace(newwords[9] + "%20m%20(", newwords[9] + "%20m%20and%20" + oldwords[9] + "%20m%20("); < newone = newone.replace(newwords[16] + "%20seconds", newwords[16] + "%20seconds%20and%20" + oldwords[16] + "%20seconds"); < newone = newone.replace(newwords[21] + "%20m/s", newwords[21] + "%20m/s%20and%20" + oldwords[21] + "%20m/s"); < newone = newone.replace(newwords[26] + "%20degrees", newwords[26] + "%20degrees%20and%20" + oldwords[26] + "%20degrees"); < newone = newone.replace("data=", "data0=" + olddata[1] + "&data="); < thelook = "top=180,left=350,width=1070,height=640"; < } < prevvisualpart = thisone; < return newone; < } < < 48,53c16,19 < document.getElementById("angle").value = ""; < if (!isiPad) { < document.getElementById("results").style.background = 'url("./droppunt.jpg")'; < document.getElementById("results").style.backgroundRepeat = "no-repeat" < document.getElementById("results").style.backgroundPosition = "right" < } --- > document.getElementById("angle").value = ""; > document.getElementById("results").style.background = 'url("./droppunt.jpg")'; > document.getElementById("results").style.backgroundRepeat = "no-repeat" > document.getElementById("results").style.backgroundPosition = "right" 57d22 < var stopexaggerating = ""; 61,62d25 < var suffix = ""; < if (isiPad) suffix = ""; 80,84d42 < var wtitle = "Trajectory%20of%20Drop%20Punt%20of%20" + iv + "%20m/s%20at%20angle%20of%20" + an + "%20degrees"; < var visualpart = "http://www.rjmprogramming.com.au/PHP/ScatterChart/scatter_chart.php?title=Trajectory%20of%20Drop%20Punt%20of%20" + iv + "%20m/s%20at%20angle%20of%20" + an + "%20degrees&task=Distance%20(metres)" + stopexaggerating + "&desc=Height%20(metres)" + stopexaggerating + "&data=,%20[0,0]%20"; < if (woo) { < woo.close(); < } 98,113d55 < if (document.getElementById("exaggeratingokay").value == "N" && stopexaggerating == "" && eval((Math.round(hbit * 1000.0) / 1000.0) - (Math.round(eval(ivx * mytimeelapsed) * 1000.0) / 1000.0)) <= 0.0) { < if (biggestsofar < (Math.round(eval(ivx * 2.0 * mytimeelapsed) * 1000.0) / 1000.0)) { < biggestsofar = (Math.round(eval(ivx * 2.0 * mytimeelapsed) * 1000.0) / 1000.0); < } < stopexaggerating = "%27%2c%20minValue%3a0%2cmaxValue%3a" + Math.floor((biggestsofar + 5.0) / 5.0) * 5; < visualpart = visualpart.replace("%20(metres)", "%20(%20metres%20)" + stopexaggerating); < visualpart = visualpart.replace("%20(metres)", "%20(%20metres%20)" + stopexaggerating); < } else if (document.getElementById("exaggeratingokay").value == "N" && stopexaggerating == "") { < if (biggestsofar < ((Math.round(hbit * 1000.0) / 1000.0) / 1000.0)) { < biggestsofar = ((Math.round(hbit * 1000.0) / 1000.0) / 1000.0); < } < stopexaggerating = "%27%2c%20minValue%3a0%2cmaxValue%3a" + Math.floor((biggestsofar + 5.0) / 5.0) * 5; < visualpart = visualpart.replace("%20(metres)", "%20(%20metres%20)" + stopexaggerating); < visualpart = visualpart.replace("%20(metres)", "%20(%20metres%20)" + stopexaggerating); < } < visualpart = visualpart.replace("Drop%20Punt%20of", "Drop%20Punt%20reaching%20height%20of%20" + Math.round(hbit * 1000.0) / 1000.0 + "%20m%20(goal%20posts%206%20m%2b)%20at%20" + Math.round(mytimeelapsed * 1000.0) / 1000.0 + "%20seconds%20is%20kick%20of"); 118,119d59 < visualpart = visualpart + ",%20[" + Math.round(eval(ivx * mytimeelapsed) * 1000.0) / 1000.0 + "," + "0" + "]%20"; < visualpart = visualpart.replace("of%20Drop", "of%20" + Math.round(eval(ivx * mytimeelapsed) * 1000.0) / 1000.0 + "%20m%20Drop"); 122,124c62 < ois.innerHTML = "" + Math.round(mytimeelapsed * 1000.0) / 1000.0 + "" + Math.round(eval(ivx * mytimeelapsed) * 1000.0) / 1000.0 + "" + Math.round(hbit * 1000.0) / 1000.0 + "" + suffix; < suffix = ""; < visualpart = visualpart + ",%20[" + Math.round(eval(ivx * mytimeelapsed) * 1000.0) / 1000.0 + "," + Math.round(hbit * 1000.0) / 1000.0 + "]%20"; --- > ois.innerHTML = "" + Math.round(mytimeelapsed * 1000.0) / 1000.0 + "" + Math.round(eval(ivx * mytimeelapsed) * 1000.0) / 1000.0 + "" + Math.round(hbit * 1000.0) / 1000.0 + ""; 134,135d71 < visualpart = visualpart + ",%20[" + Math.round(eval(ivx * totaltime) * 1000.0) / 1000.0 + "," + "0" + "]%20"; < visualpart = visualpart.replace("of%20Drop", "of%20" + Math.round(eval(ivx * totaltime) * 1000.0) / 1000.0 + "%20m%20Drop"); 160,165d95 < if (isiPad) { < document.getElementById("tdgraph").innerHTML = ""; < document.getElementById("results").border = 0; < } else { < woo = window.open(onion(visualpart), "_blank", thelook); < } 167d96 < stopExaggerating = ""; 175c104 <

The Australian Rules Visual Change Drop Punt Analysis Game ...   

--- >

The Australian Rules Drop Punt Analysis Game ...  

245c174 < --- >