Giter Site home page Giter Site logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
I would go something like that:

if (window.matchMedia("(min-width: 769px)").matches) {
       $("#wrapper").tubular({
           videoId: 'idOfYourVideo',
           mute: false,
           repeat: true
       }); // where idOfYourVideo is the YouTube ID.
   }

It's pretty simple: run tubular.js only when viewport is bigger than 769px

Hope it helps.

Original comment by [email protected] on 17 Apr 2013 at 8:20

from jquery-tubular.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Hi Nicola,

I could not get this to work. Im not sure where you meant to place this code.
Can you or someone give me more direction here.

So i run this as a script on the particular page?
thanks

Original comment by [email protected] on 1 Jul 2013 at 7:54

from jquery-tubular.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
This sounds similar to the issue I just posted about users needing to interact 
with a video before the api will work. Might try the patch in 
https://code.google.com/p/jquery-tubular/issues/detail?id=44 and see if it 
helps.

Original comment by [email protected] on 23 Aug 2013 at 4:51

from jquery-tubular.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Excellent, works fine! Thanks Nicola!

Original comment by [email protected] on 21 Oct 2014 at 1:08

from jquery-tubular.

Related Issues (20)

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.