-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
65 lines (65 loc) · 1.86 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="mootools/mootools-core-1.4.5-full-nocompat-yc.js" type="text/javascript" charset="utf-8"></script>
<script src="main.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
window.addEvent('domready',function(){
Scribd.docs();
Scribd.docs_callback=function(){
var sd = $('xmlDOM').getElement('resultset');
var sel1 = new Element('select',{'onchange':'Scribd.setThumbs(this.value);'}).grab(new Element('option'));
sd.getElements('result').each(function(row){
row.set('id','doc_'+row.getElement('doc_id').get('text'));
sel1.grab(new Element('option',{
'value':row.getElement('doc_id').get('text'),
'html':row.getElement('title').get('text')
}));
});
sel1.set('value',204970061); //set default
Scribd.setThumbs(204970061); //set default
$('lugar').grab(sel1);
}
});
</script>
<style type="text/css">
#xmlDOM{
display:none;
}
#doc{
background: #999;
padding:5px;
width:344px;
height:141px;
}
#doc img{
float:left;
box-shadow: 2px 2px 5px #999;
}
#doc_page_count, #doc_title, #doc_reads, #doc_when_updated, #doc_when_uploaded{
float:left;
padding:2px;
width:215px;
margin-left:5px;
}
#doc_title{
padding:5px;
background: #CCC;
}
</style>
<title>Scribd</title>
</head>
<body>
<div id="lugar"> </div>
<div id="doc">
<img src="" id="lugar2" height="142px" width="111px"/>
<div id="doc_title"> </div>
<div id="doc_page_count"> </div>
<div id="doc_reads"> </div>
<div id="doc_when_updated"> </div>
<div id="doc_when_uploaded"> </div>
</div>
<div id="xmlDOM"> </div>
</body>
</html>