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/08/12 10:03:56 UTC

[1/6] docs commit: Removing old twitterFeed markup

Repository: cordova-docs
Updated Branches:
  refs/heads/cordova-website 5b57775c1 -> 1a4b2485e


Removing old twitterFeed markup


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

Branch: refs/heads/cordova-website
Commit: 400cb17b6fdeb31052537df5c263dc3b63175603
Parents: 1312b1c
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Mon Aug 10 12:55:40 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Wed Aug 12 01:00:44 2015 -0700

----------------------------------------------------------------------
 www/_includes/twitterFeed.html | 36 ------------------------------------
 1 file changed, 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/400cb17b/www/_includes/twitterFeed.html
----------------------------------------------------------------------
diff --git a/www/_includes/twitterFeed.html b/www/_includes/twitterFeed.html
index a4d22a5..aca54e8 100644
--- a/www/_includes/twitterFeed.html
+++ b/www/_includes/twitterFeed.html
@@ -1,39 +1,3 @@
-<!-- <div class="container">
-	<div class="header">
-		<div>@apachecordova</div>
-		<img src="{{ site.baseurl }}/static/img/follow_twitter_rectangle.png">
-	</div>
-	<div class="feed">
-		<ul>
-			<li>
-				<img src="{{ site.baseurl }}/static/img/twitter_profile.png">
-				<div class="date">June 22</div>
-				<div class="name">Apache Cordova</div>
-				<div class="handle">@apachecordova</div>
-				<div class="content">Lirem ipsuin sit amet, tortor just elit. Aenean eros ut.</div>
-				<hr>
-			</li>
-			<li>
-				<img src="{{ site.baseurl }}/static/img/twitter_profile.png">
-				<div class="date">June 20</div>
-				<div class="name">Apache Cordova</div>
-				<div class="handle">@apachecordova</div>
-				<div class="content">Sagites louin tortor just elit. Aenean eros ut.</div>
-				<hr>
-			</li>
-			<li>
-				<img src="{{ site.baseurl }}/static/img/twitter_profile.png">
-				<div class="date">June 12</div>
-				<div class="name">Apache Cordova</div>
-				<div class="handle">@apachecordova</div>
-				<div class="content">Ipsuin sit amet, louin tortor just elit. Aenean eros utLirem ipsuin sit amet, tortor just elit. Aenean eros ut.</div>
-				<hr>
-			</li>			
-		</ul>
-	</div>
-	<div class="promo">Tweet to @ApacheCordova</div>
-</div> -->
-
 <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/apachecordova" data-widget-id="629424968011386884">Tweets by @apachecordova</a>
 
 <script>window.twttr = (function(d, s, id) {


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


[2/6] docs commit: Adding disqus, notifications, twitterfeed and other css changes

Posted by db...@apache.org.
Adding disqus, notifications, twitterfeed and other css changes


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

Branch: refs/heads/cordova-website
Commit: 1312b1c368afe93ba5b2ffc758a54e234d8a770f
Parents: 5b57775
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Mon Aug 10 12:51:00 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Wed Aug 12 01:00:44 2015 -0700

----------------------------------------------------------------------
 www/_includes/comment_count.html | 12 +++++++++
 www/_includes/disqus.html        | 13 +++++++++
 www/_includes/head.html          |  3 +++
 www/_includes/header.html        |  2 +-
 www/_includes/twitterFeed.html   | 23 ++++++++++++++--
 www/_layouts/post.html           | 31 +++++++++++++++++++--
 www/blog/index.html              | 14 +++++++---
 www/static/css-src/blog.scss     | 25 ++++++++++++++++-
 www/static/js/index.js           | 51 +++++++++++++++++++++++++++++++++++
 9 files changed, 164 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1312b1c3/www/_includes/comment_count.html
----------------------------------------------------------------------
diff --git a/www/_includes/comment_count.html b/www/_includes/comment_count.html
new file mode 100644
index 0000000..5a5091e
--- /dev/null
+++ b/www/_includes/comment_count.html
@@ -0,0 +1,12 @@
+<script type="text/javascript">
+    /* * * CONFIGURATION VARIABLES * * */
+    var disqus_shortname = 'cordovablogs';
+    
+    /* * * DON'T EDIT BELOW THIS LINE * * */
+    (function () {
+        var s = document.createElement('script'); s.async = true;
+        s.type = 'text/javascript';
+        s.src = '//' + disqus_shortname + '.disqus.com/count.js';
+        (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
+    }());
+</script>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1312b1c3/www/_includes/disqus.html
----------------------------------------------------------------------
diff --git a/www/_includes/disqus.html b/www/_includes/disqus.html
new file mode 100644
index 0000000..b58f515
--- /dev/null
+++ b/www/_includes/disqus.html
@@ -0,0 +1,13 @@
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+    /* * * CONFIGURATION VARIABLES * * */
+    var disqus_shortname = 'cordovablogs';
+    
+    /* * * DON'T EDIT BELOW THIS LINE * * */
+    (function() {
+        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+    })();
+</script>
+<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1312b1c3/www/_includes/head.html
----------------------------------------------------------------------
diff --git a/www/_includes/head.html b/www/_includes/head.html
index f300942..7750fa7 100644
--- a/www/_includes/head.html
+++ b/www/_includes/head.html
@@ -22,4 +22,7 @@
         <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
         <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
     <![endif]-->
+    <script type="text/javascript">
+        var disqus_developer = 1; // this would set it to developer mode
+    </script> 
 </head>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1312b1c3/www/_includes/header.html
----------------------------------------------------------------------
diff --git a/www/_includes/header.html b/www/_includes/header.html
index 9322ffa..02cbc2b 100644
--- a/www/_includes/header.html
+++ b/www/_includes/header.html
@@ -21,7 +21,7 @@
                         <a href="http://plugins.cordova.io/">Plugins</a>
                     </li>
                     <li {% if page.blog_tab %}class="active"{% endif %}>
-                        <a href="{{ site.baseurl }}/blog">Blog<span class="badge">5</span></a>
+                        <a href="{{ site.baseurl }}/blog" id="blog_button">Blog<span class="badge" id="new_blog_count"></span></a>
                     </li>
                     <li>
                         <a href="{{ site.baseurl }}/contribute">Contribute</a>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1312b1c3/www/_includes/twitterFeed.html
----------------------------------------------------------------------
diff --git a/www/_includes/twitterFeed.html b/www/_includes/twitterFeed.html
index 430f5a9..a4d22a5 100644
--- a/www/_includes/twitterFeed.html
+++ b/www/_includes/twitterFeed.html
@@ -1,4 +1,4 @@
-<div class="container">
+<!-- <div class="container">
 	<div class="header">
 		<div>@apachecordova</div>
 		<img src="{{ site.baseurl }}/static/img/follow_twitter_rectangle.png">
@@ -32,4 +32,23 @@
 		</ul>
 	</div>
 	<div class="promo">Tweet to @ApacheCordova</div>
-</div>
\ No newline at end of file
+</div> -->
+
+<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/apachecordova" data-widget-id="629424968011386884">Tweets by @apachecordova</a>
+
+<script>window.twttr = (function(d, s, id) {
+  var js, fjs = d.getElementsByTagName(s)[0],
+    t = window.twttr || {};
+  if (d.getElementById(id)) return t;
+  js = d.createElement(s);
+  js.id = id;
+  js.src = "https://platform.twitter.com/widgets.js";
+  fjs.parentNode.insertBefore(js, fjs);
+ 
+  t._e = [];
+  t.ready = function(f) {
+    t._e.push(f);
+  };
+ 
+  return t;
+}(document, "script", "twitter-wjs"));</script>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1312b1c3/www/_layouts/post.html
----------------------------------------------------------------------
diff --git a/www/_layouts/post.html b/www/_layouts/post.html
index e77b105..bd008e6 100644
--- a/www/_layouts/post.html
+++ b/www/_layouts/post.html
@@ -8,8 +8,8 @@ layout: blog
             <div class="blogHeader">
                 <h1>Blog</h1>
                 <div>
-                    <img src="{{ site.baseurl }}/static/img/subscribe.png">
-                    <a href="{{ site.baseurl }}{{ site.rss_path }}">Subscribe</a>
+                    <!-- <img src="{{ site.baseurl }}/static/img/subscribe.png"> -->
+                    <!-- <a href="{{ site.baseurl }}{{ site.rss_path }}">Subscribe</a> -->
                 </div>
             </div>
             <div class="post">
@@ -23,6 +23,33 @@ layout: blog
                         {{ content }}
                     </div>
                 </section>
+                <footer>
+                	<div class="row">
+	                	<div class="col-sm-6">
+	                		{% if page.previous %}
+	                			<a href="{{ site.baseurl }}{{ page.previous.url }}">Previous</a>
+	                			<br>
+	                			<br>
+	                			<a class="title" href="{{ site.baseurl }}{{ page.previous.url }}">{{ page.previous.title }}</a>
+	                			<div class="date"> {{ page.previous.date | date_to_string }} - By {{ page.previous.author.name }} </div>
+	                			<div class="content"> {{ page.previous.content | strip_html | truncatewords:20 }} </div>
+	                		{% endif %}		
+	                	</div>	
+	                	<div class="col-sm-6">
+	                		{% if page.next %}
+	                			<a href="{{ site.baseurl }}{{ page.next.url }}">Next</a>
+	                			<br>
+	                			<br>
+	                			<a class="title" href="{{ site.baseurl }}{{ page.next.url }}">{{ page.next.title }}</a>
+	                			<div class="date"> {{ page.next.date | date_to_string }} - By {{ page.next.author.name}} </div>
+	                			<div class="content"> {{ page.next.content | strip_html | truncatewords:20 }} </div>
+	                		{% endif %}	
+	                	</div>	
+                	</div>
+                </footer>
+                <div class="disqus">
+					{% include disqus.html %}
+				</div>
             </div>
         </div>
     </div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1312b1c3/www/blog/index.html
----------------------------------------------------------------------
diff --git a/www/blog/index.html b/www/blog/index.html
index f71f886..9ab19d0 100644
--- a/www/blog/index.html
+++ b/www/blog/index.html
@@ -21,8 +21,12 @@ title: Apache Cordova Blog
                   <div class="adorner"></div>
                   <div>
                     <div class="title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></div>
-                    <div><span class="date">{{ post.date | date_to_string }}</span><span> - by </span><span class="author"><a href="{{ post.author.url }}">{{ post.author.name }}</a></span></div>
-                  </div>
+                    <div>
+                    	<span class="date">{{ post.date | date_to_string }}</span>
+                		<span> - by </span>
+                		<span class="author"><a href="{{ post.author.url }}">{{ post.author.name }}</a></span>
+                		<a class="comment" href="{{ site.baseurl }}{{ post.url }}#disqus_thread">Comments</a>
+                  	</div>	
                 </header>
                 <section class="post-excerpt">
                   <p>{{ post.content | strip_html | truncatewords:80 }}</p>
@@ -36,6 +40,8 @@ title: Apache Cordova Blog
         <div class="col-sm-4 social-container">    
             {% include twitterFeed.html %}        
         </div>
-     </div> 
-  </div>
+     </div>
+ </div>
 </div>
+
+{% include comment_count.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1312b1c3/www/static/css-src/blog.scss
----------------------------------------------------------------------
diff --git a/www/static/css-src/blog.scss b/www/static/css-src/blog.scss
index 3f821aa..358ed32 100644
--- a/www/static/css-src/blog.scss
+++ b/www/static/css-src/blog.scss
@@ -76,6 +76,11 @@
 					
 					.date{
 						color: #2f2f2f;
+					}
+
+					.comment{
+						float: right;
+						font-size: 15px;
 					}			
 				}		
 			}
@@ -203,6 +208,24 @@
 			padding: 40px 0;
 			color: black;
 		}
+		footer{
+			.title{
+				color: #3992ab;
+				font-size: 12pt;
+				margin-top: 20px;
+			}
+			.author, .date{
+				font-size: 10pt;
+				color: #999;
+				padding: 0 2px;			
+			}
+			.content{
+				max-height: 40px;
+			}
+		}
+	}
+	.disqus{
+		margin-top: 30px;
 	}
 	
 	
@@ -222,4 +245,4 @@
 //         </div>           
 //      </div>      
 //   </div>
-// </div>
\ No newline at end of file
+// </div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1312b1c3/www/static/js/index.js
----------------------------------------------------------------------
diff --git a/www/static/js/index.js b/www/static/js/index.js
index 46c3a48..d4954f8 100644
--- a/www/static/js/index.js
+++ b/www/static/js/index.js
@@ -1,3 +1,5 @@
+---
+---
 // Licensed to the Apache Software Foundation (ASF) under one
 // or more contributor license agreements.  See the NOTICE file
 // distributed with this work for additional information
@@ -54,5 +56,54 @@ function submitJiraSearchForm() {
     window.open('https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=show&reset=true&navType=simple&jqlQuery=' + encodeURIComponent(query), '_newtab' + new Date);
 }
 
+function setCookie(cname, cvalue, exdays) {
+    var d = new Date();
+    d.setTime(d.getTime() + (exdays*24*60*60*1000));
+    var expires = "expires="+d.toUTCString();
+    document.cookie = cname + "=" + cvalue + "; " + expires + "path=/";
+}
+
+function getCookie(cname) {
+    var name = cname + "=";
+    var ca = document.cookie.split(';');
+    for(var i=0; i<ca.length; i++) {
+        var c = ca[i];
+        while (c.charAt(0)==' ') c = c.substring(1);
+        if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
+    }
+    return "";
+}
+
+function checkNotification() {
+    var lastVisit = getCookie("visitTime");
+    var dates = [];
+    if (lastVisit != "") {
+        {% for post in site.posts %}
+            dates.push('{{ post.date }}');
+        {% endfor %}
+    }
+    var new_blog_count = 0;
+    for(var i = 0; i < dates.length ; i++) {
+        var blog_time = new Date(dates[i]).getTime();
+        if(blog_time > lastVisit) {
+            new_blog_count++;
+        }
+        else {
+            break;
+        }
+    }
+    return new_blog_count;
+}
+
+document.getElementById("blog_button").onclick = function() {
+    var currentTime = new Date().getTime();
+    setCookie("visitTime", currentTime, 365);
+};
+
+var new_blog_count = checkNotification();
+if(new_blog_count) {
+    document.getElementById("new_blog_count").innerHTML = new_blog_count;
+}
+
 $(document).ready(function () {
 });


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


[3/6] docs commit: Making jquery changes to work on all browsers

Posted by db...@apache.org.
Making jquery changes to work on all browsers


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

Branch: refs/heads/cordova-website
Commit: 98aa8882ac830829531ae0364a8ef7c37af527cb
Parents: 847af70
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Tue Aug 11 17:12:19 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Wed Aug 12 01:00:45 2015 -0700

----------------------------------------------------------------------
 www/blog/index.html    |  7 ++++---
 www/static/js/index.js | 30 +++++++++++++++++++-----------
 2 files changed, 23 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/98aa8882/www/blog/index.html
----------------------------------------------------------------------
diff --git a/www/blog/index.html b/www/blog/index.html
index 47f0f47..f763f5f 100644
--- a/www/blog/index.html
+++ b/www/blog/index.html
@@ -23,10 +23,11 @@ title: Apache Cordova Blog
                     <div class="title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></div>
                     <div>
                     	<span class="date">{{ post.date | date_to_string }}</span>
-                		<span> - by </span>
-                		<span class="author"><a href="{{ post.author.url }}">{{ post.author.name }}</a></span>
-                		<a class="comment" href="{{ site.baseurl }}{{ post.url }}#disqus_thread">Comments</a>
+                		  <span> - by </span>
+                		  <span class="author"><a href="{{ post.author.url }}">{{ post.author.name }}</a></span>
+                		  <a class="comment" href="{{ site.baseurl }}{{ post.url }}#disqus_thread">Comments</a>
                   	</div>	
