xtras/mathuaerknedam 589:ccbe2faa0f5b: minimal_mod: hide the hea...
commits at adium.im
commits at adium.im
Thu Aug 11 14:13:50 UTC 2011
details: http://hg.adium.im/xtras/mathuaerknedam/rev/ccbe2faa0f5b
revision: 589:ccbe2faa0f5b
branch: (none)
author: mathuaerknedam
date: Wed Aug 10 14:41:09 2011 -0500
minimal_mod: hide the header if the user scrolls up far enough that Adium won't scroll on new content. Also remove the changing of header opacity on hover.
diffs (36 lines):
diff -r 2882f49b4ad1 -r ccbe2faa0f5b Resources/Message Styles/minimal_mod.AdiumMessageStyle/Contents/Resources/Footer.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Resources/Message Styles/minimal_mod.AdiumMessageStyle/Contents/Resources/Footer.html Wed Aug 10 14:41:09 2011 -0500
@@ -0,0 +1,13 @@
+<script type="text/javascript">
+
+ // Hide the header when the user scrolls up (using the same calc as nearBottom).
+ function twiddleHeader() {
+ if ( d_container.scrollTop >= ( d_chat.offsetHeight - ( window.innerHeight * 1.2 ) ) ) {
+ document.getElementById('x-header').style.display = 'block';
+ } else {
+ document.getElementById('x-header').style.display = 'none';
+ }
+ }
+
+ document.getElementById('wrap').addEventListener("scroll", twiddleHeader, false);
+</script>
diff -r 2882f49b4ad1 -r ccbe2faa0f5b Resources/Message Styles/minimal_mod.AdiumMessageStyle/Contents/Resources/main.css
--- a/Resources/Message Styles/minimal_mod.AdiumMessageStyle/Contents/Resources/main.css Sat Jul 16 16:27:27 2011 -0500
+++ b/Resources/Message Styles/minimal_mod.AdiumMessageStyle/Contents/Resources/main.css Wed Aug 10 14:41:09 2011 -0500
@@ -194,6 +194,7 @@
color: #999999;
}
+/*
#topic
{
opacity: 1;
@@ -204,6 +205,7 @@
{
opacity: .1;
}
+*/
#x-header
{
More information about the commits
mailing list