mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 03:46:25 +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);
|
||
|
});
|
||
|
});
|
||
|
});
|