Commit 9f10ee42 authored by Alina Habibulina's avatar Alina Habibulina

auth without error msg

parent be140975
......@@ -5,17 +5,27 @@
<title>TimeSheet</title>
<script>
FORM_PLAYER_URL_PREFIX = "http:/intern-dev.arta.kz/Synergy/";
FORM_PLAYER_URL_PREFIX = "http://intern-dev.arta.kz/Synergy/";
</script>
<link rel ="stylesheet" href ="http://intern-dev.arta.kz/Synergy/js/form.player.css"/>
<script src ="http://intern-dev.arta.kz/Synergy/js/vendor.js" type ="text/javascript"></script>
<script src ="http://intern-dev.arta.kz/Synergy/js/form.player.js" type ="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src ="js/Player.js"></script>
</head>
<body>
<div id ="form_player_container">
<div id ="form_player_div" ></div>
</div>
<div class = "login-form">
<form id = "authorization" align="center" action="#">
<p><h3>Fill in the fields below: </h3>
<p><input type = "text" id = "login" name = "login" placeholder = "Username" size = "20" required></p>
<p><input type = "password" id = "password" name = "password" placeholder = "Password" size = "20" required></p>
<input type="submit" class="submit" align = "center" style = "color:blue" value = "Submit"></button>
</form>
</div>
</body>
</html>
\ No newline at end of file
......@@ -21,7 +21,13 @@ var portal = {
};
$(document).ready(function(){
AS.OPTIONS.login = "intern";
AS.OPTIONS.password = "intern";
jQuery(".submit").on( "click", function(event){
AS.OPTIONS.login = $("input#login").val();
AS.OPTIONS.password = $("input#password").val();
$("#authorization").remove();
$(".form_player_container").show();
portal.createPlayer("timesheet");
});
\ No newline at end of file
});
});
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment