["tilescript",
["html", "
Fahrenheit Centigrade converter
\n\n\n | \n | \n
\n\nGabriel Fahrenheit (1686-1736) | \nAnders Celsius (1701-1744) | \n
\n
\n\n- \nFahrenheit: The freezing point of water is 32 degrees, the boiling point is 212 degrees.\n
- \nCentigrade: The freezing point of water is 0 degrees, the boiling point is 100 degrees.\n
\n\nThe relationship of Fahrenheit (F) and Centigrade (C)\nis represented as this formula.\n
\n\nC = (F - 32) / 1.8\n
\n"],
["html", "A simple converter with watchers
"],
["tile", "C=F=0"],
["html", "Drop here watchers by
\nof C,F to edit these values.\nThen, try next formulas
"],
["tile", "C=((F-32)/1.8)"],
["tile", "F=((C*1.8)+32)"],
["html", "A bidirectional constrain solver with events
\n\nA HTML element can be referred a Javascript\nprogram with id attribute and $() function.
\n\nPlease push the
\nbutton bellow.\nAnd edit above numbers.\n
\n"],
["source", "$('f').onblur = function () {\n $(\"c\").value = ($(\"f\").value - 32) / 1.8\n};\n$('c').onblur = function () {\n $(\"f\").value = ($(\"c\").value * 1.8) + 32\n};\n"]
]