From 1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55 Mon Sep 17 00:00:00 2001 From: Bulletin Date: Thu, 29 Dec 2016 16:42:32 -0500 Subject: Added existing progress --- js/auth.php | 14 ++++++ js/chat.js | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++ js/frontpage.js | 11 +++++ js/jquery-ui.min.js | 13 ++++++ js/jquery.min.js | 4 ++ 5 files changed, 163 insertions(+) create mode 100644 js/auth.php create mode 100644 js/chat.js create mode 100644 js/frontpage.js create mode 100644 js/jquery-ui.min.js create mode 100644 js/jquery.min.js (limited to 'js') diff --git a/js/auth.php b/js/auth.php new file mode 100644 index 0000000..bab3e27 --- /dev/null +++ b/js/auth.php @@ -0,0 +1,14 @@ + +var auth = { + 0) { +?> + id: '', + session: '', + +}; diff --git a/js/chat.js b/js/chat.js new file mode 100644 index 0000000..1053fa9 --- /dev/null +++ b/js/chat.js @@ -0,0 +1,121 @@ +var bullechat = { + nickfmt: function (nick) { + return nick; + }, + gui: { + $windows: {}, + updown: function ($elem) { + if ($elem.hasClass('chexp')) { + $elem.addClass('chshr'); + $elem.removeClass('chexp'); + } else { + $elem.removeClass('chshr'); + $elem.addClass('chexp'); + } + }, + create: function (user, title) { + if (!title) title = user; + var $child = $('
', {'class': 'chwin chshr'}).data('user', user); + var $chhead = $('
'+title+'
'); + $child.append($chhead); + $chhead.append($('
', {'class': 'chshrbtn'}).click(function (e) { + bullechat.gui.updown($child); + })); + $chhead.append($('
', {'class': 'chxbtn'}).click(function (e) { + bullechat.gui.kill($child); + })); + var $chbody = $('