Skip to content

Commit

Permalink
Fixed documentation
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Feb 27, 2018
1 parent b6356a1 commit 308ed1e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/js/placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ownCloud
*
* @author John Molakvoæ
* @copyright 2016-2017 John Molakvoæ <skjnldsv@protonmail.com>
* @copyright 2016-2018 John Molakvoæ <skjnldsv@protonmail.com>
* @author Morris Jobke
* @copyright 2013 Morris Jobke <morris.jobke@gmail.com>
*
Expand Down Expand Up @@ -36,26 +36,26 @@
*
* Which will result in:
*
* <div id="albumart" style="background-color: hsl(123, 90%, 65%); ... ">T</div>
* <div id="albumart" style="background-color: rgb(121, 90, 171); ... ">T</div>
*
* You may also call it like this, to have a different background, than the seed:
*
* $('#albumart').imageplaceholder('The Album Title', 'Album Title');
*
* Resulting in:
*
* <div id="albumart" style="background-color: hsl(123, 90%, 65%); ... ">A</div>
* <div id="albumart" style="background-color: rgb(121, 90, 171); ... ">A</div>
*
*/

/*
* Alternatively, you can use the prototype function to convert your string to hsl colors:
* Alternatively, you can use the prototype function to convert your string to rgb colors:
*
* "a6741a86aded5611a8e46ce16f2ad646".toHsl()
* "a6741a86aded5611a8e46ce16f2ad646".toRgb()
*
* Will return the hsl parameters within an array:
* Will return the rgb parameters within the following object:
*
* [290, 60, 68]
* Color {r: 208, g: 158, b: 109}
*
*/

Expand Down

0 comments on commit 308ed1e

Please sign in to comment.