1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,50 @@ |
1 |
+/** |
|
2 |
+ * Copyright (C) 2021 Double Bastion LLC |
|
3 |
+ * |
|
4 |
+ * This file is part of Roundpin, which is licensed under the |
|
5 |
+ * GNU Affero General Public License Version 3.0. The license terms |
|
6 |
+ * are detailed in the "LICENSE.txt" file located in the root directory. |
|
7 |
+ */ |
|
8 |
+ |
|
9 |
+$(document).ready(function() { |
|
10 |
+ |
|
11 |
+ $("#loginname").val(""); |
|
12 |
+ $("#loginname").focus(); |
|
13 |
+ |
|
14 |
+ $('#loginname').on('input', function() { |
|
15 |
+ if ($(this).val().length != 0) { |
|
16 |
+ $("#usernameLabel").css({'display' : 'block', 'opacity' : '1'}); |
|
17 |
+ } else { $("#usernameLabel").css('display','none'); } |
|
18 |
+ }); |
|
19 |
+ |
|
20 |
+ $('#password').on('input', function() { |
|
21 |
+ if ($(this).val().length != 0) { |
|
22 |
+ $("#passwordLabel").css({'display' : 'block', 'opacity' : '1'}); |
|
23 |
+ } else { $("#passwordLabel").css('display','none'); } |
|
24 |
+ }); |
|
25 |
+ |
|
26 |
+ if (signupCheck == 'true') { |
|
27 |
+ |
|
28 |
+ $("#signintab").on("click", function() { |
|
29 |
+ $("#signintab").addClass("active"); |
|
30 |
+ $("#signuptab").removeClass("active"); |
|
31 |
+ $("#signinbutton").show(); |
|
32 |
+ }); |
|
33 |
+ |
|
34 |
+ } else { |
|
35 |
+ |
|
36 |
+ $("#signupsec").css("cursor", "default"); |
|
37 |
+ $("#signupsec").attr("href", ""); |
|
38 |
+ |
|
39 |
+ $("#signuptab").addClass("inactive"); |
|
40 |
+ $("#signuptab").removeClass("underlineHover"); |
|
41 |
+ $("#signuptab").css("cursor", "default"); |
|
42 |
+ |
|
43 |
+ $("#signintab").on("click", function() { |
|
44 |
+ $("#signintab").addClass("active"); |
|
45 |
+ $("#signuptab").removeClass("active"); |
|
46 |
+ $("#signinbutton").show(); |
|
47 |
+ }); |
|
48 |
+ } |
|
49 |
+ |
|
50 |
+}); |