Git Product home page Git Product logo

slip.js's Issues

5儿子系统微信下的innerHeight获取错误.

由于现在的库一加载完就获取window.innerHeight 导致了获取一个1400+的值。
问题详见:http://cure.sinaapp.com/

现在我的解决办法是延迟如下,望修改

setTimeout(function() {
        var slipJS = document.createElement("script");
        slipJS.src = "/statics/scripts/min.slip.js";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(slipJS, s);
        slipJS.onload = slipJS.onreadystatechange = function() {
            var slip = Slip(wrap, 'y')
                .webapp()
                .start(function() {
                    arrowUpElement.style.display = 'none';
                })
                .end(function() {
                    arrowUpElement.style.display = 'block';
                });
        }
    }, 500);

jump方法传递css选择器无效

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../assets/libs/min.slip.js"></script>
</head>
<body>
    <div id="container">
        <div>aDD</div>
        <p id="cc">b</p>
        <div>c</div>
    </div>
    <script>
        var a = document.getElementById('container');
        var slip = Slip(a, "x");
        slip.webapp();
        slip.jump("#cc");
    </script>
</body>
</html>

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.