Your first webtease? Let us help you out!
- achelappian
- Explorer
- Posts: 5
- Joined: Sat Jun 19, 2021 11:32 pm
Re: Your first webtease? Let us help you out!
Is there an easy way to remove all current notifications?
Is there a way to set the title of the most recently created notification even if it has no identifier?
Is there a way to set the title of the most recently created notification even if it has no identifier?
Re: Your first webtease? Let us help you out!
It's often something I've wished for (one of the many things that led me to writing OpenEOS), but I don't believe there is.achelappian wrote: ↑Thu Jun 24, 2021 7:14 am Is there an easy way to remove all current notifications?
Is there a way to set the title of the most recently created notification even if it has no identifier?
You'd need to track all of this in your own variables, and you need to set an ID to access the notification via JavaScript.
-
- Curious Newbie
- Posts: 4
- Joined: Tue Jun 15, 2021 7:24 pm
Re: Your first webtease? Let us help you out!
THANK YOU MAN!!! IT WORKED!!!fapnip wrote: ↑Thu Jun 24, 2021 5:10 amFirst, you need to go into the tease options (gear icon on the left in the editor) and enable the Audio module.
Next, you add an Audio.play action in the page you want to play the audio file on. Then inside that audio play action, you select one of the mp3 files you've uploaded.
Re: Your first webtease? Let us help you out!
Using Storage option
is it possible to store Timers time?
Let's say I give a task for 30min and the user accidentally closes the browser/tease before time is up
Can we restore it from the last stored time or maybe even better use the current computer clock(for offline use)?
is it possible to store Timers time?
Let's say I give a task for 30min and the user accidentally closes the browser/tease before time is up
Can we restore it from the last stored time or maybe even better use the current computer clock(for offline use)?
-
- Explorer
- Posts: 87
- Joined: Wed Oct 07, 2020 11:12 pm
- Gender: Male
- Sexual Orientation: Straight
Re: Your first webtease? Let us help you out!
You can store the value of Date.now() when you start the timer. And if the tease is reloaded, you call again Date.now() and subtract the stored value. This way, you know how much time has passed.
https://developer.mozilla.org/en-US/doc ... s/Date/now
https://developer.mozilla.org/en-US/doc ... s/Date/now
Re: Your first webtease? Let us help you out!
Thanks a lot for the reply but it seems my knowledge of JS is way too lacking I couldn't understand how to use it haha xDDarigaaz wrote: ↑Wed Jul 21, 2021 9:32 am You can store the value of Date.now() when you start the timer. And if the tease is reloaded, you call again Date.now() and subtract the stored value. This way, you know how much time has passed.
https://developer.mozilla.org/en-US/doc ... s/Date/now
(even though I tried to experiment with it haha)
Maybe one day I will get where I was wrong :P
---------------------------------------------------------------------------------------------------------------------------------------------------------------
I was wondering if I could make a shortcut and use the 'Go to page' function of a "Choice" or "Goto" and tell it to use a range of pages that are named the same (like we have pages_name = A1 to A20 but I wish to only use pages A15 to A20)
or will I have to use eval(JS) for that one?
Re: Your first webtease? Let us help you out!
Here's a super simple example tease that does just that:
https://milovana.com/webteases/showteas ... 76996756cb
JSON (right-click, save-as):
https://milovana.com/webteases/geteossc ... 76996756cb
The wildcard matching in Eos for pages and files are glob expressions, so as long as you can come up with an expression that matches the pages you're after, then you could probably do it in a GOTO action instead of eval.Epton wrote: ↑Sun Jul 25, 2021 1:12 am I was wondering if I could make a shortcut and use the 'Go to page' function of a "Choice" or "Goto" and tell it to use a range of pages that are named the same (like we have pages_name = A1 to A20 but I wish to only use pages A15 to A20)
or will I have to use eval(JS) for that one?
Maybe something like :
A+(15|16|17|18|19|20)
Specifically, Eos uses minimatch:
https://github.com/isaacs/minimatch
Re: Your first webtease? Let us help you out!
Spoiler Start
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Anyone has a tease that stores data I can learn from or explain me how to use Storage option? [:
- Spoiler: show
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Spoiler: show
Anyone has a tease that stores data I can learn from or explain me how to use Storage option? [:
Last edited by Epton on Thu Aug 19, 2021 2:36 am, edited 2 times in total.
Re: Your first webtease? Let us help you out!
Hi I have interest in using the Webcam to take pictures or calling the pictures locally. If it is not possible, where and to who can I suggest this cool feature?
Re: Your first webtease? Let us help you out!
no i have not, i am new to this, i only have experience with c++. do you know any webtease that utilize such feature?
Re: Your first webtease? Let us help you out!
Never seen one really but try google "javascript getUserMedia()" and there are many options of using it, from straightforward to functions and stuff. idk if EOS supports it but maybe there is a workaround.
-
- Explorer
- Posts: 87
- Joined: Wed Oct 07, 2020 11:12 pm
- Gender: Male
- Sexual Orientation: Straight
Re: Your first webtease? Let us help you out!
I guess someone could confirm it but I am 99.9999999% sure that EOS does not allow accessing the camera for security reasons. And if there is any workaround, I would stop using EOS :)
Re: Your first webtease? Let us help you out!
Sorry I am a security noob, can't they make it that whatever uploaded is always deleted by the end? I need such feature, believe me, it will be a game changer.
Re: Your first webtease? Let us help you out!
The example tease I posted before uses teaseStorage in a few of its evals.
https://milovana.com/webteases/showteas ... 76996756cb
JSON (right-click, save-as):
https://milovana.com/webteases/geteossc ... 76996756cb
Here's some more info on teaseStorage:
viewtopic.php?f=2&t=24320&p=308236#p308236
I'd recommend using arrays for thing like this:
Code: Select all
var vdie = [
"Give me 200 Ball slaps",
"Give me 250 Ball slaps",
"Give me 300 Ball slaps"
]
var myRandomVDie = vdie[Math.floor(Math.random()*vdie.length)]
There's really no way to lock this down, other than simply not allowing access to it. Any site the Eos client can load data from would be a vector for leaking private data to -- and even if that was locked down, I'm sure Eos having access to media devices would send a number of users running for the hills. Couple that with the limited libraries available for and how slow the JavaScript interpreter is in Eos, and I'm not sure you could effectively do much with the captured video/images client side.
Who is online
Users browsing this forum: No registered users and 9 guests