プロジェクト

全般

プロフィール

Vote #73932

未完了

Fullscreen view switch for issues list, roadmap, gantt, wiki, forums...

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
0
issue_org_id:
14107
author_id:
16321
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

It wold be very useful to temporarily be able to get rid of the menu and sidebar and see the content only. This could be done by being able to switch the content area to fullscreen using html5 browser support.

In newer browsers such as Chrome 15, Firefox 10, Safari 5.1, IE 10 this is possible. Here's how to do it:

function requestFullScreen(element) {
    // Supports most browsers and their versions.
    var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;

    if (requestMethod) { // Native full screen.
        requestMethod.call(element);
    } else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
        var wscript = new ActiveXObject("WScript.Shell");
        if (wscript !== null) {
            wscript.SendKeys("{F11}");
        }
    }
}

var elem = document.body; // Make the body go full screen.
requestFullScreen(elem);
The user obviously needs to accept this fullscreen request first.

Read more:

https://developer.mozilla.org/en/DOM/Using_full-screen_mode

"Native Fullscreen JavaScript API (plus jQuery plugin)":http://johndyer.name/native-fullscreen-javascript-api-plus-jquery-plugin/


journals

--------------------------------------------------------------------------------
I confirmed this API.
Fullscreen mode ends when Redmine redirects to another page. In Redmine, which has many screen transitions, this API does not seem to be very useful.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ4年前に更新

  • カテゴリUI_10 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0