How can I make these two hashtags widgets?
Recent HashTags Widget:
Popular HashTags Widget:
// start with a jQuery document ready event to execute code when the document is loaded
$(function() {
var a = document.getElementsByTagName('A'), // get all links in the document
i = 0, // link index ; 0 is the first link, 1 is the second, and so on..
j = a.length; // define link length so it doesn't need to be looked up after each iteration
for (;
i<j; // continues iteration until all links have been looped
i++ // increments our index after each loop
)
{
if (
a[i].title // only hashtags and mentions have titles if HTML is disabled
&& // and
/^#/.test(a[i].innerHTML) // hastags always begin with a pound or "hash"
// if these two conditions are true, we can execute code specifically for them
)
{
a[i].className += ' fa-hashtag'; // add classname .fa-hashtag
}
}
});
In practice the character limit is only 15,000!Ange Tuteur wrote:(...) you have a character limit of 65,000 (...)
How can happening this?JScript wrote:In practice the character limit is only 15,000!Ange Tuteur wrote:(...) you have a character limit of 65,000 (...)
I have confirmed in my tests...
JS