Pennsylvania Lottery - Treasure Hunt (2024)

Take a mid-day break to play Treasure Hunt! Treasure Hunt gives you a chance every day to win Lottery prizes and it’s fun to watch as the winning Lottery numbers pop out of treasure chests during the animated Treasure Hunt drawing.

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 - Treasure Hunt (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 - Treasure Hunt (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 - Treasure Hunt (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 - Treasure Hunt (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 - Treasure Hunt (2024)

FAQs

What are the odds of winning the PA treasure hunt? ›

Players also win prizes for matching two, three or four winning numbers. Treasure Hunt drawings are held seven days a week, and tickets can be purchased up to seven draws (one week) in advance. Chances of winning the jackpot prize are 1-in-142,506; the overall chances of winning any prize are about 1-in-5.45.

What time is the PA Lottery treasure hunt drawing? ›

Treasure Hunt is drawn every day with all the Day drawings at 1:35 p.m. Drawings are not televised but can be streamed online. You can either select your own numbers, or the Quick Pick option will select them for you.

How many numbers are in the Pennsylvania treasure hunt? ›

Each game costs $1. On each game panel, pick five numbers between 1 and 30. Or, select the quick pick option to have your numbers randomly selected by the computer.

Is there a Pennsylvania Lottery? ›

Look for PA Lottery results: You can check PICK 4 Lottery results by watching the PICK 4 day drawing on the PA Lottery website daily after 1:35 p.m., watching the PICK 4 evening drawing nightly at 6:59 p.m. on TV or streaming online, checking our website and official mobile app, and subscribing to Lottery RSS feeds.

How do you win treasure hunt easily? ›

Working Together

Many clues contain wordplay that can have multiple meanings, and interpreting them quickly can lead to mistakes. Collaboration is vital for the team's success. Teams work best when everyone is involved in the decision-making and each person is able to participate.

What's the most you can win on pick 5? ›

Pick 5 offers players two chances to win each day. You could win up to $50,000 playing the base game! Plus, the FIREBALL add-on gives players the chance to create additional number combinations for another chance to win!

How often is the PA Millionaire raffle? ›

Eight (8) Weekly Drawings will each award two (2) prizes of $50,000. The Final Drawing will award over $5 Million in prizes! Watch the drawing after 10:00 p.m. on palottery.com. All tickets sold between December 26, 2023 at 12:00 a.m. and January 1, 2024 at 11:59:59 p.m.

What is the rule of treasure hunt? ›

The Treasure Hunt consists of clues, each one leading to the next clue. Each correctly solved clue carries 10 points. And final Treasure carries 50 points. All the clues of the teams are at different and located at different places but the final destination i.e. the treasure is same.

What is the most famous treasure hunt? ›

In popular culture

The Fenn treasure hunt has been featured in television shows, magazine articles, and books. Douglas Preston had seen Forrest Fenn's treasure chest long before Fenn hid it. It is credited as the inspiration for Preston's 2003 novel The Codex.

How much can you win on PA Lottery without paying taxes? ›

The Pennsylvania Lottery automatically withholds taxes for winnings more than $5,000. Winners will receive a W-2G tax form in the mail for all prizes won that are over $600, which will show if any taxes are withheld.

Can PA Lottery employees play the lottery? ›

Can Pennsylvania Lottery retailers play the Pennsylvania Lottery? Retailers and their employees who are 18 years of age or older can play all the Pennsylvania Lottery games. There is nothing in law or policy that restricts them from playing or winning. Like any player, they must pay for the games they play.

What time is PA Lottery drawing today? ›

Watch the nightly 6:59 p.m. drawings on TV or streaming online. Remember, ticket sales for the Evening drawing end at 6:57 p.m.

What are the odds of winning a 50 dollar scratch off pa? ›

Find $50 (PA‑1205)

When any of YOUR NUMBERS match either WINNING NUMBER, win PRIZE shown under the matching number. Reveal a "$50" (WIN50) symbol, win $50 instantly. Reveal a "MAGNIFYING GLASS" (5TIMES) symbol, win 5TIMES the PRIZE shown under that symbol. The overall chances of winning a prize are 1 in 4.54.

What are the odds of winning the PA Millionaire raffle? ›

Prizes and Chances
PRIZE LEVELSNUMBER OF PRIZESCHANCES OF WINNING
Top Prize41 in 125,000
Second Prize41 in 125,000
Third Prize1001 in 5,000
Fourth Prize5,8921 in 84.86
1 more row

What are the odds of winning the PA Cash 5? ›

The chances of winning a Quick Cash game are separate from the chances of winning the main Cash 5 game. The overall chances of winning in a Quick Cash game are 1 in 4.71. Chances of winning the Cash 5 jackpot prize are 1 in 962,598; the overall chances of winning any prize in the main Cash 5 game are about 1 in 10.5.

Is there any lost treasure in Pennsylvania? ›

It's no secret that there is an amazing amount of lost treasure all over Pennsylvania. Stories and legends of varying degrees of reliability describe gold, silver, and lost artifacts throughout the state, and central Pennsylvania is no exception.

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Neely Ledner

Last Updated:

Views: 5589

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.