Google Chrome Hidden Game | Google Chrome එකේ හැංගිලා තියන Game එක - Vishwakoshaya

රේඩියෝ මතක

gif maker

Breaking

මතක රේඩියෝ

gif maker

Scores

Cricket Score Updater

Live Cricket Score

Runs

0

Wickets

0

Overs

0.0

// Variables to track score let totalRuns = 0; let totalWickets = 0; let balls = 0; // HTML Elements const runsDisplay = document.getElementById('runs-display'); const wicketsDisplay = document.getElementById('wickets-display'); const oversDisplay = document.getElementById('overs-display'); const ballUpdates = document.getElementById('ball-updates'); // Add runs for a ball function addBall() { const runs = parseInt(document.getElementById('runs').value) || 0; // Validate input if (runs < 0 || runs > 6) { alert('Please enter a valid number of runs (0-6).'); return; } totalRuns += runs; balls++; // Calculate overs const overs = Math.floor(balls / 6); const ballInOver = balls % 6; // Update the display runsDisplay.textContent = totalRuns; oversDisplay.textContent = `${overs}.${ballInOver}`; // Add ball update const update = document.createElement('li'); update.textContent = `Ball ${balls}: ${runs} runs`; ballUpdates.appendChild(update); // Clear input document.getElementById('runs').value = ''; } // Add a wicket function addWicket() { if (totalWickets < 10) { totalWickets++; balls++; // Calculate overs const overs = Math.floor(balls / 6); const ballInOver = balls % 6; // Update the display wicketsDisplay.textContent = totalWickets; oversDisplay.textContent = `${overs}.${ballInOver}`; // Add ball update const update = document.createElement('li'); update.textContent = `Ball ${balls}: WICKET!`; ballUpdates.appendChild(update); } else { alert('All wickets are down!'); } }

Oct 26, 2016

Google Chrome Hidden Game | Google Chrome එකේ හැංගිලා තියන Game එක

Google Chrome Hidden Game | Google Chrome එකේ හැංගිලා තියන Game එක

ඔන්න යාලුවනේ මම ඔයාලට ගේනවා අලුත් Trick එකක්.. :D
ඔයාලට කම්මැලි වෙලාවට සෙල්ලම් කරන්න පට්ට ‍ගේම් එකක් තියනව  ඒ තමයි google chrome hidden game  එක. හරි මෙහෙමයි මේ ගේම් එක run කරන්නෙ ඔයා කමති site එකකට යන්න ගිහින් ඔයගෙ machine එකේ internet disconnect කරන්න. දැන් ඔයා ගියපු page එක refresh කරන්න දැන් මෙහෙම එකක් එනවනේ.




දැන් ඔයගෙ keyboard එකෙ up arrow key එක ඔබල බලන්න. දැන් ගේම් එක play වෙයි.

No comments: