0 Members and 15 Guests are viewing this topic.
Shift+REfresh doesn't work either. Oh, and I'm on windows 7 if that matters.
html - (string) the HTML contenttitle - (string) the title of the pagehead - (string) additional stuff that goes into the headfavicon - (string) the favicon of the pagejs - (array) a file-thing array (see below)css - (array) a file-thing array (see below)
type - file / inline, defaults to filefile - filename or js/css content respectivelyminified - true/falls, defaults to false. If set true, make sure that your file is named .min.js or .min.css while in the `file` parameter you put it without the .min (as in extended settings you can disable minified files)
oirc.OMNOMIRCSERVER - the URL to the central server, which is https://omnomirc.omnimaga.orgoirc.settings: -> loggedIn() - true if logged in, else false -> fetch(callback,checkLoginOnly) - fetches settings off of the server with a callback, optionally only the checkLogin -> net() - returns the network ID -> getNetwork(id) - gets the network object of the id -> getPmIdent() - gets your PM identification -> getWholePmIdent(uid,network) - gets your PM ident combind with that of another user -> nick() - gets your nick -> guestLevel() - gets the guest level (0: deny, 1: view, 2: chat)oirc.ls: -> get(name) - get from the local storage -> set(name,value) - sets the local storageoirc.network: -> getJSON(url,callback,async=true,urlparams=true) - get a JSON page -> post(url,data,callback,async=true,urlparams=true) - do a post request to a pageoirc.options: -> get(name) - gets the option -> set(name,value) - sets the option -> getAll(raw = false) - gets all the optionsoirc.instant: -> current() - returns true if the instant is the current one, else false. Used to fetch only one single tab of all running instances.oirc.channels: (i is channel index, s is channel name) -> load(i,callback) - loads the channel i -> join(s) - joins the channel s, but does not actually load it. Think: Open Tab -> joinPm(name,'',callback) - joins a PM channel -> part(i) - parts a channel, either i or s can be specified -> getList() - gets a list of all joined channels -> getHandler(i,b64=false) - gets the handler of the channel as used by the backend -> current() - gets the object for the current channel -> setChans(array) - sets the current channels, it is highly adviced to only use this to re-sort the channel array -> highlight(i) - highlight the channel i or soirc.users: -> add(user) - adds a user to the channel with the userobject -> remove(user) - removes a user from the channel with the userobjectoirc.send: -> send(s) -> send(callback,s,channel=current) - send a message to the server! / commands will also be parsed -> internal(html) - sends an internal message, e.g. for error output -> val() - get the input box value -> val(s) - set the input box valueoirc.parser: -> parse(s) - parse a string to add colors etc -> name(s) - parse a nickname -> highlight(s) - parse highlighted stuffoirc.connect -> (callback) - connects to OmnomIRCoirc.disconnect -> () - disconnects from omnomircui helper functions-------------------oirc.error: -> addWarning(file,object) - adds a warning -> addError(file,object) - adds an error -> init($errors=$('#errors'),$warnings=$('#warnings')oirc.page: -> changeLinks() - changes all the links on the page to add the network parameter, to prevent that clicking links lands on a different pageoirc.initinput -> ($elem=$('#message'),wysiwyg=false) - initializes the input bar with tab-complete and old messages support. WYSIWYG defaults to false as it actually replaces the <input>-element with a <span> one and thus the skin needs to be programmed to support thatevents------oirc.onerror(file,object) - erroroirc.onwarning(file,object) - warningoirc.onmessage(parsedName,parsedMessage,lineObject,loadMode) - a message, it has been already parsed for the various types, parsedMessage is an array of elementsoirc.onmessageraw(lineObject,loadMode) - the unparsed message. Note that if you use this that oirc.onmessage will never trigger!oirc.onuserchange(usersArray) - the userlist has been changed, you'll probably want to re-draw the userlist!oirc.onchannelchange(channelArray) - the channels have been changed (e.g. new tab), you'll probably want to re-draw the tabs!oirc.onchanneljoin(s) - please join the specified channel!oirc.onchannelpart(s) - please part the specified channel!oirc.onsetval(s) - overrides oirc.send.val(s)oirc.ongetval() - overrides oirc.send.val()oirc.ontopicchange(s) - the topic has been changed, have the parsed topic!oirc.onnotification(message,channel) - time to make a notification!
...So, what do you guys think?
Quote from: Sorunome on May 05, 2016, 11:53:21 am...So, what do you guys think?If I understand it correctly, it seems to be a 'pretty' idea. However, you are talking about 'skins' (and lobsters, hehe) and I don't see any screenshots?
The only skin available currently is the current one that you use all the time :p
However, this system would easily allow writing a skin to make it look like a facebook-chat with a bottom bar and stuff.
Quote from: Sorunome on May 06, 2016, 03:59:05 amHowever, this system would easily allow writing a skin to make it look like a facebook-chat with a bottom bar and stuff.I think you should go ahead and implement that fb-like bottom bar. You'll have fun for sure, once it's done.
The option to make it its own window would be nice! (So I can look at the chat while I am doing other things)
Quote from: E37 on May 06, 2016, 06:59:53 pmThe option to make it its own window would be nice! (So I can look at the chat while I am doing other things)Here you go
Quote from: Sorunome on May 06, 2016, 03:59:05 amThe only skin available currently is the current one that you use all the time :pWell, it's probably just me (yet again). All I get on my FF 42.0 is this (green face <att. below>). Sooo, no lobster s**t (unless it got green-ish )