Dear Ogunm
Thank you very much for replay.
I tried to enter the code you suggested, but the problem is not solved.
I get the following error:
TypeError: is not a function. (In ‘$ (’ body ‘)’, ‘$’ is undefined)
same problem on the pure javascript (document.body.style.height= window.screen.availHeight;)
I use JavaScript Monaca Templates (Onsen UI V2 JS Navigation & Splitter)
P.S. i dont use jquery…
if i have to use jquery to resolve the issue, which version should i?
Thank you again
…My Script…
<script>
ons.ready(function() {
$('body').height(window.screen.availHeight);
console.log("Onsen UI is ready!");
});
window.fn = {};
window.fn.open = function() {
var menu = document.getElementById('menu');
menu.open();
};
window.fn.load = function(page) {
var content = document.getElementById('content');
var menu = document.getElementById('menu');
content
.load(page)
.then(menu.close.bind(menu));
};
if (ons.platform.isIPhoneX()) {
document.documentElement.setAttribute('onsflag-iphonex-portrait', '');
document.documentElement.setAttribute('onsflag-iphonex-landscape', '');
}
</script>