From 811d72964a4ab186472eaa67a574edc967500e4a Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Fri, 2 Dec 2016 14:15:12 +0530 Subject: [PATCH] feature: add any external js/css lib. fixes #19 --- src/analytics.js | 6 +++- src/index.html | 50 +++++++++++++++++++++++++++---- src/script.js | 77 +++++++++++++++++++++++++++++++++++++++++++----- src/utils.js | 2 ++ 4 files changed, 121 insertions(+), 14 deletions(-) diff --git a/src/analytics.js b/src/analytics.js index 12215b6..e0d4551 100644 --- a/src/analytics.js +++ b/src/analytics.js @@ -1,11 +1,15 @@ window.trackEvent = function (category, action, label, value) { + if (window.DEBUG) { + utils.log('trackevent', category, action, label, value) + return; + } if (window.ga) { ga('send', 'event', category, action, label, value); } } // if online, load after 2 seconds -if (navigator.onLine) { +if (navigator.onLine && !window.DEBUG) { setTimeout(function() { (function(i,s,o,g,r,a,m){ i['GoogleAnalyticsObject']=r; diff --git a/src/index.html b/src/index.html index 7283ac3..ea66639 100644 --- a/src/index.html +++ b/src/index.html @@ -38,6 +38,10 @@ .fr { float: right; } + .relative { + position: relative; + } + .full-width { width: 100%; } .caret { display: inline-block; width: 0; @@ -51,7 +55,7 @@ a > svg { fill: rgba(255, 255, 255, 0.2) } - input[type="text"] { + select, input[type="text"], textarea { padding: 3px 5px; font-size: inherit; } @@ -294,15 +298,16 @@ margin: 0 auto; opacity: 0; padding: 2em; - font-size: 1.5em; - transition: all 0.3s; - transform: scale(0.7); + font-size: 1.3em; + transition: all 0.19s; + transform: translateY(-50px) scale(0.7); } .is-modal-visible { visibility: visible; } .is-modal-visible .modal__content { - transform: scale(1); + transition-duration: 0.3s; + transform: translateY(0px) scale(1); opacity: 1; } .modal-overlay { @@ -523,6 +528,12 @@ visibility: visible; transform: translateX(0); } + .count-label { + color: #ddd; + background: rgba(255,255,255,0.3); + border-radius: 5px; + padding: 1px 6px; + } @@ -530,8 +541,12 @@
+ +