mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 19:06:27 +00:00
14 lines
274 B
JavaScript
14 lines
274 B
JavaScript
|
$(document).ready(function() {
|
||
|
$("#sandbox").keyup(function() {
|
||
|
$.ajax({
|
||
|
type : "POST",
|
||
|
dataType : "html",
|
||
|
url : "ajax.php?action=preview",
|
||
|
data : {
|
||
|
"body" : $(this).val()
|
||
|
}
|
||
|
}).done(function(response) {
|
||
|
$("#preview").html(response);
|
||
|
});
|
||
|
});
|
||
|
});
|