Selasa, 04 November 2025

Senin, 03 November 2025

JavaScript - Menu

 







<html>

<HEAD><TITLE>menu

</TITLE>



<style>

a:hover {color:white; text-decoration:none;}

a:link {color:yellow; text-decoration:none}

a:visited {color:white; text-decoration:none}


#essenmenu

{

position: absolute;

top: 0;

left: 0;

z-index: 1;

font:xx-large arial

}



#essen

{

position: absolute;

top: -120;

left: 0;

z-index: 0;

font:xx-large arial

}



#trinkenmenu

{

position: absolute;

top: 0;

left: 120;

z-index: 1;

font:xx-large arial

}



#trinken

{

position: absolute;

top: -92;

left: 120;

z-index: 0;

font:xx-large arial

}



</style>


<script language="JavaScript">


var eypos=-124, ejump=-4;

var typos=-92, tjump=-4;


var delay=2;



function do_essen()

{

if(typos>-92)

{

tjump=-4;

if(typos>=30)

trinken_fahren();

}


ejump=-ejump;

if(eypos<=-122 || eypos>=30)

essen_fahren();

}


function essen_fahren()

{

if(document.layers) document.essen.top=eypos; else document.all.essen.style.top=eypos;

eypos+=ejump;


if(eypos>-122 && eypos<30)

setTimeout("essen_fahren()", delay);

}



function do_trinken()

{

if(eypos>-122)

{

ejump=-4;

if(eypos>=30)

essen_fahren();

}


tjump=-tjump;

if(typos<=-92 || typos>=30)

trinken_fahren();

}


function trinken_fahren()

{

if(document.layers) document.trinken.top=typos; else document.all.trinken.style.top=typos;

typos+=tjump;


if(typos>-92 && typos<30)

setTimeout("trinken_fahren()", delay);

}



</script>



</HEAD>

<BODY>


<div id=essenmenu>

 <table width=120 height=30 bgcolor="deeppink" cellspacing=0>

  <tr><td align=middle><a href="javascript:do_essen()"><b>Masakan</b></a>

 </table>

</div>


<div id=trinkenmenu>

  <table width=150 height=30 bgcolor="deeppink" cellspacing=0>

   <tr><td align=middle><a href="javascript:do_trinken()"><b>Minuman</b></a>

</table>


</div>

<div id=essen>

<table bgcolor=blue width=120 height=150 cellspacing=2>

  <tr><td align=middle><button>Sayur Sop</button>

   <tr><td align=middle><button >Nasi Goreng</button>

  <tr><td align=middle><button >Rendang</button>

<tr><td align=middle><button>Soto Ayam</button>

</table>

</div>


<div id=trinken>

<table bgcolor=blue width=150 height=118 cellspacing=2 style="font-weight:bold;color:white">

<tr><td align=middle>Air Mineral</a>

<tr><td align=middle>Kopi</a>

<tr><td align=middle>Teh Matcha</a>

<tr><td align=middle>Boba</a>

</table>

</div>


</BODY>

</HTML>

 

