Socket
Socket
Sign inDemoInstall

popup-survey

Package Overview
Dependencies
64
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    popup-survey


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

TooSlides

A project showing how to create a simple javascript plugin

Getting Started

Get started by downloading the content of this repo. There are two main files of concern: tooSlide.js and tooSlide.css.

Link both files to the page where you want a slider:

<link rel="stylesheet" href="tooSlide.css"> <script src="tooSlide.js>

Using the plugin

The plugin works by converting a list of images on a page to a slider.

Steps

1 Create a container element that will house all sliding images e.g <div class="surveyContainer"></div>

2 Inside the container, add a new div for each image to be used e.g <div class="singleSlide"><img src="path-to-image"></div>

3 Initialize the plugin

var slider = new TooSlides({
    container: ".surveyContainer", // the classname of the overall parent 
    container
    slidesClass: ".singleSlide", //The classname of the sub container
    nextButton: ".next",
    previousButton: ".prev"
})

License

TooSlides is open source software [licensed as MIT][license].

FAQs

Last updated on 22 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc