npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@roofmaxx/form

v0.77.0

Published

The intention of this readme is to document the most important features and characteristics of the multistep consumer form made with **ReactJs + Tailwind** using the **forms API from hubspot**, the **map_status API from roofmaxxconnect** and **Google Auto

Downloads

1,420

Readme

Roof Maxx ReactJs Form

The intention of this readme is to document the most important features and characteristics of the multistep consumer form made with ReactJs + Tailwind using the forms API from hubspot, the map_status API from roofmaxxconnect and Google Autocomplete function with Places API

Installation

-> STEP 1 - To use the form in you site add the following script tag to your page:

If you want to use the version of the library, you just need to copy and paste the codes below preferably in the <head> of you page:

<script type="module" src="https://unpkg.com/@roofmaxx/form/dist/form.js"></script>

If you are facing issues with the form try inserting the JS script (not the CSS) in the footer of your page OR add the defer value (The defer is a Boolean value, used to indicate that the script is executed after the document has been parsed)

<script defer type="module" src="https://unpkg.com/@roofmaxx/form/dist/form.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@roofmaxx/form/dist/form.css" />

Specific Version Files

If you want to use a specific version of the library, you can specify it both in the script tag and link tags:

<script type="module" src="https://unpkg.com/@roofmaxx/[email protected]/dist/form.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@roofmaxx/[email protected]/dist/form.css" />

-> STEP 2 - Please send us an email at [email protected] with your base domain where the form will be installed. For example if you have the form installed at www.domain.com/test or www.test.domain.com please send us the domain.com

Usage

To make the form work you need to add the following code to your page at the place where you want the form to show:

<div id="roofmaxx-form"
    data-utm-source=""
    data-utm-campaign=""
    data-utm-medium=""
    data-utm-content=""
    data-utm-term=""
    data-page-variant=""
    data-zip-code=""
    data-dealer-id=""
    data-source-vendor=""
    data-deal-type="" 
    data-self-generated=""
    data-lead-type=""
    data-microsite-type=""
    data-thank-you-page=""
    data-sorry-page=""
    data-video-form=""
    >
</div>

Here you can configure the form by passing different data attributes to the wrapper element.

  1. If you have a dealer id please insert it in the data-dealer-id field in between the ""

  2. If you are using a vendor for your marketing please insert his name in the data-source-vendor field in between the ""

  3. You can leave empty the following fields:

    • data-utm-source
    • data-utm-campaign
    • data-utm-medium
    • data-utm-content
    • data-utm-term
    • data-page-variant
    • data-zip-code
    • data-deal-type
    • data-self-generated
    • data-lead-type
    • data-microsite-type
    • data-sorry-page
    • data-video-form
  4. If you have a custom thank-you page please insert the complete URL in the field data-thank-you-page, as if not the default thank you page is at https:roofmaxx.com/thank-you

  5. If you dont't want the video to appear at the top of the form just add false in the data-video-form. By default the video will be shown.

  6. Regarding the UTM parameters please read the following: In case you make use of UTM parameters, the form has a priority logic that gives priority to the data-attributed UTMs.

    • If you have UTM parameters both in the URL and the data-attributes the form will obey to the data-attributed UTMs.
    • If you have only in the URL, the form will send the URL UTM parameters
    • If you have only in the data-attributed, the form will send the data-attributed
    • If you don't have UTM parameters anywhere, the form will send empty value.

Examples of use


Internal Use for Roofmaxx corporate

For roofmaxx.com (Website)

Placing the form into roofmaxx.com and in any case (there is or not a dealer in the area/zipcode) user will be redirected to roofmaxx.com/thank-you

<div id="roofmaxx-form"
    data-utm-source=""
    data-utm-campaign=""
    data-utm-medium=""
    data-utm-content=""
    data-utm-term=""
    data-page-variant=""
    data-zip-code=""
    data-dealer-id=""
    data-source-vendor=""
    data-deal-type="" 
    data-self-generated=""
    data-lead-type=""
    data-microsite-type=""
    data-thank-you-page=""
    data-sorry-page=""
    data-video-form=""
    >
</div>

For roofmaxx.com/find-a-dealer/state OR roofmaxx.com/find-a-dealer/state/microsite

Placing the form into roofmaxx.com/find-a-dealer/xxxx/zzz and in any case (there is or not a dealer in the area/zipcode) user will be redirected to roofmaxx.com/find-a-dealer/thank-you

--> For the find-a-dealer page, state/location page

<div
    id="roofmaxx-form"
    data-utm-source=""
    data-utm-campaign=""
    data-utm-medium=""
    data-utm-content=""
    data-utm-term=""
    data-page-variant=""
    data-zip-code=""
    data-dealer-id=""
    data-source-vendor=""
    data-deal-type="RMCL-F"
    data-self-generated=""
    data-lead-type=""
    data-microsite-type=""
    data-thank-you-page=""
    data-sorry-page=""
    data-video-form=""
></div>
<script>
    /* Add dealer/company ID to HS form */
    if (typeof roofmaxx_company_id !== "undefined" && roofmaxx_company_id) {
        //setTimeout(function() {
        $("#roofmaxx-form").attr("data-dealer-id", roofmaxx_company_id);
        //}, 500);
    }
