0

How do I open the web scripts inside of safari/ google or any website browser?

I made a small script which I want to send to my friend to use (not actually use the script itself but use what it does) it’s just a small thing which asks something through a prompt and then depending on the answer says something on doc.

22nd May 2021, 11:41 AM
Kiriixer
Kiriixer - avatar
11 ответов
0
Kiriixer write your script in a html document ^^ (wrapping it inside script tag and changing extension of file to "html" or "htm" will be enough, as browsers will build the correct page structure around it) [edit] sorry for the notifications storm, but something prevented me to send my first redacted post ;P just send the html file to your friend, wich have only to be opened in browser to run ;)
22nd May 2021, 4:55 PM
visph
visph - avatar
0
visph hello, thank you for your respond but sadly im using this on my phone so i cant save it as a file or document
22nd May 2021, 8:32 PM
Kiriixer
Kiriixer - avatar
0
copy-paste your code in the js tab of a web playground project, save it, click on share button, copy/send link to your friend ^^ anyway, what kind of phone do you have wich cannot save file?!? all the more basic plain text ;P
22nd May 2021, 8:36 PM
visph
visph - avatar
0
visph it seems as i cant find where to paste it into, the sololearn website is a no go, also iphone xr
23rd May 2021, 1:26 AM
Kiriixer
Kiriixer - avatar
0
where did you have made your script? I just realize that you may have already written it in a code playground from the sololearn app'... do you use the app' on your phone? if that's the case, you just have to click the share button from there and send/copy the link wich you send to your friend ^^ if your friend has only a phone and not a desktop/laptop, he must have sololearn app' installed... from a desktop/laptop the sololearn playground can be accessed from website (but not from a phone, or only with some limitations by setting "display desktop version" option). however, when I talking to save it as file, I was thinking you've writted your script in a text editor... because you cannot save it directly from the playground. anyway, you can copy the script and maybe paste it in a plain text editor on your phone? from there, you could save it, and then follow my first advice ;P
23rd May 2021, 1:44 AM
visph
visph - avatar
0
visph Well yeah but i want to be able to easily send the script to friends and not ask them to download a special app just to view my script
23rd May 2021, 1:46 AM
Kiriixer
Kiriixer - avatar
0
do your friend have only a phone or can he access to a desktop/laptop?
23rd May 2021, 1:48 AM
visph
visph - avatar
0
visph Well that depends which friend, but mostly itll be luck if they are at a pc or not
23rd May 2021, 10:14 AM
Kiriixer
Kiriixer - avatar
0
at pc the website code playground link will work normally... at phone the website code playground link requires to set "desktop mode display" to load quite normally (the only things you're unable to do is to resize the editor tabs)... the link of the only public code in your profile is: https://code.sololearn.com/WCn2HW6gKSc5/?ref=app no need to install the app' ;P you could also share link of your privates codes (if any): they are public/private only from sololearn point of view, but both have a share link button from the editor ;) however, remember that once you publish in Q&A the link of a private code, its privacy is quite broken ^^
23rd May 2021, 2:27 PM
visph
visph - avatar
0
visph I shared this link with my friends and the ones on pc were able to acces the script and the output without an account, the ones on mobile had a page which said they need to download the app
23rd May 2021, 2:32 PM
Kiriixer
Kiriixer - avatar
0
the one with the phone must activate the "desktop mode display" for the page on its browser and reload the page ^^ until sololearn go backwards for mobile version of its editor, we cannot do without that... (or you must copy and save your file on another playground on the web or save it as plain text file from your phone). the sad of the story, is that until start of this year, the previous version of the website editor code playground was better and worked in both pc and mobile :(
23rd May 2021, 2:39 PM
visph
visph - avatar