You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/10/23 02:44:26 UTC

docs commit: Removing the survey banner

Repository: cordova-docs
Updated Branches:
  refs/heads/master 5ced7bb92 -> 717481d02


Removing the survey banner


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/717481d0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/717481d0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/717481d0

Branch: refs/heads/master
Commit: 717481d029b4663b993bd076a70e164dfa7ab92a
Parents: 5ced7bb
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Wed Oct 21 17:08:45 2015 -0700
Committer: Raghav Katyal <ra...@microsoft.com>
Committed: Wed Oct 21 17:08:45 2015 -0700

----------------------------------------------------------------------
 www/_includes/banner.html    |  8 --------
 www/_layouts/cordova.html    |  1 -
 www/static/css-src/main.scss | 41 ---------------------------------------
 www/static/js/index.js       | 18 -----------------
 4 files changed, 68 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/717481d0/www/_includes/banner.html
----------------------------------------------------------------------
diff --git a/www/_includes/banner.html b/www/_includes/banner.html
deleted file mode 100644
index 2ba1132..0000000
--- a/www/_includes/banner.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<div class="survey-banner hidden" id="survey-banner">
-    <div class="container">
-        <p class="message">
-            Help us improve Cordova by answering a short <a href="https://apachecordovabot.typeform.com/to/BCc5co" target="_blank">survey</a>.
-        </p>
-    </div>
-    <div class="dismiss-btn" id="survey-banner-dismiss-btn"></div>
-</div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/717481d0/www/_layouts/cordova.html
----------------------------------------------------------------------
diff --git a/www/_layouts/cordova.html b/www/_layouts/cordova.html
index 815d2b6..69c27fd 100644
--- a/www/_layouts/cordova.html
+++ b/www/_layouts/cordova.html
@@ -7,7 +7,6 @@ analytics_id: UA-64283057-3
 {% include head.html %}
 <body>
     {% include header.html %}
-    {% include banner.html %}
     {{ content }}
     {% include footer.html %}
     {% include analytics.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/717481d0/www/static/css-src/main.scss
----------------------------------------------------------------------
diff --git a/www/static/css-src/main.scss b/www/static/css-src/main.scss
index 646229a..ea2410e 100644
--- a/www/static/css-src/main.scss
+++ b/www/static/css-src/main.scss
@@ -135,47 +135,6 @@ code.prettyprint {
     border: none !important;
 }
 
-/* survey banner */
-.survey-banner {
-    background-color: #FFCC00;
-    color: #1E1E1E;
-    font-size: 16px;
-    position: relative;
-}
-
-.survey-banner .container p {
-    margin: 10px 0;
-    padding-right: 42px;
-    text-align: center;
-}
-
-.survey-banner .dismiss-btn {
-    position: absolute;
-    top: 0;
-    right: 0;
-    height: 100%;
-    width: 42px;
-    cursor: pointer;
-}
-
-.survey-banner .dismiss-btn {
-    opacity: 0.5;
-    cursor: pointer;
-}
-
-.survey-banner .dismiss-btn:hover {
-    opacity: 1;
-}
-
-.survey-banner .dismiss-btn:after {
-    content: "\00d7";
-    font-size: 24px;
-    font-weight: bold;
-    display: block;
-    margin-left: 10px;
-    margin-top: 2px;
-}
-
 @import 'home';
 @import 'blog';
 @import 'plugins';

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/717481d0/www/static/js/index.js
----------------------------------------------------------------------
diff --git a/www/static/js/index.js b/www/static/js/index.js
index 445b30b..d8ff155 100644
--- a/www/static/js/index.js
+++ b/www/static/js/index.js
@@ -94,14 +94,6 @@ function checkNotification() {
     return new_blog_count;
 }
 
-function dismissSurvey() {
-    setCookie("surveyDismissed", 1, 365);
-}
-
-function isSurveyDismissed() {
-    return getCookie("surveyDismissed");
-}
-
 $(document).ready(function () {
 
     // code for blog badge
@@ -117,16 +109,6 @@ $(document).ready(function () {
         document.getElementById("new_blog_count").innerHTML = new_blog_count;
     }
 
-    // code for survey banner
-    if(!isSurveyDismissed()) {
-        $("#survey-banner").removeClass("hidden");
-    }
-
-    $("#survey-banner-dismiss-btn").click(function() {
-        dismissSurvey();
-        $("#survey-banner").addClass("hidden");
-    });
-
     // code for click-to-copy functionality
     var client = new ZeroClipboard();
     client.on("ready", function(e) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org