GithubHelp home page GithubHelp logo

iosscripts / iosslider Goto Github PK

View Code? Open in Web Editor NEW
432.0 432.0 103.0 3.68 MB

iosslider is a jQuery plugin which allows you to integrate a customizable, cross-browser content slider into your web presence. Designed for use as a content slider, website banner, or image gallery.

Home Page: http://iosscripts.com/iosslider

CSS 36.02% JavaScript 63.98%

iosslider's People

Contributors

frontendbeast avatar marcwhitbread 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iosslider's Issues

Bug with Navigation Selector (pagination)

Let's say I have 5 slides and a pagination (similar to the demo you have on the demo site).

On a touchscreen device, if I go to the 3rd slide and swipe at the right edge of the viewport, it will unselect the 3rd active box and add the active class to the first.

Same thing happens if I swipe at the left edge, but it will activate the last navigator box.

Please let me know if that makes sense?

Thanks a lot.

changeSlide option fired twice

methods attached to the changeSlide option are firing twice in stead of once. The issue is isolated to the changeSlide function fired by the autoslide and next/prev/slide selector buttons.

Text display problem on Android, Safari

Certain webkit-based browsers seem to have problems with displaying text on slides after the first slide. For example, the following URL should display two slides of text, but on Safari Version 5.1.7 (7534.57.2) and in the standard Android browser only the first slide's text is shown. Graphics on the slides would display properly.

http://devenv61-temp.aldon.com/slider-test/

This is iosSlider 0.9.4.5, but 1.0 has the same issue.

If I open the "Web Inspector" and click the checkbox of any CSS property in the file, the 2nd slide text will appear.

The text renders properly in the Chrome browsers (even on Android), and it renders properly in the nightly Webkit builds.

How to add a slide counter

Hi,

I'm new to Javascript and Jquery, so please excuse me for what might be a basic question. I'm trying to add a counter to the slider. I've managed to display the total number of slides using this:

<script type="text/javascript"> function displaycounter(){ var totalcount=document.getElementsByClassName("item").length; document.getElementById('counter').innerHTML = "of " + totalcount; alert(slideNumber); } onload=displaycounter; </script>

Not sure if that was the right way to go but now I'm trying to determine the current slide that I'm on. Could you point me in the right direction? Any help would be great.

Thanks.

Undefined error: clickObject.click

Line 1365: clickObject.click is undefined

Error fired on mouseup/touchrelease.

Intended functionality:
Suppress any click events once slide has started.

yui compressor not working because of float

Fix for line 749:

//from this:
$(this).css({
float: ‘left’
});

//to this:
$(this).css({
‘float’: ‘left’
});

It seems to break yui compressor, since float is a reserved, though unused, keyword in js.

Split option responsiveSlideWidth into 2 options

responsiveSlideWidth should be changed to:

  • responsiveSlideContainer (control the responsive width/height of the container)
  • responsiveSlides (control the responsive width/height of slide elements)

Option to make certain areas within a slide unselectable.

This would be useful for making a portion of a slide's inner text to be highlight-able/copy/paste friendly. This option would accept a jQuery selector, those selected elements would override the slide functionality when touched, the slider would do nothing and the content would revert back to default browser behavior.

Not functional on Opera Mini

Hello there,

I just tested this on Opera Mini (both on iPhones and Android) and the touch events do not seem to work.

It works if I click on the navigator thumbnail, but even that it behaves weird.

Have you experienced this at all?

Thanks a lot
Pedro

selected Class don't work outside parent container

Hello,

I'm trying to move the pagination buttons outside the container div, if I do that, it still works. But, it don't add the "selected" class to the current slide.

Take a look at this screenshot: http://i.imgur.com/ACb6o.gif (this is just an example...)

Is there any way to still add the class "selected" to the current slide button even if they are outside the main container?

This is the JS code that I'm using: http://pastebin.com/SdT1ft0P
This is the HTML: http://pastebin.com/wbck2ULh
And this is what I want: http://pastebin.com/WF4Csrs7 (note that the .iosSliderButtons is outside of the .slider)

Thanks in advance for any help!

Javascript error when tapping on a 'slide'

