Skip to content

Instantly share code, notes, and snippets.

@NikarashiHatsu
Created May 23, 2021 07:15
Show Gist options
  • Save NikarashiHatsu/ed41c6b47eb9342a172446bfd780d27b to your computer and use it in GitHub Desktop.
Save NikarashiHatsu/ed41c6b47eb9342a172446bfd780d27b to your computer and use it in GitHub Desktop.
<!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