Advertisement
flyingfisch

Untitled

Jun 29th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. // Copyright © 2012 John Wellesz - All rights reserved
  2.  
  3. /*
  4. * TODO:
  5. *
  6. * - colors for errors (color the input: yellow while sending, quick fading green upon sucess, red upon error)
  7. * - use templates
  8. * - implement remote debugging
  9. * - resizing and moving
  10. *
  11. */
  12.  
  13. if (typeof console === "undefined") {
  14. console = {};
  15. console.log = function(){};
  16. }
  17.  
  18. if (typeof console.log === "undefined")
  19. console.log = function(){};
  20.  
  21.  
  22. // CasioCalcIRC Module {{{
  23. define (['jquery', 'v2js', 'jqueryp/jquery.cookie.min', 'jqueryp/jquery.json.min'], function ($, V2JS) {
  24.  
  25. "use strict";
  26.  
  27. var my = {},
  28.  
  29. HistoryURL = "http://community.casiocalc.org/api/ircHistory.txt",
  30. PostURL = "http://community.casiocalc.org/api/CasioIRCPost.php",
  31. CheckLogginURL = "http://community.casiocalc.org/api/IsAnIPBMemberLogged.php",
  32.  
  33. MEMBER_LOGIN_MESSAGE = "entered the room",
  34. IRC_LEAVE_MESSAGE = "has left the channel",
  35. IRC_JOIN_MESSAGE = "has joined the channel",
  36.  
  37. IRCEVENTLIMIT = 100,
  38.  
  39. RawHistory = "empty",
  40. History = [],
  41.  
  42. MINIMUMREFRESHRATE = 1300,
  43. IRCEVENTANIMATION = 'fast',
  44. RefreshRate = MINIMUMREFRESHRATE,
  45.  
  46. lastChange = $.now(),
  47. lastDisplayed = 0,
  48. lastPoll = 0,
  49. LastRefresh = 0,
  50. HistoryWindowLostFocus = 0,
  51. WidgetHidden = false,
  52.  
  53. refreshInProgress = false,
  54. refreshStatus = "",
  55. mouseovering = false,
  56.  
  57. IPBUser = false,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement