Aaron Parecki's Webmentions are an elegant way to integrate web sites and social media. This could easily be integrated with Mastodon...

aaronparecki.com/2017/01/12/13

Follow

Let's do this with curl:

curl -v -d 'source=https%3A%2F%2Fidf.social%2F%40djoerd%2F107475324613938785&target=https%3A%2F%2Faaronparecki.com%2F2017%2F01%2F12%2F13%2Fwebmention-rec' -X POST -H 'Content-Type: application/x-www-form-urlencoded' 'webmention.io/aaronpk/webmenti'

ยท 1 ยท 2 ยท 1

@djoerd did you try his website on a phone? His profile picture remains vertical when you tilt your phone!!

@djoerd maybe only android? It's the second photo (at bottom) that does this for me.

@arjen It does!!! Websites can read my accelerometer ๐Ÿ˜ฎ

@djoerd

Found the source: appropriately titled "Web APIs You [Probably] Didn't Know Existed"
youtube.com/watch?v=EZpdEljk5d

```
<script>
// Lolz. youtube.com/watch?v=EZpdEljk5d
// thanks seblog.nl!
let photo = document.querySelector('.about .image img')
if(photo) {
window.addEventListener('deviceorientation', (e) => {
let tiltLR = e.gamma; let tiltFB = e.beta;
photo.style.transform = `rotate(${tiltLR * -1}deg)`
})
}
</script>
```

Sign in to participate in the conversation
Mastodon

The "unofficial" Information Retrieval Mastodon Instance.

Goal: Make idf.social a viable and valuable social space for anyone working in Information Retrieval and related scientific research.

Everyone welcome but expect some level of geekiness on the instance and federated timelines.