3c3
<
The Australian Rules Visual Change Drop Punt Analysis Game - RJM Programming - May 2014
---
> The Australian Rules Visual Drop Punt Analysis Game - RJM Programming - May 2014
14,44d13
< 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,53c17,20
< 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"
57d23
< var stopexaggerating = "";
61,62d26
< var suffix = "";
< if (isiPad) suffix = " | ";
81c45
< 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";
---
> 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)&desc=Height%20(metres)&data=,%20[0,0]%20";
98,112d61
< 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);
< }
122,123c71
< 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 = "";
---
> 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 + " | ";
160,165c108
< if (isiPad) {
< document.getElementById("tdgraph").innerHTML = "";
< document.getElementById("results").border = 0;
< } else {
< woo = window.open(onion(visualpart), "_blank", thelook);
< }
---
> woo = window.open(visualpart, "_blank", "top=200,left=700,width=720,height=600");
167d109
< stopExaggerating = "";
175c117
< The Australian Rules Visual Change Drop Punt Analysis Game ...
---
> The Australian Rules Visual Drop Punt Analysis Game ...
245c187
< | | | |
---
> | | |