Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div>
  <div class="slidecontainer">
    <h2>K2X Average Results Calculator</h2>

    <p>Number of calls</p>
    <div class="length">
      <span class="length__label">0</span>
      <input type="range" min="0" max="3000" value="200" step="200" class="slider" id="range">
      <span class="length__label">3000</span>
    </div>
    <div class="resultsBox">
      <h4>Estimated results Per <output for="range" class="output">200 </output>Calls:</h4>
      <div class="rpResults">
        <h5 class="rpTitle">Database Growth</h5>
        <ul class="rpList">
          <li>Appointments: <span class="rpApp">4</span></li>
          <li>New CRM Contacts: <span class="rpCRM">11</span></li>
          <li>Potential Sellers: <span class="rpPotential">1</span></li>
        </ul>

      </div>
      <div class="CRMResults">
        <h5 class="rpTitle">CRM</h5>
        <ul class="rpList">
          <li>Appointments: <span class="crmApp">5</span></li>
          <li>Updated CRM Info: <span class="crmCRM">2</span></li>
          <li>Potential Sellers: <span class="crmPotential">3</span></li>
        </ul>
      </div>

    </div>

  </div>

</div>
              
            
!

CSS

              
                .slidecontainer {
  width: 600px; /* Width of the outside container */
  margin: 0 auto;
  font-family: Helvetica, sans-serif;
 
  text-align: center;

  margin-bottom: 40px;
  color: #000000;
  span: bold;
}
.length {
  width: 100%;
  background-color: var(--second-color);
  border-radius: var(--border-radius);

  align-items: center;
  margin: 0 auto;
}

/* The slider itself */
.slider {
  margin: 0 auto;

  width: 60%; /* Full-width */
  height: 25px; /* Specified height */
  width: 30px;
  height: 30px;
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: 0.2s; /* 0.2 seconds transition on hover */
  transition: opacity 0.2s;
}

.resultsBox {
  padding-left: 20px;
  padding-right: 20px;
  width: 60%;
  height: auto;
  background-color: #2020360a;
  text-align: center;
  margin: 50px auto;
  border: 3px solid #ff6600;

  border-radius: 20px;
}
.rpResults {
  box-shadow: 0 4px 16px rgb(32 32 54 / 10%);
  padding: 10px;
  margin: 0 auto;
  border-radius: 10px;
  background-color: white;
  margin-bottom: 50px;
}
.CRMResults {
  box-shadow: 0 4px 16px rgb(32 32 54 / 10%);
  padding: 10px;
  margin: 0 auto;
  border-radius: 10px;
  background-color: white;
  margin-bottom: 50px;
}
.rpTitle {
  margin: 0 auto;
  font-size: 34px;
  font: helvetica;
  text-align: center;
}
.rpList {
  list-style: none;
  margin: 0 auto;
}
span {
  font-size: 20px;
  font-weight: bold;
}
h4 {
  font-weight: 300;
}
.output {
  font-size: 20px;
  font-weight: bold;
}
.slidecontainer {
  width: 600px; /* Width of the outside container */
  margin: 0 auto;
  font-family: Helvetica, sans-serif;

  text-align: center;

  margin-bottom: 40px;
  color: #000000;
  span: bold;
}

/* The slider itself */
.slider {
  margin: 0 auto;
  width: 60%; /* Full-width */
  height: 25px; /* Specified height */

  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: 0.2s; /* 0.2 seconds transition on hover */
  transition: opacity 0.2s;
}

.resultsBox {
  padding-left: 20px;
  padding-right: 20px;
  width: 60%;
  height: auto;
  background-color: #2020360a;
  text-align: center;
  margin: 50px auto;
  border: 3px solid #ff6600;

  border-radius: 20px;
}
.rpResults {
  box-shadow: 0 4px 16px rgb(32 32 54 / 10%);
  padding: 10px;
  margin: 0 auto;
  border-radius: 10px;
  background-color: white;
  margin-bottom: 50px;
}
.CRMResults {
  box-shadow: 0 4px 16px rgb(32 32 54 / 10%);
  padding: 10px;
  margin: 0 auto;
  border-radius: 10px;
  background-color: white;
  margin-bottom: 50px;
}
.rpTitle {
  margin: 0 auto;
  font-size: 34px;
  font: helvetica;
  text-align: center;
}
.rpList {
  list-style: none;
  margin: 0 auto;
  text-align: left;
  margin-left: 40px;
}
span {
  font-size: 20px;
  font-weight: bold;
}
h4 {
  font-weight: 300;
}
.rpTitle {
  margin-bottom: 20px;
}
.output {
  font-size: 20px;
  font-weight: bold;
}


/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .slidecontainer {
    width: 100%; /* Width of the outside container */
 
    font-size: 12px;
    padding: 0px;
  }
}




/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .slidecontainer {
    width: 100%; /* Width of the outside container */
   
    font-size: 12px;
    padding: 0px;
  }
  .rpTitle {
    font-size: 2em;
  }
  .rpList {
    list-style: none;
    margin: 0;
    margin-left: 0px;
  }
  ul {
    padding: 0.5em;
  }
  .resultsBox {
    padding: 5px;
    
    margin: 0 auto;
    margin-top: 2em;
  }
}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .slidecontainer {

  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .slidecontainer {
   
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
.slidecontainer {
    
  }
  
}
              
            
!

JS

              
                // var slider = document.getElementById("myRange");

// // Update the current slider value (each time you drag the slider handle)

// $("myRange").on("input", function () {
//   $(".callsNumber").val(this.value);
// });
var rpApps = 4;
var rpCrm = 10.52;
var rpPotential = 1.33;

var crmApps = 5.17;
var crmCrm = 2.33;
var crmPotential = 3.44;

$("#range") 
  .on("input", function () {
    $(".output").val(this.value + " ");
    $(".rpApp").text(Math.round(rpApps * (this.value / 200)));
    $(".rpCRM").text(Math.round(rpCrm * (this.value / 200)));
    $(".rpPotential").text(Math.round(rpPotential * (this.value / 200)));
    $(".crmApp").text(Math.round(crmApps * (this.value / 200)));
    $(".crmCRM").text(Math.round(crmCrm * (this.value / 200)));
    $(".crmPotential").text(Math.round(crmPotential * (this.value / 200)));
  })
  .trigger("change");

              
            
!
999px

Console