This repository has been archived by the owner on Mar 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (60 loc) · 1.88 KB
/
index.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>yql demo</title>
<style type="text/css">
body {
background-color: #ff6600;
}
h1 {
color: #ffffff;
font-family: arial,verdana,san-serif,helvetica;
text-align: center;
width: 960px;
border: 1px solid #cccccc;
border-bottom: none;
background-color: #666666;
margin: 0 auto;
}
#links {
width: 960px;
margin: auto auto;
border: 1px solid #cccccc;
}
#links div a {
background-color: #f0f0f0;
display: block;
padding: 5px;
border-bottom: 1px solid #cccccc;
text-decoration: none;
font-family: arial,verdana,san-serif,helvetica;
color: #333333;
}
#links div a:hover {
background-color: #e0e0e0;
}
.new {
background-color: #66cc66;
height: 0px;
}
.old {
background-color: #cc6666;
}
</style>
</head>
<body>
<input type="text" id="polling_interval" value="60000" style="display:none;" />
<textarea style="display:none;">
select * from html where url ="http://news.ycombinator.com" and xpath ="//body//table//table//td//a[starts-with(@href,'http') and not(contains(@href,'ycombinator.com'))]"
</textarea>
<h1>Hacker News Refreshed</h1>
<div id="links"></div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="yql.js"></script>
<script>
// do this on DOM ready
$(yql.start);
</script>
</body>
</html>