Giter Club home page Giter Club logo

anyviewer's Introduction

This is AnyViewer, a kiosk-style website that displays a set of URLs in order and with animation.

To start, make a clone of this repository somewhere on a static web server and modify the tabs.json to contain an array of entries like this:

{
  url: 'http://google.com/',
  seconds: 20
}

The entries will be shown in order, starting with the first one, waiting seconds seconds, then moving on to the next one. The file is re-requested for every move, so changes to the file will be applied as soon as the next tab loads.

If any error occurs during the load of this file (including an empty array of tabs), the code will try again after a second. If a tab fails to load, for example because a request to its URL times out, it will be skipped. By default, a timeout is diagnosed after the URL did not load in ten seconds; this can be changed for specific tabs by setting their 'timeout' property to the number of seconds. You can set this to a short amount for pages that should load quickly, or to a large amount for pages that you know can take a while to load:

{
  url: 'http://slowy.example.org/generateStatistics',
  seconds: 20,
  timeout: 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.