I'm experimenting with mass:werk termlib.js
I'm interested in accomplishing something similar to this example, but am unsure how to style it full screen开发者_Go百科 and already opened when the page loads.
Any Suggestions?
What do you mean by "style it full screen"? If you mean that you want your terminal to have the entire width and height of the viewport, then adding css to this effect:
body, #terminal_container {
height: 100%;
width: 100%;
}
Should suffice in making a div with the id terminal_container
consume the entire height and width of the document.
If you mean rather that you want to force "fullscreen" as in the browser full screen with no toolbars (F11 key in Firefox), then the answer is "no, you can't". There is no way to change the user's client view mode from a website script. This is a good thing - do you really want websites deciding you don't need your back button anymore? The user's client options are strictly the domain of the user.
精彩评论