Only happens on touchscreen device (not on desktop).
Error says:
'undefined' is not an Object.

Event happens on the iosSlider plugin website.

The iPhone inspector does not show line number or anything, very difficult to debug.

Create method to temporarily suspend sliding

I am using iosSlider to slide tiles across the screen, these tiles have inner vertical scroll bars among other content. Currently when touch scrolling vertically if the finger is slightly moved right and left the whole slider shifts, in addition to vertically scrolling the tile. This is creating a large performance hit.

Is there a method I can call to temporarily suspend sliding, and enable it again with another call?

infinite scroller: next, previous buttons scrolling numslides+1 slides, not 1

Hi Marc,

Firstly - thanks. Your scroller does just what my client needs.

Unfortunately, I have an issue. I've created a simplified example here. It uses jQuery 1.4.4, as that's the version I'm stuck with, but it happens with the same version as the samples (1.6.1).

In essence, I have an infinitely-scrolling gallery with 4 slides and next/previous buttons. The first two slides scroll normally, but the third and fourth scroll 5 slides instead of one.

I had a quick look at the code, and it seems the current slide number in changeSlide() is not in sync with the current offset of the slider. For example, at the start of the third click, the startOffset is -600px, which corresponds to childrenOffsets[2], but slide is 7.

Thanks again,

Pete

Add a hook for "onSlideStart", or something like it.

There are methods for slideChange, complete, etc. But something that i think was overlooked is slideStart. An event that is fired when the user begins to slide the slider. Implementing this would be a good feature and greatly helpful with my current project. Hopefully it would not cause much lag.

How to add multiple sliders on one page?

Hi,

I was wondering how to go about adding multiple sliders on one page. I created alternate versions of iosSlider div but that didn't seem to work.

Do you have any suggestions?

Thanks so much.

Double sliding with onSlideChange set

I have the last version of IosSlider and I encoutered the following issue :

When sliding the slider was too sensitive, skipping the next slide and jumping to the next after very easily (even with very light finger swipe).

I tried to troubleshoot this issue and I discovered that unsetting the "onSlideChange" option fixed this issue, but I couldn't find any relation between the "onSlideChange" and the slider sensitivity.

DoubleSlider thumbs autoincrement & JSON

Make thumbnail images in Double Slider infinitely loop, and auto increment so the selected one stays in the center. Also would be nice to be able to add slides via a JSON array.

Stuck between slides

On Firefox 12.0 under Windows XP, every 10th slide or so gets stuck half way when dragging with a mouse. Doesn't seem to happen with other browsers. This is with snapToChildren enabled.

Support for fade transition

It would be nice if it would support the fade effect.

While it doesn't make as much sense for touch devices, it would make it more useful as a general-purpose slider. This could also use CSS3 for the effect.

Sliders being loaded with width 0

The environment that i'm working with is heavily dynamic, and i believe that is messing with some slider functionality as things inside it are being ajax loaded and moved quite often.

I am developing a web app for ipad, and it has two sliders on it so far. One for a top set of tiles, and another for a lower set. Three tiles are shown on screen at a time simply by setting their width to 33.333etc%

When i load the page without initializing slider, the tiles form perfectly as i had them set with css. But if i load the page and initialize slider, the slider loads with width 0. Even if i set it to a pixel width instead of percent (using the standard shown on your site).

Here is a snippet of the code, cant show it all for trade secret reasons but i'll do what i can.

<div id="sliderHolder">
    <div class="sliderHolder" id="TopSliderHolder">
        <div id="tileSlider_Top" class='tileSlider_Top'>
            <div class='slider'>
                <div class='sliderTile' id='item1'>
                    <div class='tilePadding'></div>
                </div>
                <div class='sliderTile' id='item2'>
                    <div class='tilePadding'></div>
                </div>
                <div class='sliderTile' id='item3'>
                    <div class='tilePadding'></div>
                </div>
                <div class='sliderTile' id='item4'>
                    <div class='tilePadding'></div>
                </div>
            </div>
        </div>
    </div>
    <div class="sliderHolder" id="BottomSliderHolder">
        <div id="tileSlider_Bottom" class='tileSlider_Bottom'>
            <div class='slider'>
                <div class='sliderTile' id='item1'>
                    <div class='tilePadding'></div>
                </div>
                <div class='sliderTile' id='item2'>
                    <div class='tilePadding'></div>
                </div>
                <div class='sliderTile' id='item3'>
                    <div class='tilePadding'></div>
                </div>
                <div class='sliderTile' id='item4'>
                    <div class='tilePadding'>
                                        </div>
                </div>
                <div class='sliderTile' id='item5'>
                    <div class='tilePadding'></div>
                </div>
            </div>
        </div>
    </div>
