Scan med din iPhone for at installere
Know how many time till your phone is fully charged!
Nyheder
Version 1.0
First release
Hvad den gør
19 handlinger-
CommentThis Shortcut Made By Ammrmuhmmed My Instagram : @ammrmuhmmed
-
Get Battery Level
-
Calculate
-
Set Variablebattery needed
-
Calculate
-
Calculate
-
Round Number
-
Set Variabletime left
-
If
-
Calculate
-
Set Variableminutes
-
Show Result
-
If
-
If
-
Calculate
-
Set Variableminutes
-
Show Result
-
If
-
Show Result
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/math'
#include 'actions/device'
#define color green
#define glyph battery
/*
This Shortcut Made By Ammrmuhmmed
My Instagram : @ammrmuhmmed
*/
const NiveauDeLaBatterie = getBatteryLevel()
@BatteryNeeded = 100 - NiveauDeLaBatterie
const RsultatDuCalcul = @BatteryNeeded * 110
const RsultatDuCalcul1 = RsultatDuCalcul / 60
round(RsultatDuCalcul1)
@TimeLeft
if @TimeLeft > 120 {
@minutes = @TimeLeft - 120
show("Your phone is at {NiveauDeLaBatterie}%\nIt will take 2 hours and {@minutes} minutes to charge to 100%")
}
if @TimeLeft > 60 {
if @TimeLeft <= 120 {
@minutes = @TimeLeft - 60
show("Your phone is at {NiveauDeLaBatterie}%\nIt will take 1 hour and {@minutes} minutes to charge to 100%")
}
} else {
show("Your phone is at {NiveauDeLaBatterie}%\nIt will take {@TimeLeft} minutes to charge to 100%")
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra ammrmuhmmed
Du vil måske også kunne lide
Annonce