PageRenderTime 26ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

/gae.sonstige.d/gae.wikilicious2.d/static/wikilicious.html

https://github.com/wolfhesse/saikogallery
HTML | 153 lines | 138 code | 15 blank | 0 comment | 0 complexity | 3d98b2218f10571d72b29b0dbaf7297d MD5 | raw file
  1. <div id="idSu" style="float:right;padding:6px;border-color:green;border-style:solid;margin:4px;">
  2. Up
  3. </div>
  4. <div id="idSd" style="float:right;padding:6px;border-color:red;border-style:solid;margin:4px;">
  5. Down
  6. </div>
  7. search for something else (e.g. "cat", "news", "money"): <input id="idTag" type="text" value="wikilicious" /><a href="#" id="idExec">DoIt</a>
  8. <hr/>
  9. <table border="0">
  10. <tr valign="top">
  11. <td>
  12. <div id="idList" style="border-color:yellow;border-style:solid;overflow:scroll;width:500px;max-height:600px;">
  13. <table border="0">
  14. <tr valign="top">
  15. <td>
  16. tags: <ol id="idOlOut" />
  17. </td>
  18. <td>
  19. posts: <ol id="idOlPosts" />
  20. </td>
  21. </tr>
  22. </table>
  23. </div>
  24. </td>
  25. <td width="100%">
  26. <div id="idS">
  27. <iframe id="idIf">
  28. </iframe>
  29. <br/>
  30. </div>
  31. <div id="images">
  32. </div>
  33. </td>
  34. </tr>
  35. </table>
  36. <hr/>
  37. <p>
  38. <a href="http://feeds.feedburner.com/Delicious/tag/wikilicious"><img src="http://feeds.feedburner.com/~fc/Delicious/tag/wikilicious?bg=99CCFF&amp;fg=444444&amp;anim=0" height="26" width="88" style="border:0" alt="" /></a>
  39. </p><h4>:) now, YOU have to close the feedback loop</h4>
  40. by using the information found here and tagging resources in del.icio.us<h5><a href="http://wikilicious.blogspot.com/">blog</a></h5>
  41. <script src="http://code.jquery.com/jquery-latest.js">
  42. </script>
  43. <script src="http://r20080614.appspot.com/static/jquery.hoverIntent.minified.js">
  44. </script>
  45. <script>
  46. // docready-anf
  47. $(document).ready(function(){
  48. });
  49. // docready-end
  50. var $j = jQuery.noConflict();
  51. // a-anf
  52. function a(){
  53. // qry-anf
  54. function qry(s){
  55. $j.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=" + s + "&tagmode=any&format=json&jsoncallback=?", function(data){
  56. $j("#images").empty();
  57. if (0 == data.items.length) {
  58. $j("<div />").text("no flickr items (yet)").css("color", "red").appendTo("#images");
  59. }
  60. else {
  61. $j("<div />").text("items found, click to open: ").css("color", "green").appendTo("#images");
  62. $j("<br />").appendTo("#images");
  63. $j.each(data.items, function(i, item){
  64. var ii = $j("<img />").attr("src", item.media.m).attr("width", 120).attr("height", 80).attr("alt", item.link);
  65. $j("<a />").attr("href", item.link).append(ii).appendTo("#images");
  66. ii.hoverIntent(function(){
  67. $j("#idIf").attr("data-src", item.link);
  68. }, function(){
  69. });
  70. if (i == 6)
  71. return false;
  72. });
  73. }
  74. });
  75. qryTags(s);
  76. qryPosts(s);
  77. }
  78. // qry-end
  79. // qry-deli-anf
  80. function qryPosts(s){
  81. $j.getJSON("http://feeds.delicious.com/v2/json/wikilicious/" + s + "?count=100&callback=?", function(deli){
  82. $j("#idOlPosts").empty();
  83. $j.each(deli, function(i, item){
  84. var a = $j("<a />").attr("href", item.u).text("there...");
  85. var l = $j("<li />").text(item.d + " (" + item.n + "), ");
  86. a.appendTo(l);
  87. a.hoverIntent(function(){
  88. $j("#idIf").attr("src", item.u);
  89. a.css("color", "red");
  90. }, function(){
  91. //$j("#ifIf").attr("src","about:blank");
  92. a.css("color", "green");
  93. });
  94. l.appendTo("#idOlPosts");
  95. });
  96. });
  97. }
  98. function qryTags(s){
  99. $j.getJSON("http://feeds.delicious.com/v2/json/tags/wikilicious?count=100&callback=?", function(deli){
  100. $j("#idOlOut").empty();
  101. $j.each(deli, function(i, item){
  102. var a = $j("<a />").attr("href", 'http://delicious.com/tag/' + i + " ").text(i);
  103. a.hoverIntent(function(){
  104. $j("#idTag").attr("value", i);
  105. qry(i);
  106. $j("#idIf").attr("src", 'http://delicious.com/tag/' + i);
  107. }, function(){
  108. });
  109. var l = $j("<li />").text(item + "* ");
  110. a.appendTo(l);
  111. l.appendTo("#idOlOut");
  112. });
  113. });
  114. }
  115. // qry-deli-end
  116. $j("#idExec").click(function(){
  117. qry($j("#idTag").attr("value"));
  118. });
  119. $j("#idSu").hoverIntent(function(){
  120. $j("#idS").slideUp("fast");
  121. }, function(){
  122. });
  123. $j("#idSd").hoverIntent(function(){
  124. $j("#idS").slideDown("fast");
  125. }, function(){
  126. });
  127. $j("#idIf").css("height", 400).css("width", "100%");
  128. qry("wikilicious");
  129. }
  130. // a-end
  131. a();
  132. </script>
  133. <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  134. </script>
  135. <script type="text/javascript">
  136. _uacct = "UA-2770529-1";
  137. urchinTracker();
  138. </script>