diff options
author | Mottie <wowmotty@gmail.com> | 2015-08-23 02:22:14 +0300 |
---|---|---|
committer | Mottie <wowmotty@gmail.com> | 2015-08-24 19:05:21 +0300 |
commit | 499adbd59e8958c1596b7ae60d410a733de7650a (patch) | |
tree | 61c3b3564215d6db01ce6b013b6878dc343c2d45 /demo | |
parent | d12145f26c63d37fd029bdb80a2cf0a539c3c8df (diff) |
Add grunt build process:
1) The "src/bookmarklet.js" file contains the uncompressed bookmarklet code.
2) In the build process, that file is minified & added into the "src/index.html"
file in two places:
a) The actual link href (default link).
b) development bookmarklet link (inside js code which updates the link).
3) A new "index.html" and minified "printliminator.min.js" file are written
to the root folder.
4) When the "index.html" in the root folder is loaded in the browser, and the
js detects the origin is "file://", then the links in the "index.html" file
get changed and to point to local files to make it easier for development.
Diffstat (limited to 'demo')
-rw-r--r-- | demo/css/style.css | 6 | ||||
-rw-r--r-- | demo/images/printliminator2.png | bin | 9840 -> 0 bytes |
2 files changed, 6 insertions, 0 deletions
diff --git a/demo/css/style.css b/demo/css/style.css index 2eb1f81..0616b30 100644 --- a/demo/css/style.css +++ b/demo/css/style.css @@ -24,6 +24,12 @@ h1 { letter-spacing: -2px; margin: 0 0 15px 0; } +#dev-mode { + margin-left: 20px; + vertical-align: middle; + font-size: 20px; + color: red; +} p { margin: 0 0 15px 0; } diff --git a/demo/images/printliminator2.png b/demo/images/printliminator2.png Binary files differdeleted file mode 100644 index d117275..0000000 --- a/demo/images/printliminator2.png +++ /dev/null |