Skip to content

Commit

Permalink
Change to load an animation only at a first access
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura committed Oct 26, 2017
1 parent a15e522 commit 0109e8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
scope="session" />
<fmt:setLocale value="${language}" />
<fmt:setBundle basename="indexpage" />
<%! boolean isFirstLoad = true;%>
<%
session.removeAttribute("dlpinit");
ResourceBundle rb = ResourceBundle.getBundle("messages", request.getLocale());
Expand Down Expand Up @@ -35,7 +36,11 @@
<header>
<table style="width: 720px;">
<tr>
<td><p class="bounceInRight animated"><img src="images/easybuggy.png"></p></td>
<% if (isFirstLoad) { isFirstLoad = false;%>
<td><img src="images/easybuggy.png" class="bounceInRight animated" /></td>
<% } else { %>
<td><img src="images/easybuggy.png" /></td>
<% } %>
<td><fmt:message key="description.all" /></td>
</tr>
</table>
Expand Down

0 comments on commit 0109e8b

Please sign in to comment.