</div>

the sliderholder div has its height and width set to pixel dimensions by js on window resize, and the sliders are destroyed/restarted on window resize.

The initialization code is thus:

$('#tileSlider_Top').iosSlider({
        snapToChildren: true,
        desktopClickDrag: true,
        navSlideSelector: '#tileSlider_Top .slideSelectors .item',
        onSlideComplete: topSlideComplete,
        onSliderLoaded: topSliderLoaded,
        onSlideChange: topSlideChange,
        frictionCoefficient: '0.96',
        snapFrictionCoefficient: '0.96',
        elasticPullResistance: '.6'
    });
    $('#tileSlider_Bottom').iosSlider({
        snapToChildren: true,
        desktopClickDrag: true,
        frictionCoefficient: '0.96',
        snapFrictionCoefficient: '0.96',
        elasticPullResistance: '.6'
    });

great, having trouble showing html code github? one sec man while i fix this...

Big gap in the html content flow under the slider

I implemented the slider and it works quite nicely :-)

But there is a big empty gap in the html content flow under the slider.

This occurs on Firefox 12.0 on my Linux pc and on iOS 5 on my iPod Touch.

It is solved, but not on my iPod Touch, only on my pc, with the following style:

display: inline;

as in:

.elearning_exercise_page_tabs {
position: relative;
top: 0;
left: 0;
overflow: hidden;
display: inline;
}

Here is my full implementation:

<style type="text/css"> .elearning_exercise_page_tabs { position: relative; top: 0; left: 0; overflow: hidden; display: inline; } .elearning_exercise_page_tabs .slider { width: 100%; height: 100%; } .elearning_exercise_page_tabs .elearning_exercise_page_tab { float: left; } </style> <script src='$gJsUrl/jquery/jquery.easing.1.3.js' type='text/javascript'></script> <script type = 'text/javascript' src = '$gJsUrl/jquery/iosSlider-0.9.4.3b/jquery.iosslider.min.js'></script> <script> $(document).ready(function() { $('.elearning_exercise_page_tabs').iosSlider({ desktopClickDrag: true, infiniteSlider: true }); }); </script>

Kind Regards,

Stephane

Should have links to just JS files

Just a suggestion that will help those who rely on your plugin updates. On your website you should have 3 links instead of just one. The version with examples, a direct link to the full js file, and a direct link to the minified JS file. I am having to unzip every time just to get the js files out of the example.

Just a convenience thing :)

Thanks for all your work.

Documentation needed for args array.

Please list on the website what is actually exposed in the args array for onSlideChange, etc. If i missed it somewhere i apologize, but i do not see any documentation. Thanks.

Error caused on mouse up

When dragging the slider in my instance, on mouseup/release slider is throwing an error. Not sure why, or if it is affecting anything, but here is the error. I see no adverse effects.

Uncaught TypeError: Cannot read property '0' of undefined ( jquery.iosslider.min.js:35)
L.init.each.b.bind.b.css.cursor ( jquery.iosslider.min.js:35)
jQuery.extend.each ( jquery-1.7.2.js:660)
jQuery.fn.jQuery.each ( jquery-1.7.2.js:271)
L.init ( jquery.iosslider.min.js:35)
jQuery.event.dispatch ( jquery-1.7.2.js:3332)
jQuery.event.add.elemData.handle.eventHandle ( jquery-1.7.2.js:2941)

Seek and DESTROY

Great work on the benchmark demos, really great. Would like to have the slider launch in DESTROY mode activated only by INIT and stopped by DESTROY again. Unsure how to make this happen…

Look forward to your relpy.

Best regards

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.