Giter Club home page Giter Club logo

slip.js's Introduction

binnng

介绍下我自己。

安装

npm install binnng

使用方法

var binnng = require("binnng");

console.log(binnng.birthday); //1990.01.04

slip.js's People

Contributors

binnng avatar hashplus avatar jamiesoung 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

slip.js's Issues

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>

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);

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.