SC CODE: Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "styles-core.css")
31 STORE("descrHdr", "Core layout and structure styles")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "explorer.tela")
34 STORE("docType", "TELA-CSS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "2aa28faa83da517784dcc6140f8347cbab4476a99b8c7c29fb64a9c8af97d62a")
37 STORE("fileCheckS", "1bcd30683152d0624a85e9cbe98f10ea9b7b9e2f9623585ec25366c4611a69f7")
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
/*
html {
scroll-behavior: smooth;
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: system-ui, -apple-system, sans-serif;
}
body {
margin: 0;
padding: 0;
box-sizing: border-box;
background: linear-gradient(135deg, #0a0c0e, #15171a, #1d2024);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
color: #ffffff;
position: relative;
overflow-x: hidden;
}
#app {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem 1rem 1rem;
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
min-height: 96vh;
overflow-x: hidden;
}
.header-modern {
contain-intrinsic-block-size: auto 100px;
width: 100%;
max-width: 100%;
box-sizing: border-box;
position: sticky;
top: 0;
z-index: 100;
}
.status-bar {
display: flex;
justify-content: flex-end;
padding: 0.5rem 1.5rem 0 1.5rem;
}
.status-indicators-mini {
display: flex;
align-items: center;
gap: 1rem;
}
.status-mini {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.6rem;
border-radius: 12px;
background: rgba(0,0,0,0.3);
cursor: pointer;
transition: all 0.2s ease;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.status-mini:hover {
background: rgba(0,0,0,0.5);
}
.status-label {
color: #b3b3b3;
}
.status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
display: inline-block;
}
.main-nav-row {
display: flex;
align-items: center;
gap: 1.5rem;
padding: 1rem 1.5rem;
justify-content: space-between;
}
.nav-buttons {
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-btn {
background: transparent !important;
border: 1px solid rgba(185,89,182,0.3) !important;
color: #b3b3b3 !important;
padding: 0.6rem 1rem !important;
border-radius: 8px !important;
font-size: 0.875rem !important;
font-weight: 500 !important;
cursor: pointer !important;
transition: all 0.25s ease !important;
white-space: nowrap !important;
box-shadow: none !important;
outline: none !important;
filter: none !important;
backdrop-filter: none !important;
text-shadow: none !important;
}
.nav-btn:hover {
color: #ffffff !important;
border-color: #b959b6 !important;
box-shadow: none !important;
filter: none !important;
backdrop-filter: none !important;
text-shadow: none !important;
}
.nav-btn.active {
background: rgba(185,89,182,0.15) !important;
color: white !important;
border-color: #b959b6 !important;
box-shadow: none !important;
outline: none !important;
filter: none !important;
backdrop-filter: none !important;
text-shadow: none !important;
}
.utility-buttons {
display: flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 0;
}
.utility-btn {
background: rgba(0,0,0,0.2);
border: 1px solid rgba(185,89,182,0.3);
color: #b3b3b3;
padding: 0.6rem 0.875rem;
border-radius: 8px;
font-size: 0.8rem;
cursor: pointer;
transition: all 0.25s ease;
white-space: nowrap;
box-shadow: none;
outline: none;
}
.utility-btn:hover {
color: #ffffff;
border-color: #b959b6;
box-shadow: none !important;
outline: none !important;
filter: none !important;
backdrop-filter: none !important;
}
.dot-green {
background: #28a745;
box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}
.dot-yellow {
background: #ffc107;
box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
}
.dot-red {
background: #dc3545;
box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
}
.header-top-section {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 1rem;
border-bottom: 1px solid rgba(185,89,182,0.15);
width: 100%;
max-width: 100%;
box-sizing: border-color;
position: relative;
}
.main-navigation {
display: flex;
justify-content: center;
padding: 0.75rem 0;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
.primary-nav {
display: flex;
background: rgba(0,0,0,0.25);
border: 1px solid rgba(185,89,182,0.25);
border-radius: 12px;
padding: 0.4rem;
gap: 0.3rem;
}
.nav-label {
font-size: 0.9rem;
letter-spacing: 0.3px;
}
*/ |
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-core.css")
31 STORE("descrHdr", "Core layout and structure styles")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "explorer.tela")
34 STORE("docType", "TELA-CSS-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "2aa28faa83da517784dcc6140f8347cbab4476a99b8c7c29fb64a9c8af97d62a")
37 STORE("fileCheckS", "1bcd30683152d0624a85e9cbe98f10ea9b7b9e2f9623585ec25366c4611a69f7")
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
/*
html {
scroll-behavior: smooth;
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: system-ui, -apple-system, sans-serif;
}
body {
margin: 0;
padding: 0;
box-sizing: border-box;
background: linear-gradient(135deg, #0a0c0e, #15171a, #1d2024);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
color: #ffffff;
position: relative;
overflow-x: hidden;
}
#app {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem 1rem 1rem;
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
min-height: 96vh;
overflow-x: hidden;
}
.header-modern {
contain-intrinsic-block-size: auto 100px;
width: 100%;
max-width: 100%;
box-sizing: border-box;
position: sticky;
top: 0;
z-index: 100;
}
.status-bar {
display: flex;
justify-content: flex-end;
padding: 0.5rem 1.5rem 0 1.5rem;
}
.status-indicators-mini {
display: flex;
align-items: center;
gap: 1rem;
}
.status-mini {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.6rem;
border-radius: 12px;
background: rgba(0,0,0,0.3);
cursor: pointer;
transition: all 0.2s ease;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.status-mini:hover {
background: rgba(0,0,0,0.5);
}
.status-label {
color: #b3b3b3;
}
.status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
display: inline-block;
}
.main-nav-row {
display: flex;
align-items: center;
gap: 1.5rem;
padding: 1rem 1.5rem;
justify-content: space-between;
}
.nav-buttons {
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-btn {
background: transparent !important;
border: 1px solid rgba(185,89,182,0.3) !important;
color: #b3b3b3 !important;
padding: 0.6rem 1rem !important;
border-radius: 8px !important;
font-size: 0.875rem !important;
font-weight: 500 !important;
cursor: pointer !important;
transition: all 0.25s ease !important;
white-space: nowrap !important;
box-shadow: none !important;
outline: none !important;
filter: none !important;
backdrop-filter: none !important;
text-shadow: none !important;
}
.nav-btn:hover {
color: #ffffff !important;
border-color: #b959b6 !important;
box-shadow: none !important;
filter: none !important;
backdrop-filter: none !important;
text-shadow: none !important;
}
.nav-btn.active {
background: rgba(185,89,182,0.15) !important;
color: white !important;
border-color: #b959b6 !important;
box-shadow: none !important;
outline: none !important;
filter: none !important;
backdrop-filter: none !important;
text-shadow: none !important;
}
.utility-buttons {
display: flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 0;
}
.utility-btn {
background: rgba(0,0,0,0.2);
border: 1px solid rgba(185,89,182,0.3);
color: #b3b3b3;
padding: 0.6rem 0.875rem;
border-radius: 8px;
font-size: 0.8rem;
cursor: pointer;
transition: all 0.25s ease;
white-space: nowrap;
box-shadow: none;
outline: none;
}
.utility-btn:hover {
color: #ffffff;
border-color: #b959b6;
box-shadow: none !important;
outline: none !important;
filter: none !important;
backdrop-filter: none !important;
}
.dot-green {
background: #28a745;
box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}
.dot-yellow {
background: #ffc107;
box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
}
.dot-red {
background: #dc3545;
box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
}
.header-top-section {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 1rem;
border-bottom: 1px solid rgba(185,89,182,0.15);
width: 100%;
max-width: 100%;
box-sizing: border-color;
position: relative;
}
.main-navigation {
display: flex;
justify-content: center;
padding: 0.75rem 0;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
.primary-nav {
display: flex;
background: rgba(0,0,0,0.25);
border: 1px solid rgba(185,89,182,0.25);
border-radius: 12px;
padding: 0.4rem;
gap: 0.3rem;
}
.nav-label {
font-size: 0.9rem;
letter-spacing: 0.3px;
}
*/'] |