move fullscreen js code to redbasic.js where it belongs to
This commit is contained in:
parent
c6d9100649
commit
60bb8f25f7
@ -1451,18 +1451,3 @@ function zid(s) {
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
function makeFullScreen(full) {
|
||||
if(typeof full=='undefined' || full == true) {
|
||||
$('#fullscreen-btn, header, nav, aside').hide();
|
||||
$('main').css({'width': '100%', 'max-width': 'none'});
|
||||
$('#inline-btn').show();
|
||||
$('.generic-content-wrapper').addClass('fullscreen');
|
||||
}
|
||||
else {
|
||||
$('#fullscreen-btn, header, nav, aside').show();
|
||||
$('main').removeAttr('style');
|
||||
$('#inline-btn').hide();
|
||||
$('.generic-content-wrapper').removeClass('fullscreen');
|
||||
}
|
||||
}
|
||||
|
@ -52,3 +52,18 @@ $(document).ready(function() {
|
||||
}
|
||||
setInterval(function () {checkNotify();}, 10 * 1000);
|
||||
});
|
||||
|
||||
function makeFullScreen(full) {
|
||||
if(typeof full=='undefined' || full == true) {
|
||||
$('#fullscreen-btn, header, nav, aside').hide();
|
||||
$('main').css({'width': '100%', 'max-width': 'none', 'left': '0px'});
|
||||
$('#inline-btn').show();
|
||||
$('.generic-content-wrapper').addClass('fullscreen');
|
||||
}
|
||||
else {
|
||||
$('#fullscreen-btn, header, nav, aside').show();
|
||||
$('main').removeAttr('style');
|
||||
$('#inline-btn').hide();
|
||||
$('.generic-content-wrapper').removeClass('fullscreen');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user