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

It’s one of the most exciting PA Lottery games – Powerball®! Powerball is easy and fun to play. Check PA Lottery results for Powerball 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 - Powerball - 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 - Powerball - 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 - Powerball - 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 - Powerball - 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.

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

References

Top Articles
Academic Calendar - Academics | Binghamton University
Binghamton Academic Calendar 2023-2024: Important Dates
What Time Subway Open
Jodie Sweetin Breast Reduction
Humidity Yesterday At My Location
Craigslist/Phx
Academic Calendar Biola
In a nutshell - About UM
Sirius Mlb Baseball
Ta Travel Center Las Cruces Photos
Faotp Meaning In Text
Hamboards Net Worth 2022
Triple the Potatoes: A Farmer's Guide to Bountiful Harvests
Old Navy Student Discount Unidays
Pear Shaped Rocsi
Caribbean Mix Lake Ozark
Ofw Pinoy Channel Su
The Emergent Care Clinic Hesi Case Study
Flyover Conservatives
Craigslist Battle Ground Washington
Carle Mycarle
The Legend of Zelda: Every Reincarnation of Princess Zelda Explained
Ecem Hotoglu
Clarkson Eyecare hiring Optometrist - Fredericksburg, VA in Fredericksburg, VA | LinkedIn
19 Dollar Fortnite Card Copypasta
G4 Vore
11000, EVV Compliance Reviews | Texas Health and Human Services
Raya And The Last Dragon Voice Cast: Who's Voicing Each Character
Www.citizen-Times.com Obituaries
Wolf Of Wallstreet 123 Movies
Build a Free Website | VistaPrint
Home Theater and Home Theater Systems at Crutchfield.com
Proto Ultima Exoplating
Broussard’s Mortuary Major Dr.
Www Texaslottery Com
Wells Fargo Arena Des Moines Seating Chart Virtual View
Aces Login Palo Alto
Sheex Sheets Review (2024) | Mattress Nerd
The Untold Truth Of 'Counting Cars' Star - Danny Koker
Craigslistwesternmass
DePaul joins nationwide pro-Palestinian college protests as encampment continues at University of Chicago
Depths Charm Calamity
Experity Installer
German American Bank Owenton Ky
Couponsky.com
La Monja 2 Pelicula Completa Tokyvideo
Kayla Simmons Of Leak
Fired Up | Rotten Tomatoes
Academic calendar: year cycle and holidays | University of Twente | Service Portal
Potassium | History, Uses, Facts, Physical & Chemical Characteristics
Priority Pass: How to Invite as Many Guests as Possible to Airport Lounges?
Latest Posts
Article information

Author: Arline Emard IV

Last Updated:

Views: 5569

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Arline Emard IV

Birthday: 1996-07-10

Address: 8912 Hintz Shore, West Louie, AZ 69363-0747

Phone: +13454700762376

Job: Administration Technician

Hobby: Paintball, Horseback riding, Cycling, Running, Macrame, Playing musical instruments, Soapmaking

Introduction: My name is Arline Emard IV, I am a cheerful, gorgeous, colorful, joyous, excited, super, inquisitive person who loves writing and wants to share my knowledge and understanding with you.