Giter VIP home page Giter VIP logo

jquery.documentsize's People

Contributors

hashchange 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jquery.documentsize's Issues

What's the right way to use this library in node?

Assuming that I already have a window/document object globally available for this library to do its work, how should I import it and bind it in node.js?

I was expecting something like const $ = require(jquery.documentsize); to work, but that's not working.

According to the documentation, this library needs a $ to binds itself to that variable, but I still don't understand how I make the library available to a hypothetical var $ = {} object if I'm not explicitly calling it against its import variable.

So what's the correct version of using this with Node.JS. Again, you can assume that I already have a window object. For the sake of the example something like this:

require("jsdom").env("", function(err, window) {
    if (err) {
        console.error(err);
        return;
    }

Any ideas?

Cheers,

Thank you!

This is a great tool with excellent documentation. It solved a long-time problem I've been having a surprising amount of trouble finding a solution to: effective viewable height vs. viewport / screen height on Mobile Safari.

Many cheers. Would donate if a link were available ๐Ÿ’ฐ

jquery.documentsize + IE9 and window.onload not firing until mouse move

Hello, I've just sourced a strange scenario whereby IE9 does not fire the window.onload event until the mouse is moved when documentsize is included on the page. Remove the library and the problem goes away. I can provide a video of the behaviour if required. Do you know what could be wrong?

is pinchZoomFactor() on android chrome supposed to work?

I tried the following code with Chrome on Android and the pinchZoomFactor() always returns 1. Is this expected/normal?

<html>
   <head>
   </head>
<body>
   <div>
      Page Zoom: ...
   </div>
</body>
<script>
let $ = {};
</script>
<script src="jquery.documentsize.js">
</script>
<script>
document.addEventListener("touchend", () =>
      {
         setTimeout(() => {
            document.body.innerHTML = "Zoom level: " + $.pinchZoomFactor().toString();
         }, 500);
      }, false);
</script>
</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.