Giter Site home page Giter Site logo

strip's People

Contributors

staaky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

strip's Issues

Dynamically changing strip-group causes weird behavior.

If you want to dynamically change data-strip-group Strip has some unusual behavior.

Usecase:

I have 50 photos, that need to be in a group all onload.
User input can filter photos to a new category, which also changes the data-strip-group.

When users first click on a photo in the all group, it sorts them nice in a 50 photo group. But when clicking strip away, navigating to a new category (thus changing the strip-group attribute), and clicking a new photo that now belongs to a different strip-group, Strip removes the photos of the new group from the all group, and shows the all group instead.

When immediately filtering to a category, repeating the steps above but avoiding the "all" category, it works just fine.

Code used to change attribute:

$(function(){
    $('.photos-container').isotope({
        itemSelector: '.photo',
        layoutMode: 'masonry'
    });
   
    $('.photo-navigation .iso-nav-btn').on('click', function(){
        filter = $(this).data('category');
        $('.photos-container').isotope({
            filter: filter
        });
        
        if(filter === "*"){
            $('.photo .strip').attr('data-strip-group', 'all');
        }else{
            $(filter).find('.strip').attr('data-strip-group', filter.substr(1));
        }
    });
});

I'm guessing it has something to do with the eventlistener attached to the photo elements, but I can't find a way to destroy and reattach the listiners on each filter.

`onShown` fired when resizing

The document states onShow: A function to call when Strip comes into view. According to my test, it also fires when resizing.

An event only fires once is wanted.

Strip with text?

HI,

I need some help, is it possible to use strip but to display text instead of an image/video?
I love the dropdown from top but i need it to display text not an image and ive tried and failed :/

Is there a way? Ive read the documentation and i cant see the answer there.

Thanks in advance and good work!

Vimeo options issue

data-strip-options="vimeo: { autoplay: 1, title: 0, byline: 0, portrait: 1, loop: 0 }

Adding options to a Vimeo video works only the second time I click the element with the strip class. Same behaviour is happening on the Strip vimeo sample on your website.

It seems that the iframe is being created the first time I clicked the trigger and the second time is actually reading the options.

.....

Update: it is happening just in MacOS using Chrome. The same doesn't happen on Firefox or Safari, neither using Chrome on Windows.

Uncaught SyntaxError: Unexpected end of input

woah, i'm hungry,
sorry,
i found some error in console Uncaught SyntaxError: Unexpected end of input in strip.pkgd.min.js:82.
Any idea what may is?
Tips: The files strip.pkgd.js is working fine.
Saludos!

Licensing is invalid and strongly misleading

"For non-commercial, personal, or open source projects and applications, you may use Strip under the terms of the GPL v3 License." You cannot release something under the GPL for non-commercial use only. That is an invalid additional restriction which the GPL forbids - the sentence pretty much contradicts itself. This means you either just revoked the GPL in the very sentence you granted it, making everyone legally unable to use your product without a commercial license, or you just granted everyone the right to use it commercially as well - whatever the lawyers make of it. Anyway, you should really fix this.

Adding Markup to Content

Hi,
I am trying to add a deep-link and sharing buttons to a strip lightbox. I have got the deep-link sorted out by adding some code to the onShow callback, but I am running into a wall for the sharing buttons. Let's say I want to insert the buttons into the strp-info section. Obviously, since sharing is involved, I need to dynamically pass the page URL (not the image URL) and title information. What would be the easy / right way to do this? If I try to print this in the onShow callback, I am getting the Strip object. Is there a way to reference the UI element inside?

set default options

Is there a way to globally override the default options?

If I understand the code right, the only way to override the defaults is by setting them on a per image/show basis.

It would be nice to be able to say for example "always show the image from the left side, except if defined otherwise"

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.