javascript - Why my java web is like flickered every time it loads a page? -


www.mypersonalprojects.net, username: tempuser, password: tempuser

above java web app address , it's username & password. question is, why flicker every time loads page?

below code of login page. other pages same, bit different on main body content only. there wrong code? or css? or because of java web hoster i'm using(mochahost)?to java/spring/html/web masters out there, please tell me problem?

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>    <!doctype html>    <html>    <head>  	<title>login page</title>  	<link href='//fonts.googleapis.com/css?family=advent pro' rel='stylesheet'>  	<link href='//fonts.googleapis.com/css?family=orbitron' rel='stylesheet'>  	<link rel="stylesheet" href="${pagecontext.request.contextpath}/static/css/main.css">  </head>    <body onload='document.f.username.focus();'>    	<header>  		<div id="logo-container">  			<a id="logo1"  href="http://www.ghhs.com.my"><img alt="ghhs" src="${pagecontext.request.contextpath}/static/images/ghhs_logo.png"></a>  			<h1 id="logo2"><a href="${pagecontext.request.contextpath}/">opc lead capturer</a></h1>  		</div>  	</header>    	<div id="big-wrapper">    		<div id="login-form-wrapper">  	  			<h3 class="page-title" id="login-head">welcome</h3>  		  			<form name='f' action='${pagecontext.request.contextpath}/login'  				method='post'>  		  				<table class="login-form-table">    					<tr>  						<td><input class="login-field" type='text' name='username' placeholder="username"></td>  					</tr>  					<tr>  						<td><input class="login-field" type='password' name='password' placeholder="password" /></td>  					</tr>  					<tr>  						<td colspan='2'>  							<input class="login-button" name="submit" type="submit" value="login" />  						</td>  					</tr>  					  				</table>  		  				<c:if test="${param.error!=null}">	  					<p class="error" id="login-error" >incorrect username or password</p>  				</c:if>  		  				<input type="hidden" name="${_csrf.parametername}"  					value="${_csrf.token}" />  		  			</form>  			  			<c:if test="${param.loggedout==true}">  				<p class="action-message" id="action-message">you've logged out</p>	  			</c:if>  		  		</div>  	  	</div>  	  	<footer>  		<p>copyright &#169; <a href="http://www.ghhs.com.my">golden horse health sanctuary</a></p>  	</footer>    	<script type="text/javascript">    		function closediv()  		{  			var actionmessage = document.getelementbyid("action-message");  			var loginerror = document.getelementbyid("login-error");  			  			if(actionmessage != null)  			{  				actionmessage.style.display = "none";  			}  			  			if(loginerror != null)  			{  				loginerror.style.display = "none";  			}  		}  		  		window.settimeout(closediv, 3000);  	  	</script>    </body>    </html>


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -