1. Juan Carlos Picado Herrera
  2. encuestame

Commits

Juan Carlos Picado Herrera  committed 7e3b578

Social Button Css.
Facebook Connect Button.

git-svn-id: http://svn.encuesta.me/trunk/encuestame@99839e2479b-dd58-4041-9f67-69c9b71f0610

  • Participants
  • Parent commits 08f6de1
  • Branches master

Comments (0)

Files changed (10)

File encuestame-war/src/main/webapp/WEB-INF/jsp/home.jsp

View file
  • Ignore whitespace
+<%@ include file="/WEB-INF/jsp/includes/taglibs.jsp" %>
+<%@ include file="/WEB-INF/jsp/includes/initPage.jsp" %>
+<%@ include file="/WEB-INF/jsp/includes/publicBody.jsp" %>
+    <div id="mainPublicLineWrapper">
+                   <div style="float: right; border: 0px solid rgb(0, 0, 0); width: 20%;">
+                               In progress...
+                  </div>
+                  <div class="itemWrapper" style="border: 0px solid #FFF; width: 79%;">
+
+          <div class="categoryMenu">
+                <div style="clear: both;">
+                <div style="float: right;">
+                    filter by date
+                </div>
+                <div style="float: left;">
+                    <span><a href="#">All Surveys</a></span>
+                    <span><a href="#">All TweetPoll</a></span>
+                    <span><a href="#">All Poll</a></span>
+                </div>
+                </div>
+            </div>
+
+             <div class="item">
+                <div class="img">
+                        <div class="stats">
+                            <div class="vote">
+                                <div>
+                                    <span class="count"><strong>150</strong></span>
+                                    <div class="viewcount">answers</div>
+                                </div>
+                            </div>
+                            <div class="views">
+                               50 views
+                            </div>
+                        </div>
+                </div>
+                <div class="content">
+                    <h3>
+                         <a href="/survey/12345">Ever take silverware, glasses or other serving ware from a restaurant
+                            becouse Nicaragua is the country more poor of the region?</a>
+                    </h3>
+                    <div style="padding: 2px;">
+
+                    </div>
+                    <div class="bottom">
+                       <div class="share">
+                                <span class="title">Share on:</span><br/>
+                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
+                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
+                       </div>
+                       <div class="options">
+                            <div class="image">
+                                    <img width="32" height="32" alt=""
+                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
+                            </div>
+                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
+                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
+
+                       </div>
+                       <div class="tags">
+                                <a href="#" class="tag">Nicaragua</a>
+                                <a href="#" class="tag">Venezuela</a>
+                                <a href="#" class="tag">Hugo Chavez</a>
+                                <a href="#" class="tag">Estados Unidos</a>
+                                <a href="#" class="tag">Guerra</a>
+                       </div>
+                    </div>
+                </div>
+                <p class="clear"></p>
+            </div>
+
+
+          <div class="item">
+                <div class="img">
+                        <div class="stats">
+                            <div class="vote">
+                                <div>
+                                    <span class="count"><strong>450</strong></span>
+                                    <div class="viewcount">answers</div>
+                                </div>
+                            </div>
+                            <div class="views">
+                              2350 views
+                            </div>
+                        </div>
+                </div>
+                <div class="content">
+                    <h3>
+                         <a href="/survey/12345">Should schools sharing $10 billion in emergency aid to rehire teachers this fall be allowed to hold onto that money for next year's budget?</a>
+                    </h3>
+                    <div style="padding: 2px;">
+
+                    </div>
+                    <div class="bottom">
+                       <div class="share">
+                                <span class="title">Share on:</span><br/>
+                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
+                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
+                       </div>
+                       <div class="options">
+                            <div class="image">
+                                    <img width="32" height="32" alt=""
+                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
+                            </div>
+                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
+                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
+
+                       </div>
+                       <div class="tags">
+                                <a href="#" class="tag">Nicaragua</a>
+                                <a href="#" class="tag">Venezuela</a>
+                                <a href="#" class="tag">Hugo Chavez</a>
+                                <a href="#" class="tag">Estados Unidos</a>
+                                <a href="#" class="tag">Guerra</a>
+                       </div>
+                    </div>
+                </div>
+                <p class="clear"></p>
+            </div>
+
+
+        <div class="item">
+                <div class="img">
+                        <div class="stats">
+                            <div class="vote">
+                                <div>
+                                    <span class="count"><strong>1450</strong></span>
+                                    <div class="viewcount">answers</div>
+                                </div>
+                            </div>
+                            <div class="views">
+                              12350 views
+                            </div>
+                        </div>
+                </div>
+                <div class="content">
+                    <h3>
+                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
+                    </h3>
+                    <div style="padding: 2px;">
+
+                    </div>
+                    <div class="bottom">
+                       <div class="share">
+                                <span class="title">Share on:</span><br/>
+                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
+                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
+                       </div>
+                       <div class="options">
+                            <div class="image">
+                                    <img width="32" height="32" alt=""
+                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
+                            </div>
+                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
+                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
+
+                       </div>
+                       <div class="tags">
+                                <a href="#" class="tag">Nicaragua</a>
+                                <a href="#" class="tag">Venezuela</a>
+                                <a href="#" class="tag">Hugo Chavez</a>
+                                <a href="#" class="tag">Estados Unidos</a>
+                                <a href="#" class="tag">Guerra</a>
+                       </div>
+                    </div>
+                </div>
+                <p class="clear"></p>
+            </div>
+
+
+                    <div class="item">
+                <div class="img">
+                        <div class="stats">
+                            <div class="vote">
+                                <div>
+                                    <span class="count"><strong>3450</strong></span>
+                                    <div class="viewcount">answers</div>
+                                </div>
+                            </div>
+                            <div class="views">
+                              12350 views
+                            </div>
+                        </div>
+                </div>
+                <div class="content">
+                    <h3>
+                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
+                    </h3>
+                    <div style="padding: 2px;">
+
+                    </div>
+                    <div class="bottom">
+                       <div class="share">
+                                <span class="title">Share on:</span><br/>
+                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
+                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
+                       </div>
+                       <div class="options">
+                            <div class="image">
+                                    <img width="32" height="32" alt=""
+                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
+                            </div>
+                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
+                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
+
+                       </div>
+                       <div class="tags">
+                                <a href="#" class="tag">Nicaragua</a>
+                                <a href="#" class="tag">Venezuela</a>
+                                <a href="#" class="tag">Hugo Chavez</a>
+                                <a href="#" class="tag">Estados Unidos</a>
+                                <a href="#" class="tag">Guerra</a>
+                       </div>
+                    </div>
+                </div>
+                <p class="clear"></p>
+            </div>
+
+
+                    <div class="item">
+                <div class="img">
+                        <div class="stats">
+                            <div class="vote">
+                                <div>
+                                    <span class="count"><strong>230</strong></span>
+                                    <div class="viewcount">answers</div>
+                                </div>
+                            </div>
+                            <div class="views">
+                              12350 views
+                            </div>
+                        </div>
+                </div>
+                <div class="content">
+                    <h3>
+                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
+                    </h3>
+                    <div style="padding: 2px;">
+
+                    </div>
+                    <div class="bottom">
+                       <div class="share">
+                                <span class="title">Share on:</span><br/>
+                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
+                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
+                       </div>
+                       <div class="options">
+                            <div class="image">
+                                    <img width="32" height="32" alt=""
+                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
+                            </div>
+                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
+                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
+
+                       </div>
+                       <div class="tags">
+                                <a href="#" class="tag">Nicaragua</a>
+                                <a href="#" class="tag">Venezuela</a>
+                                <a href="#" class="tag">Hugo Chavez</a>
+                                <a href="#" class="tag">Estados Unidos</a>
+                                <a href="#" class="tag">Guerra</a>
+                       </div>
+                    </div>
+                </div>
+                <p class="clear"></p>
+            </div>
+
+
+                    <div class="item">
+                <div class="img">
+                        <div class="stats">
+                            <div class="vote">
+                                <div>
+                                    <span class="count"><strong>150</strong></span>
+                                    <div class="viewcount">answers</div>
+                                </div>
+                            </div>
+                            <div class="views">
+                              1350 views
+                            </div>
+                        </div>
+                </div>
+                <div class="content">
+                    <h3>
+                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
+                    </h3>
+                    <div style="padding: 2px;">
+
+                    </div>
+                    <div class="bottom">
+                       <div class="share">
+                                <span class="title">Share on:</span><br/>
+                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
+                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
+                       </div>
+                       <div class="options">
+                            <div class="image">
+                                    <img width="32" height="32" alt=""
+                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
+                            </div>
+                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
+                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
+
+                       </div>
+                       <div class="tags">
+                                <a href="#" class="tag">Nicaragua</a>
+                                <a href="#" class="tag">Venezuela</a>
+                                <a href="#" class="tag">Hugo Chavez</a>
+                                <a href="#" class="tag">Estados Unidos</a>
+                                <a href="#" class="tag">Guerra</a>
+                       </div>
+                    </div>
+                </div>
+                <p class="clear"></p>
+            </div>
+
+
+                    <div class="item">
+                <div class="img">
+                        <div class="stats">
+                            <div class="vote">
+                                <div>
+                                    <span class="count"><strong>450</strong></span>
+                                    <div class="viewcount">answers</div>
+                                </div>
+                            </div>
+                            <div class="views">
+                              12350 views
+                            </div>
+                        </div>
+                </div>
+                <div class="content">
+                    <h3>
+                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
+                    </h3>
+                    <div style="padding: 2px;">
+
+                    </div>
+                    <div class="bottom">
+                       <div class="share">
+                                <span class="title">Share on:</span><br/>
+                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
+                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
+                       </div>
+                       <div class="options">
+                            <div class="image">
+                                    <img width="32" height="32" alt=""
+                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
+                            </div>
+                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
+                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
+
+                       </div>
+                       <div class="tags">
+                                <a href="#" class="tag">Nicaragua</a>
+                                <a href="#" class="tag">Venezuela</a>
+                                <a href="#" class="tag">Hugo Chavez</a>
+                                <a href="#" class="tag">Estados Unidos</a>
+                                <a href="#" class="tag">Guerra</a>
+                       </div>
+                    </div>
+                </div>
+                <p class="clear"></p>
+            </div>
+    </div>
+            </div>
+<%@ include file="/WEB-INF/jsp/includes/endBody.jsp" %>
+<%@ include file="/WEB-INF/jsp/includes/validate.jsp" %>
+<%@ include file="/WEB-INF/jsp/includes/footer.jsp" %>

