1.3.4 • Published 4 years ago

publicalbum v1.3.4

Weekly downloads
62
License
ISC
Repository
github
Last release
4 years ago

PublicAlbum.org javascript gallery decorator

Public album is a photo sharing serivice running on www.publicalbum.org. You can create simple stories based on photos that are organized in your public profile, for example: https://www.publicalbum.org/pavex.

More information about Public album photo sharing is available on: https://www.publicalbum.org/blog/photo-sharing-website or example of usage of this service: https://www.publicalbum.org/blog/how-to-start-successful-travel-blog.

Public album use a custom javascript decorator for the photo galleries. This package contain compiled version of main decorator, primary for embedding stories/photosets into custom websites.

Good to know.

First, you need this package npm i publicalbum or include script from CDN into your website.

<script src="https://cdn.jsdelivr.net/npm/publicalbum@latest/embed-ui.min.js" async></script>

Here are three way, how to use this decorator:

Decorate Public album story

Here is a example one of my photoset story presented on https://www.publicalbum.org/pavex/neowise-comet?story=517990128.

<div class="pa-gallery-player-widget" style="width:100%; height:480px; visibility:hidden;"
  data-id="517990128"
  data-link="https://www.publicalbum.org/pavex/neowise-comet?story=517990128">
</div>

Similar, but static only way may be look like then:

Decorate HTLM code

<div class="pa-gallery-player-widget" style="width:100%; height:480px; visibility:hidden;"
  data-link="remote link of album" data-title="Album title">
  <object data="image1.jpg"></object>
  <object data="image2.jpg"></object>
</div>

Or decorate dynamicly:

Decorate custom data

var player = new GalleryPlayerWidget();
player.decorate(document.getElementById('widget1'));

After Public album script loaded, there are following object constructors are available:

  • CarouselWidget,
  • GalleryPlayerWidget.

And supported methods:

  • .decorate(Element element) – decorate element with widget data
  • .setDataset(object) - setup widget by custom data
  • .update() – update widget completely
  • .refresh() – update widget dimensions only, when size changed or etc.

*

Now, code is not open-source. If you want get to more information about code or donate, please contant me or check my blog for more information and examples.

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.2.37

5 years ago

1.2.36

5 years ago

1.2.35

5 years ago

1.2.34

5 years ago

1.2.33

5 years ago

1.2.32

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.3.0

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

6 years ago