Sunday, February 24, 2013

Wiktionary - Recent changes [en]: User:Stratoprutser/404.js

Wiktionary - Recent changes [en]
Track the most recent changes to the wiki in this feed. // via fulltextrssfeed.com
User:Stratoprutser/404.js
Feb 24th 2013, 21:00

Line 29: Line 29:
 

return {

 

return {

 

parse: function (word) {

 

parse: function (word) {

$.getJSON("http://pipes.yahoo.com/pipes/pipe.run?_id=eb450438ffa82162ff9a4be13c6e27e9&word=" + word + "&_render=json&_callback=?",

+

$.getJSON("http://pipes.yahoo.com/pipes/pipe.run?_id=eb450438ffa82162ff9a4be13c6e27e9&word=" + 'sloth' + "&_render=json&_callback=?",

   
 

function (json) {

 

function (json) {

parseFeed(json, word);

+

parseFeed(json);

 

});

 

});

 

}

 

}

 

};

 

};

   

function parseFeed(json, word) {

+

function parseFeed(json) {

 

var seen = {}; /* preventing double interwikis */

 

var seen = {}; /* preventing double interwikis */

 

if (json.count > 0) {

 

if (json.count > 0) {

 

$(json.value.items).each(function () {

 

$(json.value.items).each(function () {

var itemDetail = createInterwiki(this, word);

+

var itemDetail = createInterwiki(this);

 

if (seen[itemDetail]) $(this).remove();

 

if (seen[itemDetail]) $(this).remove();

 

else {

 

else {

Line 53: Line 53:
 

}

 

}

   

function createInterwiki(item, word) {

+

function createInterwiki(item) {

return '<h4>[[' + item.content + ':' + word + ']]</h4>';

+

return '<h4>[[' + item.content + ':' + 'word' + ']]</h4>';

 

}

 

}

   

  jQuery;     var microbubble = window.microbubble || {}; // namepsace     $('body').append('<div id="ssinterwikis">interwikis</div>');  $("#ssinterwikis").html("<em>loading interwikis...</em>");     alert(wgTitle);     var pipeFeed = new microbubble.PipeFeed();  pipeFeed.parse('sloth'); //wgTitle  $("#ssinterwikis").getPipe('sloth');        jQuery.fn.getPipe = function () {  alert("Your book is overdue.");      var pipeFeed = new microbubble.PipeFeed(this);      pipeFeed.parse();  };     /**   *  PipeFeed Class   *  Returns an ordered interwikis   */  microbubble.PipeFeed = function (htmlElement) {          htmlElement.html('<ol id="feed-results"></ol>');          var listElement = $("#feed-results");             return {                  parse: function (word) {                          $.getJSON("http://pipes.yahoo.com/pipes/pipe.run?_id=eb450438ffa82162ff9a4be13c6e27e9&word=" + 'sloth' + "&_render=json&_callback=?",                             function (json) {                                  parseFeed(json);                          });                  }          };         function parseFeed(json) {          var seen = {}; /* preventing double interwikis */          if (json.count > 0) {              $(json.value.items).each(function () {                  var itemDetail = createInterwiki(this);                  if (seen[itemDetail]) $(this).remove();                  else {                      seen[itemDetail] = true;                      $(listElement).append('<li>' + itemDetail + '</li>');                  }              });          } else {              -htmlElement.html("<i>No interwikis found</i>");          }      }         function createInterwiki(item) {          return '<h4>[[' + item.content + ':' + 'word' + ']]</h4>';      }     };  

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions