📜 ⬆️ ⬇️

Karmavyeuer as a weakly bundled module to HabrAjax

The module is an independent plugin that can work without the main script. The history of this Karmavjuera begins from March 23, 2010 - the author Atilla wrote a script for displaying karma by hovering the mouse over the user name. By this time, there were another 2-3 realizations of the display of karma and one - even with a change without entering the page. Download karmavyuer .
HabrAjax

Features of data display


* Data for the same link is read from the server no more than once every 60 seconds (on mouse over), according to the recommendation of the API: habrahabr.ru/info/help/api .
* the show is activated on 4 types of links to users: on the captions to the article, on the habraiser link in the texts and in the right column, in the comments, in the answers to the questions.
* The tooltip block is fixed on the page by clicking the mouse, not disappearing in the lead. A second click returns the block to its original state - disappearing when the mouse is moved away.
* All figures are rounded to 0.1.
* Fast holding the mouse over the name (less than 250 ms) does not lead to a request for indicators.
* substrate colors reflect 4 intervals of karma values: ██ to -5, ██ -5: 9.9, ██ 10: 24.9, ██ 25 and more.
* If an error occurred during data retrieval (for example, there is no connection or the server is not responding), there is no repeated request.
* Works in Fx, Chrome, Opera. In Safari it was not checked, but it should also (screenshot from the Opera).

')

Source: https://habr.com/ru/post/143154/


All Articles