Justified.js icon indicating copy to clipboard operation
Justified.js copied to clipboard

Not a clue

Open seffw opened this issue 8 years ago • 3 comments

Thanks for providing the plugin, but not a clue how to use it.

You demo is using a flickr stream it seems which gives no insight into how to get the image data into the your function.

I'm moving on because there are other options. I'd recommend making a demo which is replicable or the HTML + JS + CSS needed to make a working demo.

seffw avatar Nov 13 '16 18:11 seffw

Same issue here

I also dislike that you have to link the pictures in the JS. Would be a better solution IMHO if the source of the pictures would be in the DOM in case of someone has disabled JS and SEO.

candyflip19 avatar Dec 15 '16 12:12 candyflip19

Same here, no clue on how to implement it...

santiagovdk avatar Jan 13 '17 16:01 santiagovdk

There is also the option of inserting the pictures list in the page itself in a js variable so you don't need to fetch the images from an external source. For example I use something like:

<script>
var photos = [{width: 4000, height: 3000, url: '/path/to/myfirst.jpg'}, {width: 2000, height: 2000, url: '/path/to/mysecond.jpg']
</script>

The content of the array can be pretty much anything you want as you can write your own getSize, thumbnailPath, template, etc. methods.

mathiasuk avatar Feb 14 '17 17:02 mathiasuk