$(document).ready(
function()
{
$("#char_select").change(
function()
{
if ($(this).val() == '')
{
$("#export_links").hide();
return;
}
var keys = $(this).val().split('|');
var host = 'https://' + window.location.host;
$("#link_long").html('' + host + '/checklist/long/' + keys[0] +'');
$("#link_short").html('' + host + '/checklist/short/' + keys[0] +'');
$("#link_xml").html('' + host + '/checklist/export/xml/' + keys[1] +'');
$("#link_json").html('' + host + '/checklist/export/json/' + keys[1] +'');
$(".export_links").show();
}
);
}
);