PageSourceSearch

https://vacancies.mfat.govt.nz/platform/js/j2w/min/j2w.searchResults.min.js?h=275f70e9

js mfat.govt.nz collected 2026-09-24 08:26:03 UTC 1,708 bytes, 5 lines download raw bytes

1var j2w=j2w||{};
2j2w.SearchResults=function(){var a={apiEndpoint:"tile-search-results",searchQuery:"?q=",tileSearchResultsText:"[[tileSearchResultsText]]",jobRecordsPerPage:25,jobRecordsFound:0},b=1,g=function(){$(".job-tile").off("click");$(".job-tile").on("click",function(){window.location=$(this).attr("data-url")});$(".jobTitle-link, .job-tile").off("focus").off("blur");$(".jobTitle-link, .job-tile").on("focus",function(){$($(this).attr("data-focus-tile")).addClass("focus")}).on("blur",function(){$($(this).attr("data-focus-tile")).removeClass("focus")})},c=
3function(){var d=!1;$("#tile-more-results").on("click",function(h){if(!d){d=!0;$("#tile-more-results-loading").show();h=a.searchQuery+"&startrow="+(b*a.jobRecordsPerPage).toString();var c=a.apiEndpoint;$.ajax({type:"GET",url:l()+"/"+c+"/"+h,accept:"text/html; charset=UTF-8",error:function(){$("#tile-more-results-loading").hide();d=!1},success:function(c){$("#job-tile-list").append(c);g();c=b*a.jobRecordsPerPage+1;b+=1;var e=b*a.jobRecordsPerPage;e>a.jobRecordsFound&&(e=a.jobRecordsFound,k());var f=
4a.tileSearchResultsText.replace("{0}","1").replace("{1}",e.toString()).replace("{2}",a.jobRecordsFound.toString());$("#tile-search-results-label").html(f);f=a.lblSearchResultsBlank+" '"+a.searchResults+"'. "+f+" "+a.tileSearchExplainationText;$("#searchresultslabel").html(f);$(".job-list").attr("data-record-returned",e.toString());$("#tile-more-results-loading").hide();$("li[data-row-index="+c+"] a").focus();d=!1}})}})},l=function(){var a=j2w.Args.get("brand");return 0<a.length?"/"+a:""},k=function(){b*
5a.jobRecordsPerPage>=a.jobRecordsFound&&$(".tile-more-results-container").hide()};return{init:function(b){a=b;g();c();k()}}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.