Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove The Scroll Bar When In Full Screen Mode #96

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion jquery.jplayer/jquery.jplayer.js
Expand Up @@ -1902,9 +1902,11 @@
},
fullScreen: function() {
this._setOption("fullScreen", true);
$("body").addClass("noScroll");
},
restoreScreen: function() {
this._setOption("fullScreen", false);
$("body").removeClass("noScroll");
},
_html_initMedia: function() {
this.htmlElement.media.src = this.status.src;
Expand Down Expand Up @@ -2364,4 +2366,4 @@
CSS_SELECTOR_STRING: "Check your css selector is a string.",
OPTION_KEY: "Check your option name."
};
})(jQuery);
})(jQuery);
4 changes: 4 additions & 0 deletions skin/blue.monday/jplayer.blue.monday.css
Expand Up @@ -13,6 +13,10 @@
* Skin Version: 4.0 (jPlayer 2.1.0)
* Date: 1st September 2011
*/

.noScroll {
overflow: hidden !important;
}

div.jp-audio,
div.jp-video {
Expand Down