Skip to content

Commit

Permalink
Added scrollbar (using jQuery slimScroll)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Oct 12, 2014
1 parent 6ca7988 commit a1cc972
Show file tree
Hide file tree
Showing 13 changed files with 116 additions and 16 deletions.
8 changes: 2 additions & 6 deletions Chrome/fixed_navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@
bottom: 0px;
position: fixed;
margin-left: -20px;
margin-top: 12px;
margin-bottom: -12px;
width: 201px;
}

#navigationWrapper {
overflow: auto;
height: 100%;
height: 100% !important;
padding-left: 20px;
width: 181px;
width: 164px !important;
position: absolute;
top: -12px;
padding-right: 5000px;
}

#leftColWrapper {
Expand Down
4 changes: 4 additions & 0 deletions Chrome/fixed_navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@ function fixNavbar() {
.appendChild(navigationWrapper)
.appendChild(pagelet_navigation);
mainContainer.appendChild(contentCol);
$('#navigationWrapper').slimScroll({
height: '100%',
distance: '8px'
});
}
}
4 changes: 4 additions & 0 deletions Chrome/jquery-1.11.1.min.js

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions Chrome/jquery.slimscroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name":"FB fixed navbar",
"description":"Freezes left navigation pane on Facebook",
"version":"1.0.1",
"version":"1.1.0",
"manifest_version":2,
"author": "Philipp Schirmer",
"icons": {
Expand All @@ -12,7 +12,7 @@
{
"matches": ["*://www.facebook.com/*"],
"css": ["fixed_navbar.css"],
"js": ["fixed_navbar.js"],
"js": ["jquery-1.11.1.min.js", "jquery.slimscroll.min.js", "fixed_navbar.js"],
"run_at": "document_end"
}
]
Expand Down
30 changes: 30 additions & 0 deletions Chrome/slimScroll.jquery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name" : "slimScroll",
"version" : "1.2.0",
"title" : "jQuery slimScroll scrollbar",
"description" : "slimScroll is a small jQuery plugin that transforms any div into a scrollable area. slimScroll doesn't occupy any visual space as it only appears on a user initiated mouse-over.",
"keywords" : ["scrollbar", "scroll", "slimscroll", "scrollable", "scrolling", "scroller", "ui"],
"demo" : "http://rocha.la/jQuery-slimScroll/",
"homepage" : "http://rocha.la/jQuery-slimScroll/",
"download" : "http://rocha.la/jQuery-slimScroll/",

"author" : {
"name" : "Piotr Rochala",
"url" : "http://rocha.la/"
},

"dependencies" : {
"jquery" : ">= 1.7"
},

"licenses" : [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
},
{
"type": "GPL",
"url": "http://www.opensource.org/licenses/gpl-license.php"
}
]
}
8 changes: 2 additions & 6 deletions Firefox/data/fixed_navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@
bottom: 0px;
position: fixed;
margin-left: -20px;
margin-top: 12px;
margin-bottom: -12px;
width: 201px;
}

#navigationWrapper {
overflow: auto;
height: 100%;
height: 100% !important;
padding-left: 20px;
width: 181px;
width: 164px !important;
position: absolute;
top: -12px;
padding-right: 5000px;
}

#leftColWrapper {
Expand Down
4 changes: 4 additions & 0 deletions Firefox/data/fixed_navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@ function fixNavbar() {
.appendChild(navigationWrapper)
.appendChild(pagelet_navigation);
mainContainer.appendChild(contentCol);
$('#navigationWrapper').slimScroll({
height: '100%',
distance: '8px'
});
}
}
4 changes: 4 additions & 0 deletions Firefox/data/jquery-1.11.1.min.js

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions Firefox/data/jquery.slimscroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Firefox/data/slimScroll.jquery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name" : "slimScroll",
"version" : "1.2.0",
"title" : "jQuery slimScroll scrollbar",
"description" : "slimScroll is a small jQuery plugin that transforms any div into a scrollable area. slimScroll doesn't occupy any visual space as it only appears on a user initiated mouse-over.",
"keywords" : ["scrollbar", "scroll", "slimscroll", "scrollable", "scrolling", "scroller", "ui"],
"demo" : "http://rocha.la/jQuery-slimScroll/",
"homepage" : "http://rocha.la/jQuery-slimScroll/",
"download" : "http://rocha.la/jQuery-slimScroll/",

"author" : {
"name" : "Piotr Rochala",
"url" : "http://rocha.la/"
},

"dependencies" : {
"jquery" : ">= 1.7"
},

"licenses" : [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
},
{
"type": "GPL",
"url": "http://www.opensource.org/licenses/gpl-license.php"
}
]
}
2 changes: 1 addition & 1 deletion Firefox/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var pageMod = require("sdk/page-mod");

pageMod.PageMod({
include: "*.facebook.com",
contentScriptFile: data.url("fixed_navbar.js"),
contentScriptFile: [data.url("jquery-1.11.1.min.js"), data.url("jquery.slimscroll.min.js"), data.url("fixed_navbar.js")],
contentStyleFile: data.url("fixed_navbar.css"),
contentScriptWhen: "end"
});
2 changes: 1 addition & 1 deletion Firefox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"description": "Freezes left navigation pane on Facebook",
"author": "Philipp Schirmer",
"license": "MPL 2.0",
"version": "1.0.1"
"version": "1.1.0"
}

0 comments on commit a1cc972

Please sign in to comment.