SC CODE: Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "styles.css")
31 STORE("descrHdr", "")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "azylem.self.tela")
34 STORE("docType", "TELA-CSS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "ce490803449caa415e898279c0f1784029b3310274ead545e4609d6e126df7d")
37 STORE("fileCheckS", "30fa1d6635bb87ddeb1b90c766887e8290de2af34b8d5f373ce91ed951c79d3")
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
/*
:root {
--color-background: #402020;
--color-text: #FFFFFF;
--color-primary: #101010;
--color-secondary: #402020;
--color-accent: #c50f1f;
}
a:link {
color: red;
background-color: transparent;
text-decoration: none;
}
a:visited {
color: red;
background-color: transparent;
text-decoration: none;
}
a:hover {
color: white;
background-color: transparent;
text-decoration: underline;
}
a:active {
color: red;
background-color: transparent;
text-decoration: underline;
}
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: var(--color-background);
color: var(--color-text);
overflow-x: hidden;
}
.background-gradient {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
z-index: -1;
filter: blur(50px);
transform: scale(1.1);
}
header {
padding: 20px;
text-align: center;
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
header h1 {
margin: 0;
font-size: 2.5em;
font-weight: 300;
letter-spacing: 2px;
color: var(--color-primary);
}
main {
padding: 40px 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.content-block {
width: 80%;
max-width: 900px;
background: rgba(255, 255, 255, 0.1);
padding: 20px;
margin-bottom: 40px;
border-radius: 15px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.content-block h2 {
margin-top: 0;
color: var(--color-text);
font-size: 1.8em;
font-weight: 400;
border-bottom: 2px solid var(--color-accent);
padding-bottom: 10px;
}
.post-card {
background: var(--color-primary);
color: #fff;
padding: 20px;
border-radius: 10px;
margin-bottom: 20px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: justify;
}
.post-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.post-card h3 {
color: var(--color-secondary);
font-size: 1.5em;
margin-top: 0;
}
footer {
text-align: center;
padding: 20px 0;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
position: fixed;
width: 100%;
bottom: 0;
}
footer p {
margin: 0;
color: var(--color-text);
font-size: 0.9em;
}
*/ |
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", "styles.css")
31 STORE("descrHdr", "")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "azylem.self.tela")
34 STORE("docType", "TELA-CSS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "ce490803449caa415e898279c0f1784029b3310274ead545e4609d6e126df7d")
37 STORE("fileCheckS", "30fa1d6635bb87ddeb1b90c766887e8290de2af34b8d5f373ce91ed951c79d3")
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
/*
:root {
--color-background: #402020;
--color-text: #FFFFFF;
--color-primary: #101010;
--color-secondary: #402020;
--color-accent: #c50f1f;
}
a:link {
color: red;
background-color: transparent;
text-decoration: none;
}
a:visited {
color: red;
background-color: transparent;
text-decoration: none;
}
a:hover {
color: white;
background-color: transparent;
text-decoration: underline;
}
a:active {
color: red;
background-color: transparent;
text-decoration: underline;
}
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: var(--color-background);
color: var(--color-text);
overflow-x: hidden;
}
.background-gradient {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
z-index: -1;
filter: blur(50px);
transform: scale(1.1);
}
header {
padding: 20px;
text-align: center;
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
header h1 {
margin: 0;
font-size: 2.5em;
font-weight: 300;
letter-spacing: 2px;
color: var(--color-primary);
}
main {
padding: 40px 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.content-block {
width: 80%;
max-width: 900px;
background: rgba(255, 255, 255, 0.1);
padding: 20px;
margin-bottom: 40px;
border-radius: 15px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.content-block h2 {
margin-top: 0;
color: var(--color-text);
font-size: 1.8em;
font-weight: 400;
border-bottom: 2px solid var(--color-accent);
padding-bottom: 10px;
}
.post-card {
background: var(--color-primary);
color: #fff;
padding: 20px;
border-radius: 10px;
margin-bottom: 20px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: justify;
}
.post-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.post-card h3 {
color: var(--color-secondary);
font-size: 1.5em;
margin-top: 0;
}
footer {
text-align: center;
padding: 20px 0;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
position: fixed;
width: 100%;
bottom: 0;
}
footer p {
margin: 0;
color: var(--color-text);
font-size: 0.9em;
}
*/'] |