Giter VIP home page Giter VIP logo

photron's Introduction

Photron

An easy-to-use lightbox.

Build Status Codacy Badge GitHub release (latest by date) GitHub file size in bytes GitHub file size in bytes GitHub issues GitHub closed issues GitHub

Features

  • Supports touch gestures for navigation
  • Completly vanilla and standalone

Getting started

  • Coming soon...

Installing

  • Just download the compressed javascript file from the dist/ folder
  • After that you'll also to reference the javascript file in your HTML file by using:
<script src="./[PATH]/[TO]/Photron.min.js"></script>
  • Last you add the .photron-item class to every item inside the gallery

Usage

<script type="text/javascript">
	Photron({
		//-- Custom settings
	});
</script>
Setting Datatype Default Description
showImageTitle boolean true Whether the data-title attribute of the img should be shown or not.
showGalleryTitle boolean true Whether the data-title attribute of the Photron container (e.g. .lightBox) should be shown or not.
roundRobin boolean true Whether the items in an Photron should begin at the start if the end was reached and vice versa.
labelPrevious string "Previous image" Set a custom text for the previous-button.
labelClose string "Close" Set a custom text for the close-button.
labelNext string "Next image" Set a custom text for the next-button.

Versioning

I am using Semantic Versioning 2.0.0 for versioning. For the versions available, see the tags on this repository.

Authors

  • André Lichtenthäler (Bikossor) - Initial work

License

This project is licensed under the MIT License. See the LICENSE.md file for more details.

Changelog

Version 1.0.0: (3rd February, 2018)

  • [Change] Photron is now completly vanilla and standalone
  • [Added] Opening and closing animations of the overlay

Version 0.2.1: (4th September, 2017)

Version 0.2.0: (20th August, 2017)

  • Renamed the CSS-IDs
  • Improved CSS compatibility
  • Every javascript function now returns false
  • Added support for navigation via touch

Version 0.1.1: (6th August, 2017)

  • Fixed issue #1 (This time for real...)
  • Changed some lines from ES6 to ES5 (For compatibility reasons)
  • The close-Function now resets the Photron content explicitly
  • Added a minified version of the stylesheet

Version 0.1.0: (2nd July, 2017)

  • First introduction

photron's People

Contributors

bikossor avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

photron's Issues

Close function doesn't remove full youtube ...

Hi, should be used:
$('#alb_overlay').fadeOut(settings.effectTime, function(){$(this).remove();});
instead of
$('#alb_overlay').fadeOut(settings.effectTime);
already in use?
I asked that because i didn't have my youtube object full removed as the overlay window get closed but I still have the sound continuing....

Always the first element is opened when clicking on nested elements

Hi,
I am using your amazing ALightBox script version Photron-0.2.0
I have a problem using it with the scroll swiper script https://swiperjs.com/
here is my example:



                          <div class="swiper-slide" >
                          <a class="alb-item" href="https://www.youtube.com/watch?v=6FRS4MF7UvQ" ></a>
                          </div>

                          <div class="swiper-slide" >
                          <a class="alb-item" href="https://www.youtube.com/watch?v=9SJc7N0S41A" ></a>
                          </div> 

                          <div class="swiper-slide" >
                          <a class="alb-item" href="https://www.youtube.com/watch?v=9SJc7N0S41A" ></a>
                          </div> 

		      <div class="swiper-slide">
                          <a class="alb-item" href="https://www.youtube.com/watch?v=-7RlEe_FGSA" ></a>
                          </div> 
                                    
                          </div>
                                    <div class="swiper-button-next"></div>
                                    <div class="swiper-button-prev"></div>

                          </div>
                          </div>

When I click on the 3 or 4 videos on the scroll it always opens the first video, it does not recognize the clicked video, very likely there is a conflict because I insert

with each video, in fact eliminating this piece of code works.
I would like to use your script because I am in love with it, how can I solve?
thank you

Index bug

The shown index of the current image is not correct if the gallery has no title.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.