1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-13 11:44:55 +01:00
slate/examples/dev.html
Brandon Johnson e7b4020ed2 Include Array.prototype.includes polyfill (#1297)
* Include Array.prototype.includes polyfill

In https://github.com/ianstormtaylor/slate/commit/070a700
the `default` feature set was added
and the `Array.prototype.includes` feature removed
from the polyfill.io request.
I think it's great to include the `default` feature set,
but, `Array.prototype.includes` is not included in the `default` set,
so we have to explicitly request it.
IE 11 needs an `Array.prototype.includes` polyfill
in order for the examples to work.

* Update dev.html

* Update index.html
2017-10-26 09:18:02 -07:00

31 lines
1.2 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Slate</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,400i,700,700i&subset=latin-ext" >
</head>
<body>
<main></main>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,es6,es7"></script>
<script>
/* eslint-disable */
// Dynamically creates the script and link tag and adds the current time
// in ms as a query on the URL. This ensures the script and the link is
// always reloaded. Useful during debugging because we want to see changes
// to the JavaScript and CSS code immediately.
var head = document.getElementsByTagName('head')[0]
var script = document.createElement('script')
var time = new Date().getTime()
script.type = 'text/javascript'
script.src = 'build.dev.js?' + time
head.appendChild(script)
var link = document.createElement('link')
link.rel = 'stylesheet'
link.href = 'index.css?' + time
head.appendChild(link)
</script>
</body>
</html>