Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to trigger launch of programs other than clicking on desktop icons? #25

Closed
sweinberg opened this issue Apr 26, 2020 · 2 comments

Comments

@sweinberg
Copy link

I started working on a start menu for the desktop with the intent of submitting a PR once it's complete. I have the look and functionality locked down except I can't figure out a way to launch programs by clicking on their respective menu item. I'm new to javascript so forgive me if it's an obvious answer.

I know that the functions for launching the program windows is in programs.js, so I'm assuming it's possible to create an onclick event that would trigger said functions? I tried tinkering around with it but I couldn't figure out how to make it happen. Any pointers?

programs.js: function Minesweeper(){ var $win = new $IframeWindow({ src: "programs/minesweeper/index.html", icon: "minesweeper", title: "Minesweeper", innerWidth: 280, innerHeight: 320 }); return new Task($win); }

index.html: <div class="start-menu-item" onclick="[insert calling of function Minesweeper here?]">Minesweeper</div>

@sweinberg
Copy link
Author

never mind, figured this out!

@Aiyush-G
Copy link

Please could you say how?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants