forked from hssh/node-js-sample
-
Notifications
You must be signed in to change notification settings - Fork 1
/
onsite-algo.html
412 lines (376 loc) · 17 KB
/
onsite-algo.html
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MathSight: Onsite Breakdown</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fbootstrap-combined.no-icons.min.css">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css">
<link rel="stylesheet" href="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fsocial-buttons.css">
<script src="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fjquery.js"></script>
<script src="https://d396qusza40orc.cloudfront.net/startup%2Fcode%2Fbootstrap.js"></script>
<script src="datatables/media/js/jquery.js"></script>
<script src="datatables/media/js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8">
/* Data set - can contain whatever information you want */
var aDataSet = [
['number of images in body', 1,2.012592065,6.706571243,0],
['proximity of title tag words to external bound hyperlinks', 2,2458.276471,4308.302537,432.4648889],
['number of scripts', 3,12.68773264,10.4567339,9.995333333],
['number of hyperlinks', 4,77.37031757,90.67534157,92.394],
['length of page title', 5,54.07246377,57.05920625,59.06222222],
['number of external css styles', 6,4.994773105,2.756018217,1.060222222],
['number of titles same as h1', 7,0.003880573375,0.03903708523,0],
['title total number of syllables', 8,4.172012354,8.898503578,0],
['anchor number of unique words', 9,24.91486497,48.13142485,0],
['total number of dictionary words', 10,0.8888096935,1.597918022,0.1082222222],
['number of id attribute refs', 11,0.258493704,0.2420299284,0],
['anchor total number of syllables', 12,93.73588342,199.6408588,0],
['number of unique words', 13,189.2978538,268.1385817,285.4093333],
['number of duplicate words', 14,220.5588026,364.647365,293.9573333],
['number of external links', 15,26.37934585,38.35133377,75.15688889],
['total number of 5k common words', 16,282.6245347,436.1281718,350.1273333],
['number of external javascripts', 17,4.759325255,6.696811971,9.088444444],
['anchor number of duplicate words', 18,11.12972202,24.41249187,0],
['ratio of common words to total', 19,0.6620895784,0.6315843185,0.5409020188],
['number of inline css styles', 20,1.213273145,0.2134027326,0.003555555556],
['number of words per sentence', 21,23.36184703,32.10500425,32.44584629],
['number of rare words', 22,102.6532035,157.4274561,160.1406667],
['maximum length of h1', 23,2.774689158,10.78919974,0],
['title total number of rare words', 24,0.7258256118,1.959011061,0],
['ratio of dictionary words to total', 25,0.001444481739,0.002505717352,0.0001488978971],
['average length of h1', 26,2.163300863,6.878334418,0],
['number of text characters in html', 27,440.5469233,744.0865322,0],
['number of sentences', 28,17.10628019,25.27716331,20.78844444],
['metadesc total number of syllables', 29,1.130118001,5.872478855,0],
['number of relative internal links', 30,0.3667537816,0.2849707222,0],
['total number of words', 31,431.7918746,672.6655823,635.7171111],
['number of h2 instances', 32,0.1649639661,0.4716981132,0],
['number of images', 33,10.69771125,17.1008458,17.94977778],
['metadesc total number of words', 34,0.7727092738,4.037085231,0],
['flesch reading ease', 35,50.0034841,41.20950601,29.87896301],
['number of root relative internal links', 36,0.001821493625,0.01626545218,0],
['number of class attribute refs', 37,1.70650194,2.303838647,0.06111111111],
['flesch grade level', 38,11.94681907,15.27153796,16.8517199],
['average length of h3', 39,2.684168845,4.494469746,0],
['average length of anchor text', 40,4.743248594,8.625243982,0],
['number of embedded javascripts', 41,2.068503999,0.7195836044,0.01311111111],
['number of inline scripts', 42,2.398431932,3,0.9553333333],
['body total number of rare words', 43,12.4400887,16.91802212,0],
['maximum length of anchor text', 44,19.62097094,26.94469746,0],
['dale chall readability', 45,7.931989721,8.729022436,10.45028249],
['average number of words in anchor text', 46,0.7634434149,1.450227716,0],
['metadesc number of dictionary words', 47,0.003088619625,0.0201691607,0],
['metadesc number of duplicate words', 48,0.07301813574,0.6011711126,0],
['number chars per meta word', 49,1.421740416,0.7714864976,0],
['number of h3 instances', 50,0.5326680922,1.14964216,0],
['total number of 3k common words', 51,230.9599271,361.6258946,276.2313333],
['number of split sentences', 52,32.1643304,46.26480156,39.518],
['maximum length of h3', 53,3.447057892,5.199739753,0],
['number of embedded css styles', 54,1.52276867,1.217306441,2.866],
['average image width', 55,76.75196009,108.3988289,212.7451111],
['number of internal links', 56,9.291755761,8.22121015,0.1051111111],
['number of meta keywords', 57,0.3688920567,0.4886141835,0],
['number of images missing alt', 58,9.950740477,16.19648666,16.95044444],
['h3 total number of rare words', 59,0.3394313772,0.8874430709,0],
['metadesc total number of rare words', 60,0.2830442702,0.8939492518,0],
['number of h1 instances', 61,0.1060426071,0.4183474301,0],
['metadesc number of unique dictionary words', 62,0.00237586125,0.01886792453,0],
['number of iframes', 63,0.233784747,0.08392973325,0],
['number of dhtml scripts', 64,0.2264987725,0.1424853611,0.02],
['title total number of words', 65,2.138591906,4.328562134,0],
['number of destination titles same as anchor text', 66,0.3219291993,1.385816526,0],
['h2 total number of rare words', 67,0.198938782,0.6102797658,0],
['meta description character length', 68,52.80779282,86.23682498,136.3191111],
['average image caption length', 69,39.53274729,50.68575146,65.6],
['title number of unique dictionary words', 70,0.007285974499,0.01496421601,0],
['number of hyperlinks with html', 71,4.756711808,2.659076122,0.001333333333],
['number of embedded styles', 72,1.523164647,1.217306441,2.866],
['meta keywords character length', 73,5.43509939,6.344827586,0],
['anchor total number of rare words', 74,19.26403738,46.04814574,0],
['number of words in meta description', 75,6.413954225,11.17957059,16.43511111],
['h1 total number of rare words', 76,0.1670230459,0.80611581,0],
['number of hyperlinks with file', 77,5.289142314,3.277163305,0],
['ratio of rare words to total', 78,0.207128743,0.232380167,0.2536019355],
['maximum length of h2', 79,1.618991051,6.262849707,0],
['percent auto image width and height', 80,0.01377999525,0.02992843201,0.007333333333],
['anchor number of dictionary words', 81,0.06684089649,0.2452830189,0],
['total number of syllables', 82,700.8576067,1057.804164,1070.771111],
['average image height', 83,38.05852538,58.79830839,96.326],
['number of absolute internal links', 84,33.66714184,50.35133377,86.34733333],
['metakey total number of rare words', 85,0.2657796785,0.3916720885,0],
['html5 detected', 86,0.4022333096,0.3103448276,0],
['title number of dictionary words', 87,0.007761146749,0.01496421601,0],
['anchor number of unique dictionary words', 88,0.06351469074,0.2381262199,0],
['number of pdf links', 89,0.00300942425,0.003903708523,0],
['number of unique dictionary words', 90,0.786489269,1.342875732,1.042],
['average length of h2', 91,1.244634513,4.960312297,0],
['title number of unique words', 92,1.962778174,3.977228367,0],
['number of unique 5k common words', 93,120.8099311,163.5367599,155.9848889],
['max number of words in anchor text', 94,3.167894195,4.195836044,0],
['number of flash links', 95,0,0,0],
['number of figures', 96,0,0,0],
['number of captions', 97,0,0,0],
['maximum caption length', 98,0,0,0],
['average caption length', 99,0,0,0],
['title number of duplicate words', 100,0.1758137325,0.3513337671,0],
['metadesc number of unique words', 101,0.699691138,3.435914118,0],
['anchor total number of words', 102,36.044587,72.54391672,0],
['number of difficult words', 103,200.8319474,311.0396877,359.4857778]
];
$(document).ready(function() {
$('#dynamicA').html( '<table cellpadding="0" cellspacing="0" border="0" class="display" id="example"></table>' );
$('#example').dataTable( {
"aaData": aDataSet,
"aoColumns": [
{ "sTitle": "Highlighted Feature" },
{ "sTitle": "Influence Rank" , "sClass": "center"},
{ "sTitle": "Losing Mean" , "sClass": "center"},
{ "sTitle": "Winning Mean" , "sClass": "center"},
{ "sTitle": "Mean Value (this domain)", "sClass": "center" },
]
} );
} );
$(document).ready(function() {
$('#example3').dataTable( {
"bProcessing": true,
"sAjaxSource": "/json/test_format.txt",
"sAjaxDataProp": "demo"
} );
} );
</script>
<link href="http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,300,400,600,700,800"
rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="dist/jquery.jqplot.min.css" />
<style type="text/css" title="currentStyle">
@import "datatables/media/css/demo_page.css";
@import "datatables/media/css/header.ccss";
@import "datatables/media/css/demo_table.css";
</style>
<style type="text/css">
/* Large desktop */
@media (min-width: 980px) {
body {
padding-top: 60px;
}
.linediv-l {
border-right: 1px white solid;
}
.linediv-r {
border-left: 1px white solid;
}
}
/* Landscape phones and down */
@media (max-width: 480px) {
.copy {
padding: 2.5% 10%;
}
.linediv-l {
border-bottom: 1px white solid;
}
.linediv-r {
border-top: 1px white solid;
}
}
/* All form factors */
/* Main body and headings */
body{
font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}
.heading, .subheading {
font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
text-align: center;
}
p.lead {
padding-top: 1.5%;
font-size: 24px;
line-height: 30px;
}
p {
font-size: 18px;
line-height: 24px;
}
/* Video pitch and Action */
.pitch {
padding: 2.5% 0%;
}
.order {
padding: 2% 0%;
}
.actions {
background-color: #343434;
padding: 3% 0%;
}
.video, .thermometer, .order, .social, .statistics {
text-align: center;
}
.statistics h3, .statistics p {
color: white;
}
/* Marketing Copy and Footer */
.copy {
padding-top: 2.5%;
padding-bottom: 2.5%;
text-align: justify;
}
.asset {
padding: 2.5% 0%;
}
.footer {
color: #cccccc;
text-align: center;
}
.footer p {
font-size: 11px;
}
.footer a {
color: #ccccff;
}
</style>
</head>
<body>
<!-- Mobile-friendly navbar adapted from example. -->
<!-- http://twitter.github.io/bootstrap/examples/starter-template.html -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar"
data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="/">MathSight</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="/">Home</a></li>
<li><a href="/plans.html">Plans</a></li>
<li class="active"><a href="/tour.html">Tour</a></li>
<li><a href="/api.html">API</a></li>
<li><a href="/jobs.html">Jobs</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<!-- We use row-fluid inside containers to achieve a resizable layout. -->
<!-- blogs.endjin.com/2013/04/tips-for-implementing-responsive-designs-using-bootstrap/ -->
<!-- http://stackoverflow.com/a/12270322 -->
<div class="container">
<!-- Font and paired font of .heading/.subheading and body from Google Fonts -->
<!-- www.google.com/fonts/specimen/Ubuntu -->
<!-- www.google.com/fonts/specimen/Ubuntu#pairings -->
<div class="row-fluid heading">
<div class="span12">
<h1>StatSEO: Onsite drilldown</h1>
</div>
</div>
<div class="row-fluid subheading">
<div class="span12">
<!-- Special typography from Bootstrap for lead paragraph. -->
<!-- http://twitter.github.io/bootstrap/base-css.html#typography -->
<p class="lead">for www.leighmans.com</p>
</div>
</div>
<div class="row-fluid pitch">
<h2>Influential Feature Delta to Winning Mean</h2>
<p>For top 10 features on aggregate</p>
<div id="dynamic">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example3">
<thead>
<tr>
<th width="20%">URL</th>
<th width="8%">Number of images in body</th>
<th width="8%">Proximity of title tag words to external bound hyperlinks</th>
<th width="8%">Number of scripts</th>
<th width="8%">Number of hyperlinks</th>
<th width="8%">Title character length</th>
<th width="8%">Number of external CSS styles</th>
<th width="8%">Number of titles same as h1</th>
<th width="8%">Title total number of syllables</th>
<th width="8%">Anchor number of unique words</th>
<th width="8%">Total number of dictionary words</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<th>URL</th>
<th>Number of images in body</th>
<th>Proximity of title tag words to external bound hyperlinks</th>
<th>Number of scripts</th>
<th>Number of hyperlinks</th>
<th>Title character length</th>
<th>Number of external CSS styles</th>
<th>Number of titles same as h1</th>
<th>Title total number of syllables</th>
<th>Anchor number of unique words</th>
<th>Total number of dictionary words</th>
</tr>
</tfoot>
</table>
</div>
<hr>
<p>
<a href="/demo.html">Return to top level summary</a>
</p>
<div class="spacer"></div>
<hr>
<h2>Feature Influence Ranking Table</h2>
<div id="dynamicA">
</div>
<hr>
<p>
<a href="/demo.html">Return to top level summary</a>
</p>
<div class="spacer"></div>
<!-- For the FAQ, we introduce a little bit of JS, using the accordion. -->
<!-- This brings in jquery.js and bootstrap.js as dependencies. -->
<!-- http://twitter.github.io/bootstrap/javascript.html#collapse -->
<div class="row-fluid faq">
<div class="span10 offset1">
<h3>FAQs</h3>
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse"
data-parent="#accordion2" href="#collapseOne">
Which features does MathSight monitor for me?
</a>
</div>
<div id="collapseOne" class="accordion-body collapse">
<div class="accordion-inner">
Over 100 features taken straight from the html pages of your domain (related to structure and content), approximately 20 calculated (or premium) features (such as ratios of one feature to another) and 5-10 advanced features which analyse backlinks and their effect on the onsite.
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse"
data-parent="#accordion2" href="#collapseTwo">
What is an influential feature?
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
All the features assessed here have been assessed to have differing levels of influence (or impact) on cumulative daily page view organic search traffic for their containing html page. We wanted to give you the opportunity to see which features had the greatest influence, and which have limited impact. Feel free to click on 'Influence Rank' tab above to sort them as required.
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Not crucial, but we put this under a CC By-SA 3.0 license. -->
<!-- http://creativecommons.org/licenses/ -->
<!-- Not crucial, but we put this under a CC By-SA 3.0 license. -->
<!-- http://creativecommons.org/licenses/ -->
<div class="row-fluid footer">
<div class="span12">
<p><small>© MathSight Ltd 2013 Terms of Service Privacy Run by MathSight Ltd in Richmond, UK<small></p>
</div>
</div>
</div>
</body>
</html>