summaryrefslogtreecommitdiffstats
path: root/core/js/placeholder.js
Commit message (Collapse)AuthorAgeFilesLines
* Remove show() function since we always show the avatar containerJulius Härtl2018-01-081-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add loading icon on avatarJohn Molakvoæ (skjnldsv)2017-12-191-2/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Don't show placeholder when we have loaded the avatar imageRoeland Jago Douma2017-09-261-0/+9
| | | | | | | Fixes #6618 Else it shows up as background to transparent avatars Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix semicolon at end of JS linesMorris Jobke2017-05-011-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix rgb valuesJohn Molakvoæ2016-04-181-1/+7
| | | | | Fix was required because values was too big for rgb and breaking the brightness calculation. Now we have the initial sat (70%) and the reduction to 60 if too bright working again.
* Updated color generatorJohn Molakvoæ2016-04-061-5/+23
| | | | Separated the main function to allow special use without dom manipulation.
* New colour generatorJohn Molakvoæ2016-04-011-6/+56
|
* [Avatars] Calculate 'sane' hue precissionsRoeland Jago Douma2015-12-241-2/+2
| | | | | | | | | | We used to get the numeric value of the entrire md5 string which is a 128bit integer. We would then devide this by the maxval of a 128bit int. There is no need for such huge computations. As we just require a value between 0 and 255. Thus using two 16 bit values is more than enough to get the precision we need. By just taking the MSB we get nearly identical results.
* Add a default size to the avatar placeholdersRoeland Jago Douma2015-12-171-2/+6
| | | | | This removed the need to do an avatar request on the "empty" row in the user settings.
* use normal font weight instead of bold for image placeholdersJan-Christoph Borchardt2015-05-221-1/+1
|
* Renamed current placeholder jquery plugin to imageplaceholderVincent Petry2013-10-231-3/+3
| | | | | This is to prevent conflicts with jquery libs that handle text placeholders in IE8
* Shorten optional text-argument processingkondou2013-09-251-3/+2
|
* Make it possible to have a different color than the username for placeholderkondou2013-09-251-2/+14
|
* placeholder.js: fix typoJan-Christoph Borchardt2013-09-021-1/+1
|
* placeholder.js: adjust saturation and lightness valuesJan-Christoph Borchardt2013-09-021-2/+2
|
* RGB -> HSLMorris Jobke2013-09-021-7/+4
|
* fixing typoThomas Müller2013-08-281-1/+1
|
* calculate fontsize and line-heightMorris Jobke2013-08-281-2/+7
|
* reviewers commentsMorris Jobke2013-08-281-0/+60