├── LICENSE
├── README.md
├── list.json
└── index.html
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Dave Winer
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #### What this is
2 |
3 | A new version of the software used in the Cluetrain listicle, generalized so that it is fully specified in a JSON file. It can be used for lots of listicles, including ones that you write.
4 |
5 | Dave Winer
6 |
7 | #### How it works
8 |
9 | There's a JSON file that configures the app. It must be in the same folder as the index.html file and it must be named list.json.
10 |
11 | When the page loads, it reads the JSON file, and shows you the first item in the list. If you click the right arrow, you go to the next item, click the left arrow you go to the previous one. The Home icon takes you to the first item.
12 |
13 | If you click on the label you get a permalink for the item. If you click the twitter icon at the top of the page you get a dialog that sets up a tweet with the content of the item you're looking at.
14 |
15 | Click on the Info icon to see the About box.
16 |
17 | #### Updates
18 |
19 | v0.52 -- 1/14/15 by DW -- Made a change to how prefs are stored in localStorage, so you can have more than one listicle on a domain without having their prefs collide.
20 |
21 | v0.51 -- 1/13/15 by DW -- you can now include Emojis in listicle items using the Emoji cheat sheet codes. Example.
22 |
23 | #### Demo
24 |
25 | Here's the demo listicle.
26 |
27 |
--------------------------------------------------------------------------------
/list.json:
--------------------------------------------------------------------------------
1 | {
2 | "title": "Listicles are fun!",
3 | "link": "http://scripting.com/2015/01/13/listicleOListicle.html",
4 | "about": "This is a demo listicle. Just playing around. Dave",
5 | "urlBackgroundImage": "http://upload.wikimedia.org/wikipedia/commons/f/fa/Walt_Whitman_-_George_Collins_Cox.jpg",
6 | "opacityBackground": "0.4",
7 | "itemLabel": "Idea",
8 | "author": {
9 | "name": "Dave Winer",
10 | "email": "dave.winer@gmail.com",
11 | "web": "http://scripting.com/"
12 | },
13 | "items": [
14 | "This is a test.",
15 | "For the next sixty seconds.",
16 | "This station will conduct a test.",
17 | "Of the listicle broadcast system.",
18 | "https://github.com/scripting/listicle",
19 | "Had this been an actual listicle.",
20 | "You would have been inspired.",
21 | ":-)",
22 | "PS: Doesn't Walt Whitman look great as the background image of a listicle?",
23 | "PPS: I just added the ability to use Emoji cheat sheet codes in listicle entries.
So here's a nice :kiss: for you!
Coooooool!",
24 | "PPPS: Andy Seidl noticed that the saved prefs for two listicles on the same domain will collide. So I made a change that saves the prefs based on the URL of the listicle. Thanks for the clue Andy! :-)"
25 | ]
26 | }
27 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |