Skip to content

Commit e767908

Browse files
Update one-page.html to use spectacle 5 (FormidableLabs#687)
* update one-page.html to use spectacle 5 - fixes CSSStyleDeclaration index property setter error * remove markdown tabbing to render properly * undo ridiculous indentation from prettier * update README to use Spectacle 5
1 parent 4943d85 commit e767908

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ We can start with this project's sample at [`one-page.html`](./one-page.html). I
203203
<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
204204
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
205205
<script src="https://unpkg.com/@babel/standalone/babel.js"></script>
206-
<script src="https://unpkg.com/spectacle@^4/dist/spectacle.js"></script>
207-
<script src="https://unpkg.com/spectacle@^4/lib/one-page.js"></script>
206+
<script src="https://unpkg.com/spectacle@^5/dist/spectacle.js"></script>
207+
<script src="https://unpkg.com/spectacle@^5/lib/one-page.js"></script>
208208
<script type="text/spectacle">
209209
() => {
210210
// Your JS Code goes here

one-page.html

+22-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
3+
<head>
4+
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width initial-scale=1" />
66
<title>Spectacle</title>
7-
<link href="https://fonts.googleapis.com/css?family=Lobster+Two:400,700" rel="stylesheet" type="text/css">
8-
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700" rel="stylesheet" type="text/css">
9-
<link href="https://unpkg.com/normalize.css@7/normalize.css" rel="stylesheet" type="text/css">
10-
</head>
11-
<body>
7+
<link
8+
href="https://fonts.googleapis.com/css?family=Lobster+Two:400,700"
9+
rel="stylesheet"
10+
type="text/css"
11+
/>
12+
<link
13+
href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700"
14+
rel="stylesheet"
15+
type="text/css"
16+
/>
17+
<link
18+
href="https://unpkg.com/normalize.css@7/normalize.css"
19+
rel="stylesheet"
20+
type="text/css"
21+
/>
22+
</head>
23+
<body>
1224
<div id="root"></div>
1325
<script src="https://unpkg.com/prop-types@15/prop-types.js"></script>
1426
<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
1527
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
1628
<script src="https://unpkg.com/@babel/standalone/babel.js"></script>
17-
<script src="https://unpkg.com/spectacle@^4/dist/spectacle.js"></script>
18-
<script src="https://unpkg.com/spectacle@^4/lib/one-page.js"></script>
29+
<script src="https://unpkg.com/spectacle@^5/dist/spectacle.js"></script>
30+
<script src="https://unpkg.com/spectacle@^5/lib/one-page.js"></script>
1931
<script type="text/spectacle">
2032
() => {
2133
// --------------------------------------------------------------------
@@ -288,5 +300,5 @@
288300
);
289301
}
290302
</script>
291-
</body>
303+
</body>
292304
</html>

0 commit comments

Comments
 (0)