SC CODE: Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "gaza.html")
31 STORE("descrHdr", "Donate for Gaza")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "Gaza")
34 STORE("docType", "TELA-HTML-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "d8338d4282c656af44bf4e3176e69b3ab61380a7c3896ac4bb5775a6f21aeb6")
37 STORE("fileCheckS", "114637bd11fe17db1fd2acc13c84b49c18346145b945ea6ebee2aacd08cc40e5")
100 RETURN 0
End Function
Function init() Uint64
10 IF EXISTS("owner") == 0 THEN GOTO 30
20 RETURN 1
30 STORE("owner", address())
50 STORE("docVersion", "1.0.0")
60 STORE("hash", HEX(TXID()))
70 STORE("likes", 0)
80 STORE("dislikes", 0)
100 RETURN 0
End Function
Function address() String
10 DIM s as String
20 LET s = SIGNER()
30 IF IS_ADDRESS_VALID(s) THEN GOTO 50
40 RETURN "anon"
50 RETURN ADDRESS_STRING(s)
End Function
Function Rate(r Uint64) Uint64
10 DIM addr as String
15 LET addr = address()
16 IF r < 100 && EXISTS(addr) == 0 && addr != "anon" THEN GOTO 30
20 RETURN 1
30 STORE(addr, ""+r+"_"+BLOCK_HEIGHT())
40 IF r < 50 THEN GOTO 70
50 STORE("likes", LOAD("likes")+1)
60 RETURN 0
70 STORE("dislikes", LOAD("dislikes")+1)
100 RETURN 0
End Function
/*
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>Support Gaza - Dero Community Campaign</title>
<style>
body {
font-family: 'Courier New', Courier, monospace;
background-color: #f2f2f2;
color: #333;
padding: 20px;
line-height: 1.8;
}
.container {
max-width: 800px;
margin: auto;
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1, h2 {
color: #c0392b;
text-align: center;
}
.donate-box {
background: #e74c3c;
color: white;
padding: 20px;
margin-top: 30px;
border-radius: 8px;
text-align: center;
}
.donate-box p {
font-size: 18px;
margin: 10px 0;
}
.donate-box strong {
font-size: 20px;
}
footer {
text-align: center;
margin-top: 40px;
font-size: 14px;
color: #666;
}
</style>
</head>
<body>
<div class="container">
<h1>Support Gaza</h1>
<p>
Gaza is facing an unimaginable humanitarian crisis. People are being killed, starved, and trapped under a deadly siege.
The world remains silent as innocent civilians suffer and die every single day.
</p>
<p>
As humans, we refuse to stand by. We will do our part to help, by providing food and clean water to those in need —
through donations, free meal distribution, and clean water trucks reaching as many areas as possible.
</p>
<p>
This humanitarian campaign is proudly organized by the <strong>Dero Community</strong>, and all efforts will be documented transparently.
</p>
<p>
Donations will be collected in <strong>Dero</strong> and exchanged on <strong>TradeOgre</strong> for USDT to purchase essential supplies.
</p>
<div class="donate-box">
<h2>To Donate:</h2>
<p>Send Dero to:</p>
<p><strong>donate4gaza</strong></p>
<p>or</p>
<p><strong>Donate4Gaza</strong></p>
</div>
<footer>
May your kindness bring hope to Gaza. Together, we make a difference.
</footer>
</div>
</body>
</html>
*/ |
SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "gaza.html")
31 STORE("descrHdr", "Donate for Gaza")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "Gaza")
34 STORE("docType", "TELA-HTML-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "d8338d4282c656af44bf4e3176e69b3ab61380a7c3896ac4bb5775a6f21aeb6")
37 STORE("fileCheckS", "114637bd11fe17db1fd2acc13c84b49c18346145b945ea6ebee2aacd08cc40e5")
100 RETURN 0
End Function
Function init() Uint64
10 IF EXISTS("owner") == 0 THEN GOTO 30
20 RETURN 1
30 STORE("owner", address())
50 STORE("docVersion", "1.0.0")
60 STORE("hash", HEX(TXID()))
70 STORE("likes", 0)
80 STORE("dislikes", 0)
100 RETURN 0
End Function
Function address() String
10 DIM s as String
20 LET s = SIGNER()
30 IF IS_ADDRESS_VALID(s) THEN GOTO 50
40 RETURN "anon"
50 RETURN ADDRESS_STRING(s)
End Function
Function Rate(r Uint64) Uint64
10 DIM addr as String
15 LET addr = address()
16 IF r < 100 && EXISTS(addr) == 0 && addr != "anon" THEN GOTO 30
20 RETURN 1
30 STORE(addr, ""+r+"_"+BLOCK_HEIGHT())
40 IF r < 50 THEN GOTO 70
50 STORE("likes", LOAD("likes")+1)
60 RETURN 0
70 STORE("dislikes", LOAD("dislikes")+1)
100 RETURN 0
End Function
/*
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>Support Gaza - Dero Community Campaign</title>
<style>
body {
font-family: 'Courier New', Courier, monospace;
background-color: #f2f2f2;
color: #333;
padding: 20px;
line-height: 1.8;
}
.container {
max-width: 800px;
margin: auto;
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1, h2 {
color: #c0392b;
text-align: center;
}
.donate-box {
background: #e74c3c;
color: white;
padding: 20px;
margin-top: 30px;
border-radius: 8px;
text-align: center;
}
.donate-box p {
font-size: 18px;
margin: 10px 0;
}
.donate-box strong {
font-size: 20px;
}
footer {
text-align: center;
margin-top: 40px;
font-size: 14px;
color: #666;
}
</style>
</head>
<body>
<div class="container">
<h1>Support Gaza</h1>
<p>
Gaza is facing an unimaginable humanitarian crisis. People are being killed, starved, and trapped under a deadly siege.
The world remains silent as innocent civilians suffer and die every single day.
</p>
<p>
As humans, we refuse to stand by. We will do our part to help, by providing food and clean water to those in need —
through donations, free meal distribution, and clean water trucks reaching as many areas as possible.
</p>
<p>
This humanitarian campaign is proudly organized by the <strong>Dero Community</strong>, and all efforts will be documented transparently.
</p>
<p>
Donations will be collected in <strong>Dero</strong> and exchanged on <strong>TradeOgre</strong> for USDT to purchase essential supplies.
</p>
<div class="donate-box">
<h2>To Donate:</h2>
<p>Send Dero to:</p>
<p><strong>donate4gaza</strong></p>
<p>or</p>
<p><strong>Donate4Gaza</strong></p>
</div>
<footer>
May your kindness bring hope to Gaza. Together, we make a difference.
</footer>
</div>
</body>
</html>
*/'] |