GitXplorerGitXplorer
e

slidle

public
0 stars
0 forks
0 issues

Commits

List of commits on branch gh-pages.
Verified
976837a7721c90f95fbf6e637124bc7f40ea7345

minor fixes

eerikkemperman committed 2 years ago
Verified
c79a1f5b4decbc43b947d00f976c11b05bf26847

smoothen overflow fade

eerikkemperman committed 2 years ago
Verified
45db8e59499e938a5b6f1638c2a5bef147970718

Forgot to remove the div when removing a slide

eerikkemperman committed 2 years ago
Verified
ee6dcf08c26ec52c69560de19441d51dea92a36c

add .nojekyll should make files starting with underscore available at gh-pages

eerikkemperman committed 2 years ago
Verified
a6fec8d9e91fa5fe536193b5489d7e16daeaab7a

better classnames, fix touchevents

eerikkemperman committed 2 years ago
Verified
9d5eade7df1d92029995b8651e65c37ecf673ed3

tweak round corners in panels

eerikkemperman committed 2 years ago

README

The README file for this repository.

Slidle

I was asked by a company, as a way of demonstrating some front-end skills, to write a single page app to present and edit slide shows. Actually, I ended up coding a general-purpose widget that could also be embedded in other pages.

Anyway, I had a lot of fun with it and so I decided to publish it on GitHub.

For a demonstration, please refer to http://erikkemperman.github.io/slidle -- it will load the "welcome" slideshow describing some of the features. Do note, however, that you should NOT expect this to work on older browsers...

As of February 2015, I've tested it using these browsers on MacOSX 10.10.2:

  • Chromium 38
  • Safari 8
  • Firefox 35
  • Opera 27

It also seems to work, more or less, on mobile Safari under iOS 8.1.3.

I kind of hope it might work on IE 11, but can't test it at the moment (for lack of Windows). If you would like to try that out, I would appreciate it if you would let me know of any problems via the Issues section. Having said that, I can't promise to actually fix things very quickly, since I am not sure how much time I'll be able to spend on it.

Likewise, I would not be surprised if it sort of works on recent Androids -- especially the versions since Chrome became the default. Let me know!

Usage

You'll need to include the javascript and stylesheets, obviously. Furthermore, you should mark where the slideshow should be rendered within your HTML, and when the page is loaded you should call the constructor. For example,

<html>
    <head>
      
      <script src="https://raw.githubusercontent.com/erikkemperman/slidle/gh-pages/js/slidle.min.js"></script>
      <link rel="stylesheet" href="https://raw.githubusercontent.com/erikkemperman/slidle/gh-pages/css/slidle.css" />
      <link rel="stylesheet" href="https://raw.githubusercontent.com/erikkemperman/slidle/gh-pages/css/theme/default.css" />
      
      <script>
        document.addEventListener( 'DOMContentLoaded', function() {
          window.slidle( '#slidle', {
            // Override option defaults here
          } );
        } );
      </script>
      
    </head>
    
    <body>
      <div id="slidle" style="width:320px;height:240px;"></div>
      
      <!-- ... -->
      
      <script src="https://raw.githubusercontent.com/erikkemperman/slidle/gh-pages/3rd/ace/ace.js"></script>
      <script src="https://raw.githubusercontent.com/erikkemperman/slidle/gh-pages/3rd/markdown/markdown.min.js"></script>
    </body>
    
</html>

Options

I should really document the options here, but as things are still quite fluid I'll simply refer to the source for the time being...

Build

If you would like to build yourself, you will need Node and Compass. Assuming these are installed, proceed as follows:

Clone the repository

git clone https://github.com/erikkemperman/slidle.git

Change into the new directory

cd slidle

Install dependencies

npm install

Build

grunt build

I've included a 'serve' task which will automatically re-build if any changes are detected and will start a local server:

grunt serve

By default this will bind to 0.0.0.0:8080. Hit CTRL-C to kill it.