Yoda Speak Translator

Yoda Translator using funtranslations API

by orthosie

HTML

<h1>Here is a converter for changing your sentences to Shakespeare's style. </h1>

<input type="text" id="input">
<div id="resutlt"></div>
<button class="button" onclick="convert()">Convert</button>

<p>
 For full featured English to Yoda translator <a href="http://funtranslations.com/shakespeare">visit here.</a>
</p>

JavaScript

function convert(){
    var input = document.getElementById('input').value;
    $.getJSON("//api.funtranslations.com/translate/shakespeare.json?text=" + input, function( data ) {
        alert(data.translated)
       $('#result').append(data.translated);
    });
}