Created
May 23, 2021 07:15
-
-
Save NikarashiHatsu/ed41c6b47eb9342a172446bfd780d27b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="data"> | |
</div> | |
<script> | |
$().ready(function() { | |
let alldata = tamp[0] + tamp[1] + tamp[2] | |
let _url = "{{ url('/pitch') }}" | |
$.ajax({ | |
url: _url, | |
type: "GET", | |
data: { | |
idsatu: alldata | |
}, | |
success: function(response) { | |
let htmlResponse = response.map(el => { | |
` | |
<div class="card w-75 mb-2"> | |
<div class="card-body text-muted">${el.title}</div> | |
</div> | |
` | |
}) | |
$("#data").html(htmlResponse) | |
} | |
}) | |
}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment