Pennsylvania Lottery - Cash4Life - Draw Games & Results (2024)

Cash4Life®is another exciting game from the PA Lottery! The Top Prize for Cash4Life is $1,000 A Day For Life. With a secondary prize of $1,000 A Week For Life, there is more than one way to have fun with Cash4Life! Check PA Lottery results for Cash4Life to see if you have any winning numbers.

Winning Numbers History

'); var pagerContent = ''; pagerContent += 'of' + numPages + ''; pagerContent += ''; pagerContent += ''; pagerContent += ''; $pager.append(pagerContent); $pager.insertBefore($('#results-count')).find('span.page-number:first').addClass('active'); if(pageSize == 'all') { $('#pageNumControls').hide(); } else { $('#pageNumControls').show(); $(".pagi_backward").unbind( "click" ); $('.pagi_backward').click(function (event) { event.stopImmediatePropagation(); var currentPageNumber = (Number($('#pageNumberEnter').val())-1); currentPageNumber--; if(currentPageNumber >= 0) { currentPage = currentPageNumber; $table.trigger('repaginate'); $('#pageNumberEnter').val((currentPage+1)); } return false; }); $(".pagi_forward").unbind( "click" ); $('.pagi_forward').click(function (event) { event.stopImmediatePropagation(); var currentPageNumber = (Number($('#pageNumberEnter').val())-1); currentPageNumber++; if(currentPageNumber <= (numPages-1)) { currentPage = currentPageNumber; $table.trigger('repaginate'); $('#pageNumberEnter').val((currentPage+1)); } return false; }); $("#pageNumberEnter").unbind( "keyup" ); $('#pageNumberEnter').keyup(function(event){ event.stopImmediatePropagation(); var currentPageNumber = (Number($('#pageNumberEnter').val())-1); if(currentPageNumber >= 0 && currentPageNumber <= (numPages-1)) { currentPage = currentPageNumber; $table.trigger('repaginate'); } }); } }); }, processResults: function(results) { var i = 0; var gameID = String($('.hmnewEntryForm input[name=searchGame]').val()); switch(gameID) { case '15': HMNEW.displayMegaMillionsResults(results); break; case '12,36': HMNEW.displayPowerballResults(results); break; case '35': HMNEW.displayCash4LifeResults(results); break; case '7': HMNEW.displayTreasureHuntResults(results); break; case '8': HMNEW.displayCash5Results(results); break; case '11': HMNEW.displayMatch6Results(results); break; case '31': HMNEW.displayPick2Results(results); break; case '27': HMNEW.displayPick2Results(results); break; case '31,27': HMNEW.displayPick2Results(results); break; case '1,32': HMNEW.displayDailyNumberResults(results); break; case '2,28': HMNEW.displayDailyNumberResults(results); break; case '1,2,32,28': HMNEW.displayDailyNumberResults(results); break; case '3,33': HMNEW.displayBig4Results(results); break; case '4,29': HMNEW.displayBig4Results(results); break; case '3,4,33,29': HMNEW.displayBig4Results(results); break; case '5,34': HMNEW.displayQuintoResults(results); break; case '6,30': HMNEW.displayQuintoResults(results); break; case '5,6,34,30': HMNEW.displayQuintoResults(results); break; } // need to apply paging functions here HMNEW.paginateResults(10); $(".search-results").fadeIn("fast", function () { HMNEW.unblock(); $.scrollTo('#searchresults', 800); }); }, getNodeValue: function(nodeName, content) { var val = ""; var rx = new RegExp("<" + nodeName + ">.*?<\\/" + nodeName + ">"); val = String(rx.exec(content)); val = val.split("<" + nodeName + ">").join(""); val = val.split("" + nodeName + ">").join(""); return val; }, displayCash5Results: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var context = { results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing"]; for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } //matched 2 if (hitNum == 2) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 3 if (hitNum == 3) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 4 if (hitNum == 4) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 5 if (hitNum == 5) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayMatch6Results: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num6]').val())); var context = { results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5, results[i].drawingNumber6); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"] for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } //matched 3 if (hitNum == 3) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived36', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 4 if (hitNum == 4) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived46', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 5 if (hitNum == 5) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived56', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 6 if (hitNum == 6) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived66', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber6 + '
  • '; drawingNumbersHtml += '

'; drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayTreasureHuntResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var context = { results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing"] for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } //matched 2 if (hitNum == 2) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 3 if (hitNum == 3) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 4 if (hitNum == 4) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //matched 5 if (hitNum == 5) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayBig4Results: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); var context = { results: [], straightboxedonly: true,pick: true }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var drawTime = null; for (i = 0; i < resultsLength; i++) { var boxed = false; var prizeAmount = "0.0" var classes = ["hit", "hit", "hit", "hit"]; if (results[i].drawingNumber1 == selectedNumbers[0] && results[i].drawingNumber2 == selectedNumbers[1] && results[i].drawingNumber3 == selectedNumbers[2] && results[i].drawingNumber4 == selectedNumbers[3]) { prizeAmount = HMNEW.getNodeValue('StraightBet', results[i].drawingNumberPayoutData); } else { prizeAmount = HMNEW.getNodeValue('BoxedBet', results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • ';if (results[i].drawingNumber5 != null) { drawingNumbersHtml += '
  • Pennsylvania Lottery - Cash4Life - Draw Games & Results (1)' + results[i].drawingNumber5 + '
  • '; } drawingNumbersHtml += '

'; if (Number(results[i].drawingGameID) == 3 || Number(results[i].drawingGameID) == 33) { drawTime = '
Day'; } else { drawTime = '
Evening'; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), drawingTime: drawTime, payoutLink: 'Payout ' }; context.results.push(drawing); } //context.resultcount = numberOfResults; context.resultcount = resultsLength; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayPick2Results: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); var context = { results: [], straightboxedonly: true,pick: true }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var drawTime = null; for (i = 0; i < resultsLength; i++) { var boxed = false; var prizeAmount = "0.0" var classes = ["hit", "hit"]; if (results[i].drawingNumber1 == selectedNumbers[0] && results[i].drawingNumber2 == selectedNumbers[1]) { prizeAmount = HMNEW.getNodeValue('StraightBet', results[i].drawingNumberPayoutData); } else { prizeAmount = HMNEW.getNodeValue('BoxedBet', results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • ';if (results[i].drawingNumber3 != null) { drawingNumbersHtml += '
  • Pennsylvania Lottery - Cash4Life - Draw Games & Results (2)' + results[i].drawingNumber3 + '
  • '; } drawingNumbersHtml += '

'; if (Number(results[i].drawingGameID) == 31) { drawTime = '
Day'; } else { drawTime = '
Evening'; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), drawingTime: drawTime, payoutLink: 'Payout ' }; context.results.push(drawing); } //context.resultcount = numberOfResults; context.resultcount = resultsLength; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayDailyNumberResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); var context = { results: [], straightboxedonly: true,pick: true }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var drawTime = null; for (i = 0; i < resultsLength; i++) { var boxed = false; var prizeAmount = "0.0" var classes = ["hit", "hit", "hit"]; if (results[i].drawingNumber1 == selectedNumbers[0] && results[i].drawingNumber2 == selectedNumbers[1] && results[i].drawingNumber3 == selectedNumbers[2]) { prizeAmount = HMNEW.getNodeValue('StraightBet', results[i].drawingNumberPayoutData); } else { prizeAmount = HMNEW.getNodeValue('BoxedBet', results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • ';if (results[i].drawingNumber4 != null) { drawingNumbersHtml += '
  • Pennsylvania Lottery - Cash4Life - Draw Games & Results (3)' + results[i].drawingNumber4 + '
  • '; } drawingNumbersHtml += '

'; if (Number(results[i].drawingGameID) == 1 || Number(results[i].drawingGameID) == 32) { drawTime = '
Day'; } else { drawTime = '
Evening'; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), drawingTime: drawTime, payoutLink: 'Payout ' }; context.results.push(drawing); } //context.resultcount = numberOfResults; context.resultcount = resultsLength; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayQuintoResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var context = { results: [], straightboxedonly: true,pick: true }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var drawTime = null; for (i = 0; i < resultsLength; i++) { var boxed = false; var prizeAmount = "0.0" var classes = ["hit", "hit", "hit", "hit", "hit"]; if (results[i].drawingNumber1 == selectedNumbers[0] && results[i].drawingNumber2 == selectedNumbers[1] && results[i].drawingNumber3 == selectedNumbers[2] && results[i].drawingNumber4 == selectedNumbers[3] && results[i].drawingNumber5 == selectedNumbers[4]) { prizeAmount = HMNEW.getNodeValue('StraightBetPayout', results[i].drawingNumberPayoutData); } else { prizeAmount = HMNEW.getNodeValue('BoxedBetPayout', results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • ';if (results[i].drawingNumber6 != null) { drawingNumbersHtml += '
  • Pennsylvania Lottery - Cash4Life - Draw Games & Results (4)' + results[i].drawingNumber6 + '
  • '; } drawingNumbersHtml += '

'; if (Number(results[i].drawingGameID) == 5 || Number(results[i].drawingGameID) == 34) { drawTime = '
Day'; } else { drawTime = '
Evening'; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic drawingDate: moment(results[i].drawingNumberDate).format('L'), drawingTime: drawTime, payoutLink: 'Payout ' }; context.results.push(drawing); } //context.resultcount = numberOfResults; context.resultcount = resultsLength; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayPowerballResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var pbNum = Number($('.hmnewEntryForm input[name=num6]').val()); var context = { powerball: true, results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; var matchingDoublePlayDrawing = null; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var powerBallMatch = false; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; var prizeAmountDp = "0.0" matchingDoublePlayDrawing = null; // check for matching double play drawing if(results[i].drawingGameID == 12) { for (var dp = 0; dp < resultsLength; dp++) { if(results[dp].drawingGameID == 36 && moment(results[i].drawingNumberDate).utc().format('L') == moment(results[dp].drawingNumberDate).utc().format('L')) { matchingDoublePlayDrawing = results[dp]; break; } } } winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"]; for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } if (results[i].drawingNumber6 == pbNum) { powerBallMatch = true; classes[5] = "hit"; } //players matched the Power Ball if (hitNum == 0 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 1 of 5 and the Power Ball if (hitNum == 1 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb1', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb1', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 2 of 5 and the Power Ball if (hitNum == 2 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb2', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 if (hitNum == 3 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 and the Power Ball if (hitNum == 3 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb3', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 if (hitNum == 4 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 and the Power Ball if (hitNum == 4 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb4', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 if (hitNum == 5 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 and the Power Ball if (hitNum == 5 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived6', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp6', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null' || prizeAmount == '0.0') { prizeAmount = 'Non-winner'; } if (typeof powerPlayAmount == 'undefined' || powerPlayAmount == null || powerPlayAmount == 'null' || powerPlayAmount == '0.0') { powerPlayAmount = 'N/A'; } // double play match checking var dpClasses = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"]; if(matchingDoublePlayDrawing != null) { hitNum = 0; powerBallMatch = false; winningNumbers = []; winningNumbers.push(matchingDoublePlayDrawing.drawingNumber1, matchingDoublePlayDrawing.drawingNumber2, matchingDoublePlayDrawing.drawingNumber3, matchingDoublePlayDrawing.drawingNumber4, matchingDoublePlayDrawing.drawingNumber5); for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; dpClasses[k] = "hit"; } } } if (matchingDoublePlayDrawing.drawingNumber6 == pbNum) { powerBallMatch = true; dpClasses[5] = "hit"; } //players matched the Power Ball if (hitNum == 0 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 1 of 5 and the Power Ball if (hitNum == 1 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb1', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 2 of 5 and the Power Ball if (hitNum == 2 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb2', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 3 of 5 if (hitNum == 3 && !powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceived3', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 3 of 5 and the Power Ball if (hitNum == 3 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb3', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 4 of 5 if (hitNum == 4 && !powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceived4', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 4 of 5 and the Power Ball if (hitNum == 4 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceivedpb4', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 5 of 5 if (hitNum == 5 && !powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceived5', matchingDoublePlayDrawing.drawingNumberPayoutData); } //players matched 5 of 5 and the Power Ball if (hitNum == 5 && powerBallMatch) { valid = true; prizeAmountDp = HMNEW.getNodeValue('AmountReceived6', matchingDoublePlayDrawing.drawingNumberPayoutData); } if (typeof prizeAmountDp == 'undefined' || prizeAmountDp == null || prizeAmountDp == 'null' || prizeAmountDp == '0.0') { prizeAmountDp = 'Non-winner'; } } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; if(matchingDoublePlayDrawing != null) { drawingNumbersHtml += '
  • Powerball:
  • '; } drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawingNumbersHtml += 'PB: ' + results[i].drawingNumber6 + ''; if (String(results[i].drawingNumber7).length > 0 && String(results[i].drawingNumber7) != 'null') { drawingNumbersHtml += 'PP: ' + results[i].drawingNumber7 + ''; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic powerballPrize: powerPlayAmount, // this is the powerplay number drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ', payoutDpLink: 'Payout ', hasPBDoublePlay: (results[i].drawingGameID == 12 && matchingDoublePlayDrawing != null), doublePlayStr: '', prizeDp: prizeAmountDp, hasPowerPlayPrize: (powerPlayAmount != 'N/A') }; if(matchingDoublePlayDrawing != null) { drawing.doublePlayStr = '

    '; drawing.doublePlayStr += '
  • Double Play:
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber1'] + '
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber2'] + '
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber3'] + '
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber4'] + '
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber5'] + '
  • '; drawing.doublePlayStr += '
  • PB:
  • '; drawing.doublePlayStr += '
  • ' + matchingDoublePlayDrawing['drawingNumber6'] + '
  • '; drawing.doublePlayStr += '

'; } if(results[i].drawingGameID != 36) { context.results.push(drawing); } } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayCash4LifeResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var pbNum = Number($('.hmnewEntryForm input[name=num6]').val()); var context = { results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var powerBallMatch = false; var prizeAmount = "0.0" var powerPlayAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"]; for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } if (results[i].drawingNumber6 == pbNum) { powerBallMatch = true; classes[5] = "hit"; } //players matched 1 of 5 and the Power Ball if (hitNum == 1 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb1', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb1', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 2 of 5 if (hitNum == 2 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived2', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceived2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 2 of 5 and the Power Ball if (hitNum == 2 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb2', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 if (hitNum == 3 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 and the Power Ball if (hitNum == 3 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb3', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 if (hitNum == 4 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 and the Power Ball if (hitNum == 4 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedpb4', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpppb4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 if (hitNum == 5 && !powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 and the Power Ball if (hitNum == 5 && powerBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived6', results[i].drawingNumberPayoutData); powerPlayAmount = HMNEW.getNodeValue('AmountReceivedpp6', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (typeof powerPlayAmount == 'undefined' || powerPlayAmount == null || powerPlayAmount == 'null') { powerPlayAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawingNumbersHtml += 'Cash Ball: ' + results[i].drawingNumber6 + ''; drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic powerballPrize: powerPlayAmount, // this is the powerplay number drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, displayMegaMillionsResults: function (results) { var selectedNumbers = []; selectedNumbers.push(Number($('.hmnewEntryForm input[name=num1]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num2]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num3]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num4]').val())); selectedNumbers.push(Number($('.hmnewEntryForm input[name=num5]').val())); var mmNum = Number($('.hmnewEntryForm input[name=num6]').val()); var context = { megamillions: true, results: [] }; var resultsLength = results.length; var drawing = {}; var drawingNumbersHtml = ''; var numberOfResults = 0; for (i = 0; i < resultsLength; i++) { var valid = false; var hitNum = 0; var megaBallMatch = false; var prizeAmount = "0.0" var megaplierAmount = "n/a"; winningNumbers = []; winningNumbers.push(results[i].drawingNumber1, results[i].drawingNumber2, results[i].drawingNumber3, results[i].drawingNumber4, results[i].drawingNumber5); var classes = ["nothing", "nothing", "nothing", "nothing", "nothing", "nothing"]; for (j = 0; j < selectedNumbers.length; j++) { for (k = 0; k < winningNumbers.length; k++) { if (selectedNumbers[j] == winningNumbers[k]) { hitNum++; classes[k] = "hit"; } } } if (results[i].drawingNumber6 == mmNum) { megaBallMatch = true; classes[5] = "hit"; } //players matched the Mega Ball if (hitNum == 0 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 1 of 5 and the Mega Millions if (hitNum == 1 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb1', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb1', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 2 of 5 and the Mega Millions if (hitNum == 2 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb2', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb2', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 if (hitNum == 3 && !megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived3', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmp3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 3 of 5 and the Mega Millions if (hitNum == 3 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb3', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb3', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 if (hitNum == 4 && !megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived4', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmp4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 4 of 5 and the Mega Millions if (hitNum == 4 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceivedmb4', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmpmb4', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 if (hitNum == 5 && !megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived5', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmp5', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } //players matched 5 of 5 and the Mega Millions if (hitNum == 5 && megaBallMatch) { valid = true; prizeAmount = HMNEW.getNodeValue('AmountReceived6', results[i].drawingNumberPayoutData); megaplierAmount = HMNEW.getNodeValue('AmountReceivedmp6', results[i].drawingNumberPayoutData); //console.log(results[i].drawingNumberPayoutData); } if (typeof prizeAmount == 'undefined' || prizeAmount == null || prizeAmount == 'null') { prizeAmount = 'N/A'; } if (typeof megaplierAmount == 'undefined' || megaplierAmount == null || megaplierAmount == 'null') { megaplierAmount = 'N/A'; } if (valid) { numberOfResults++; drawingNumbersHtml = '

    '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber1 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber2 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber3 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber4 + '
  • '; drawingNumbersHtml += '
  • ' + results[i].drawingNumber5 + '
  • '; drawingNumbersHtml += '

'; drawingNumbersHtml += 'Mega Ball: ' + results[i].drawingNumber6 + '
'; if (String(results[i].drawingNumber7).length > 0 && String(results[i].drawingNumber7) != 'null') { drawingNumbersHtml += 'Megaplier: ' + results[i].drawingNumber7; } drawing = { drawingNumbers: drawingNumbersHtml, // needs to have dynamic match indications prize: prizeAmount, // needs to be dynamic megaplierPrize: megaplierAmount, // this is the powerplay number drawingDate: moment(results[i].drawingNumberDate).format('L'), payoutLink: 'Payout ' }; context.results.push(drawing); } } context.resultcount = numberOfResults; var markup = HMNEW.resultsTemplate(context); if (numberOfResults > 0) { $('.search-results').html(markup); } else { $('.search-results').html('

Your search did not return any winners.
Please try again.

'); } }, initValidation: function() { var gameID = String($('.hmnewEntryForm input[name=searchGame]').val()); switch(gameID) { case '15': HMNEW.currentValidationRules = NumberInputValidationRules.megamillions; break; case '12,36': HMNEW.currentValidationRules = NumberInputValidationRules.powerball; break; case '35': HMNEW.currentValidationRules = NumberInputValidationRules.cash4life; break; case '7': HMNEW.currentValidationRules = NumberInputValidationRules.treasurehunt; break; case '8': HMNEW.currentValidationRules = NumberInputValidationRules.cash5; break; case '11': HMNEW.currentValidationRules = NumberInputValidationRules.match6; break; case '31': HMNEW.currentValidationRules = NumberInputValidationRules.pick2; break; case '27': HMNEW.currentValidationRules = NumberInputValidationRules.pick2; break; case '31,27': HMNEW.currentValidationRules = NumberInputValidationRules.pick2; break; case '1,32': HMNEW.currentValidationRules = NumberInputValidationRules.dailynumber; break; case '2,28': HMNEW.currentValidationRules = NumberInputValidationRules.dailynumber; break; case '1,2,32,28': HMNEW.currentValidationRules = NumberInputValidationRules.dailynumber; break; case '3,33': HMNEW.currentValidationRules = NumberInputValidationRules.big4; break; case '4,29': HMNEW.currentValidationRules = NumberInputValidationRules.big4; break; case '3,4,33,29': HMNEW.currentValidationRules = NumberInputValidationRules.big4; break; case '5,34': HMNEW.currentValidationRules = NumberInputValidationRules.quinto; break; case '6,30': HMNEW.currentValidationRules = NumberInputValidationRules.quinto; break; case '5,6,34,30': HMNEW.currentValidationRules = NumberInputValidationRules.quinto; break; } }, validateNumberEntry: function(elem) { var num = $(elem).val().trim(); var isError = false; if (!HMNEW.isGameNumber(num)) { if(num.length > 0) { isError = true; HMNEW.displayValidationErrors('Please enter numbers only.'); } } else { num = Number(num); var minNumber = HMNEW.currentValidationRules.minNumber; var maxNumber = HMNEW.currentValidationRules.maxNumber; if($(elem).hasClass('multiplier')) { maxNumber = HMNEW.currentValidationRules.maxMultiplierNumber; } if(num < minNumber || num > maxNumber) { isError = true; HMNEW.displayValidationErrors('This number must be between ' + minNumber + ' and ' + maxNumber + '.'); } else { if(!HMNEW.currentValidationRules.duplicates && !$(elem).hasClass('multiplier')) { var $inputNums = $(".hmnewEntryForm input.inputNum").not('.multiplier'); var currentIndex = $(elem).index(); var found = false; $inputNums.each(function(){ if($(this).index() != currentIndex && $(this).val().trim() == num) { found = true; } }); if(found) { isError = true; HMNEW.displayValidationErrors('This game does not accept duplicate numbers.'); } } } } if(isError) { $(elem).val(''); } }, displayValidationErrors: function(errors) { $('.errormessage').html(errors); $('.errormessage').fadeIn('slow', function () { $(this).delay(3000).fadeOut('slow'); }); } } $(document).on("change", "select.pageSize", function (e) { e.stopImmediatePropagation(); HMNEW.block(); HMNEW.paginateResults($(this).val()); HMNEW.unblock(); }); $(document).on("blur", ".hmnewEntryForm input.inputNum", function (e) { e.stopImmediatePropagation(); var code = e.keyCode || e.which; if (code != '9' && code != '8' && code != '13') { HMNEW.validateNumberEntry(this); } }); /*$(document).on("keyup", ".hmnewEntryForm input.inputNum", function (e) { e.stopImmediatePropagation(); var maxlength = Number($(this).attr('maxlength')); if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 || // Allow: Ctrl+A (e.keyCode == 65 && e.ctrlKey === true) || // Allow: Ctrl+C (e.keyCode == 67 && e.ctrlKey === true) || // Allow: Ctrl+X (e.keyCode == 88 && e.ctrlKey === true) || // Allow: home, end, left, right (e.keyCode >= 35 && e.keyCode <= 39)) { // let it happen, don't do anything return; } // Ensure that it is a number and stop the keypress if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) { $(this).val(""); return; } if (maxlength < $(this).val().length) { $(this).val($(this).val().slice(0, maxlength)); } });*/ $(document).on("change", ".hmnewEntryForm select[name=drawtime]", function (e) { var drawTime = $(this).val(); $('.hmnewEntryForm input[name=searchGame]').val(drawTime); }); $(document).on("click", ".searchNumbersBtn", function (e) { e.stopImmediatePropagation(); var strDate1 = $('.hmnewEntryForm select#date1-month').val() + '/' + $('.hmnewEntryForm select#date1-day').val() + '/' + $('.hmnewEntryForm select#date1-year').val(); var strDate2 = $('.hmnewEntryForm select#date2-month').val() + '/' + $('.hmnewEntryForm select#date2-day').val() + '/' + $('.hmnewEntryForm select#date2-year').val(); var date1 = moment(strDate1); var date2 = moment(strDate2); var dd1 = document.getElementById('date1-month').value; var dd2 = document.getElementById('date1-day').value; var dd3 = document.getElementById('date1-year').value; var dd4 = document.getElementById('date2-month').value; var dd5 = document.getElementById('date2-day').value; var dd6 = document.getElementById('date2-year').value; var datesValid = true; if ((dd1 !== "" && (dd2 == "" || dd3 == "")) || (dd2 !== "" && (dd1 == "" || dd3 == "")) || (dd3 !== "" && (dd1 == "" || dd2 == "")) || (dd4 !== "" && (dd5 == "" || dd6 == "")) || (dd5 !== "" && (dd4 == "" || dd6 == "")) || (dd6 !== "" && (dd4 == "" || dd5 == ""))) { datesValid = false; }; if (!date1.isValid() && !date2.isValid()) { date1 = moment('01/01/1970'); date2 = moment(); } var gameID = String($('.hmnewEntryForm input[name=searchGame]').val()); var digitsValid = true; var digitValidMsg = ''; var digitCount = 0; var multiplierVal = String($('.hmnewEntryForm input.multiplier').val()); $('.hmnewEntryForm input.inputNum').each(function () { if($.trim($(this).val()).length > 0) { digitCount++; } }); if(gameID == '12,36') { // powerball digitsValid = ( ($.trim(multiplierVal).length > 0) || ($.trim(multiplierVal).length == 0 && digitCount >= HMNEW.currentValidationRules.digitsRequired) ); digitValidMsg = 'This game requires that you enter at least the Powerball or enter 3 numbers.'; } else if(gameID == '15') { // mega millions digitsValid = ( ($.trim(multiplierVal).length > 0) || ($.trim(multiplierVal).length == 0 && digitCount >= HMNEW.currentValidationRules.digitsRequired) ); digitValidMsg = 'This game requires that you enter at least the Mega Ball or enter 3 numbers.'; } else { digitsValid = (digitCount >= HMNEW.currentValidationRules.digitsRequired); digitValidMsg = 'This game requires that you enter at least ' + HMNEW.currentValidationRules.digitsRequired + ' numbers.'; } if(datesValid) { if(digitsValid) { if( ((date1.isValid() && date2.isValid()) || (strDate1.Length == 0 && strDate2.Length == 0)) && date1.valueOf() <= date2.valueOf() ) { HMNEW.trackGameSearch(); HMNEW.block(); $('.search-results').hide(); $('.search-results').empty(); var inputNums = []; $('.hmnewEntryForm input.inputNum').each(function () { if($(this).val().length > 1 && $(this).val().charAt(0) == '0') { $(this).val( $(this).val().substring(1) ); } inputNums.push($(this).val()); }); $.getJSON("/Custom/uploadedfiles/hmnew/Drawings.ashx?mode=search&d1=" + date1.format('L') + "&d2=" + date2.format('L') + "&nums=" + inputNums.join(",") + "&g=" + gameID, function (data) { HMNEW.processResults(data); }); } else { HMNEW.displayValidationErrors('Please enter two valid dates with the starting date occurring before the ending date.'); } } else { HMNEW.displayValidationErrors(digitValidMsg); } return false; } else { HMNEW.displayValidationErrors('Please enter a Month, Day and Year.'); } return false; }); $(document).ready(function () { var browserVersion = jQuery.browser.version.split("."); browserVersion = browserVersion[0]; if ( (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) === 7) || (typeof document.documentMode != 'undefined' && document.documentMode != null && document.documentMode == 7) ) { jQuery('#content').prepend('

It appears that you are using an unsupported version of this browser.

Old browsers can put your security at risk, slow down or prevent you from using all of the features on palottery.com. To get the best of palottery.com, please click here to download a supported browser.

'); jQuery('#page-content').show(); } HMNEW.init(); });

Scroll to see more results within the window.

After winning the lottery the first step iscompleting the back of your ticket, including your name, address, phone number andsignature. Remember, each lottery ticket is a bearer document, meaning it is legally owned by whomever possesses it, at least until it is signed.

"The trademark 'Cash For Life' and 'Cash 4 Life', reg. nos. 3099613, 4254557, and 4748172 are owned by and used with the permission of the Multi-State Lottery Association."

Pennsylvania Lottery - Cash4Life - Draw Games & Results (2024)

FAQs

How many different ways can you win on Cash4Life? ›

Winning a Cash4Life® game

Like Powerball, there are nine ways to win a prize.

Is Cash4Life really for life? ›

What is the Cash4Life payout? * Top Prize is payable as a for-life annuity (minimum of twenty years) of $365,000 per year or a one-time lump sum payment at the election of the winner. The amount of the lump sum payment is equal to the estimated cash required to purchase the annuity.

What are the odds of winning Cash4Life? ›

What are the Cash4Life prizes?
MatchWinOdds
5 numbers + Cash Ball$1,000/day for life1 in 21,846,048
5 numbers$1,000/week for life1 in 7,282,016
4 numbers + Cash Ball$2,5001 in 79,440
4 numbers$5001 in 26,480
5 more rows
2 days ago

What time is the Cash4Life drawing in PA? ›

Cash 4 Life

Drawings are every day at 9:00 pm EST.

How many Cash4Life combinations are there? ›

Before calculating the odds for the different prize levels, calculate the total number of combinations possible for each portion of the CASH4LIFE draw. Thus, there are 5,461,512 different ways in which 5 numbers can be chosen from a total of 60 unique numbers.

How many numbers do you have to match to win Lucky for Life? ›

The Lucky for Life top prize is won by matching five white balls, in any order, plus the one gold Lucky Ball number.

Has anyone ever won $1000 a day for life? ›

One lucky lottery player matched all five white balls in Sunday's Cash4Life drawing to win the $1,000 a day for life jackpot prize. That winning ticket was sold at a a Publix in Palm Beach, Florida.

How is $1000 a day for life paid out? ›

How is Lucky for Life paid out? The top prize is up to $365,000 a year for life ($1,000 per day for the winner's life) when matching 5 numbers plus the Lucky Ball number - this payment is made for a minimum of 20 years. Additionally, players who only match the first five numbers can win up to $25,000 a year for life.

How is PA cash for life paid out? ›

The Cash 4 Life is a lottery game available for PA users. It offers a top-tier prize of $1,000 a day for the rest of your life as the first prize and $1,000 a week for life as the secondary prize. So basically, if you win the top prize, you can get a $1,000 payment in your pocket each day for the rest of your life.

How many people have won Cash4Life? ›

Since the game began in June 2014, Cash4Life has had 15 top-prize winners and 22 second-tier winners. The second-tier prize offers players the option of $1,000 a week for life, paid in annual installments of $52,000, or a one-time payment of $1 million.

What is the highest number in cash for life? ›

Rules. Each game costs $2 per drawing. Players pick five white ball numbers from 1 through 60 in the main field, plus one number from 1 through 4 from the second field, the green "Cash Ball".

What is the lump sum payout for Cash4Life? ›

As is stated on the Cash4Life website: 'Top Prize is payable as a for-life annuity (minimum of twenty years) of 365,000 dollars per year or a one-time lump sum payment at the election of the winner. The amount of the lump sum payment is equal to the estimated cash required to purchase the annuity.

How many cash for life winners are there in PA? ›

According to the Pennsylvania lottery, The Cash4Life® multi-state game has awarded 15 people the $1 million prize in Pennsylvania since the Pennsylvania Lottery joined the game in April 2015.

Is Cash4Life drawing everyday? ›

Cash4Life draws daily at 9:00 PM. To catch a live broadcast, check out this livestream. Are you a winner?

How do you play PA cash for life? ›

Choose 5 Cash4Life numbers from 1–60 and 1 Cash Ball number from 1–4. You can Quick Pick to let the computer select for you or choose your own lucky numbers. Match all 5 numbers and the Cash Ball to win the grand prize of $1,000 a day for life.

How many numbers do you need to win Cash4Life NY? ›

Draw Game Detail | New York Lottery: Official Site. Choose five numbers from 1 to 60 and one number from 1 to 4 to be your Cash Ball. To win the Cash4Life Top Prize, match the six numbers on your ticket to the winning six-number combination drawn (five numbers plus the Cash Ball).

How does $1000 a day for life work? ›

In the game, a player selects five numbers from one to 60, and also a Cash Ball from one to four. The price per ticket is $2. The top prize is $1,000 a day for life or $7 million cash value and the second prize is $1,000 a week for life or $1 million cash value.

What is the most you can win on Cash 4? ›

About Cash 4. With a chance to win up to $5000 three times every day, pick your four numbers and join in the fun!

How many numbers do you need to win Cash4Life in Georgia? ›

Cash4Life: A multi-state game with two ways to win for life and nine ways to be a winner! Match all five numbers and the Cash Ball number to win $1,000 a day for life! Match the first five numbers without the Cash Ball number to win $1,000 a week for life. Plus, there are seven other ways to win prizes up to $2,500.

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Duncan Muller

Last Updated:

Views: 5717

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.