File encuestame-war/src/main/webapp/WEB-INF/jsp/includes/taglibs.jsp

View file
  • Ignore whitespace
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
 <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
-<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
+<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
+<%@ taglib uri="http://www.springframework.org/spring-social/facebook/tags" prefix="facebook" %>

File encuestame-war/src/main/webapp/WEB-INF/jsp/index.jsp

  • Ignore whitespace
-<%@ include file="/WEB-INF/jsp/includes/taglibs.jsp" %>
-<%@ include file="/WEB-INF/jsp/includes/initPage.jsp" %>
-<%@ include file="/WEB-INF/jsp/includes/publicBody.jsp" %>
-    <div id="mainPublicLineWrapper">
-                   <div style="float: right; border: 0px solid rgb(0, 0, 0); width: 20%;">
-                               In progress...
-                  </div>
-                  <div class="itemWrapper" style="border: 0px solid #FFF; width: 79%;">
-
-          <div class="categoryMenu">
-                <div style="clear: both;">
-                <div style="float: right;">
-                    filter by date
-                </div>
-                <div style="float: left;">
-                    <span><a href="#">All Surveys</a></span>
-                    <span><a href="#">All TweetPoll</a></span>
-                    <span><a href="#">All Poll</a></span>
-                </div>
-                </div>
-            </div>
-
-             <div class="item">
-                <div class="img">
-                        <div class="stats">
-                            <div class="vote">
-                                <div>
-                                    <span class="count"><strong>150</strong></span>
-                                    <div class="viewcount">answers</div>
-                                </div>
-                            </div>
-                            <div class="views">
-                               50 views
-                            </div>
-                        </div>
-                </div>
-                <div class="content">
-                    <h3>
-                         <a href="/survey/12345">Ever take silverware, glasses or other serving ware from a restaurant
-                            becouse Nicaragua is the country more poor of the region?</a>
-                    </h3>
-                    <div style="padding: 2px;">
-
-                    </div>
-                    <div class="bottom">
-                       <div class="share">
-                                <span class="title">Share on:</span><br/>
-                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
-                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
-                       </div>
-                       <div class="options">
-                            <div class="image">
-                                    <img width="32" height="32" alt=""
-                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
-                            </div>
-                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
-                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
-
-                       </div>
-                       <div class="tags">
-                                <a href="#" class="tag">Nicaragua</a>
-                                <a href="#" class="tag">Venezuela</a>
-                                <a href="#" class="tag">Hugo Chavez</a>
-                                <a href="#" class="tag">Estados Unidos</a>
-                                <a href="#" class="tag">Guerra</a>
-                       </div>
-                    </div>
-                </div>
-                <p class="clear"></p>
-            </div>
-
-
-          <div class="item">
-                <div class="img">
-                        <div class="stats">
-                            <div class="vote">
-                                <div>
-                                    <span class="count"><strong>450</strong></span>
-                                    <div class="viewcount">answers</div>
-                                </div>
-                            </div>
-                            <div class="views">
-                              2350 views
-                            </div>
-                        </div>
-                </div>
-                <div class="content">
-                    <h3>
-                         <a href="/survey/12345">Should schools sharing $10 billion in emergency aid to rehire teachers this fall be allowed to hold onto that money for next year's budget?</a>
-                    </h3>
-                    <div style="padding: 2px;">
-
-                    </div>
-                    <div class="bottom">
-                       <div class="share">
-                                <span class="title">Share on:</span><br/>
-                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
-                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
-                       </div>
-                       <div class="options">
-                            <div class="image">
-                                    <img width="32" height="32" alt=""
-                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
-                            </div>
-                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
-                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
-
-                       </div>
-                       <div class="tags">
-                                <a href="#" class="tag">Nicaragua</a>
-                                <a href="#" class="tag">Venezuela</a>
-                                <a href="#" class="tag">Hugo Chavez</a>
-                                <a href="#" class="tag">Estados Unidos</a>
-                                <a href="#" class="tag">Guerra</a>
-                       </div>
-                    </div>
-                </div>
-                <p class="clear"></p>
-            </div>
-
-
-        <div class="item">
-                <div class="img">
-                        <div class="stats">
-                            <div class="vote">
-                                <div>
-                                    <span class="count"><strong>1450</strong></span>
-                                    <div class="viewcount">answers</div>
-                                </div>
-                            </div>
-                            <div class="views">
-                              12350 views
-                            </div>
-                        </div>
-                </div>
-                <div class="content">
-                    <h3>
-                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
-                    </h3>
-                    <div style="padding: 2px;">
-
-                    </div>
-                    <div class="bottom">
-                       <div class="share">
-                                <span class="title">Share on:</span><br/>
-                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
-                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
-                       </div>
-                       <div class="options">
-                            <div class="image">
-                                    <img width="32" height="32" alt=""
-                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
-                            </div>
-                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
-                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
-
-                       </div>
-                       <div class="tags">
-                                <a href="#" class="tag">Nicaragua</a>
-                                <a href="#" class="tag">Venezuela</a>
-                                <a href="#" class="tag">Hugo Chavez</a>
-                                <a href="#" class="tag">Estados Unidos</a>
-                                <a href="#" class="tag">Guerra</a>
-                       </div>
-                    </div>
-                </div>
-                <p class="clear"></p>
-            </div>
-
-
-                    <div class="item">
-                <div class="img">
-                        <div class="stats">
-                            <div class="vote">
-                                <div>
-                                    <span class="count"><strong>3450</strong></span>
-                                    <div class="viewcount">answers</div>
-                                </div>
-                            </div>
-                            <div class="views">
-                              12350 views
-                            </div>
-                        </div>
-                </div>
-                <div class="content">
-                    <h3>
-                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
-                    </h3>
-                    <div style="padding: 2px;">
-
-                    </div>
-                    <div class="bottom">
-                       <div class="share">
-                                <span class="title">Share on:</span><br/>
-                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
-                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
-                       </div>
-                       <div class="options">
-                            <div class="image">
-                                    <img width="32" height="32" alt=""
-                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
-                            </div>
-                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
-                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
-
-                       </div>
-                       <div class="tags">
-                                <a href="#" class="tag">Nicaragua</a>
-                                <a href="#" class="tag">Venezuela</a>
-                                <a href="#" class="tag">Hugo Chavez</a>
-                                <a href="#" class="tag">Estados Unidos</a>
-                                <a href="#" class="tag">Guerra</a>
-                       </div>
-                    </div>
-                </div>
-                <p class="clear"></p>
-            </div>
-
-
-                    <div class="item">
-                <div class="img">
-                        <div class="stats">
-                            <div class="vote">
-                                <div>
-                                    <span class="count"><strong>230</strong></span>
-                                    <div class="viewcount">answers</div>
-                                </div>
-                            </div>
-                            <div class="views">
-                              12350 views
-                            </div>
-                        </div>
-                </div>
-                <div class="content">
-                    <h3>
-                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
-                    </h3>
-                    <div style="padding: 2px;">
-
-                    </div>
-                    <div class="bottom">
-                       <div class="share">
-                                <span class="title">Share on:</span><br/>
-                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
-                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
-                       </div>
-                       <div class="options">
-                            <div class="image">
-                                    <img width="32" height="32" alt=""
-                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
-                            </div>
-                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
-                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
-
-                       </div>
-                       <div class="tags">
-                                <a href="#" class="tag">Nicaragua</a>
-                                <a href="#" class="tag">Venezuela</a>
-                                <a href="#" class="tag">Hugo Chavez</a>
-                                <a href="#" class="tag">Estados Unidos</a>
-                                <a href="#" class="tag">Guerra</a>
-                       </div>
-                    </div>
-                </div>
-                <p class="clear"></p>
-            </div>
-
-
-                    <div class="item">
-                <div class="img">
-                        <div class="stats">
-                            <div class="vote">
-                                <div>
-                                    <span class="count"><strong>150</strong></span>
-                                    <div class="viewcount">answers</div>
-                                </div>
-                            </div>
-                            <div class="views">
-                              1350 views
-                            </div>
-                        </div>
-                </div>
-                <div class="content">
-                    <h3>
-                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
-                    </h3>
-                    <div style="padding: 2px;">
-
-                    </div>
-                    <div class="bottom">
-                       <div class="share">
-                                <span class="title">Share on:</span><br/>
-                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
-                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
-                       </div>
-                       <div class="options">
-                            <div class="image">
-                                    <img width="32" height="32" alt=""
-                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
-                            </div>
-                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
-                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
-
-                       </div>
-                       <div class="tags">
-                                <a href="#" class="tag">Nicaragua</a>
-                                <a href="#" class="tag">Venezuela</a>
-                                <a href="#" class="tag">Hugo Chavez</a>
-                                <a href="#" class="tag">Estados Unidos</a>
-                                <a href="#" class="tag">Guerra</a>
-                       </div>
-                    </div>
-                </div>
-                <p class="clear"></p>
-            </div>
-
-
-                    <div class="item">
-                <div class="img">
-                        <div class="stats">
-                            <div class="vote">
-                                <div>
-                                    <span class="count"><strong>450</strong></span>
-                                    <div class="viewcount">answers</div>
-                                </div>
-                            </div>
-                            <div class="views">
-                              12350 views
-                            </div>
-                        </div>
-                </div>
-                <div class="content">
-                    <h3>
-                         <a href="/survey/12345">Freedom of Speech Does NOT give us the right to lie.</a>
-                    </h3>
-                    <div style="padding: 2px;">
-
-                    </div>
-                    <div class="bottom">
-                       <div class="share">
-                                <span class="title">Share on:</span><br/>
-                                <img src="resource/images/icons/enme_twitter.png" alt="Twitter" />
-                                <img src="resource/images/icons/enme_facebook.png" alt="Facebook" />
-                       </div>
-                       <div class="options">
-                            <div class="image">
-                                    <img width="32" height="32" alt=""
-                                    src="http://www.gravatar.com/avatar/6757caf55de0413ae0994293e001d465?s=32&amp;d=identicon&amp;r=PG"/>
-                            </div>
-                            <div>(Submited By <strong><a href="#">Jota</a></strong>) added <strong>45 minutes</strong> ago</div>
-                            <div><img src="/resource/images/icons/enme_comment_reply.png"/> 25 Comments</div>
-
-                       </div>
-                       <div class="tags">
-                                <a href="#" class="tag">Nicaragua</a>
-                                <a href="#" class="tag">Venezuela</a>
-                                <a href="#" class="tag">Hugo Chavez</a>
-                                <a href="#" class="tag">Estados Unidos</a>
-                                <a href="#" class="tag">Guerra</a>
-                       </div>
-                    </div>
-                </div>
-                <p class="clear"></p>
-            </div>
-    </div>
-            </div>
-<%@ include file="/WEB-INF/jsp/includes/endBody.jsp" %>
-<%@ include file="/WEB-INF/jsp/includes/validate.jsp" %>
-<%@ include file="/WEB-INF/jsp/includes/footer.jsp" %>

File encuestame-war/src/main/webapp/WEB-INF/jsp/register.jsp

  • Ignore whitespace
-<%@ include file="/WEB-INF/jsp/includes/taglibs.jsp" %>
-<%@ include file="/WEB-INF/jsp/includes/initPage.jsp" %>
-<%@ include file="/WEB-INF/jsp/includes/publicBody.jsp" %>
-    <div id="mainUserWrapper">
-        <div class="form">
-            <form:form modelAttribute="signUpBean">
-                    <div class="data">
-                        <div class="form-pair">
-                            <div class="form-item">
-                                <label for="username">Username</label>
-                            </div>
-                            <div class="form-value">
-                                <form:input path="username" size="30" maxlength="16" />
-                                <br />
-                                <form:errors path="username" cssClass="errors" />
-                             </div>
-                        </div>
-                        <div class="form-pair">
-                            <div class="form-item">
-                                <label for="email">Email</label>
-                            </div>
-                            <div class="form-value">
-                                <form:input path="email" size="30" maxlength="25" />
-                                <br />
-                                <form:errors path="email" cssClass="errors" />
-                             </div>
-                        </div>
-                    </div>
-                    <div class="recaptcha">
-                        <c:out value="${signUpBean.captcha}" escapeXml="false" />
-                        <br />
-                        <form:errors path="captcha" cssClass="error" />
-                    </div>
-                    <div class="form-submit-buttons">
-                        <input type="submit" class="input-submit" name="submit" value="Submit" />
-                    </div>
-            </form:form>
-            <a href="<%=request.getContextPath()%>/user/forgot">Forgot Password?</a>
-        </div>
-    </div>
-<%@ include file="/WEB-INF/jsp/includes/footer.jsp" %>

File encuestame-war/src/main/webapp/WEB-INF/jsp/signin.jsp

View file
  • Ignore whitespace
 <%@ include file="/WEB-INF/jsp/includes/taglibs.jsp" %>
 <%@ include file="/WEB-INF/jsp/includes/initPage.jsp" %>
+<script src='http://connect.facebook.net/en_US/all.js'></script>
 <%@ include file="/WEB-INF/jsp/includes/publicBody.jsp" %>
     <div id="loginWrapper">
        <div class="formWrapper">
             </form>
       </div>
     </div>
+    <div class="socialConnect">
+        <div class="title">Do you already have an account on one of these sites?</div>
+        <div class="twitter">
+            <form action="<%=request.getContextPath()%>/signin/twitter.jspx" method="POST">
+                <button type="submit">
+                    <img src="<c:url value="/resource/images/social/twitter/signin.png" />"
+                </button>
+            </form>
+        </div>
+        <div class="facebook">
+                <script>
+                    function signInWithFacebook() {
+                        FB.getLoginStatus(function(response) {
+                            if (response.session) {
+                                dojo.byId('fb_signin').submit();
+                            }
+                          });
+                    }
+                </script>
+                <div id="fb-root"></div>
+                <form id="fb_signin" action="<c:url value="/signin/facebook" />" method="post">
+                    <fb:login-button perms="email,publish_stream,offline_access" onlogin="signInWithFacebook();" v="2"
+                        length="long">Sign in with Facebook</fb:login-button>
+                </form>
+                 <script>
+                if(FB) {
+                    FB.requireSessionThenGoTo = function(url) {
+                        FB.getLoginStatus(function(response) {
+                            if (response.session) {
+                                window.location = url;
+                            } else {
+                                FB.login(function(response) {
+                                    if (response.session) {
+                                        window.location = url;
+                                    }
+                                });
+                            }
+                        });
+                    };
+
+                    FB.logoutThenGoTo = function(url) {
+                        FB.logout(function(response) {
+                            window.location = url;
+                        });
+                    };
+                }
+                </script>
+                <script type='text/javascript'>
+                    FB.init({appId: '102345790957', status: true, cookie: true, xfbml: true});
+                    FB.Event.subscribe('auth.sessionChange', function(response) { if (response.session) {} else {} });
+                </script>
+        </div>
+    </div>
 <%@ include file="/WEB-INF/jsp/includes/endBody.jsp" %>
 <%@ include file="/WEB-INF/jsp/includes/validate.jsp" %>
 <%@ include file="/WEB-INF/jsp/includes/footer.jsp" %>

