It looks like you're new here. If you want to get involved, click one of these buttons!
Without parameters, defaults are type ("info") and duration (3). The message is the macro's payload. <<notify>>This is a notification message<</notify>> Result: $("body").overHang({ type: "info", message : "This is a notification message", duration : 3 }) First parameter is for type. It is a string. <<notify "warn">>Default warning<</notify>> Result: $("body").overHang({ type : "warn", message : "Default warning", duration : 3 }) Second parameter is for duration. It is a number. <<notify "error" 5>>Some error<</notify>> Result: $("body").overHang({ type : "error", message : "Some error", duration : 5 })
Comments
You're misspelling the method's name, it's .overhang()—lowercase h.
There is no Twine DOM. Twine is only an IDE/compiler, full stop. Each story format defines its own markup, features, HTML, and CSS.
SugarCube v2's HTML structure does not contain an element with the ID tw-story. Beyond that, the plugin should really be injecting its core element into the document's body element anyway.
Here is a fixed version of the plugin, along with the macro you wanted. Just copy/paste that into your Story JavaScript—I assume that's how you had attempted to install it originally. If you have not yet done so, you will also need to paste overhang.js' CSS—not included here—into your Story Stylesheet.
NOTE: If you decide to tinker with the macro, unless you also install jQuery UI, do not change the easing method set within the macro to anything other than the listed options or overhang.js will crash.
I have the CSS in my Story Stylesheet, so that's done.
By easing method, I assume you meant this: What is it, anyway? So I should just not tinker with that one? I presume there are other options, but I have to include jQuery UI?
Here's an updated version of both which supports all SugarCube markup within the macro body: