-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject3.html
More file actions
96 lines (77 loc) · 3.1 KB
/
Copy pathproject3.html
File metadata and controls
96 lines (77 loc) · 3.1 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<!DOCTYPE html>
<br lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="project3.css"/>
<title>Registration form</title>
<script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<!-- <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> -->
</head>
<body >
<div class="container">
<img src="https://i.pinimg.com/736x/61/8a/74/618a7401f69608d55b14c46e15efbc4b.jpg" width="100px" height="100px">
<h1>Contract us</h1>
<form>
<div class="Send1">
<input type="text" id="Uppername" class="field1" placeholder="Your Name" onblur="Upper()" style="caret-shape:underscore;caret-color: blue;">
<input type="submit" value="Send">
</div>
<div class="Send2">
<input type="password" class="field1" placeholder="Your password">
<input type="submit" value="Send">
</div>
<p id="I"><span><input type="checkbox"></span>I agree the terms of services</p>
<button type="button" id="signup_bn" onclick="getDate()">Sign up</button>
<br><br>
<hr style="border: solid red;">
<p class="OR">Or</p>
<br>
<button type="buton" id="signup_bn1">Login with twitter</button>
<p>Do you have an accounts? <a href="#">Sign in</a></p>
</div>
</div>
<style>
p::selection{
color: aqua;
background: orangered;
}
#I{
user-select: none;
}
</style>
<script>
// $(document).ready(function(){
// $('#signup_bn').click(function(){
// $('#I').append('Cho');
// })
// })
// function getDate(){
// alert(new Date($.now()));
// }
$('signup_bn').click(function(){
$('#signup_bn1').attr("disabled", true);
});
$(document).ready(function(){
$('#signup_bn1').click(function(){
if($("input[type=checkbox]").filter(":checked").length < 1){
alert("Please enter");
}
})
})
$(document).ready(function(){
$(document).bind("contextmenu",function(event){
alert("Right click is disabled");
return false;
});
})
function Upper(){
var x = document.getElementById("#Uppername");
x.value = x.value.toUpperCase();
}
</script>
</body>
</html>