summaryrefslogtreecommitdiffstats
path: root/demo/react-demo-embed.html
diff options
context:
space:
mode:
Diffstat (limited to 'demo/react-demo-embed.html')
-rw-r--r--demo/react-demo-embed.html64
1 files changed, 0 insertions, 64 deletions
diff --git a/demo/react-demo-embed.html b/demo/react-demo-embed.html
deleted file mode 100644
index e14a7c4..0000000
--- a/demo/react-demo-embed.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!doctype html>
-<html>
-
-<head>
- <title>vaadin-grid Code Examples - React Integration</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1" />
-
- <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
-
- <script src="js_dependencies/react.min.js"></script>
- <script src="js_dependencies/JSXTransformer.js"></script>
-
- <link rel="import" href="common.html">
-
- <style>
- body {
- padding: 0;
- margin: 0;
- font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei New', 'Microsoft Yahei', SimSun, STXihei, sans-serif;
- }
-
- img.user-image {
- position: absolute;
- bottom: 0px;
- right: 0px;
- max-width: 33%;
- max-height: 33%;
- }
- </style>
-</head>
-
-<body style="padding: 0; margin: 0;">
- <div id="reactdemo"></div>
-
- <script>
- (function wait() {
- // Wait for the polyfilled browsers to finish importing needed resources
- if (!document.querySelector('link[href$="vaadin-grid.html"]') || !window.getJSON) {
- return setTimeout(wait, 50);
- }
- // Want to avoid maintaining the React demo source in 2 places so we'll
- // evaluate the jsx code in react.html manually here
- var xhr = new XMLHttpRequest();
- xhr.onreadystatechange = function() {
- if (xhr.readyState == XMLHttpRequest.DONE) {
- if (xhr.status == 200) {
- var text = xhr.responseText;
- var scriptTag = '<script type="text/jsx">';
- var start = text.indexOf(scriptTag) + scriptTag.length;
- var end = text.indexOf('<\/script>', start);
- HTMLImports.whenReady(function() {
- JSXTransformer.exec(text.substr(start, end - start));
- });
- }
- }
- };
- xhr.open('GET', 'react.html', true);
- xhr.send();
- })();
- </script>
-
-</body>
-</html>