Giter VIP home page Giter VIP logo

simonsays's Introduction

What it is

Html to copy from simonsaysmin.html and paste inside a blogger HTML/Javascript gadget. The core functionality is provided by the simonSays function which will dynamically load jQuery and Snap if the global variables are not defined.

How it works

Firstly, this has been copied from a codepen and altered to allow for dynamic loading of dependencies. The original code works fine but is in need of refactoring ( or a complete re-write !).

There are two parts to this. The first part is specific to my needs. The html required by the simonSays function is contained within a hidden container. The only thing visible on the screen initially will be

<div>Bored?</div>

This will blink to attract attention and when clicked will hided the bored div and call simonSays passing loaded callback function. When loaded the container will be displayed which contains a close div and will be centered on the screen.

Closing will set the widget back to the initial state.

To use for yourself

Keep the style element and use the html element with id ss-shell. Call the simonSays function and provide the loaded callback and show the html when loaded.

simonsays's People

Contributors

tonyhallett avatar

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.