• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / 3301e8fe-9868-476c-990a-ab44e51f4a2d

pending completion
3301e8fe-9868-476c-990a-ab44e51f4a2d

push

circleci

GitHub
Merge pull request #3001 from mozilla/main

282 of 1768 branches covered (15.95%)

Branch coverage included in aggregate %.

451 of 451 new or added lines in 56 files covered. (100.0%)

959 of 4670 relevant lines covered (20.54%)

3.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/client/js/partials/landing.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
/** @type {HTMLDivElement} */
6
// @ts-ignore: We guard against a null value by not calling init():
7
const landingPartial = document.querySelector("[data-partial='landing']")
×
8

9
if (landingPartial) {
×
10
  init()
×
11
}
12

13
async function init () {
14
  const landingForm = landingPartial.querySelector('form.exposure-scan')
×
15
  if (!(landingForm instanceof HTMLFormElement)) {
×
16
    return
×
17
  }
18
  landingForm.addEventListener('submit', (e) => {
×
19
    e.preventDefault()
×
20
    const emailField = landingForm.elements.namedItem('email')
×
21
    const newLocation = new URL(document.location)
×
22
    newLocation.pathname = '/scan/'
×
23
    newLocation.hash = `#email=${encodeURIComponent(emailField.value)}`
×
24
    document.location = newLocation.href
×
25
  })
26
  landingForm.hidden = false
×
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc