summaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-12-15 23:21:02 +0100
committerJules Laplace <julescarbon@gmail.com>2018-12-15 23:21:02 +0100
commitfe303999bb3d1067783ea96cef71ea2a4a69a2df (patch)
treec76af2b4ed724984953ac4b91f9452ba63d13370 /site
parenta53a598461a25e8bf1d0bd3e63c47642e3213aef (diff)
embedding applets
Diffstat (limited to 'site')
-rw-r--r--site/assets/css/applets.css4
-rw-r--r--site/assets/js/app/site.js30
-rw-r--r--site/public/about/credits/index.html3
-rw-r--r--site/public/about/disclaimer/index.html3
-rw-r--r--site/public/about/index.html3
-rw-r--r--site/public/about/press/index.html3
-rw-r--r--site/public/about/privacy/index.html3
-rw-r--r--site/public/about/style/index.html3
-rw-r--r--site/public/about/terms/index.html3
-rw-r--r--site/public/datasets/lfw/index.html3
-rw-r--r--site/public/datasets/vgg_face2/index.html3
-rw-r--r--site/public/index.html3
-rw-r--r--site/public/research/00_introduction/index.html3
-rw-r--r--site/public/research/01_from_1_to_100_pixels/index.html3
-rw-r--r--site/public/research/index.html3
-rw-r--r--site/templates/layout.html3
-rw-r--r--site/templates/research.html4
17 files changed, 32 insertions, 48 deletions
diff --git a/site/assets/css/applets.css b/site/assets/css/applets.css
new file mode 100644
index 00000000..b437886b
--- /dev/null
+++ b/site/assets/css/applets.css
@@ -0,0 +1,4 @@
+.applet {
+ border: 1px solid #0f0;
+ color: #0f0;
+}
diff --git a/site/assets/js/app/site.js b/site/assets/js/app/site.js
deleted file mode 100644
index eb6886c2..00000000
--- a/site/assets/js/app/site.js
+++ /dev/null
@@ -1,30 +0,0 @@
-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
-
-const htmlClassList = document.body.parentNode.classList
-htmlClassList.add(isDesktop ? 'desktop' : 'mobile')
-
-function toArray(a) { return Array.prototype.slice.apply(a) }
-function choice(a) { return a[Math.floor(Math.random()*a.length)]}
-
-var site = (function(){
- var site = {}
- site.init = function(){
- site.build()
- }
- site.build = function(){
- const paras = document.querySelectorAll("section p")
- if (paras.length) {
- paras[0].classList.add('first_paragraph')
- }
- toArray(document.querySelectorAll('header .links a')).forEach(tag => {
- if (window.location.href.match(tag.href)) {
- tag.classList.add('active')
- }
- })
- }
- site.init()
-})() \ No newline at end of file
diff --git a/site/public/about/credits/index.html b/site/public/about/credits/index.html
index 65bc7ac4..1b1f4d54 100644
--- a/site/public/about/credits/index.html
+++ b/site/public/about/credits/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -53,5 +54,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/about/disclaimer/index.html b/site/public/about/disclaimer/index.html
index b0215bde..dfd136b6 100644
--- a/site/public/about/disclaimer/index.html
+++ b/site/public/about/disclaimer/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -53,5 +54,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/about/index.html b/site/public/about/index.html
index 65bc7ac4..1b1f4d54 100644
--- a/site/public/about/index.html
+++ b/site/public/about/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -53,5 +54,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/about/press/index.html b/site/public/about/press/index.html
index 09c89165..dca2aa3c 100644
--- a/site/public/about/press/index.html
+++ b/site/public/about/press/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -51,5 +52,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/about/privacy/index.html b/site/public/about/privacy/index.html
index 5675f072..86b645d5 100644
--- a/site/public/about/privacy/index.html
+++ b/site/public/about/privacy/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -130,5 +131,5 @@ You are advised to review this Privacy Policy periodically for any changes. Chan
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/about/style/index.html b/site/public/about/style/index.html
index 39a44380..ed61c270 100644
--- a/site/public/about/style/index.html
+++ b/site/public/about/style/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -77,5 +78,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/about/terms/index.html b/site/public/about/terms/index.html
index 078c339f..dd095b64 100644
--- a/site/public/about/terms/index.html
+++ b/site/public/about/terms/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -65,5 +66,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/datasets/lfw/index.html b/site/public/datasets/lfw/index.html
index 3c83acd3..e75e79cf 100644
--- a/site/public/datasets/lfw/index.html
+++ b/site/public/datasets/lfw/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -266,5 +267,5 @@ imageio.imwrite('lfw_montage_960.jpg', montage_960)</p>
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/datasets/vgg_face2/index.html b/site/public/datasets/vgg_face2/index.html
index 817fc9a0..63bb2cc0 100644
--- a/site/public/datasets/vgg_face2/index.html
+++ b/site/public/datasets/vgg_face2/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -75,5 +76,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/index.html b/site/public/index.html
index 91ff467a..a745dd21 100644
--- a/site/public/index.html
+++ b/site/public/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -74,5 +75,5 @@
<script src="/assets/js/vendor/oktween.js"></script>
<script src="/assets/js/app/face.js"></script>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/research/00_introduction/index.html b/site/public/research/00_introduction/index.html
index 8f598f5b..52a2416f 100644
--- a/site/public/research/00_introduction/index.html
+++ b/site/public/research/00_introduction/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -82,5 +83,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/research/01_from_1_to_100_pixels/index.html b/site/public/research/01_from_1_to_100_pixels/index.html
index b4c85d00..22869459 100644
--- a/site/public/research/01_from_1_to_100_pixels/index.html
+++ b/site/public/research/01_from_1_to_100_pixels/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -91,5 +92,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/public/research/index.html b/site/public/research/index.html
index 59a5fee9..62e3208a 100644
--- a/site/public/research/index.html
+++ b/site/public/research/index.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -47,5 +48,5 @@
</footer>
</body>
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/templates/layout.html b/site/templates/layout.html
index 605f9788..986c7a3f 100644
--- a/site/templates/layout.html
+++ b/site/templates/layout.html
@@ -9,6 +9,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel='stylesheet' href='/assets/css/fonts.css' />
<link rel='stylesheet' href='/assets/css/css.css' />
+ <link rel='stylesheet' href='/assets/css/applets.css' />
</head>
<body>
<header>
@@ -43,5 +44,5 @@
</footer>
</body>
{% block scripts %}{% endblock %}
-<script src="/assets/js/app/site.js"></script>
+<script src="/assets/js/dist/index.js"></script>
</html> \ No newline at end of file
diff --git a/site/templates/research.html b/site/templates/research.html
index b2ea3a6b..0bb9fa30 100644
--- a/site/templates/research.html
+++ b/site/templates/research.html
@@ -21,7 +21,3 @@
{{ content }}
{% endblock %}
-
-{% block scripts %}
-<script src="/assets/js/applets.js"></script>
-{% endblock %} \ No newline at end of file