Update API
parent
bb196ffcdd
commit
69a1753f5e
1 changed files with 4 additions and 7 deletions
11
API.md
11
API.md
|
@ -46,18 +46,15 @@ To use the API you can use Ox.App if you use Ox.js, or look at [pandora_client](
|
|||
}).then(result => {
|
||||
result.data.items.forEach(item => {
|
||||
const div = document.createElement("div")
|
||||
div.innerHTML = `<h1><a href="https://pad.ma/${item.id}">${item.title}</a></h1><p><img src="https://pad.ma/${item.id}/128p.jpg">${item.summary}</p>`
|
||||
div.innerHTML = `<h1><a href="https://pad.ma/m/${item.id}/player">${item.title}</a></h1><div><div><img src="https://pad.ma/${item.id}/128p.jpg"></div><div>${item.summary}</div>`
|
||||
document.body.appendChild(div)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<style>
|
||||
div {
|
||||
clear: both;
|
||||
}
|
||||
img {
|
||||
float: left;
|
||||
padding: 4px;
|
||||
div > div {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue