MediaWiki:Common.js: Difference between revisions

From Night City MUX Wiki
Jump to navigation Jump to search
 
No edit summary
 
Line 42: Line 42:
     "RIPPERDOC NOTICE: Doc Ryder in Kabuki offering 15% discount on Neuroport installations through end of month. First come first served.",
     "RIPPERDOC NOTICE: Doc Ryder in Kabuki offering 15% discount on Neuroport installations through end of month. First come first served.",
     "GANG INTELLIGENCE: Animals gym in Arroyo reports three unsanctioned challenges this week. All challengers hospitalised. Gym undamaged.",
     "GANG INTELLIGENCE: Animals gym in Arroyo reports three unsanctioned challenges this week. All challengers hospitalised. Gym undamaged.",
     "NIGH
     "NIGHT CITY TRANSIT: Maglev line 3 running 40 minutes late due to unspecified incident at Charter Hill station. NCPD on scene.",
    "BIOTECHNICA ADVISORY: Foragers detected on Biotechnica Flats perimeter. Security response authorised. No survivors expected.",
    "AFTERLIFE BAR: New shipment of the good stuff arrived. You know what that means. First in best dressed.",
    "WNS ENTERTAINMENT: Braindance piracy ring broken up in Megabuilding H4. Seventeen units seized. Two suspects flatlined during arrest.",
    "NCPD ADVISORY: Street racing activity on Industrial Corridor elevated. Roadblocks ineffective. NCPD pursuing alternative strategies.",
    "BLACK MARKET ALERT: Stolen Militech hardware circulating in Northside. Serial numbers removed. Origin unknown. Very much for sale.",
    "TRAUMA TEAM ADVISORY: Response drones operating in Watson may experience interference near Maelstrom territory. Pilots advised.",
    "NIGHT CITY POWER GRID: Charter Hill and City Center operating at full capacity. All other districts on managed supply.",
    "GANG INTELLIGENCE: Voodoo Boys communication intercepts suggest increased NET activity in Pacifica. Nature of operations unknown.",
    "WNS BREAKING: Fire at Zetatech distribution warehouse in Santo Domingo. Cause undetermined. Significant inventory loss reported.",
    "RIPPERDOC COMMUNITY NOTICE: Meds shortage affecting street-level Immunoblocker supply in Watson and Heywood. Stock accordingly.",
    "AFTERLIFE BAR: If you are reading this on a public terminal you are not the kind of person who gets a table here. Yet.",
    "NCPD GANG UNIT: Sixth Street activity in Arroyo elevated. Recommend avoiding the district after dark if you value your vehicle.",
    "BIOTECHNICA PRESS RELEASE: New Scop variant in development. Company describes it as a significant leap forward. No further details.",
    "NIGHT CITY RADIO: Anonymous tip suggests unreleased Samurai recording exists. Music community response: considerable.",
    "WNS REPORT: Nomad convoy ambushed on Badlands route 7. Attackers unknown. Cargo unknown. Convoy security response: effective.",
    "TRAUMA TEAM ADVISORY: Reminder that Trauma Team does not negotiate with hostage takers. This policy is non-negotiable. Ironically.",
    "GANG INTELLIGENCE: Scavenger activity elevated in Rancho Coronado and Arroyo. Travel in groups. Travel armed.",
    "BLACK MARKET REPORT: Arasaka surplus hardware appearing in Watson market stalls. Provenance highly questionable. Prices reasonable.",
    "NCPD ADVISORY: The Night City Holocaust memorial in City Center will be closed for maintenance next week. Security presence maintained.",
    "AFTERLIFE BAR: Word from the wall: three new names added this month. Night City does what Night City does.",
    "WNS ENTERTAINMENT: Holo-star Skye arrested on charges of braindance content violations. Management declines comment. Fans outraged.",
    "BIOTECHNICA FLATS: Worm yield at record high. Processing capacity expanded. CHOOH2 output forecast revised upward.",
    "NIGHT CITY TRANSIT: Maglev service to Pacifica suspended indefinitely. Bus replacement not provided. District residents unsurprised.",
    "RIPPERDOC NOTICE: Watson ripperdoc collective reports 30% increase in cyberpsychosis adjacent consultations this quarter.",
    "GANG INTELLIGENCE: Aldecaldo convoy reported moving through Badlands corridor 7. Nomad presence elevated. Corporate patrols advised caution.",
    "WNS BREAKING: Unconfirmed: firefight at Arasaka-affiliated facility in Westbrook. Arasaka spokesperson: no comment. Eyewitnesses: many.",
    "NCPD GANG UNIT: Mox activity in Watson at baseline. Lizzie's Bar operating normally. No incidents reported. Refreshing.",
    "TRAUMA TEAM ADVISORY: New Cyberpsycho response protocol in effect. Platinum clients in affected zones will be extracted prior to MaxTac deployment.",
    "BLACK MARKET ALERT: Netrunner hardware of unknown specification appearing in Kabuki market. Origin traced to Blackwall adjacent activity. Approach with caution.",
    "AFTERLIFE BAR: The Samurai is poured cold tonight. As always.",
    "BIOTECHNICA NOTICE: Guerrilla garden detected in Pacifica. Security team dispatched. Garden no longer operational.",
    "NIGHT CITY RADIO: This is Night City Radio. We play what we want. Tonight we want Samurai. Again.",
    "WNS REPORT: Militech-Arasaka proxy dispute in Santo Domingo claims four civilian lives. Both corporations deny involvement.",
    "GANG INTELLIGENCE: Maelstrom leadership meeting observed at Totentanz. Attendees heavily armed. Meeting apparently concluded without incident. Unusually.",
    "NCPD ADVISORY: Increased gang activity across Watson, Heywood and Santo Domingo. Additional patrols authorised. Deployment timeline not specified.",
    "RIPPERDOC COMMUNITY NOTICE: Quality control issues reported with recent Zetatech Cyberoptic batch. Serial numbers posted on community board.",
    "TRAUMA TEAM ADVISORY: Response time improvements in City Center and Westbrook now active. All other districts unchanged.",
    "BLACK MARKET REPORT: Stolen Kiroshi optical hardware circulating. Performance matches specification. Provenance does not. Your call.",
    "AFTERLIFE BAR: Rogue's table is occupied. The rest of the bar is open. Conduct yourself accordingly.",
    "WNS BREAKING: DataKrash anniversary approaches. NET stability reports nominal. Blackwall integrity confirmed. For now.",
    "BIOTECHNICA FLATS: Perimeter drone patrol upgraded to lethal response authorization. Trespassers advised accordingly.",
    "NIGHT CITY TRANSIT: All lines operating within normal parameters today. Enjoy it. It will not last.",
    "NCPD GANG UNIT: Corpo Plaza remains a no-gang zone. Enforcement active. Violators processed efficiently.",
    "GANG INTELLIGENCE: Tyger Claws and Maelstrom border dispute in Kabuki ongoing. Residents caught in the middle are advised to relocate temporarily.",
    "WNS ENTERTAINMENT: New braindance release from anonymous creator topping underground charts. Content described as extraordinary. Origin unknown.",
    "RIPPERDOC NOTICE: Free Neuroport health checks available at Doc Galena's clinic in Heywood. First 20 clients only.",
    "TRAUMA TEAM ADVISORY: Platinum tier clients in Watson reminded that response vehicles may be delayed by Maelstrom territory crossing protocols.",
    "BLACK MARKET ALERT: Unverified Gen 4 hardware rumoured to be circulating in Night City. Intelligence assessment: treat with extreme caution.",
    "AFTERLIFE BAR: New faces welcome. Respect the wall. Respect the house rules. Everything else is negotiable.",
    "BIOTECHNICA PRESS RELEASE: CHOOH2 price stable this quarter. Fuel availability confirmed across all Night City districts.",
    "NIGHT CITY RADIO: Caller requests we stop playing Samurai. Request denied. Never Fade Away on repeat until further notice.",
    "WNS REPORT: Three MaxTac deployments in one week. Department spokesperson describes this as within acceptable operational parameters.",
    "GANG INTELLIGENCE: Aldecaldo presence in Badlands at elevated levels. Nomad activity near corporate supply routes noted by multiple sources.",
    "NCPD ADVISORY: Wanted: information on recent Japantown incident involving Lazarus Group casualties. Anonymous tips accepted. Officer safety guaranteed.",
    "RIPPERDOC COMMUNITY NOTICE: Community reminder that used cyberware should be tested by a qualified ripperdoc before installation. Yes, all of it.",
    "TRAUMA TEAM ADVISORY: Annual review confirms Trauma Team maintains fastest response times of any medical service in Night City. By significant margin.",
    "BLACK MARKET REPORT: Rocklin Augmentics fashion line knockoffs appearing in Watson. Quality considerably below original. Visually similar. Buyer beware.",
    "AFTERLIFE BAR: The city remembers. The wall remembers. Come in. Have a drink. Tell us who you are.",
    "WNS BREAKING: Unconfirmed reports of Morgan Blackhand sighting in Night City. Source: one eyewitness. Credibility: unverified. Interest level: considerable.",
    "BIOTECHNICA NOTICE: Soy protein processing output at annual high. Distribution to HOasis Markets confirmed. Supply stable through Q4.",
    "NIGHT CITY POWER GRID: Emergency power restoration complete in Northside following Maelstrom-adjacent infrastructure incident.",
    "NCPD GANG UNIT: Animals gym in Arroyo now operating extended hours. Membership applications open. Screening process described as thorough.",
    "GANG INTELLIGENCE: Voodoo Boys NET activity in Pacifica at elevated levels. Nature of operations: unknown. Recommended response: stay out of Pacifica.",
    "WNS ENTERTAINMENT: Lizzy Wizzy announces world tour. Night City date confirmed. Venue: undisclosed. Tickets: extremely limited.",
    "RIPPERDOC NOTICE: Immunoblocker supply restored in Heywood following logistics disruption. Standard pricing resumed.",
    "TRAUMA TEAM ADVISORY: Cyberpsychosis incident response protocol updated. New extraction procedures in effect for Platinum tier clients.",
    "BLACK MARKET ALERT: Military-grade Linear Frame components appearing in Northside. Militech has not commented. NCPD has not investigated.",
    "AFTERLIFE BAR: Tonight's special: The Samurai. Cold, strong and it does not apologise for what it is. Neither did he."
];
 
/* --- DISPLAY FUNCTION --- */
function displayNewsItems() {
    var newsFeed = document.getElementById('night-city-news-feed');
    if (!newsFeed) return;
 
    /* Shuffle and select 5 random items */
    var shuffled = nightCityNews.slice();
    for (var i = shuffled.length - 1; i > 0; i--) {
        var j = Math.floor(Math.random() * (i + 1));
        var temp = shuffled[i];
        shuffled[i] = shuffled[j];
        shuffled[j] = temp;
    }
 
    var selected = shuffled.slice(0, 5);
    var html = '';
 
    for (var k = 0; k < selected.length; k++) {
        html += '<div style="border-left: 3px solid #ff00ff; padding: 8px; margin-bottom: 10px; background-color: #0a0a0a;">';
        html += '<span style="color:#ffd700;">&#9656;</span> ';
        html += '<span style="color:#ffffff; font-family:monospace;">' + selected[k] + '</span>';
        html += '</div>';
    }
 
    newsFeed.innerHTML = html;
}
 
/* --- RUN ON PAGE LOAD --- */
if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', displayNewsItems);
} else {
    displayNewsItems();
}

Latest revision as of 17:14, 27 April 2026

/* ========================================
   NIGHT CITY MUSH — COMMON.JS
   Rotating news feed for main page
   ======================================== */

/* --- ROTATING NEWS FEED ---
   Selects 5 random items from the full
   news array and displays them on the
   main page in the news feed div
   ======================================== */

var nightCityNews = [
    "NCPD REPORT: Three Maelstrom operatives found flatlined in Northside Industrial. MaxTac not called. Investigation ongoing.",
    "TRAUMA TEAM ADVISORY: Response times in Pacifica elevated due to ongoing territorial dispute. Platinum and above clients advised to avoid the district.",
    "BIOTECHNICA FLATS: Security perimeter expanded by 200 meters. Trespassers will be prosecuted. Or flatlined. Whichever is faster.",
    "WNS BREAKING: Arasaka Tower Night City reports record quarterly security incident rate. Spokesperson declines to elaborate.",
    "NIGHT CITY RADIO: Samurai's 'Never Fade Away' tops the underground chart for the forty-seventh consecutive week.",
    "MAXTAC ADVISORY: Cyberpsycho incident reported in Kabuki. Residents advised to remain indoors. Incident resolved. Mostly.",
    "BLACK MARKET ALERT: Counterfeit Dynalar neural interfaces circulating in Watson. Buyers report signal dropout and auditory hallucinations.",
    "AFTERLIFE BAR: The wall has a new entry. No further details will be provided at this time.",
    "NCPD GANG UNIT: Tyger Claws expand territory in Japantown following negotiated settlement. Terms not disclosed.",
    "TRAUMA TEAM ADVISORY: New Platinum tier response package available. Ask your corpo HR department if you qualify.",
    "BIOTECHNICA PRESS RELEASE: CHOOH2 yield up 12% this quarter. Stockholders delighted. Watson residents unaffected.",
    "WNS REPORT: Militech convoy ambushed on I-5 corridor south of Night City. Three vehicles destroyed. Cargo unaccounted for.",
    "NIGHT CITY TRANSIT: Maglev line 7 suspended indefinitely following structural incident in Santo Domingo tunnel section.",
    "RIPPERDOC COMMUNITY NOTICE: Counterfeit Kiroshi optical units detected in Heywood black market supply chain. Verify your hardware.",
    "NCPD PRESS RELEASE: Officer-involved shooting in Rancho Coronado ruled justified. Fourth this week. Department spokesperson unavailable for comment.",
    "AFTERLIFE BAR: Rogue is in. If you have to ask whether your job is worth bringing to her, it is not.",
    "WNS ENTERTAINMENT: Lizzy Wizzy cancels Santo Domingo show citing security concerns. Refunds available at point of purchase.",
    "GANG INTELLIGENCE: Valentinos activity increased in Vista Del Rey. NCPD presence notably absent. Draw your own conclusions.",
    "TRAUMA TEAM ADVISORY: Platinum response now includes cyberware stabilisation for up to three installed pieces. Terms and conditions apply.",
    "NIGHT CITY POWER GRID: Rolling brownouts scheduled for Pacifica through end of month. No restoration timeline provided.",
    "NCPD ADVISORY: The individual known as Ozob Bozo is wanted for questioning. Approach with extreme caution. Do not grab the face.",
    "BLACK MARKET REPORT: Gen 2 Sandevistan units flooding Watson market. Performance claims do not match specifications. Buyer beware.",
    "WNS BREAKING: Unconfirmed reports of Lazarus Group operatives operating in Japantown. NCPD declines to investigate.",
    "BIOTECHNICA NOTICE: Scop formula updated. Nutritional content unchanged. Flavour profile described by company as improved. Public response mixed.",
    "AFTERLIFE BAR: The drink on the wall for Morgan Blackhand remains unpoured. The space remains reserved. No further comment.",
    "NIGHT CITY RADIO: Kerry Eurodyne announces surprise acoustic set at undisclosed Watson venue. Location distributed via word of mouth only.",
    "NCPD GANG UNIT: Maelstrom activity in NID at elevated levels. Chrome sightings above baseline. MaxTac on standby.",
    "TRAUMA TEAM ADVISORY: Gold tier response temporarily suspended in Pacifica. Platinum and above unaffected.",
    "WNS REPORT: Three corporate executives reported missing following Westbrook dinner. Arasaka, Militech and Kang Tao each decline to comment.",
    "RIPPERDOC NOTICE: Doc Ryder in Kabuki offering 15% discount on Neuroport installations through end of month. First come first served.",
    "GANG INTELLIGENCE: Animals gym in Arroyo reports three unsanctioned challenges this week. All challengers hospitalised. Gym undamaged.",
    "NIGHT CITY TRANSIT: Maglev line 3 running 40 minutes late due to unspecified incident at Charter Hill station. NCPD on scene.",
    "BIOTECHNICA ADVISORY: Foragers detected on Biotechnica Flats perimeter. Security response authorised. No survivors expected.",
    "AFTERLIFE BAR: New shipment of the good stuff arrived. You know what that means. First in best dressed.",
    "WNS ENTERTAINMENT: Braindance piracy ring broken up in Megabuilding H4. Seventeen units seized. Two suspects flatlined during arrest.",
    "NCPD ADVISORY: Street racing activity on Industrial Corridor elevated. Roadblocks ineffective. NCPD pursuing alternative strategies.",
    "BLACK MARKET ALERT: Stolen Militech hardware circulating in Northside. Serial numbers removed. Origin unknown. Very much for sale.",
    "TRAUMA TEAM ADVISORY: Response drones operating in Watson may experience interference near Maelstrom territory. Pilots advised.",
    "NIGHT CITY POWER GRID: Charter Hill and City Center operating at full capacity. All other districts on managed supply.",
    "GANG INTELLIGENCE: Voodoo Boys communication intercepts suggest increased NET activity in Pacifica. Nature of operations unknown.",
    "WNS BREAKING: Fire at Zetatech distribution warehouse in Santo Domingo. Cause undetermined. Significant inventory loss reported.",
    "RIPPERDOC COMMUNITY NOTICE: Meds shortage affecting street-level Immunoblocker supply in Watson and Heywood. Stock accordingly.",
    "AFTERLIFE BAR: If you are reading this on a public terminal you are not the kind of person who gets a table here. Yet.",
    "NCPD GANG UNIT: Sixth Street activity in Arroyo elevated. Recommend avoiding the district after dark if you value your vehicle.",
    "BIOTECHNICA PRESS RELEASE: New Scop variant in development. Company describes it as a significant leap forward. No further details.",
    "NIGHT CITY RADIO: Anonymous tip suggests unreleased Samurai recording exists. Music community response: considerable.",
    "WNS REPORT: Nomad convoy ambushed on Badlands route 7. Attackers unknown. Cargo unknown. Convoy security response: effective.",
    "TRAUMA TEAM ADVISORY: Reminder that Trauma Team does not negotiate with hostage takers. This policy is non-negotiable. Ironically.",
    "GANG INTELLIGENCE: Scavenger activity elevated in Rancho Coronado and Arroyo. Travel in groups. Travel armed.",
    "BLACK MARKET REPORT: Arasaka surplus hardware appearing in Watson market stalls. Provenance highly questionable. Prices reasonable.",
    "NCPD ADVISORY: The Night City Holocaust memorial in City Center will be closed for maintenance next week. Security presence maintained.",
    "AFTERLIFE BAR: Word from the wall: three new names added this month. Night City does what Night City does.",
    "WNS ENTERTAINMENT: Holo-star Skye arrested on charges of braindance content violations. Management declines comment. Fans outraged.",
    "BIOTECHNICA FLATS: Worm yield at record high. Processing capacity expanded. CHOOH2 output forecast revised upward.",
    "NIGHT CITY TRANSIT: Maglev service to Pacifica suspended indefinitely. Bus replacement not provided. District residents unsurprised.",
    "RIPPERDOC NOTICE: Watson ripperdoc collective reports 30% increase in cyberpsychosis adjacent consultations this quarter.",
    "GANG INTELLIGENCE: Aldecaldo convoy reported moving through Badlands corridor 7. Nomad presence elevated. Corporate patrols advised caution.",
    "WNS BREAKING: Unconfirmed: firefight at Arasaka-affiliated facility in Westbrook. Arasaka spokesperson: no comment. Eyewitnesses: many.",
    "NCPD GANG UNIT: Mox activity in Watson at baseline. Lizzie's Bar operating normally. No incidents reported. Refreshing.",
    "TRAUMA TEAM ADVISORY: New Cyberpsycho response protocol in effect. Platinum clients in affected zones will be extracted prior to MaxTac deployment.",
    "BLACK MARKET ALERT: Netrunner hardware of unknown specification appearing in Kabuki market. Origin traced to Blackwall adjacent activity. Approach with caution.",
    "AFTERLIFE BAR: The Samurai is poured cold tonight. As always.",
    "BIOTECHNICA NOTICE: Guerrilla garden detected in Pacifica. Security team dispatched. Garden no longer operational.",
    "NIGHT CITY RADIO: This is Night City Radio. We play what we want. Tonight we want Samurai. Again.",
    "WNS REPORT: Militech-Arasaka proxy dispute in Santo Domingo claims four civilian lives. Both corporations deny involvement.",
    "GANG INTELLIGENCE: Maelstrom leadership meeting observed at Totentanz. Attendees heavily armed. Meeting apparently concluded without incident. Unusually.",
    "NCPD ADVISORY: Increased gang activity across Watson, Heywood and Santo Domingo. Additional patrols authorised. Deployment timeline not specified.",
    "RIPPERDOC COMMUNITY NOTICE: Quality control issues reported with recent Zetatech Cyberoptic batch. Serial numbers posted on community board.",
    "TRAUMA TEAM ADVISORY: Response time improvements in City Center and Westbrook now active. All other districts unchanged.",
    "BLACK MARKET REPORT: Stolen Kiroshi optical hardware circulating. Performance matches specification. Provenance does not. Your call.",
    "AFTERLIFE BAR: Rogue's table is occupied. The rest of the bar is open. Conduct yourself accordingly.",
    "WNS BREAKING: DataKrash anniversary approaches. NET stability reports nominal. Blackwall integrity confirmed. For now.",
    "BIOTECHNICA FLATS: Perimeter drone patrol upgraded to lethal response authorization. Trespassers advised accordingly.",
    "NIGHT CITY TRANSIT: All lines operating within normal parameters today. Enjoy it. It will not last.",
    "NCPD GANG UNIT: Corpo Plaza remains a no-gang zone. Enforcement active. Violators processed efficiently.",
    "GANG INTELLIGENCE: Tyger Claws and Maelstrom border dispute in Kabuki ongoing. Residents caught in the middle are advised to relocate temporarily.",
    "WNS ENTERTAINMENT: New braindance release from anonymous creator topping underground charts. Content described as extraordinary. Origin unknown.",
    "RIPPERDOC NOTICE: Free Neuroport health checks available at Doc Galena's clinic in Heywood. First 20 clients only.",
    "TRAUMA TEAM ADVISORY: Platinum tier clients in Watson reminded that response vehicles may be delayed by Maelstrom territory crossing protocols.",
    "BLACK MARKET ALERT: Unverified Gen 4 hardware rumoured to be circulating in Night City. Intelligence assessment: treat with extreme caution.",
    "AFTERLIFE BAR: New faces welcome. Respect the wall. Respect the house rules. Everything else is negotiable.",
    "BIOTECHNICA PRESS RELEASE: CHOOH2 price stable this quarter. Fuel availability confirmed across all Night City districts.",
    "NIGHT CITY RADIO: Caller requests we stop playing Samurai. Request denied. Never Fade Away on repeat until further notice.",
    "WNS REPORT: Three MaxTac deployments in one week. Department spokesperson describes this as within acceptable operational parameters.",
    "GANG INTELLIGENCE: Aldecaldo presence in Badlands at elevated levels. Nomad activity near corporate supply routes noted by multiple sources.",
    "NCPD ADVISORY: Wanted: information on recent Japantown incident involving Lazarus Group casualties. Anonymous tips accepted. Officer safety guaranteed.",
    "RIPPERDOC COMMUNITY NOTICE: Community reminder that used cyberware should be tested by a qualified ripperdoc before installation. Yes, all of it.",
    "TRAUMA TEAM ADVISORY: Annual review confirms Trauma Team maintains fastest response times of any medical service in Night City. By significant margin.",
    "BLACK MARKET REPORT: Rocklin Augmentics fashion line knockoffs appearing in Watson. Quality considerably below original. Visually similar. Buyer beware.",
    "AFTERLIFE BAR: The city remembers. The wall remembers. Come in. Have a drink. Tell us who you are.",
    "WNS BREAKING: Unconfirmed reports of Morgan Blackhand sighting in Night City. Source: one eyewitness. Credibility: unverified. Interest level: considerable.",
    "BIOTECHNICA NOTICE: Soy protein processing output at annual high. Distribution to HOasis Markets confirmed. Supply stable through Q4.",
    "NIGHT CITY POWER GRID: Emergency power restoration complete in Northside following Maelstrom-adjacent infrastructure incident.",
    "NCPD GANG UNIT: Animals gym in Arroyo now operating extended hours. Membership applications open. Screening process described as thorough.",
    "GANG INTELLIGENCE: Voodoo Boys NET activity in Pacifica at elevated levels. Nature of operations: unknown. Recommended response: stay out of Pacifica.",
    "WNS ENTERTAINMENT: Lizzy Wizzy announces world tour. Night City date confirmed. Venue: undisclosed. Tickets: extremely limited.",
    "RIPPERDOC NOTICE: Immunoblocker supply restored in Heywood following logistics disruption. Standard pricing resumed.",
    "TRAUMA TEAM ADVISORY: Cyberpsychosis incident response protocol updated. New extraction procedures in effect for Platinum tier clients.",
    "BLACK MARKET ALERT: Military-grade Linear Frame components appearing in Northside. Militech has not commented. NCPD has not investigated.",
    "AFTERLIFE BAR: Tonight's special: The Samurai. Cold, strong and it does not apologise for what it is. Neither did he."
];

/* --- DISPLAY FUNCTION --- */
function displayNewsItems() {
    var newsFeed = document.getElementById('night-city-news-feed');
    if (!newsFeed) return;

    /* Shuffle and select 5 random items */
    var shuffled = nightCityNews.slice();
    for (var i = shuffled.length - 1; i > 0; i--) {
        var j = Math.floor(Math.random() * (i + 1));
        var temp = shuffled[i];
        shuffled[i] = shuffled[j];
        shuffled[j] = temp;
    }

    var selected = shuffled.slice(0, 5);
    var html = '';

    for (var k = 0; k < selected.length; k++) {
        html += '<div style="border-left: 3px solid #ff00ff; padding: 8px; margin-bottom: 10px; background-color: #0a0a0a;">';
        html += '<span style="color:#ffd700;">&#9656;</span> ';
        html += '<span style="color:#ffffff; font-family:monospace;">' + selected[k] + '</span>';
        html += '</div>';
    }

    newsFeed.innerHTML = html;
}

/* --- RUN ON PAGE LOAD --- */
if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', displayNewsItems);
} else {
    displayNewsItems();
}