Merge pull request #1 from adafruit/oembed
Add oEmbed support to gh pages site
This commit is contained in:
commit
6c194315e6
2 changed files with 15 additions and 1 deletions
|
|
@ -4,6 +4,8 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>OPT4048 CIE Color Plotter</title>
|
||||
<!-- oEmbed Discovery Links -->
|
||||
<link rel="alternate" type="application/json+oembed" href="https://adafruit.github.io/Adafruit_OPT4048/webserial/oembed.json" title="Adafruit OPT4048 Demo" />
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
|
|
@ -153,4 +155,4 @@
|
|||
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
12
webserial/oembed.json
Normal file
12
webserial/oembed.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"version": "1.0",
|
||||
"type": "rich",
|
||||
"title": "Adafruit OPT4048 Library",
|
||||
"provider_name": "Adafruit",
|
||||
"provider_url": "https://www.adafruit.com",
|
||||
"author_name": "Adafruit",
|
||||
"author_url": "https://github.com/adafruit",
|
||||
"width": 800,
|
||||
"height": 600,
|
||||
"html": "<iframe src='https://adafruit.github.io/Adafruit_OPT4048/webserial/' width='800' height='600' style='border: 1px solid #ddd; border-radius: 4px; max-width: 100%;' allow='serial; usb' loading='lazy' title='Adafruit OPT4048 Arduino Library'></iframe>"
|
||||
}
|
||||
Loading…
Reference in a new issue