js ファイルの window.open に resizable = 1 を指定して新しいウィンドウで起動する scorm モジュールがあります。
function OpenScormModuleWindow(scormModuleId, scormModuleUrl, title, width, height)
{
_scormModuleId = scormModuleId;
InitializeUserScormModule();
scormModuleWindow = window.open(scormModuleUrl, "title", "width=" + width + ", height=" + height + ", resizable = 1");
scormModuleWindow.focus();
}
私の見解では:
var myWidth = 0, myHeight = 0;
if (typeof (window.innerWidth) == 'number')
{
myWidth = window.innerWidth;
myHeight = window.innerHeight;
}
else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
{
myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight;
}
else if (document.body && (document.body.clientWidth || document.body.clientHeight))
{
myWidth = document.body.clientWidth; myHeight = document.body.clientHeight;
}
高さと幅を取得しましたが、正しくありません
ウィンドウが正しいサイズの場合、ユーザーはサイズを変更できるようになりました。高さと幅を取得するにはどうすればよいですか?
これらの値を取得して保存できるようにする必要があります。次にウィンドウが開いたときに正しいサイズになります。
ありがとう