File encuestame-war/src/main/webapp/WEB-INF/jsp/signup/register.jsp

View file
  • Ignore whitespace
+<%@ include file="/WEB-INF/jsp/includes/taglibs.jsp" %>
+<%@ include file="/WEB-INF/jsp/includes/initPage.jsp" %>
+<%@ include file="/WEB-INF/jsp/includes/publicBody.jsp" %>
+    <div id="mainUserWrapper">
+        <div class="form">
+            <form:form modelAttribute="signUpBean">
+                    <div class="data">
+                        <div class="form-pair">
+                            <div class="form-item">
+                                <label for="username">Username</label>
+                            </div>
+                            <div class="form-value">
+                                <form:input path="username" size="30" maxlength="16" />
+                                <br />
+                                <form:errors path="username" cssClass="errors" />
+                             </div>
+                        </div>
+                        <div class="form-pair">
+                            <div class="form-item">
+                                <label for="email">Email</label>
+                            </div>
+                            <div class="form-value">
+                                <form:input path="email" size="30" maxlength="25" />
+                                <br />
+                                <form:errors path="email" cssClass="errors" />
+                             </div>
+                        </div>
+                    </div>
+                    <div class="recaptcha">
+                        <c:out value="${signUpBean.captcha}" escapeXml="false" />
+                        <br />
+                        <form:errors path="captcha" cssClass="error" />
+                    </div>
+                    <div class="form-submit-buttons">
+                        <input type="submit" class="input-submit" name="submit" value="Submit" />
+                    </div>
+            </form:form>
+            <a href="<%=request.getContextPath()%>/user/forgot">Forgot Password?</a>
+        </div>
+    </div>
+<%@ include file="/WEB-INF/jsp/includes/footer.jsp" %>

