-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtry.php
63 lines (49 loc) · 1.19 KB
/
try.php
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
<!DOCTYPE html>
<html>
<head>
<script src="alert/dist/sweetalert-dev.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"></script>
<link rel="stylesheet" href="alert/dist/sweetalert.css">
</head>
<body>
<button onclick="JSalert()">Show an Alert</button>
<script type="text/javascript">
function JSalert(){
swal({
title: "Good job!",
text: "You clicked the button!",
icon: "success",
button: "Aww yiss!",
});
}
</script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
</body>
</html>
<?php
// if(isset($_GET['submit']))
// {
// echo $_GET['submit'];
// }
?>
<!-- <!DOCTYPE html>
<html>
<body>
<h2>Result</h2>
<script>
var num = [];
var x = prompt("Enter a Value. Press STOP for stopping");
while(x!='STOP' || x!='stop')
{
var num1 = parseInt(x);
num.push(num1);
num.sort();
alert("Current array is: "+num);
x=prompt("Enter a Value. Press STOP for stopping");
if(x=='STOP' || x=='stop')
break
}
document.write("Your final array is: "+num);
</script>
</body> -->