Help
RSS
API
Feed
Maltego
Contact
Domain > danrzeppa.com
×
Welcome!
Right click nodes and scroll the mouse to navigate the graph.
×
More information on this domain is in
AlienVault OTX
Is this malicious?
Yes
No
DNS Resolutions
Date
IP Address
2016-08-28
64.85.167.71
(
ClassC
)
2025-02-05
18.221.179.39
(
ClassC
)
Port 80
HTTP/1.1 200 OKContent-Type: text/htmlLast-Modified: Sun, 30 Jun 2019 13:18:59 GMTAccept-Ranges: bytesETag: edced60462fd51:0Server: Microsoft-IIS/10.0Date: Wed, 05 Feb 2025 14:22:05 GMTContent-Length: 6028 html>head> title>JJs Pizza Time Clock Reporting/title> script srcpdfmake/pdfmake.min.js>/script> script srcpdfmake/vfs_fonts.js>/script> style> #pdfIFrame { height: 8in; width: 6in; } /style> script> function ReportRow() { this.EmployeeERN this.EmployeeLastName this.EmployeeFirstName this.HoursWorked 0 this.PayRate 0 } let fromDateInput let toDateInput let messageDiv let pdfIFrame function createAuthorizationHeader() { let key applicationId 48242495-384a-4ae5-967a-d3c1b49b18d0 + &siteIdfdb4a851-ee72-4854-98f0-eb6016a849b1 + &authCodedb875e21-b725-4589-825a-29bdf15008c3 return 2TouchDataKey + window.btoa(key) } function cts(v) { // convertToString return v + } /** * @param {ReportRow} rows */ async function createPdf(rows) { function _getTableBody() { rows.sort(function(a, b) { let aLastName cts(a.EmployeeLastName).toLowerCase() let bLastName cts(b.EmployeeLastName).toLowerCase() if (aLastName bLastName) return -1 if (aLastName > bLastName) return 1 return 0 }) let result result.push(Emp Number, Last Name, First Name, Hours Worked, Pay Rate) for (let i 0, len rows.length; i len; i++) { let row rowsi let resultRow cts(row.EmployeeERN), cts(row.EmployeeLastName), cts(row.EmployeeFirstName), cts(row.HoursWorked), cts(row.PayRate) result.push(resultRow) } return result } let docDefinition { content: {text: JJs Pizza Time Clock Report, style: header}, { style: tableExample, table: { body: _getTableBody() } }, } let pdf pdfMake.createPdf(docDefinition) let callback function(url) { pdfIFrame.setAttribute(src, url) } await pdf.getDataUrl(callback, pdf) } function e(id) { return document.getElementById(id) } async function getAdjustedTimeClockData(fromDate, toDate) { try { let baseUrl http://DataKey.2TPos.com/2TouchPOS/DataKey/V4/REST/TimeClockService/ let url baseUrl + `AdjustedTimeClockData?fromDate${fromDate}&toDate${toDate}` let headers new Headers({ Authorization: createAuthorizationHeader(), Content-Type: application/json, }) let fetchOptions { headers: headers, } let res await fetch(url, fetchOptions) let json await res.json() if (!res.ok) { return new Error(json.Message) } return json } catch (ex) { return new Error(`Error getting data. ${ex.message}`) } } /** * Groups the API result into ReportRows for showing on the PDF * * @param rows - result from API call * @returns {ReportRow} */ function createReportRows(rows) { let reportRowMap new Map() // indexnumber_lastName_firstName_payRate, valueReportRow for (let i 0, len rows.length; i len; i++) { let row rowsi let key `${cts(row.EmployeeERN)}_${row.EmployeeLastName}_${row.EmployeeFirstName}_${row.PayRate}` let reportRow reportRowMap.get(key) if (!reportRow) { reportRow new ReportRow() reportRow.EmployeeERN row.EmployeeERN reportRow.EmployeeLastName row.EmployeeLastName reportRow.EmployeeFirstName row.EmployeeFirstName reportRow.PayRate row.PayRate reportRowMap.set(key,reportRow) } reportRow.HoursWorked + row.HoursWorked } // convert the map into an array // while were at it round the hours worked let results for (let value of reportRowMap.values()) { value.HoursWorkedMath.trunc(value.HoursWorked*100)/100 results.push(value) } return results } async function handleRunReportClick() { showMessage(Running...) let rows await getAdjustedTimeClockData(fromDateInput.value, toDateInput.value) if (rows instanceof Error) { showError(data.message) return } let reportRowscreateReportRows(rows) await createPdf(reportRows) showMessage(All done.) } function main() { fromDateInput e(fromDateInput) toDateInput e(toDateInput) messageDiv e(messageDiv) pdfIFrame e(pdfIFrame) let runReportButton e(runReportButton) runReportButton.addEventListener(click, handleRunReportClick, false) } function showError(m) { messageDiv.innerHTML m } function showMessage(m) { messageDiv.innerHTML m } document.addEventListener(DOMContentLoaded, main, false) /script>/head>body>div idmessageDiv>Set the parameters and run the report./div>br>div> From Date input typetext idfromDateInput value2019-06-02> To Date input typetext idtoDateInput value2019-06-08> input typebutton idrunReportButton valueRun Report>/div>br>div> iframe idpdfIFrame>/iframe>/div>/body>/html>!-- {-->!-- Id: 34c04357-ec1d-4eb5-9c5b-05a518f85ab5,-->!-- EmployeeFirstName: Niki,-->!-- EmployeeLastName: Baker,-->!-- EmployeeERN: 4,-->!-- JobTypeName: Manager,-->!-- JobTypeERN: null,-->!-- PayRate: 13,-->!-- ClockInTime: 2019-06-06T16:00:32,-->!-- ClockOutTime: 2019-06-06T21:26:18,-->!-- AutoGratuityTips: 0,-->!-- CreditCardTips: 0,-->!-- CustomerAccountTips: 0,-->!-- DeclaredCashTips: 0,-->!-- Sales: 0,-->!-- EmployeeLRI: 19d4696b-d16d-4dc4-b6cc-d29445b31076,-->!-- EmployeeLRN: 101,-->!-- JobTypeLRI: a3ca25a9-ed04-4c48-9f4e-bc7d9096f5b5,-->!-- JobTypeLRN: 3,-->!-- OvertimePayRate: 19.5,-->!-- HoursWorked: 5.45,-->!-- OvertimeHoursWorked: 0-->!-- },-->
View on OTX
|
View on ThreatMiner
Please enable JavaScript to view the
comments powered by Disqus.
Data with thanks to
AlienVault OTX
,
VirusTotal
,
Malwr
and
others
. [
Sitemap
]