Thread:Mathmagician/@comment-93604-20120509230753/@comment-3508190-20120513195917

I've made a little cheatsheet that showcases a simple comment:

http://jade-empire-in-style.com/comment.html

This will be the interface for the "Storage" module I'm writing:

these methods expect a comment ID (colored in blue in the cheatsheat) and return nothing:
 * Storage.remPost
 * Storage.addPost
 * Storage.remThread
 * Storage.addThread

these methods expect a username (colored in red in the cheatsheet) and return nothing:
 * Storage.remUser
 * Storage.addUser

these methods don't expect parameters and return a jQuery object that wraps one or more li-elements:
 * Storage.getUnreadPosts
 * Storage.getCollapsedPosts
 * Storage.getCollapsedThreads

this one returns an array of usernames (the collapsed posts are included in Storage.getCollapsedPosts):
 * Storage.getPlonkedUsers

It'll take a few days before I have the module finished, but feel free to code against the interface!

Just to be clear: None of these methods will effect the document in any way. Their sole purpose is the storage and retrieval of persistent data.