From ee5176a85675200e0d96a08b72aab074eb1697e2 Mon Sep 17 00:00:00 2001 From: Princiya Date: Sat, 18 Nov 2017 11:48:32 +0530 Subject: [PATCH] introducing web workers --- src/css/style.css | 32 ++++++++++ src/index.html | 1 + src/js/viz.js | 152 ++++++++++++++++++++++++++------------------ src/js/vizWorker.js | 83 ++++++++++++++++++++++++ 4 files changed, 205 insertions(+), 63 deletions(-) create mode 100644 src/js/vizWorker.js diff --git a/src/css/style.css b/src/css/style.css index bc7caa9..dc00db8 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -654,3 +654,35 @@ footer.unimplemented { position: relative; z-index: 2; } + +#progress { + position: fixed; + top: 0; + left: -6px; + width: 0%; + height: 2px; + background: red; + z-index: 3; +} + +#progress:before, +#progress:after { + content: ""; + position: absolute; + height: 2px; + opacity: 0.6; + box-shadow: red 1px 0 6px 1px; + border-radius: 100%; +} + +#progress:before { + width: 20px; + right: 0; + clip: rect(-6px, 22px, 14px, 10px); +} + +#progress:after { + width: 180px; + right: -80px; + clip: rect(-6px, 90px, 14px, -6px); +} diff --git a/src/index.html b/src/index.html index cbbd37d..6b223bf 100644 --- a/src/index.html +++ b/src/index.html @@ -99,6 +99,7 @@

Graph View

+