Update API

j 2024-06-22 09:15:18 +00:00
parent bb196ffcdd
commit 69a1753f5e

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 => { }).then(result => {
result.data.items.forEach(item => { result.data.items.forEach(item => {
const div = document.createElement("div") 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) document.body.appendChild(div)
}) })
}) })
</script> </script>
<style> <style>
div { div > div {
clear: both; display: flex;
} gap: 8px;
img {
float: left;
padding: 4px;
} }
</style> </style>
</head> </head>