-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
30 lines (29 loc) · 976 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$(document).ready(()=>{
$(".user-button").click(()=>{
if ($("#name").val()==""){
$.toast({
heading: 'Error',
text: 'Cannot be blank!',
showHideTransition: 'fade',
icon: 'error'
})
} else {
$.toast({
heading: 'Success',
text: 'Login in Successful!',
showHideTransition: 'slide',
icon: 'success'
})
$(".initial").addClass("hidden");
$(".container").removeClass('hidden');
$('#messages').animate({
scrollTop: $('#messages')[0].scrollHeight
}, 800);
}
});
});
if ( navigator.platform.indexOf('Win') != -1 ) {
window.document.getElementById("wrapper").setAttribute("class", "windows");
} else if ( navigator.platform.indexOf('Mac') != -1 ) {
window.document.getElementById("wrapper").setAttribute("class", "mac");
}