Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Copyright © 2012 John Wellesz - All rights reserved
- /*
- * TODO:
- *
- * - colors for errors (color the input: yellow while sending, quick fading green upon sucess, red upon error)
- * - use templates
- * - implement remote debugging
- * - resizing and moving
- *
- */
- if (typeof console === "undefined") {
- console = {};
- console.log = function(){};
- }
- if (typeof console.log === "undefined")
- console.log = function(){};
- // CasioCalcIRC Module {{{
- define (['jquery', 'v2js', 'jqueryp/jquery.cookie.min', 'jqueryp/jquery.json.min'], function ($, V2JS) {
- "use strict";
- var my = {},
- HistoryURL = "http://community.casiocalc.org/api/ircHistory.txt",
- PostURL = "http://community.casiocalc.org/api/CasioIRCPost.php",
- CheckLogginURL = "http://community.casiocalc.org/api/IsAnIPBMemberLogged.php",
- MEMBER_LOGIN_MESSAGE = "entered the room",
- IRC_LEAVE_MESSAGE = "has left the channel",
- IRC_JOIN_MESSAGE = "has joined the channel",
- IRCEVENTLIMIT = 100,
- RawHistory = "empty",
- History = [],
- MINIMUMREFRESHRATE = 1300,
- IRCEVENTANIMATION = 'fast',
- RefreshRate = MINIMUMREFRESHRATE,
- lastChange = $.now(),
- lastDisplayed = 0,
- lastPoll = 0,
- LastRefresh = 0,
- HistoryWindowLostFocus = 0,
- WidgetHidden = false,
- refreshInProgress = false,
- refreshStatus = "",
- mouseovering = false,
- IPBUser = false,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement