ui-dev/test.htm
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 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>jQuery Del.icio.us Plugin</title>
<style type="text/css">
body{
background:white;
margin:0;
padding:20px;
font-size:62.5%;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
h1{
font-weight:bold;
font-size:1.8em;
color:#c00;
}
h2{
font-weight:bold;
font-size:1.5em;
color:#00c;
}
ul{
list-style-type:none;
margin:10px;
padding:0;
}
li{
list-style-type:none;
margin: 2px;
padding:4px;
background:#ddd;
font-size:13px;
}
a:link, a:visited{
color:black;
text-decoration:none;
}
a:active, a:hover{
color:#c00;
text-decoration:none;
}
div.container{
width:300px;
float:left;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.delicious.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
feedMe('pmclanahan');
$('#usericious').bind('blur',function(){
if(this.value.length)
feedMe(this.value);
});
});
lastuser = '';
function feedMe(username){
if(username == lastuser) return;
$('#delicious-posts').delicious(username,{popopen:true});
$('#delicious-tags').delicious(username,{type:'tags',popopen:true});
$('#delicious-network').delicious(username,{type:'network'});
$('#delicious-fans').delicious(username,{type:'fans'});
$('span.deluser').html(username);
lastuser = username;
}
</script>
</head>
<body>
<h1>Del.icio.us plugin for jQuery</h1>
<p>del.icio.us user: <input type="Text" name="usericious" id="usericious" value="pmclanahan" /></p>
<div class="container">
<h2>Del.icio.us Tags for <span class="deluser"></span></h2>
<div id="delicious-tags"></div>
</div>
<div class="container">
<h2>Del.icio.us Posts for <span class="deluser"></span></h2>
<div id="delicious-posts"></div>
</div>
<div class="container">
<h2>Del.icio.us Network for <span class="deluser"></span></h2>
<div id="delicious-network"></div>
</div>
<div class="container">
<h2>Del.icio.us Fans for <span class="deluser"></span></h2>
<div id="delicious-fans"></div>
</div>
</body>
</html>
|