This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Modification from original http://twitter.com/javascripts/blogger.js | |
| // Just a quick fix to clean up the code, make html validate, some ajax to add a loader in case Twitter is slow | |
| // and then apear once it loads. | |
| // It uses Scriptaculous | |
| function twitterCallback2(twitters) { | |
| var statusHTML = []; | |
| for (var i=0; i<twitters.length; i++){ | |
| var username = twitters[i].user.screen_name; | |
| var status = twitters[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g, function(url) { | |
| return '<a href="'+url+'">'+url+'</a>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ActionView | |
| module Helpers | |
| module AssetTagHelper | |
| def favicon_link_tag(url_options = {}, tag_options = {}) | |
| href = url_options.is_a?(Hash) ? | |
| url_for(url_options.merge( | |
| :only_path => false)) : url_options | |
| tag( | |
| "link", | |
| "rel" => tag_options[:rel] || nil, |
NewerOlder