diff --git a/README.md b/README.md index 809f6a5..5b6ea48 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ # LagRadar -> It's a sexy little lag radar for demonstrating performance - or lack of. +> It's a sexy little component for demonstrating performance - or lack of in your javascript application. Add this to any javascript application and you can see when the app drops below 60fps as the radar sweep changes colour and gets janky. -[Demo](https://mobz.github.io/lag-radar/) +[Get your live demo](https://mobz.github.io/lag-radar/) +[Extra awesome as Bookmarklet](https://mobz.github.io/lag-radar/bookmarklet.html) ## Usage diff --git a/bookmarklet.html b/bookmarklet.html index 7dc0f39..40f4cb1 100644 --- a/bookmarklet.html +++ b/bookmarklet.html @@ -25,6 +25,9 @@ font-size: 75%; color: #aaa; } + VIDEO { + margin: 40px auto; + } @@ -48,7 +51,7 @@

Lag Radar - Bookmarklet

document.querySelector('#bookmarklet').setAttribute('href', linkSource()); - + diff --git a/bookmarklet.mp4 b/bookmarklet.mp4 new file mode 100644 index 0000000..cf5368f Binary files /dev/null and b/bookmarklet.mp4 differ diff --git a/index.css b/index.css index 780fc1a..4b84646 100644 --- a/index.css +++ b/index.css @@ -21,3 +21,11 @@ BODY { text-align: right; width: 3em; } + +#link { + margin: 6em auto; +} + +A { + color: #42f; +} \ No newline at end of file diff --git a/index.html b/index.html index 8c62b55..a04c9e7 100644 --- a/index.html +++ b/index.html @@ -12,12 +12,17 @@

Lag Radar

0ms - +
+