+                  </div>
                 </header>
                 <section class="post-excerpt">
                   <p>{{ post.content | strip_html | truncatewords:80 }}</p>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/98aa8882/www/static/js/index.js
----------------------------------------------------------------------
diff --git a/www/static/js/index.js b/www/static/js/index.js
index 0da1d7e..ad46691 100644
--- a/www/static/js/index.js
+++ b/www/static/js/index.js
@@ -74,6 +74,13 @@ function getCookie(cname) {
     return "";
 }
 
+function getTimeFromDateTime(dateTime) {
+    var date_value = dateTime.substr(0,10);
+    date_value = date_value.replace(/-/g,'/');
+    var time_value = dateTime.substr(10);
+    return new Date(date_value + time_value).getTime();
+}
+
 var lastVisit = getCookie("visitTime");
 function checkNotification() {
     var dates = [];
@@ -84,7 +91,7 @@ function checkNotification() {
     }
     var new_blog_count = 0;
     for(var i = 0; i < dates.length ; i++) {
-        var blog_time = new Date(dates[i]).getTime();
+        var blog_time = getTimeFromDateTime(dates[i]);
         if(blog_time > lastVisit) {
             new_blog_count++;
         }
@@ -100,17 +107,18 @@ document.getElementById("blog_button").onclick = function() {
     setCookie("visitTime", currentTime, 365);
 };
 
-var new_blog_count = checkNotification();
-if(new_blog_count) {
-    document.getElementById("new_blog_count").innerHTML = new_blog_count;
-}
+$(document).ready(function () {
 
-$('.adorner').each(function(i) {
-    var blog_time = new Date($(this).attr('blogTime')).getTime();
-    if(blog_time > lastVisit) {
-        this.style.backgroundColor = "#3992ab";
+    $('.adorner').each(function(i) {
+        var blog_time = getTimeFromDateTime($(this).attr('blogTime'));
+        if(blog_time > lastVisit) {
+            this.style.backgroundColor = "#3992ab";
+        }
+    });
+
+    var new_blog_count = checkNotification();
+    if(new_blog_count) {
+        document.getElementById("new_blog_count").innerHTML = new_blog_count;
     }
-});
 
-$(document).ready(function () {
 });


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


[4/6] docs commit: Adding icon to new blogs only

Posted by db...@apache.org.
Adding icon to new blogs only


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

Branch: refs/heads/cordova-website
Commit: 847af700a54eea3f4c8bd8f80238547f77bb1ccd
Parents: 400cb17
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Tue Aug 11 14:34:00 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Wed Aug 12 01:00:45 2015 -0700

----------------------------------------------------------------------
 www/blog/index.html          | 2 +-
 www/static/css-src/blog.scss | 2 +-
 www/static/js/index.js       | 9 ++++++++-
 3 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/847af700/www/blog/index.html
----------------------------------------------------------------------
diff --git a/www/blog/index.html b/www/blog/index.html
index 9ab19d0..47f0f47 100644
--- a/www/blog/index.html
+++ b/www/blog/index.html
@@ -18,7 +18,7 @@ title: Apache Cordova Blog
               {% for post in site.posts %}
               <li>
                 <header>
-                  <div class="adorner"></div>
+                  <div class="adorner" blogTime="{{ post.date }}"></div>
                   <div>
                     <div class="title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></div>
                     <div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/847af700/www/static/css-src/blog.scss
----------------------------------------------------------------------
diff --git a/www/static/css-src/blog.scss b/www/static/css-src/blog.scss
index 358ed32..3f2d119 100644
--- a/www/static/css-src/blog.scss
+++ b/www/static/css-src/blog.scss
@@ -37,7 +37,7 @@
 		
 		.posts{
 	
-			li:first-child header .adorner
+			li .newBlog
 			{
 				background-color: #3992ab;
 			} 		

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/847af700/www/static/js/index.js
----------------------------------------------------------------------
diff --git a/www/static/js/index.js b/www/static/js/index.js
index d4954f8..0da1d7e 100644
--- a/www/static/js/index.js
+++ b/www/static/js/index.js
@@ -74,8 +74,8 @@ function getCookie(cname) {
     return "";
 }
 
+var lastVisit = getCookie("visitTime");
 function checkNotification() {
-    var lastVisit = getCookie("visitTime");
     var dates = [];
     if (lastVisit != "") {
         {% for post in site.posts %}
@@ -105,5 +105,12 @@ if(new_blog_count) {
     document.getElementById("new_blog_count").innerHTML = new_blog_count;
 }
 
+$('.adorner').each(function(i) {
+    var blog_time = new Date($(this).attr('blogTime')).getTime();
+    if(blog_time > lastVisit) {
+        this.style.backgroundColor = "#3992ab";
+    }
+});
+
 $(document).ready(function () {
 });


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


[6/6] docs commit: Cleaning up whitespace. This closes #304.

Posted by db...@apache.org.
Cleaning up whitespace. This closes #304.


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

Branch: refs/heads/cordova-website
Commit: 1a4b2485e4dd0cb6ffab4152c5fb6259bbde5098
Parents: 0b5764f
Author: Dmitry Blotsky <dm...@gmail.com>
Authored: Wed Aug 12 01:03:50 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Wed Aug 12 01:03:50 2015 -0700

----------------------------------------------------------------------
 www/_includes/comment_count.html |   4 +-
 www/_includes/disqus.html        |   4 +-
 www/_includes/head.html          |   2 +-
 www/_includes/twitterFeed.html   |   6 +-
 www/_layouts/post.html           |  48 ++--
 www/blog/index.html              |  18 +-
 www/static/css-src/blog.scss     | 470 +++++++++++++++++-----------------
 7 files changed, 276 insertions(+), 276 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1a4b2485/www/_includes/comment_count.html
----------------------------------------------------------------------
diff --git a/www/_includes/comment_count.html b/www/_includes/comment_count.html
index 5a5091e..f07bfcb 100644
--- a/www/_includes/comment_count.html
+++ b/www/_includes/comment_count.html
@@ -1,7 +1,7 @@
 <script type="text/javascript">
     /* * * CONFIGURATION VARIABLES * * */
     var disqus_shortname = 'cordovablogs';
-    
+
     /* * * DON'T EDIT BELOW THIS LINE * * */
     (function () {
         var s = document.createElement('script'); s.async = true;
@@ -9,4 +9,4 @@
         s.src = '//' + disqus_shortname + '.disqus.com/count.js';
         (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
     }());
-</script>
\ No newline at end of file
+</script>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1a4b2485/www/_includes/disqus.html
----------------------------------------------------------------------
diff --git a/www/_includes/disqus.html b/www/_includes/disqus.html
index b58f515..9bc91da 100644
--- a/www/_includes/disqus.html
+++ b/www/_includes/disqus.html
@@ -2,7 +2,7 @@
 <script type="text/javascript">
     /* * * CONFIGURATION VARIABLES * * */
     var disqus_shortname = 'cordovablogs';
-    
+
     /* * * DON'T EDIT BELOW THIS LINE * * */
     (function() {
         var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
@@ -10,4 +10,4 @@
         (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
     })();
 </script>
-<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
\ No newline at end of file
+<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1a4b2485/www/_includes/head.html
----------------------------------------------------------------------
diff --git a/www/_includes/head.html b/www/_includes/head.html
index 7750fa7..d5616b5 100644
--- a/www/_includes/head.html
+++ b/www/_includes/head.html
@@ -24,5 +24,5 @@
     <![endif]-->
     <script type="text/javascript">
         var disqus_developer = 1; // this would set it to developer mode
-    </script> 
+    </script>
 </head>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1a4b2485/www/_includes/twitterFeed.html
----------------------------------------------------------------------
diff --git a/www/_includes/twitterFeed.html b/www/_includes/twitterFeed.html
index aca54e8..4d24486 100644
--- a/www/_includes/twitterFeed.html
+++ b/www/_includes/twitterFeed.html
@@ -8,11 +8,11 @@
   js.id = id;
   js.src = "https://platform.twitter.com/widgets.js";
   fjs.parentNode.insertBefore(js, fjs);
- 
+
   t._e = [];
   t.ready = function(f) {
     t._e.push(f);
   };
- 
+
   return t;
-}(document, "script", "twitter-wjs"));</script>
\ No newline at end of file
+}(document, "script", "twitter-wjs"));</script>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1a4b2485/www/_layouts/post.html
----------------------------------------------------------------------
diff --git a/www/_layouts/post.html b/www/_layouts/post.html
index bd008e6..1472a7e 100644
--- a/www/_layouts/post.html
+++ b/www/_layouts/post.html
@@ -24,32 +24,32 @@ layout: blog
                     </div>
                 </section>
                 <footer>
-                	<div class="row">
-	                	<div class="col-sm-6">
-	                		{% if page.previous %}
-	                			<a href="{{ site.baseurl }}{{ page.previous.url }}">Previous</a>
-	                			<br>
-	                			<br>
-	                			<a class="title" href="{{ site.baseurl }}{{ page.previous.url }}">{{ page.previous.title }}</a>
-	                			<div class="date"> {{ page.previous.date | date_to_string }} - By {{ page.previous.author.name }} </div>
-	                			<div class="content"> {{ page.previous.content | strip_html | truncatewords:20 }} </div>
-	                		{% endif %}		
-	                	</div>	
-	                	<div class="col-sm-6">
-	                		{% if page.next %}
-	                			<a href="{{ site.baseurl }}{{ page.next.url }}">Next</a>
-	                			<br>
-	                			<br>
-	                			<a class="title" href="{{ site.baseurl }}{{ page.next.url }}">{{ page.next.title }}</a>
-	                			<div class="date"> {{ page.next.date | date_to_string }} - By {{ page.next.author.name}} </div>
-	                			<div class="content"> {{ page.next.content | strip_html | truncatewords:20 }} </div>
-	                		{% endif %}	
-	                	</div>	
-                	</div>
+                    <div class="row">
+                        <div class="col-sm-6">
+                            {% if page.previous %}
+                                <a href="{{ site.baseurl }}{{ page.previous.url }}">Previous</a>
+                                <br>
+                                <br>
+                                <a class="title" href="{{ site.baseurl }}{{ page.previous.url }}">{{ page.previous.title }}</a>
+                                <div class="date"> {{ page.previous.date | date_to_string }} - By {{ page.previous.author.name }} </div>
+                                <div class="content"> {{ page.previous.content | strip_html | truncatewords:20 }} </div>
+                            {% endif %}
+                        </div>
+                        <div class="col-sm-6">
+                            {% if page.next %}
+                                <a href="{{ site.baseurl }}{{ page.next.url }}">Next</a>
+                                <br>
+                                <br>
+                                <a class="title" href="{{ site.baseurl }}{{ page.next.url }}">{{ page.next.title }}</a>
+                                <div class="date"> {{ page.next.date | date_to_string }} - By {{ page.next.author.name}} </div>
+                                <div class="content"> {{ page.next.content | strip_html | truncatewords:20 }} </div>
+                            {% endif %}
+                        </div>
+                    </div>
                 </footer>
                 <div class="disqus">
-					{% include disqus.html %}
-				</div>
+                    {% include disqus.html %}
+                </div>
             </div>
         </div>
     </div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1a4b2485/www/blog/index.html
----------------------------------------------------------------------
diff --git a/www/blog/index.html b/www/blog/index.html
index 3d7892e..53b7b6d 100644
--- a/www/blog/index.html
+++ b/www/blog/index.html
@@ -6,7 +6,7 @@ title: Apache Cordova Blog
 <div class="blog">
   <div id="content" class="container">
      <div class="row">
-        <div class="col-sm-8 blog-list">  
+        <div class="col-sm-8 blog-list">
           <div class="blogHeader">
             <h1>Blog</h1>
             <div>
@@ -22,11 +22,11 @@ title: Apache Cordova Blog
                   <div>
                     <div class="title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></div>
                     <div>
-                    	<span class="date">{{ post.date | date_to_string }}</span>
-                		  <span> - by </span>
-                		  <span class="author"><a href="{{ post.author.url }}">{{ post.author.name }}</a></span>
-                		  <a class="comment" href="{{ site.baseurl }}{{ post.url }}#disqus_thread">Comments</a>
-                  	</div>	
+                      <span class="date">{{ post.date | date_to_string }}</span>
+                      <span> - by </span>
+                      <span class="author"><a href="{{ post.author.url }}">{{ post.author.name }}</a></span>
+                      <a class="comment" href="{{ site.baseurl }}{{ post.url }}#disqus_thread">Comments</a>
+                    </div>
                   </div>
                 </header>
                 <section class="post-excerpt">
@@ -37,9 +37,9 @@ title: Apache Cordova Blog
               {% endfor %}
           </ul>
           <!-- <a href="http://feed1.w3.org/check.cgi?url={{ site.baseurl }}{{ site.rss_path }}"><img src="{{ site.baseurl }}/static/img/valid-rss-rogers.png" alt="[Valid RSS]" title="Validate my RSS feed" /></a> -->
-        </div>  
-        <div class="col-sm-4 social-container">    
-            {% include twitterFeed.html %}        
+        </div>
+        <div class="col-sm-4 social-container">
+            {% include twitterFeed.html %}
         </div>
      </div>
  </div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/1a4b2485/www/static/css-src/blog.scss
----------------------------------------------------------------------
diff --git a/www/static/css-src/blog.scss b/www/static/css-src/blog.scss
index 3f2d119..6f8a625 100644
--- a/www/static/css-src/blog.scss
+++ b/www/static/css-src/blog.scss
@@ -1,236 +1,236 @@
-.blog{	
-	.blogHeader{	
-		position: relative;
-		padding-bottom:26px;
-		padding-left:40px;	
-		h1{
-			color: #b58733;
-			font-size: 30pt;		
-		}			
-		div{
-			position: absolute;
-			top: 20px;    	
-	    	left: 126px;
-					
-			img{
-				float: left;
-				padding-left:14px;
-			}
-			a{
-				float: left;
-				font-size: 12pt;
-				padding-left:4px;
-				font-weight: lighter;
-				color: #4cc2e4;
-			}	
-		}					
-	}
-	//landing page
-	.blog-list{
-		max-width: 700px;
-		padding-top: 10px;
-		padding-right: 30px;
-		
-		ul {
-			list-style-type: none;
-		}
-		
-		.posts{
-	
-			li .newBlog
-			{
-				background-color: #3992ab;
-			} 		
-			
-			header{
-				
-				position: relative;
-				height: 64px;
-				
-				.adorner{
-					height: 50px;
-				    width: 5px;
-				    background-color: #f2f2f2;
-				    position: absolute;
-				    left: -20px;
-				}
-						
-				.title{
-					text-overflow: ellipsis;
-					overflow: hidden;
-					white-space: nowrap;
-				}
-				
-				div:nth-of-type(2){
-					color: #b58733;
-					font-size: 18pt;
-					top:-4px;
-					position: relative;
-					
-					span {
-					    font-size: 80%;
-						color: #999;
-						position: relative;
-						top:-6px;
-					}
-					
-					.date{
-						color: #2f2f2f;
-					}
-
-					.comment{
-						float: right;
-						font-size: 15px;
-					}			
-				}		
-			}
-			section{
-				padding-bottom: 100px;						
-			}
-			
-		}
-
-	}
-	
-	.social-container{
-		max-width: 360px;
-		padding-top: 140px;
-		
-		.container{
-			background-color: #f2f2f2;
-			width: 330px;
-			height: 868px;
-			
-			.header{
-			    position: relative;
-			    padding-top: 24px;
-			    padding-bottom: 20px;
-				
-				div{
-					float:left;
-					color: #808080;
-					font-size: 18px;
-					padding-left:2px;
-				}
-				
-				img{
-					padding-left:18px;
-				}
-				
-			}
-			
-			.feed{
-			    background-color: white;
-				height: 730px;
-			    padding: 14px;
-				
-				ul {
-					list-style-type: none;
-					padding: 0;
-					
-					li{
-						position: relative;
-					
-						img{
-							top: 0px;
-							float: left;
-						}
-						.name{
-							color: black;
-							text-overflow: ellipsis;
-							overflow: hidden;
-							white-space: nowrap;
-							font-weight: bold;
-							font-size: 110%;
-							padding-left: 8px;
-						}
-						.handle{
-							color:gray;
-							font-weight: lighter;
-							text-overflow: ellipsis;
-							overflow: hidden;
-							white-space: nowrap;
-							font-size: 90%;	
-							padding-left: 7px;
-							margin-top: -3px;					
-						}
-						.date{
-							color: gray;
-							font-weight: bold;
-							float: right;
-						}
-						.content{
-							color: black;
-							padding-top: 4px;
-							padding-left: 1px;
-						}													
-					}
-										
-				}
-			}
-			.promo{
-				color: gray;
-			    background-color: white;
-			    height: 42px;
-			    padding-top: 10px;
-			    margin-top: 12px;
-			    text-align: center;
-			    font-size: 110%;
-			}
-
-		}
-	
-	}
-	
-	
-	//blog post page
-	.post{
-		padding:0 40px;
-		
-		header{
-
-			.title{
-				color: #3992ab;
-				font-size: 30pt;
-			}
-			.author, .date{
-				font-size: 14pt;
-				color: #999;
-				padding: 0 2px;			
-			}
-			.date{
-				float:right;
-				position: relative;
-				top:-20pt;		
-			}						
-		}		
-		section{
-			padding: 40px 0;
-			color: black;
-		}
-		footer{
-			.title{
-				color: #3992ab;
-				font-size: 12pt;
-				margin-top: 20px;
-			}
-			.author, .date{
-				font-size: 10pt;
-				color: #999;
-				padding: 0 2px;			
-			}
-			.content{
-				max-height: 40px;
-			}
-		}
-	}
-	.disqus{
-		margin-top: 30px;
-	}
-	
-	
+.blog{
+    .blogHeader{
+        position: relative;
+        padding-bottom:26px;
+        padding-left:40px;
+        h1{
+            color: #b58733;
+            font-size: 30pt;
+        }
+        div{
+            position: absolute;
+            top: 20px;
+            left: 126px;
+
+            img{
+                float: left;
+                padding-left:14px;
+            }
+            a{
+                float: left;
+                font-size: 12pt;
+                padding-left:4px;
+                font-weight: lighter;
+                color: #4cc2e4;
+            }
+        }
+    }
+    //landing page
+    .blog-list{
+        max-width: 700px;
+        padding-top: 10px;
+        padding-right: 30px;
+
+        ul {
+            list-style-type: none;
+        }
+
+        .posts{
+
+            li .newBlog
+            {
+                background-color: #3992ab;
+            }
+
+            header{
+
+                position: relative;
+                height: 64px;
+
+                .adorner{
+                    height: 50px;
+                    width: 5px;
+                    background-color: #f2f2f2;
+                    position: absolute;
+                    left: -20px;
+                }
+
+                .title{
+                    text-overflow: ellipsis;
+                    overflow: hidden;
+                    white-space: nowrap;
+                }
+
+                div:nth-of-type(2){
+                    color: #b58733;
+                    font-size: 18pt;
+                    top:-4px;
+                    position: relative;
+
+                    span {
+                        font-size: 80%;
+                        color: #999;
+                        position: relative;
+                        top:-6px;
+                    }
+
+                    .date{
+                        color: #2f2f2f;
+                    }
+
+                    .comment{
+                        float: right;
+                        font-size: 15px;
+                    }
+                }
+            }
+            section{
+                padding-bottom: 100px;
+            }
+
+        }
+
+    }
+
+    .social-container{
+        max-width: 360px;
+        padding-top: 140px;
+
+        .container{
+            background-color: #f2f2f2;
+            width: 330px;
+            height: 868px;
+
+            .header{
+                position: relative;
+                padding-top: 24px;
+                padding-bottom: 20px;
+
+                div{
+                    float:left;
+                    color: #808080;
+                    font-size: 18px;
+                    padding-left:2px;
+                }
+
+                img{
+                    padding-left:18px;
+                }
+
+            }
+
+            .feed{
+                background-color: white;
+                height: 730px;
+                padding: 14px;
+
+                ul {
+                    list-style-type: none;
+                    padding: 0;
+
+                    li{
+                        position: relative;
+
+                        img{
+                            top: 0px;
+                            float: left;
+                        }
+                        .name{
+                            color: black;
+                            text-overflow: ellipsis;
+                            overflow: hidden;
+                            white-space: nowrap;
+                            font-weight: bold;
+                            font-size: 110%;
+                            padding-left: 8px;
+                        }
+                        .handle{
+                            color:gray;
+                            font-weight: lighter;
+                            text-overflow: ellipsis;
+                            overflow: hidden;
+                            white-space: nowrap;
+                            font-size: 90%;
+                            padding-left: 7px;
+                            margin-top: -3px;
+                        }
+                        .date{
+                            color: gray;
+                            font-weight: bold;
+                            float: right;
+                        }
+                        .content{
+                            color: black;
+                            padding-top: 4px;
+                            padding-left: 1px;
+                        }
+                    }
+
+                }
+            }
+            .promo{
+                color: gray;
+                background-color: white;
+                height: 42px;
+                padding-top: 10px;
+                margin-top: 12px;
+                text-align: center;
+                font-size: 110%;
+            }
+
+        }
+
+    }
+
+
+    //blog post page
+    .post{
+        padding:0 40px;
+
+        header{
+
+            .title{
+                color: #3992ab;
+                font-size: 30pt;
+            }
+            .author, .date{
+                font-size: 14pt;
+                color: #999;
+                padding: 0 2px;
+            }
+            .date{
+                float:right;
+                position: relative;
+                top:-20pt;
+            }
+        }
+        section{
+            padding: 40px 0;
+            color: black;
+        }
+        footer{
+            .title{
+                color: #3992ab;
+                font-size: 12pt;
+                margin-top: 20px;
+            }
+            .author, .date{
+                font-size: 10pt;
+                color: #999;
+                padding: 0 2px;
+            }
+            .content{
+                max-height: 40px;
+            }
+        }
+    }
+    .disqus{
+        margin-top: 30px;
+    }
+
+
 }
-           
+
 //         <div class="post">
 //             <header>
 //               <div class="title">{{ page.title }}</div>
@@ -241,8 +241,8 @@
 //               <div class="content">
 //                 {{ content }}
 //               </div>
-//             </section>          
-//         </div>           
-//      </div>      
+//             </section>
+//         </div>
+//      </div>
 //   </div>
 // </div>


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


[5/6] docs commit: Better way to handle dates across browsers

Posted by db...@apache.org.
Better way to handle dates across browsers


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

Branch: refs/heads/cordova-website
Commit: 0b5764ffb2d23e7ad93a2eaf37370cc5506eebd2
Parents: 98aa888
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Tue Aug 11 17:23:12 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Wed Aug 12 01:00:45 2015 -0700

----------------------------------------------------------------------
 www/blog/index.html    |  2 +-
 www/static/js/index.js | 13 +++----------
 2 files changed, 4 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/0b5764ff/www/blog/index.html
----------------------------------------------------------------------
diff --git a/www/blog/index.html b/www/blog/index.html
index f763f5f..3d7892e 100644
--- a/www/blog/index.html
+++ b/www/blog/index.html
@@ -18,7 +18,7 @@ title: Apache Cordova Blog
               {% for post in site.posts %}
               <li>
                 <header>
-                  <div class="adorner" blogTime="{{ post.date }}"></div>
+                  <div class="adorner" blogTime="{{ post.date | date_to_rfc822 }}"></div>
                   <div>
                     <div class="title"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></div>
                     <div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/0b5764ff/www/static/js/index.js
----------------------------------------------------------------------
diff --git a/www/static/js/index.js b/www/static/js/index.js
index ad46691..54ce691 100644
--- a/www/static/js/index.js
+++ b/www/static/js/index.js
@@ -74,24 +74,17 @@ function getCookie(cname) {
     return "";
 }
 
-function getTimeFromDateTime(dateTime) {
-    var date_value = dateTime.substr(0,10);
-    date_value = date_value.replace(/-/g,'/');
-    var time_value = dateTime.substr(10);
-    return new Date(date_value + time_value).getTime();
-}
-
 var lastVisit = getCookie("visitTime");
 function checkNotification() {
     var dates = [];
     if (lastVisit != "") {
         {% for post in site.posts %}
-            dates.push('{{ post.date }}');
+            dates.push('{{ post.date | date_to_rfc822 }}');
         {% endfor %}
     }
     var new_blog_count = 0;
     for(var i = 0; i < dates.length ; i++) {
-        var blog_time = getTimeFromDateTime(dates[i]);
+        var blog_time = new Date(dates[i]).getTime();
         if(blog_time > lastVisit) {
             new_blog_count++;
         }
@@ -110,7 +103,7 @@ document.getElementById("blog_button").onclick = function() {
 $(document).ready(function () {
 
     $('.adorner').each(function(i) {
-        var blog_time = getTimeFromDateTime($(this).attr('blogTime'));
+        var blog_time = new Date($(this).attr('blogTime')).getTime();
         if(blog_time > lastVisit) {
             this.style.backgroundColor = "#3992ab";
         }


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