Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added ability to click to topic to hide it or show more

  • Loading branch information...
commit 264d2ad2315c43065a714be7b0d6ffbdbb7a6e6c 1 parent 5dcb07b
@rtgibbons authored
Showing with 30 additions and 1 deletion.
  1. +7 −0 design.css
  2. +19 −0 lib/simplified-solarized.js
  3. +4 −1 scripts.js
View
7 design.css
@@ -497,3 +497,10 @@ body .inline_nickname[colornumber='30'] {
.effect[bgcolor-number='13'] { background-color: #ff00ff; }
.effect[bgcolor-number='14'] { background-color: #888888; }
.effect[bgcolor-number='15'] { background-color: #cccccc; }
+
+/* extras */
+.ellipsis {
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+}
View
19 lib/simplified-solarized.js
@@ -0,0 +1,19 @@
+Zepto(function($) {
+
+ /**
+ * Allow the ability to shrink the topic bar since some can get pretty
+ * large. On Load set the class to shrink it up.
+ */
+ $topicBar = $('#topic_bar');
+ $topicBar.addClass('ellipsis');
+ $topicBar.on('click', function(e) {
+ $topicBar.toggleClass('ellipsis');
+ });
+
+ /**
+ * Toggle Join / Part / Quit message visibility
+ */
+ $('body').on('focus', function(e) {
+ console.log(e);
+ });
+});
View
5 scripts.js
@@ -21,4 +21,7 @@
// Textual.on_ct_nick: function() { app.setNick(event.target.innerHTML); }
// Textual.on_nick = function() { app.setNick(event.target.getAttribute("nick")); }
-Textual.include_js('lib/zepto.min.js');
+
+/* Using script.js as a loader */
+Textual.include_js('lib/zepto.min.js');
+Textual.include_js('lib/simplified-solarized.js');
Please sign in to comment.
Something went wrong with that request. Please try again.