-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·100 lines (85 loc) · 2.38 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
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
97
98
99
100
<?php
require_once "jupiterSeoReport.php";
if(isset($_POST["url"])){
$url = $_POST["url"];
$report = new SeoReport($url);
$reqHTML = $report->getSeoReport();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Jupiter - A Simple SEO Report</title>
<!-- Import Google Icon Font -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Import materialize.css -->
<link type="text/css" rel="stylesheet" href="css/materialize.css" media="screen,projection"/>
<!-- Import custom CSS -->
<link type="text/css" rel="stylesheet" href="css/style.css"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- Add jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<nav>
<div class="nav-wrapper teal lighten-2">
<a href="#" class="brand-logo center"><img src="./img/jupiter.svg" class="logo" width="40px" height="40px">Jupiter SEO</a>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col s6 offset-s3">
<div class="input-field col s12" id="search-form">
<form action="index.php" method="post">
<div class="row">
<div class="input-field col s12 center">
<input id="url" type="text" class="validate" name="url">
<label for="url">Inserisci l'URL.</label>
<div class="input-field col s12 center">
<button class="btn waves-effect waves-light" type="submit" name="action">Analizza
<i class="material-icons right">search</i>
</button>
</div>
</div>
</div>
</form>
</div>
</div>
<?php
if(isset($reqHTML)){
echo $reqHTML;
}
?>
</div>
</div>
<!--JavaScript at end of body for optimized loading-->
<script type="text/javascript" src="js/materialize.js"></script>
<script>
$(document).ready(function(){
$('.open_h1').click(function(){
$('.show_h1').slideToggle('slow');
if($(this).text() == 'Riduci')
{
$(this).text('Mostrali tutti');
}
else
{
$(this).text('Riduci');
}
});
$('.open_h2').click(function(){
$('.show_h2').slideToggle('slow');
if($(this).text() == 'Riduci')
{
$(this).text('Mostrali tutti');
}
else
{
$(this).text('Riduci');
}
});
});
</script>
</body>
</html>