Mit dem iPhone scannen, um zu installieren
This is the first prototype version of a new browser
Neue Funktionen
Version 1.0
First release
Was er macht
23 Aktionen-
Get IP Address
-
If
-
Show Result
-
Stop This Shortcut
-
If
-
Show Result
-
Ask for InputWhat do you want to vearch? (For settings, type “Settings”.)
-
If
-
If
-
Set VariableWeb Name
-
Text
-
Set VariableURL
-
Get Contents of URL…
-
If
-
Show Result
-
Stop This Shortcut
-
If
-
Choose from MenuPick one:
-
Choose from MenuLoad Basic HTML
-
Quick Look
-
Choose from MenuQuick Show
-
Get Text from Input
-
Show Result
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/web'
#include 'actions/network'
#define color darkblue
#define glyph feed
const CurrentIPAddress = getExternalIP()
if !CurrentIPAddress {
show("Error %1%: No Wi-Fi detected.")
stop()
} else {
}
show("Hello, nice to see you again!")
const ProvidedInput = prompt("What do you want to vearch? (For settings, type “Settings”.)")
if ProvidedInput == "Settings" {
} else {
}
@WebName = ProvidedInput
@URL = "{@WebName}.com"
const ContentsOfURL = fileRequest(@URL, "GET")
if !ContentsOfURL {
show("Error 404: Unable to find URL.\nThis could happen because you don't have Wi-Fi or you have typed the wrong name of the website. It could also be because the website is temporarily down or has moved to another address.")
stop()
} else {
}
menu "Pick one:" {
item "Load Basic HTML":
quicklook(ContentsOfURL)
item "Quick Show":
getText(ContentsOfURL)
show()
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von vultario
Das gefällt dir vielleicht auch
Werbung