-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
47 lines (47 loc) · 1.08 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Swift Bot</title>
<style type="text/css">
body{
padding-top: 20px;
}
.crawl{
width: 800px;
}
</style>
<script src="assets/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
$(document).on("click", "#crawl", function () {
var url = $('#url').val();
$(".status").html('<center><img src="assets/ajax.gif" alt="Crawling...."></center>');
$.ajax({
url: 'item.php',
type: 'POST',
data: {url:url},
success: function(data){
$(".status").html('');
$(".status").html(data);
var r=confirm("Process Completed. Continue Other");
if (r==true){
location.reload();
} else{
console.log("Thanks!!");
}
}
});
});
</script>
</head>
<body>
<center>
<div class="crawl">
<img src="assets/bot.jpg" style="width:50px;">
<input type="url" id="url" style="width: 400px;" autofocus="" autosuggest="" placeholder="Enter any URL">
<button type="submit" id="crawl">Crawl</button>
</div>
</center>
<hr>
<div class="status"></div>
</body>
</html>