Coder Social home page Coder Social logo

dvlden / vidage Goto Github PK

View Code? Open in Web Editor NEW
1.6K 37.0 70.0 5.26 MB

Your solution to full-screen background video & image combined.

Home Page: https://dvlden.github.io/vidage/

License: MIT License

JavaScript 78.50% SCSS 21.50%
background video background-video hacktoberfest

vidage's People

Contributors

angelas-studio avatar benfogel avatar dvlden avatar kennynaoh avatar loic5 avatar mel-jecker 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vidage's Issues

osx safair bug

Unhandled Promise Rejection: NotAllowedError (DOM Exception 35): The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission
1

ParseError: 'import' and 'export' may appear only with 'sourceType: module'

npm install vidage --save

Inside of app.js:
import Vidage from 'vidage'

Upon compile, leads to following message:
ParseError: 'import' and 'export' may appear only with 'sourceType: module'

Seems like my main entry point in package.json should be changed...
main: "src/scripts/Vidage.js" โ†’ main: "dest/scripts/Vidage.min.js"

If anyone else has explanation and solution to this, other than what I think it might be, let me know in here...

Change video via javascript

Hi, just trying to pick a random video from an array on each load but it doesn't seem to work.

function randomvideo(){
    var num = Math.floor(Math.random() * (videosmp4.length));
    document.querySelector("#vidage > source:nth-child(1)").src=videoswebm[num];
    document.querySelector("#vidage > source:nth-child(2)").src=videosmp4[num];
    console.log(num);
}

it shows the link is changed in the html elements viewer, but does not actually alter the video. Am I missing something?

It works in IE

IE 10 and IE Edge works fine for me. Why in Readme:

Unfortunately, I was unable to determine the issue on Internet Explorer. It just shows up the cover image, but never plays the video. :'(

win7 64x, ie edge

Remove video if it is mobile device

For now Vidage just use display: none, but maybe remove <video> element from page?
Of course make this optional.

Why i'm asking for this?

I'm trying to use Vidage with https://github.com/alvarotrigo/fullPage.js and on desktops i need video to be autoplayed, but on mobile devices i need image instead. But fullPage.js starts video on mobiles.

Wait, what? It's seem like a trouble with fullPage.js not with Vidage

Yeap and nope. As i understand, Vidage's task is to define what to show: image or video, so i'm asking about this here

What do you think about this?

npm 0.1.3 Vidage.min.js missed

I have Vidage as dependency and tooled gulp task for copying .min.js file, unfortunately in last 0.1.3 release Vidage.min.js is missed

Problems on Safari

Hi, I'm using Vidage 0.3.0 on this site. I'm on Windows and am unable to try to debug the Safari version, but am getting reports it's not working in Safari. It's working for me in Chrome. I'm told the demo is working. Any ideas? Thanks.

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.