["tilescript", ["html", "

Fahrenheit Centigrade converter

\n\n\n\n\n\n\n\n\n\n
Gabriel Fahrenheit (1686-1736) Anders Celsius (1701-1744)
\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\n

A 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"] ]