Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 325EB18950 for ; Thu, 20 Aug 2015 01:33:18 +0000 (UTC) Received: (qmail 44180 invoked by uid 500); 20 Aug 2015 01:33:18 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 44108 invoked by uid 500); 20 Aug 2015 01:33:18 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 43816 invoked by uid 99); 20 Aug 2015 01:33:17 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2015 01:33:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 99082E7DA4; Thu, 20 Aug 2015 01:33:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dblotsky@apache.org To: commits@cordova.apache.org Date: Thu, 20 Aug 2015 01:33:26 -0000 Message-Id: In-Reply-To: <6992d921ea2b483b81f64754db64670a@git.apache.org> References: <6992d921ea2b483b81f64754db64670a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [10/10] docs commit: Adding cookie set on page load. This closes #307. Adding cookie set on page load. This closes #307. Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/c268bc06 Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/c268bc06 Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/c268bc06 Branch: refs/heads/cordova-website Commit: c268bc06f139fe8f5b183ce0833d0dd02569ec73 Parents: d53a923 Author: Raghav Katyal Authored: Wed Aug 19 18:10:32 2015 -0700 Committer: Dmitry Blotsky Committed: Wed Aug 19 18:23:35 2015 -0700 ---------------------------------------------------------------------- www/blog/index.html | 9 +++++++++ www/static/js/index.js | 7 +------ 2 files changed, 10 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/c268bc06/www/blog/index.html ---------------------------------------------------------------------- diff --git a/www/blog/index.html b/www/blog/index.html index 223d70c..61f4510 100644 --- a/www/blog/index.html +++ b/www/blog/index.html @@ -3,6 +3,15 @@ layout: blog title: Apache Cordova Blog --- + +
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/c268bc06/www/static/js/index.js ---------------------------------------------------------------------- diff --git a/www/static/js/index.js b/www/static/js/index.js index 15fff82..a6abc2c 100644 --- a/www/static/js/index.js +++ b/www/static/js/index.js @@ -95,11 +95,6 @@ function checkNotification() { return new_blog_count; } -document.getElementById("blog_button").onclick = function() { - var lastPostTime = new Date("{{ site.posts[0].date | date_to_rfc822 }}").getTime(); - setCookie("visitTime", lastPostTime, 365); -}; - $(document).ready(function () { $('.adorner').each(function(i) { var blog_time = new Date($(this).attr('blogTime')).getTime(); @@ -108,7 +103,7 @@ $(document).ready(function () { } }); var new_blog_count = checkNotification(); - if(new_blog_count && window.location.pathname != "/blog/") { + if(new_blog_count) { document.getElementById("new_blog_count").innerHTML = new_blog_count; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org