JSFiddle - React, Tailwind, and code Playground

by Nick Karnik

HTML

<button id=transform>Transform</button><br>
<textarea id=source rows=30 cols=80></textarea>
<textarea id=dest rows=30 cols=80></textarea>

JavaScript

var oneArcSecondInDegrees = 1 / (60 * 60);
function getResolutionInDegrees = function(resolution) {
    return (resolution * DemographicsContext.oneArcSecondInDegrees);
};


$('transform').click(function(){
    var source = $('#source').val();
    
    console.log(JSON.parse(source));
});