Coder Social home page Coder Social logo

peachananr / autofix_anything Goto Github PK

View Code? Open in Web Editor NEW
313.0 313.0 107.0 22 KB

Fix position of anything on your website automatically with one js call

Home Page: http://peachananr.github.io/autofix_anything/Demo/autofix_demo.html

License: GNU General Public License v2.0

CSS 8.76% JavaScript 91.24%

autofix_anything's People

Contributors

peachananr 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

autofix_anything's Issues

sidebar disappear when scroll to very bottom

i changed less than '<' to equal '='. and it seems its fixed. pls review.

if(e(document).scrollTop()<t.parent().height()-e(window).height()){t.addClass("bottom fixed").removeAttr("style")

if(e(document).scrollTop()=t.parent().height()-e(window).height()){t.addClass("bottom fixed").removeAttr("style")

Unable to use inside of accordion

Hi, I'm trying to insert a fixed navbar inside each row on a bootstrap accordion. The contents of the accordion rows is quite long so I want the fixed navbar to jump to different sections inside each row. When I insert it, I'm getting a top position is undefined error. If i place it outside the accordion it works fine

left position on resize

Hi;
I am using your plugin with FOUNDATION and have just noticed that the left:position does not get adjusted when the page resizes.

This may be rare on a desktop but will be very common a mobile device.

<div class="stik autofix_sb bottom fixed" style="left: 600.5px; width: 800px;"> 
Can this be fixed to adjust itself on resize ?

I have hacked it to include the el.width as if the sticky element is not full width (i.e centered in the page) then it will extend itself to the extreme right of the page beyond the bounds of the original relative, unstuck element.

pos = el.offset();
wid = el.width();

el.addClass("bottom fixed").removeAttr( 'style' ).css({
left: curpos.left,
width: wid

You may want to consider adding something similar ?

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.