-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
118 lines (98 loc) · 3.18 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
$url = '//' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
?>
<!DOCTYPE html>
<html lang="en">
<!-- head -->
<head>
<meta charset="utf-8" />
<meta name="description" content="SEO audit bookmarklet" />
<meta property="og:title" content="SEO Ninja - SEO audit bookmarklet" />
<meta property="og:description" content="SEO audit bookmarklet" />
<meta property="og:url" content="https:<?php echo $url; ?>" />
<meta name="robots" content="all" />
<meta name="viewport" content="width=device-width" />
<title>SEO Ninja - SEO audit bookmarklet</title>
<link type="text/css" href="styles/index_min.css" media="all" rel="stylesheet" />
<link rel="canonical" href="https:<?php echo $url; ?>" />
</head>
<!-- body -->
<body>
<!-- content -->
<div class="content wrapper">
<h1 class="title_content">SEO Ninja</h1>
<div class="box_content">
SEO audit bookmarklet by tyclipso.net
</div>
<a class="link_drag" href=
"javascript:(function (doc, win)
{
/* load jquery */
if (typeof win.jQuery === 'undefined')
{
var loadSNJquery = doc.createElement('script');
loadSNJquery.type = 'text/javascript';
loadSNJquery.onload = loadSN;
loadSNJquery.src = '//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js';
loadSNJquery.id = 'sn_jquery';
doc.body.appendChild(loadSNJquery);
}
else
{
loadSN();
}
/* load seo ninja */
function loadSN()
{
/* load script */
var loadSNScript = doc.createElement('script');
loadSNScript.type = 'text/javascript';
loadSNScript.src = '<?php echo $url?>scripts/sn.js';
loadSNScript.id = 'sn_script';
doc.body.appendChild(loadSNScript);
/* load style */
var loadSNStyle = doc.createElement('link');
loadSNStyle.type = 'text/css';
loadSNStyle.href = '<?php echo $url?>styles/sn_min.css';
loadSNStyle.media = 'all';
loadSNStyle.rel = 'stylesheet';
loadSNStyle.id = 'sn_style';
doc.getElementsByTagName('head')[0].appendChild(loadSNStyle);
}
}(document, window));"
title="Frontend developer SEO bookmarklet">Drag SEO Ninja to your bookmarks bar
</a>
</div>
<!-- footer -->
<div class="footer wrapper">
<h2 class="title_footer">Audit criteria</h2>
<ol class="list_footer">
<li>Title tag</li>
<li>Meta-Robots and X-Robots-Tag index</li>
<li>Meta Description tag</li>
<li>Meta og:title property</li>
<li>Meta og:description property</li>
<li>Meta og:image property</li>
<li>Meta og:url property</li>
<li>Meta twitter:card tag</li>
<li>Canonical URL</li>
<li>Favicon</li>
<li>H1</li>
<li>H2</li>
<li>H3</li>
<li>Wrong Heading Structure</li>
<li>Empty image alt attributes</li>
<li>Empty link title attributes</li>
<li>sitemap.xml</li>
<li>robots.txt</li>
<li>Inline style tags</li>
<li>External style files</li>
<li>Third Party styles</li>
<li>Inline script tags</li>
<li>External script files</li>
<li>Third Party scripts</li>
</ol>
<div class="box_content">Inspired by <a href="http://domninja.com/" title="DOM Ninja">DOM Ninja</a>.</div>
</div>
</body>
</html>