
“;
if (i >= maxExamples) {
str += “
More examples…
“;
}
if (data.length == 0 && verbose) {
str += “(None found.)“;
}
$(domId).html(str);
$( function() {
$( “.pos_radio” ).checkboxradio();
$( “.pos_radio” ).click(clickClusterCheckbox);
} );
}
function clickClusterCheckbox(e, ui) {
selectedCluster = $(this).attr(‘id’).replace(“cluster-select-“, “http://www.rhymezone.com/”);
layoutResults();
};
function genExampleSentences(in_query, in_apiHost, in_domId, in_verbose, in_header, in_maxExamples) {
$j.ajax({
url: in_apiHost + “/words?max=101&nonorm=1&k=rz_wke&rel_wke=” + in_query,
context: document.body
}).done(function(d) {
data = d;
query = in_query;
domId = in_domId;
verbose = in_verbose;
header = in_header;
maxExamples = in_maxExamples;
layoutResults();
});
}
genExampleSentences(“glory”, “//api.rhymezone.com”, “#samplesentences”, 0, “
Mentions of glory:
“, 10);
Search for glory at other dictionaries: OneLook, Oxford, American Heritage, Merriam-Webster, Wikipedia
|
|
Source
Sharing is caring!