File encuestame-war/src/main/webapp/resource/css/login.css

View file
  • Ignore whitespace
 
 #loginWrapper{
     margin: 5em 20em;
-    position: relative;
+    float: left
     text-align: left;
     z-index: 1;
 }
 }
 
 #loginWrapper div.formWrapper{
+    float: left;
+    min-width: 520px;
+}
+
+div.socialConnect{
+    margin-left: 47%;
+    max-width: 400px;
+    min-width: 350px;
+    padding: 10px;
+    -moz-border-radius: 15px;
+    border-radius: 15px;
+    background-color: #E7E7E7;
+    border: 1px solid #8BA0BC;
+}
+div.socialConnect .title{
+    font-size: 120%;
+    font-weight: bold;
+    color: #626366;
+    padding-bottom: 10px;
+}
+
+div.socialConnect .twitter{
+    padding: 4px;
+}
 
+div.socialConnect .facebook{
+    padding: 4px;
 }
 
 div.formWrapper div.options{

File encuestame-war/src/main/webapp/resource/images/social/facebook/connect_light_medium_short.gif

  • Ignore whitespace
Added
New image

File encuestame-war/src/main/webapp/resource/images/social/linkedin/connectWithLinkedIn_small.png

  • Ignore whitespace
Added
New image

File encuestame-war/src/main/webapp/resource/images/social/twitter/signin.png

  • Ignore whitespace
Added
New image