
$.ajax({
type: "GET",
url: "http://spartacodingclub.shop/sparta_api/rtan",
data: {},
success: function (response) {
$('#question-box').empty()
let message = response['msg']
let image_rtan = response['url']
let temp_html = `<h2>3. 르탄이 API를 이용하기!</h2>
<p>아래를 르탄이 사진으로 바꿔주세요</p>
<p>업데이트 버튼을 누를 때마다 지웠다 새로 씌여져야 합니다.</p>
<button onclick="q1()">르탄이 나와</button>
<div>
<img id="img-rtan" width="300" src="${image_rtan}" />
<h1 id="text-rtan">${message}</h1>
</div>`
$('#question-box').append(temp_html)
}
})