</script>

--> For the Microsites

<div
    id="roofmaxx-form"
    data-utm-source=""
    data-utm-campaign=""
    data-utm-medium=""
    data-utm-content=""
    data-utm-term=""
    data-page-variant=""
    data-zip-code=""
    data-dealer-id=""
    data-source-vendor=""
    data-deal-type="MICRO"
    data-self-generated=""
    data-lead-type=""
    data-microsite-type=""
    data-thank-you-page=""
    data-sorry-page=""
    data-video-form=""
></div>
<script>
    /* Add dealer/company ID to HS form */
    if (typeof roofmaxx_company_id !== "undefined" && roofmaxx_company_id) {
        //setTimeout(function() {
        $("#roofmaxx-form").attr("data-dealer-id", roofmaxx_company_id);
        //}, 500);
    }
</script>

For hubspot landing pages *

  1. Placing the form into a hubspot landing page * used by roof maxx corporate, in * any case (there is or not a dealer in the area/zipcode) user will be redirected to exampleHubspot.com/thank-you
<div id="roofmaxx-form"
    data-utm-source=""
    data-utm-campaign=""
    data-utm-medium=""
    data-utm-content=""
    data-utm-term=""
    data-page-variant="" 
    data-zip-code=""
    data-dealer-id=""
    data-source-vendor=""
    data-deal-type="" 
    data-self-generated=""
    data-lead-type=""
    data-microsite-type=""
    data-thank-you-page="https://exampleHubspot.com/thank-you"
    data-sorry-page=""
    data-video-form=""
    >
</div>
  1. Placing the form into a hubspot landing page used by roof maxx corporate, in case we want to separately redirect users depending on if there is, or not a dealer in the area/zipcode, user will be redirected to exampleHubspotYES.com/thank-you and/or exampleHubspotNO.com/thank-you
<div id="roofmaxx-form"
    data-utm-source=""
    data-utm-campaign=""
    data-utm-medium=""
    data-utm-content=""
    data-utm-term=""
    data-page-variant="" 
    data-zip-code=""
    data-dealer-id=""
    data-source-vendor=""
    data-deal-type="" 
    data-self-generated=""
    data-lead-type=""
    data-microsite-type=""
    data-thank-you-page="https://exampleHubspotYES.com/thank-you"
    data-sorry-page="https://exampleHubspotNO.com/thank-you"
    data-video-form=""
    >
</div>
  1. Placing the form into a hubspot landing page used by XYZ vendor in any case (there is or not a dealer in the area/zipcode), user will be redirected to exampleHubspot.com/thank-you
<div id="roofmaxx-form"
    data-utm-source=""
    data-utm-campaign=""
    data-utm-medium=""
    data-utm-content=""
    data-utm-term=""
    data-page-variant="" 
    data-zip-code=""
    data-dealer-id=""
    data-source-vendor="XYZ"
    data-deal-type="" 
    data-self-generated=""
    data-lead-type=""
    data-microsite-type=""
    data-thank-you-page="https://exampleHubspot.com/thank-you"
    data-sorry-page=""
    data-video-form=""
    >
</div>
  1. Placing the form into a hubspot landing page used by XYZ vendor in case we want to separately redirect users depending on if there is, or not a dealer in the area/zipcode, user will be redirected to exampleHubspotYES.com/thank-you and/or exampleHubspotNO.com/thank-you
<div id="roofmaxx-form"
    data-utm-source=""
    data-utm-campaign=""
    data-utm-medium=""
    data-utm-content=""
    data-utm-term=""
    data-page-variant="" 
    data-zip-code=""
    data-dealer-id=""
    data-source-vendor="XYZ"
    data-deal-type="" 
    data-self-generated=""
    data-lead-type=""
    data-microsite-type=""
    data-thank-you-page="https://exampleHubspotYES.com/thank-you"
    data-sorry-page="https://exampleHubspotNO.com/thank-you"
    data-video-form=""
    >
</div>

Dealer Use

  1. Placing the form into a dealers website/landing with a custom thank you page.

    * it is recommended to have your own thank you page, otherwise after a successful form submission user will be redirected to roofmaxx.com/thank-you page and you won't be able to measure correctly your conversions (in case you track conversions).

    • In case you use UTM parameters and you don't want to use the UTMs in the URL please insert them in the form. These hardcoded UTM parameters serve only if the form is submitted.

    • Dealers' id = 2452308196

    • https://dealers.com

<div id="roofmaxx-form"
    data-utm-source=""
    data-utm-campaign=""
    data-utm-medium=""
    data-utm-content=""
    data-utm-term=""
    data-page-variant="" 
    data-zip-code=""
    data-dealer-id="2452308196"
    data-source-vendor=""
    data-deal-type="" 
    data-self-generated="SG"
    data-lead-type=""
    data-microsite-type=""
    data-thank-you-page="https://dealers.com/thank-you"
    data-sorry-page=""
    data-video-form=""
    >
</div>