Skip to content

Instantly share code, notes, and snippets.

@hito-asa
Created March 18, 2013 07:30
Show Gist options
  • Save hito-asa/5185573 to your computer and use it in GitHub Desktop.
Save hito-asa/5185573 to your computer and use it in GitHub Desktop.
enable fullscreen mode for co-meeting
$(function() {
$("#account-menus ul").append("<li><a href='#' id='fullscreen-menu'>フルスクリーン</a></li>");
$("#fullscreen-menu").click(function () {
$("#header").remove();
$("#footer").remove();
$("#guide").remove();
$("#side-panel").remove();
$("#main-header").remove();
$("#main-subheader").remove();
$("#online-demo-support-tab").remove();
$("#main").css("margin", "0 0 0 0");
$(".SWCAW").css("top", "-30px");
$(".SWCAW").css("z-index", "2");
$(".SWCAW").css("background-color", "#FFFFFF");
$("#main").height($(window).height());
$("#main-body").css("height", "100%");
});
$(window).resize(function () {
$("#main-body").css("height", "100%");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment