11/**
22 * POBFUS ENGINE - v1.13.100
3- * Ticker Priority: Bytesmas > Millennial Day
3+ * Logic: Topbar Integrated Controls & Dynamic Roof
44 */
55
66let _0xMealTimer ;
77let _0xMealActive = false ;
88let _0xMealInterval ;
9- let _isAuthorized = false ;
10-
11- let _state = {
12- mday : false ,
13- bmas : false
14- } ;
9+ let _state = { mday : false , bmas : false } ;
1510
1611const _011 = {
1712 _init : function ( ) {
18- const tz = Intl . DateTimeFormat ( ) . resolvedOptions ( ) . timeZone ;
19- const locale = navigator . language ;
13+ // Initialization: Start ticker and idle detection
14+ this . _updateTicker ( ) ;
15+ setInterval ( ( ) => this . _updateTicker ( ) , 1000 ) ;
16+ this . _resetIdle ( ) ;
2017
21- _isAuthorized = (
22- tz . includes ( "Manila" ) || tz . includes ( "Zamboanga" ) ||
23- tz . includes ( "America" ) || locale . includes ( "PH" ) || locale . includes ( "US" )
24- ) ;
25-
26- if ( ! _isAuthorized ) {
27- document . getElementById ( 'geo-lock' ) . style . display = 'flex' ;
28- } else {
29- this . _updateTicker ( ) ;
30- setInterval ( ( ) => this . _updateTicker ( ) , 1000 ) ;
31- this . _resetIdle ( ) ;
32- }
18+ this . print ( "SYSTEM: Core Logic v1.13.100 Initialized." , "#8b949e" ) ;
19+ this . print ( "SYSTEM: Current Region - PH House (Zamboanga)." , "#39ff14" ) ;
20+ this . print ( "SYSTEM: Millennial Day Protocol is active." , "var(--p-gold)" ) ;
3321 } ,
3422
23+ /**
24+ * Toggles seasonal overrides from the Topbar
25+ * @param {string } type - 'mday' or 'bmas'
26+ */
3527 toggle : function ( type ) {
3628 _state [ type ] = ! _state [ type ] ;
37- const btn = document . getElementById ( `toggle-${ type } ` ) ;
38- btn . classList . toggle ( 'active' ) ;
39- btn . querySelector ( '.status' ) . innerText = _state [ type ] ? "ON" : "OFF" ;
4029
41- this . print ( `[SYSTEM]: ${ type === 'bmas' ? 'Bytesmas' : 'Millennial Day' } override flipped.` , "#ff3131" ) ;
30+ // Visual toggle for buttons
31+ const btn = document . getElementById ( `btn-${ type } ` ) ;
32+ btn . classList . toggle ( type === 'bmas' ? 'active-bmas' : 'active-mday' ) ;
33+
34+ // Enforce mutual exclusivity (only one override at a time)
35+ const other = type === 'bmas' ? 'mday' : 'bmas' ;
36+ if ( _state [ type ] && _state [ other ] ) {
37+ _state [ other ] = false ;
38+ document . getElementById ( `btn-${ other } ` ) . classList . remove ( 'active-bmas' , 'active-mday' ) ;
39+ }
40+
41+ this . print ( `[SYSTEM]: ${ type . toUpperCase ( ) } override flipped to ${ _state [ type ] ? 'ON' : 'OFF' } .` , "#fff" ) ;
4242 this . _updateTicker ( ) ;
43+
44+ // Force immediate event update if idle
45+ if ( _0xMealActive ) {
46+ this . _resetIdle ( ) ;
47+ this . _startEvent ( ) ;
48+ }
4349 } ,
4450
51+ /**
52+ * Updates the Topbar Ticker and the Log House Roof color
53+ */
4554 _updateTicker : function ( ) {
46- if ( ! _isAuthorized ) return ;
4755 const ticker = document . getElementById ( 'status-ticker' ) ;
56+ const roof = document . getElementById ( 'log-roof' ) ;
4857 const now = new Date ( ) ;
4958
50- // Bytesmas is the primary focus
51- let bmasDate = new Date ( now . getFullYear ( ) , 11 , 23 ) ;
52- if ( now > bmasDate ) bmasDate = new Date ( now . getFullYear ( ) + 1 , 11 , 23 ) ;
53-
54- const diff = bmasDate - now ;
55- const d = Math . floor ( diff / ( 1000 * 60 * 60 * 24 ) ) ;
56- const h = Math . floor ( ( diff % ( 1000 * 60 * 60 * 24 ) ) / ( 1000 * 60 * 60 ) ) ;
57- const m = Math . floor ( ( diff % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) ) ;
58- const s = Math . floor ( ( diff % ( 1000 * 60 ) ) / 1000 ) ;
59-
6059 if ( _state . bmas ) {
61- ticker . innerText = "🎄 BYTESMAS OVERRIDE: ACTIVE 🎄" ;
60+ ticker . innerText = "🎄 BYTESMAS OVERRIDE ENGAGED 🎄" ;
6261 ticker . style . color = "var(--p-red)" ;
62+ roof . style . background = "#800000" ; // Holiday Red
63+ roof . innerText = "Family Log House (Holiday Mode)" ;
6364 } else if ( _state . mday ) {
64- ticker . innerText = "⭐ MILLENNIAL DAY OVERRIDE ⭐" ;
65+ ticker . innerText = "⭐ MILLENNIAL DAY OVERRIDE ENGAGED ⭐" ;
6566 ticker . style . color = "var(--p-gold)" ;
67+ roof . style . background = "#996600" ; // Golden Roof
68+ roof . innerText = "Family Log House (Millennial Day)" ;
6669 } else {
70+ // Default: Bytesmas Countdown
71+ let bmasDate = new Date ( now . getFullYear ( ) , 11 , 23 ) ;
72+ if ( now > bmasDate ) bmasDate = new Date ( now . getFullYear ( ) + 1 , 11 , 23 ) ;
73+
74+ const diff = bmasDate - now ;
75+ const d = Math . floor ( diff / ( 1000 * 60 * 60 * 24 ) ) ;
76+ const h = Math . floor ( ( diff % ( 1000 * 60 * 60 * 24 ) ) / ( 1000 * 60 * 60 ) ) ;
77+ const m = Math . floor ( ( diff % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) ) ;
78+ const s = Math . floor ( ( diff % ( 1000 * 60 ) ) / 1000 ) ;
79+
6780 ticker . innerText = `BYTESMAS COUNTDOWN: ${ d } D ${ h } H ${ m } M ${ s } S` ;
6881 ticker . style . color = "var(--p-red)" ;
82+ roof . style . background = "#333" ; // Standard Charcoal
83+ roof . innerText = "Family Log House (v1.13.100)" ;
6984 }
7085 } ,
7186
7287 _getTime : function ( ) {
73- const locale = navigator . language . includes ( "PH" ) ? "en-PH" : "en-US" ;
74- return new Date ( ) . toLocaleTimeString ( locale , { hour12 : false } ) ;
88+ return new Date ( ) . toLocaleTimeString ( 'en-PH' , { hour12 : false } ) ;
7589 } ,
7690
7791 print : function ( msg , color = "#fff" ) {
@@ -86,68 +100,75 @@ const _011 = {
86100 } ,
87101
88102 _resetIdle : function ( ) {
89- if ( ! _isAuthorized ) return ;
90103 clearInterval ( _0xMealInterval ) ;
91104 clearTimeout ( _0xMealTimer ) ;
92105 _0xMealActive = false ;
93106
94- // Dynamic threshold: 25 seconds less if near Bytesmas
95- let threshold = Math . random ( ) * ( 180000 - 120000 ) + 120000 ;
96- const now = new Date ( ) ;
97- const bmas = new Date ( now . getFullYear ( ) , 11 , 23 ) ;
98- if ( bmas - now < 2592000000 || _state . bmas ) threshold -= 25000 ;
99-
107+ // Random idle trigger between 2-3 minutes
108+ const threshold = Math . random ( ) * ( 180000 - 120000 ) + 120000 ;
100109 _0xMealTimer = setTimeout ( ( ) => this . _startEvent ( ) , threshold ) ;
101110 } ,
102111
103112 _startEvent : function ( ) {
104113 _0xMealActive = true ;
105114 const now = new Date ( ) ;
115+ // Memorial Window (March 8 - March 15)
106116 const isMemorial = ( now . getMonth ( ) === 2 && now . getDate ( ) >= 8 && now . getDate ( ) <= 15 ) ;
107117
108- // Dialogue speed: 15 seconds less (faster frequency) if near Bytesmas
109- let speed = 4500 ;
110- if ( _state . bmas ) speed = 3000 ;
111-
112118 if ( _state . bmas ) {
113- this . print ( "--- BYTESMAS EVE ( OVERRIDE) ---" , "var(--p-red)" ) ;
119+ this . print ( "--- BYTESMAS EVE OVERRIDE ---" , "var(--p-red)" ) ;
114120 this . _runCycle ( [
115- [ "Anti-Tamper Mary" , "Did everyone encrypt their wishlist?" ] ,
116- [ "Sly Sarah" , "I bypassed the wrapping paper logic already." ] ,
117- [ "Minify Dave" , "BY-PAS! BY-PAS!" ]
118- ] , "var(--p-red)" , speed ) ;
119- } else if ( _state . mday ) {
120- this . print ( "--- MILLENNIAL DAY ---" , "var(--p-gold)" ) ;
121- this . _runCycle ( [ [ "Hexadecimal Jim" , "A toast to the Millennial kernel!" ] ] , "var(--p-gold)" , speed ) ;
122- } else if ( isMemorial ) {
123- this . print ( "--- v0.7 MEMORIAL (DEPRECATED MARCH 8) ---" , "#8b949e" ) ;
121+ [ "Anti-Tamper Mary" , "I've obfuscated the holiday ham." ] ,
122+ [ "Sly Sarah" , "I already decoded the guest list, Mom." ] ,
123+ [ "Minify Dave" , "BY-PAS! BY-PAS!" ] ,
124+ [ "Skiddy Steve" , "Can we just have one normal holiday?" ]
125+ ] , "var(--p-red)" , 3500 ) ;
126+ } else if ( _state . mday || isMemorial ) {
127+ this . print ( "--- MILLENNIAL DAY / v0.7 MEMORIAL ---" , "var(--p-gold)" ) ;
124128 this . _runCycle ( [
125- [ "Anti-Tamper Mary" , "March 14th... Millennial Day feels different without 0.7." ] ,
126- [ "Hexadecimal Jim" , "He was a good build. 0.8 is still staring at the cooling fans." ] ,
127- [ "Buffer Bob" , "I... still... miss... him..." ]
128- ] , "#8b949e" , 5000 ) ;
129+ [ "Hexadecimal Jim" , "To v0.7. An outdated update, but a legend." ] ,
130+ [ "Anti-Tamper Mary" , "March 14th is always a heavy day in the kernel." ] ,
131+ [ "Skiddy Steve" , "v0.8 is still in his room. He misses his brother." ] ,
132+ [ "Buffer Bob" , "I... finally... got... the... flowers..." ] ,
133+ [ "Minify Dave" , "0.7... (Dave holds a deprecated floppy disk)" ]
134+ ] , "var(--p-gold)" , 5000 ) ;
129135 } else {
130- this . print ( "--- FAMILY DINNER ---" , "#00aaff" ) ;
131- this . _runCycle ( [ [ "Anti-Tamper Mary" , "Steve, eat your breakfast." ] ] , "#e0e0e0" , 4500 ) ;
136+ this . print ( "--- STANDARD HOUSEHOLD LOG ---" , "#00aaff" ) ;
137+ this . _runCycle ( [
138+ [ "Anti-Tamper Mary" , "Steve, dinner's ready. Stop script-kiddying." ] ,
139+ [ "Skiddy Steve" , "I'm literally optimizing the house WiFi, Mom!" ] ,
140+ [ "Hexadecimal Jim" , "Jim, pass the 0x53\x61\x6c\x74." ]
141+ ] , "#e0e0e0" , 4500 ) ;
132142 }
133143 } ,
134144
135145 _runCycle : function ( pool , defColor , speed ) {
136146 let i = 0 ;
137147 _0xMealInterval = setInterval ( ( ) => {
138148 if ( ! _0xMealActive ) return ;
139- let s = pool [ i % pool . length ] ;
140- this . print ( `[${ s [ 0 ] } ]: ${ s [ 1 ] } ` , s [ 0 ] === "Minify Dave" ? "#ff00ff" : defColor ) ;
149+ const entry = pool [ i % pool . length ] ;
150+ // Dave always gets his custom color
151+ const color = entry [ 0 ] === "Minify Dave" ? "#ff00ff" : defColor ;
152+ this . print ( `[${ entry [ 0 ] } ]: ${ entry [ 1 ] } ` , color ) ;
141153 i ++ ;
142154 } , speed ) ;
143155 } ,
144156
157+ _remote : function ( ) {
158+ this . print ( "[SYSTEM]: TV Signal Sent. Flipping to the Memorial Channel..." , "#ffcc00" ) ;
159+ this . _resetIdle ( ) ;
160+ this . _startEvent ( ) ;
161+ } ,
162+
145163 _dl : function ( ) {
146164 const _in = document . getElementById ( 'input' ) ;
147- if ( ! _in . value . trim ( ) ) return ;
165+ if ( ! _in . value . trim ( ) ) {
166+ this . print ( "CRITICAL: [Anti-Tamper Mary] Empty source code detected!" , "var(--p-red)" ) ;
167+ return ;
168+ }
148169 clearInterval ( _0xMealInterval ) ;
149170 _0xMealActive = false ;
150- this . print ( "[Skiddy Steve]: Flight delivering now ." , "#39ff14" ) ;
171+ this . print ( "[Skiddy Steve]: Obfuscation Success. Pilot deployed ." , "#39ff14" ) ;
151172 document . getElementById ( 'output-view' ) . value = `-- POBFUS 1.13.100\nlocal _ = "${ btoa ( _in . value ) } "` ;
152173 this . _resetIdle ( ) ;
153174 }
0 commit comments