aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js/redbasic.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r--view/theme/redbasic/js/redbasic.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 302efc365..877bcd840 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -2,12 +2,13 @@
* redbasic theme specific JavaScript
*/
$(document).ready(function() {
+
// CSS3 calc() fallback (for unsupported browsers)
$('body').append('<div id="css3-calc" style="width: 10px; width: calc(10px + 10px); display: none;"></div>');
if( $('#css3-calc').width() == 10) {
$(window).resize(function() {
if($(window).width() < 767) {
- $('main').css('width', $(window).width() + 285 );
+ $('main').css('width', $(window).width() + 287 );
} else {
$('main').css('width', '100%' );
}
@@ -38,9 +39,7 @@ $(document).ready(function() {
$("input[data-role=cat-tagsinput]").tagsinput({
tagClass: 'label label-primary'
});
-});
-$(document).ready(function(){
var doctitle = document.title;
function checkNotify() {
var notifyUpdateElem = document.getElementById('notify-update');
@@ -53,3 +52,18 @@ $(document).ready(function(){
}
setInterval(function () {checkNotify();}, 10 * 1000);
});
+
+function makeFullScreen(full) {
+ if(typeof full=='undefined' || full == true) {
+ $('main').css({'transition': 'none'}).addClass('fullscreen');
+ $('#fullscreen-btn, header, nav, aside').css({'display': 'none'});
+ $('#inline-btn').show();
+
+ }
+ else {
+ $('main').removeClass('fullscreen');
+ $('#fullscreen-btn, header, nav, aside').css({'display': ''});
+ $('#inline-btn').hide();
+ $('main').css({'transition': ''});
+ }
+}