From 5028ad81845308f3b1954dcc1fde664077fa0fa9 Mon Sep 17 00:00:00 2001
From: Jules Laplace <jules@okfoc.us>
Date: Fri, 21 Apr 2017 12:30:57 -0400
Subject: scaffolding

---
 client/index.jsx | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 client/index.jsx

(limited to 'client/index.jsx')

diff --git a/client/index.jsx b/client/index.jsx
new file mode 100644
index 0000000..f64a984
--- /dev/null
+++ b/client/index.jsx
@@ -0,0 +1,15 @@
+
+import React from 'react'
+import ReactDOM from 'react-dom';
+import App from './components/App.jsx';
+
+const isIphone = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))
+const isIpad = (navigator.userAgent.match(/iPad/i))
+const isAndroid = (navigator.userAgent.match(/Android/i))
+const isMobile = isIphone || isIpad || isAndroid
+const isDesktop = ! isMobile
+
+document.body.classList.add(isDesktop ? 'desktop' : 'mobile');
+
+ReactDOM.render(<App />, document.getElementById('container'));
+
-- 
cgit v1.2.3-70-g09d2

