Skip to content

SamiRenkyorganci/spoilerJs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spoilerJs

It is a script for create inline spoiler spot in html.

Written with JS+JQuery

It's how it works

and very easy to use;

First import jQuery, spoiler.js, spoiler.css...

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" charset="utf-8"></script>
    <script src="../src/spoiler.js"></script>
    <link rel="stylesheet" href="../src/spoiler.css">

then, spoiler() it...

  spoiler($("#myText"),{title:"Spoiler! Don't Click."});

About

Inline spoiler format...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 86.9%
  • JavaScript 7.8%
  • CSS 5.3%