Additional Named Entities for HTML

 The following table contains additional named entities, their numeric character references, and a description of each. With the exception of the left and right-pointing brackets (&#9001; and &#9002;), the entities on this page are rendered using Lucida sans Unicode.

Character Named entity Numeric character reference Description
Latin Extended-B
ƒ &fnof; &#402; Latin small f with hook, =function, =florin, U0192 ISOtech
Greek
Α &Alpha; &#913; Greek capital letter alpha, U0391
Β &Beta; &#914; Greek capital letter beta, U0392
Γ &Gamma; &#915; Greek capital letter gamma, U0393 ISOgrk3
Δ &Delta; &#916; Greek capital letter delta, U0394 ISOgrk3
Ε &Epsilon; &#917; Greek capital letter epsilon, U0395
Ζ &Zeta; &#918; Greek capital letter zeta, U0396
Η &Eta; &#919; Greek capital letter eta, U0397
Θ &Theta; &#920; Greek capital letter theta, U0398 ISOgrk3
Ι &Iota; &#921; Greek capital letter iota, U0399
Κ &Kappa; &#922; Greek capital letter kappa, U039A
Λ &Lambda; &#923; Greek capital letter lambda, U039B ISOgrk3
Μ &Mu; &#924; Greek capital letter mu, U039C
Ν &Nu; &#925; Greek capital letter nu, U039D
Ξ &Xi; &#926; Greek capital letter xi, U039E ISOgrk3
Ο &Omicron; &#927; Greek capital letter omicron, U039F
Π &Pi; &#928; Greek capital letter pi, U03A0 ISOgrk3
Ρ &Rho; &#929; Greek capital letter rho, U03A1
Σ &Sigma; &#931; Greek capital letter sigma, U03A3 ISOgrk3
Τ &Tau; &#932; Greek capital letter tau, U03A4
Υ &Upsilon; &#933; Greek capital letter upsilon, U03A5 ISOgrk3
Φ &Phi; &#934; Greek capital letter phi, U03A6 ISOgrk3
Χ &Chi; &#935; Greek capital letter chi, U03A7
Ψ &Psi; &#936; Greek capital letter psi, U03A8 ISOgrk3
Ω &Omega; &#937; Greek capital letter omega, U03A9 ISOgrk3
α &alpha; &#945; Greek small letter alpha, U03B1 ISOgrk3
β &beta; &#946; Greek small letter beta, U03B2 ISOgrk3
γ &gamma; &#947; Greek small letter gamma, U03B3 ISOgrk3
δ &delta; &#948; Greek small letter delta, U03B4 ISOgrk3
ε &epsilon; &#949; Greek small letter epsilon, U03B5 ISOgrk3
ζ &zeta; &#950; Greek small letter zeta, U03B6 ISOgrk3
η &eta; &#951; Greek small letter eta, U03B7 ISOgrk3
θ &theta; &#952; Greek small letter theta, U03B8 ISOgrk3
ι &iota; &#953; Greek small letter iota, U03B9 ISOgrk3
κ &kappa; &#954; Greek small letter kappa, U03BA ISOgrk3
λ &lambda; &#955; Greek small letter lambda, U03BB ISOgrk3
μ &mu; &#956; Greek small letter mu, U03BC ISOgrk3
ν &nu; &#957; Greek small letter nu, U03BD ISOgrk3
ξ &xi; &#958; Greek small letter xi, U03BE ISOgrk3
ο &omicron; &#959; Greek small letter omicron, U03BF NEW
π &pi; &#960; Greek small letter pi, U03C0 ISOgrk3
ρ &rho; &#961; Greek small letter rho, U03C1 ISOgrk3
ς &sigmaf; &#962; Greek small letter final sigma, U03C2 ISOgrk3
σ &sigma; &#963; Greek small letter sigma, U03C3 ISOgrk3
τ &tau; &#964; Greek small letter tau, U03C4 ISOgrk3
υ &upsilon; &#965; Greek small letter upsilon, U03C5 ISOgrk3
φ &phi; &#966; Greek small letter phi, U03C6 ISOgrk3
χ &chi; &#967; Greek small letter chi, U03C7 ISOgrk3
ψ &psi; &#968; Greek small letter psi, U03C8 ISOgrk3
ω &omega; &#969; Greek small letter omega, U03C9 ISOgrk3
ϑ &thetasym; &#977; Greek small letter theta symbol, U03D1 NEW
ϒ &upsih; &#978; Greek upsilon with hook symbol, U03D2 NEW
ϖ &piv; &#982; Greek pi symbol, U03D6 ISOgrk3
General Punctuation
&bull; &#8226; bullet, =black small circle, U2022 ISOpub
&hellip; &#8230; horizontal ellipsis, =three dot leader, U2026 ISOpub
&prime; &#8242; prime, =minutes, =feet, U2032 ISOtech
&Prime; &#8243; double prime, =seconds, =inches, U2033 ISOtech
&oline; &#8254; overline, =spacing overscore, U203E NEW
&frasl; &#8260; fraction slash, U2044 NEW
Letterlike Symbols
&weierp; &#8472; script capital P, =power set, =Weierstrass p, U2118 ISOamso
&image; &#8465; blackletter capital I, =imaginary part, U2111 ISOamso
&real; &#8476; blackletter capital R, =real part symbol, U211C ISOamso
&trade; &#8482; trade mark sign, U2122 ISOnum
&alefsym; &#8501; alef symbol, =first transfinite cardinal, U2135 NEW
Arrows
&larr; &#8592; leftward arrow, U2190 ISOnum
&uarr; &#8593; upward arrow, U2191 ISOnum
&rarr; &#8594; rightward arrow, U2192 ISOnum
&darr; &#8595; downward arrow, U2193 ISOnum
&harr; &#8596; left right arrow, U2194 ISOamsa
&crarr; &#8629; downward arrow with corner leftward, =carriage return, U21B5 NEW
&lArr; &#8656; leftward double arrow, U21D0 ISOtech
&uArr; &#8657; upward double arrow, U21D1 ISOamsa
&rArr; &#8658; rightward double arrow, U21D2 ISOtech
&dArr; &#8659; downward double arrow, U21D3 ISOamsa
&hArr; &#8660; left right double arrow, U21D4 ISOamsa
Mathematical Operators
&forall; &#8704; for all, U2200 ISOtech
&part; &#8706; partial differential, U2202 ISOtech
&exist; &#8707; there exists, U2203 ISOtech
&empty; &#8709; empty set, =null set, =diameter, U2205 ISOamso
&nabla; &#8711; nabla, =backward difference, U2207 ISOtech
&isin; &#8712; element of, U2208 ISOtech
&notin; &#8713; not an element of, U2209 ISOtech
&ni; &#8715; contains as member, U220B ISOtech
&prod; &#8719; n-ary product, =product sign, U220F ISOamsb
&sum; &#8722; n-ary sumation, U2211 ISOamsb
&minus; &#8722; minus sign, U2212 ISOtech
&lowast; &#8727; asterisk operator, U2217 ISOtech
&radic; &#8730; square root, =radical sign, U221A ISOtech
&prop; &#8733; proportional to, U221D ISOtech
&infin; &#8734; infinity, U221E ISOtech
&ang; &#8736; angle, U2220 ISOamso
&and; &#8869; logical and, =wedge, U2227 ISOtech
&or; &#8870; logical or, =vee, U2228 ISOtech
&cap; &#8745; intersection, =cap, U2229 ISOtech
&cup; &#8746; union, =cup, U222A ISOtech
&int; &#8747; integral, U222B ISOtech
&there4; &#8756; therefore, U2234 ISOtech
&sim; &#8764; tilde operator, =varies with, =similar to, U223C ISOtech
&cong; &#8773; approximately equal to, U2245 ISOtech
&asymp; &#8773; almost equal to, =asymptotic to, U2248 ISOamsr
&ne; &#8800; not equal to, U2260 ISOtech
&equiv; &#8801; identical to, U2261 ISOtech
&le; &#8804; less-than or equal to, U2264 ISOtech
&ge; &#8805; greater-than or equal to, U2265 ISOtech
&sub; &#8834; subset of, U2282 ISOtech
&sup; &#8835; superset of, U2283 ISOtech
&nsub; &#8836; not a subset of, U2284 ISOamsn
&sube; &#8838; subset of or equal to, U2286 ISOtech
&supe; &#8839; superset of or equal to, U2287 ISOtech
&oplus; &#8853; circled plus, =direct sum, U2295 ISOamsb
&otimes; &#8855; circled times, =vector product, U2297 ISOamsb
&perp; &#8869; up tack, =orthogonal to, =perpendicular, U22A5 ISOtech
&sdot; &#8901; dot operator, U22C5 ISOamsb
Miscellaneous Technical
&lceil; &#8968; left ceiling, =apl upstile, U2308, ISOamsc
&rceil; &#8969; right ceiling, U2309, ISOamsc
&lfloor; &#8970; left floor, =apl downstile, U230A, ISOamsc
&rfloor; &#8971; right floor, U230B, ISOamsc
&lang; &#9001; left-pointing angle bracket, =bra, U2329 ISOtech
&rang; &#9002; right-pointing angle bracket, =ket, U232A ISOtech
Geometric Shapes
&loz; &#9674; lozenge, U25CA ISOpub
Miscellaneous Symbols
&spades; &#9824; black spade suit, U2660 ISOpub
&clubs; &#9827; black club suit, =shamrock, U2663 ISOpub
&hearts; &#9829; black heart suit, =valentine, U2665 ISOpub
&diams; &#9830; black diamond suit, U2666 ISOpub

PYTHON FRAMEWORK

 https://kinsta.com/jp/blog/python-frameworks/

Jumat, 31 Oktober 2025

Selasa, 28 Oktober 2025

PYHTON - SQLITE - CRUD - MASIH ERROR

 




import sqlite3


# FOR CREATING RECORDS FUNCTION DEFINITION

def create():

    try:

        con = sqlite3.connect("data.db")

        cursor = con.cursor()

        while (True):

            name = input("Enter Name: ")

            age = int(input("Enter Age: "))

            gender = input("Enter Gender: ")

            salary = int(input("Enter Salary: "))

            data = (name, age, gender, salary,)

            query = "INSERT into USERS (name, age, gender, salary) VALUES (?, ?, ?,?)"

            cursor.execute(query, data)

            con.commit()

            ch = input("Do You want to Add More Records(Y/N): ")

            if ch == "N" or ch == "n":

                cursor.close()

                break

            else:

                pass

    except:

        print("Error in Record Creation")


# FOR READING ONE RECORD FUNCTION DEFINITION

def read_one():

    con = sqlite3.connect("data.db")

    cursor = con.cursor()

    ids = int(input("Enter Your ID: "))

    query = "SELECT * from USERS WHERE id = ?"

    result = cursor.execute(query, (ids,))

    if (result):

        for i in result:

            print(f"Name is: {i[1]}")

            print(f"Age is: {i[2]}")

            print(f"Salary is: {i[4]}")

    else:

        print("Roll Number Does not Exist")

        cursor.close()


# FOR READING ALL RECORDS FUNCTION DEFINITION

def read_all():

    con = sqlite3.connect("data.db")

    cursor = con.cursor()

    query = "SELECT * from USERS"

    result = cursor.execute(query)

    if (result):

        print("\n<===Available Records===>")

        for i in result:

            print(f"Name is : {i[1]}")

            print(f"Age is : {i[2]}")

            print(f"Salary is : {i[4]}\n")

    else:

        pass

    

# FOR UPDATING RECORDS FUNCTION DEFINITION

def update():

    con = sqlite3.connect("data.db")

    cursor = con.cursor()

    idd = int(input("Enter ID: "))

    name = input("Enter Name: ")

    age = int(input("Enter Age: "))

    gender = input("Enter Gender: ")

    salary = int(input("Enter Salary: "))

    data = (name, age, gender, salary, idd,)

    query = "UPDATE USERS set name = ?, age = ?, gender = ?, salary = ? WHERE id = ?"

    result = cursor.execute(query, data)

    con.commit()

    cursor.close()

    if (result):

        print("Records Updated")

    else:

        print("Something Error in Updation")


# FOR DELETING RECORDS FUNCTION DEFINITION

def delete():

    con = sqlite3.connect("data.db")

    cursor = con.cursor()

    idd = int(input("Enter ID: "))

    query = "DELETE from USERS where ID = ?"

    result = cursor.execute(query, (idd,))

    con.commit()

    cursor.close()

    if (result):

        print("One record Deleted")

    else:

        print("Something Error in Deletion")


# MAIN BLOCK

try:

    while (True):

        print("1). Create Records: ")

        print("2). Read Records: ")

        print("3). Update Records: ")

        print("4). Delete Records: ")

        print("5). Exit")

        ch = int(input("Enter Your Choice: "))

        if ch == 1:

            create()

        elif ch == 2:

            print("1). Read Single Record")

            print("2). Read All Records")

            choice = int(input("Enter Your Choice: "))

            if choice == 1:

                read_one()

            elif choice == 2:

                read_all()

            else:

                print("Wrong Choice Entered")

        elif ch == 3:

            update()

        elif ch == 4:

            delete()

        elif ch == 5:

            break

        else:

            print("Enter Correct Choice")

except:

    print("Database Error")


#END


=============================================

import sqlite3

# Database Connectivity

try:
    con = sqlite3.connect("data.db")
    cursor = con.cursor()
    print("Connected to Database Successfully")
    #Data Updating Process-(Single Row & Column)
    query = "Update USERS set age = 26 where id = 3"
    cursor.execute(query)
    con.commit()
    cursor.close()
except:
    print("Database Error")
==========================================
import sqlite3

# Database Connectivity
def updation(names,idd):
    try:
        con = sqlite3.connect("data.db")
        cursor = con.cursor()
        print("Connected to Database Successfully")
        #Data Updating Process-(Single Row & Column)
        query = "Update USERS set name = ? where id = ?"
        cursor.execute(query,(names,idd,))
        con.commit()
        cursor.close()
    except:
        print("Database Error")

updation("Newton",3)

import sqlite3

# Database Connectivity
def updation(data):
    try:
        con = sqlite3.connect("data.db")
        cursor = con.cursor()
        print("Connected to Database Successfully")
        #Data Updating Process-(multiple-rows)
        query = "Update USERS set name = ? where id = ?"
        cursor.executemany(query,data)
        con.commit()
        cursor.close()
    except:
        print("Database Error")

data = [("Newton",3), ("Ricky",4)]
updation(data)

import sqlite3

# Database Connectivity
def updation(data):
    try:
        con = sqlite3.connect("data.db")
        cursor = con.cursor()
        print("Connected to Database Successfully")
        #Data Updating Process-(multiple-rows)
        query = "Update USERS set name = ? where id = ?"
        cursor.executemany(query,data)
        con.commit()
        cursor.close()
    except:
        print("Database Error")

data = [("Newton",3), ("Ricky",4)]
updation(data)
import sqlite3

# Database Connectivity

try:
    con = sqlite3.connect("data.db")
    cursor = con.cursor()
    print("Connected to Database Successfully")
    #Data Updating Process-(multiple-columns)
    query = "Update USERS set name = ?, age = ? where id = ?"
    cursor.execute(query,("Jordan",28,4,))
    con.commit()
    cursor.close()
except:
    print("Database Error")
import sqlite3

# Database Connectivity
try:
    con = sqlite3.connect("data.db")
    cursor = con.cursor()
    print("Connected to Database Successfully")
    #Data fetching Process-(One Record)
    query = "SELECT * from USERS"
    x = cursor.execute(query).fetchone()
    print(x)
    #format
    print(f" ID is {x[0]} Age is {x[1]} & Name is {x[2]}")
except:
    print("Database Error")
#Importing Database Library
import sqlite3

# Database Connectivity
try:
    con = sqlite3.connect("data.db")
    cursor = con.cursor()
    print("Connected to Database Successfully")
    #Data fetching Process-(Many Record)
    query = "SELECT * from USERS"
    x = cursor.execute(query).fetchmany(2)
    for i in x:
        print(f" ID is {i[0]} Age is {i[1]} & Name is {i[2]}\n")
except:
    print("Database Error")

#END
import sqlite3

# Database Connectivity
try:
    con = sqlite3.connect("data.db")
    cursor = con.cursor()
    print("Connected to Database Successfully")
    #Data fetching Process-(ALL Records)
    query = "SELECT * from USERS"
    x = cursor.execute(query).fetchall()
    for i in x:
        print(f" ID is {i[0]} Age is {i[1]} & Name is {i[2]}\n")
except:
    print("Database Error")
import sqlite3

# Database Connectivity
try:
    con = sqlite3.connect("data.db")
    cursor = con.cursor()
    print("Connected to Database Successfully")
    #Data Insertion Process
    name = input("Enter Name: ")
    age = int(input("Enter Age: "))
    gender = input("Enter your Gender: ")
    query = "INSERT into USERS(name, age, gender) VALUES (?,?,?)"
    data = (name, age, gender,)
    cursor.execute(query, data)
    con.commit()
    if(cursor.execute(query,data)):
        print("Data Inserted Successfully")
    else:
        print("Data not Inserted")
    cursor.close()
except:
    print("Database Error")
import sqlite3

# Database Connectivity
try:
    con = sqlite3.connect("data.db")
    cursor = con.cursor()
    print("Connected to Database Successfully")
    #Data inserting Process-(Multiple Records)
    while(True):
        name = input("Enter your Name: ")
        age = int(input("Enter your Age: "))
        gender = input("Enter your gender: ")
        data = (name, age, gender,)
        query = "INSERT into USERS(name,age,gender) VALUES (?,?,?)"
        cursor.execute(query,data)
        con.commit()
        ch = input("Do you want to Enter more Records(Y/N): ")
        if ch == "n" or ch == "N":
            break
        else:
            pass
    cursor.close()
except:
    print("Database Error")


import sqlite3

# Database Connectivity
def variables(name,age,gender):
    try:
        con = sqlite3.connect("data.db")
        cursor = con.cursor()
        print("Connected to Database Successfully")
        #Data inserting Process-(Parameterized Query)
        data = (name, age, gender,)
        query = "INSERT into USERS(name,age,gender) VALUES (?,?,?)"
        cursor.execute(query,data)
        con.commit()
        cursor.close()
    except:
        print("Database Error")

variables("Amanda",22,"F")