-
- Notifications
You must be signed in to change notification settings - Fork 20
OSL ‐ Iframes
DanimalsTCGYT edited this page Aug 4, 2024 · 7 revisions
Iframes allow you to quickly show websites within Origin and on top of OSL applications.
Below is an example program to show youtube.com
youtube = "https://youtube.com/".iframeNew() youtube.iframeShow() // adds the iframe to the window and shows it // you can also use .iframeHide() to hide the iframe so that the user cant see or interact with it but you // don't have to reload the webpage or lose any changes when they want to see the page again mainloop: youtube.iframeResize(window_width,window_height - 40) // resizes the iframe to the window youtube.iframeGoto(0,-20) // calls to update the iframe at the xy of the draw cursor if "up arrow".onpress ( youtube.iframeRedirect("https://studio.youtube.com") // redirects the iframe when the up arrow is pressed ) if "space".onpress ( youtube.iframeClose() // removes the iframe from the window ) import "win-buttons"All commands for how to use iframes are included here
originOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here