Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">

                    <div class="panel panel-default panel-one wow fadeInLeft">
                        <div class="panel-heading" role="tab" id="headingOne">
                            <h4 class="panel-title">
                                <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                                    <span class="link-text">1. Тип септика</span>
                                </a>
                            </h4>
                        </div>
                        <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
                            <div class="panel-body">
                                <img class="type-septic" src="img/constructor/type-septic.png" alt="septic">
                                <div class="onoffswitch">
                                    <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" checked="">
                                    <label class="onoffswitch-label" for="myonoffswitch">
                                        <span class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                                <img class="type-septic" src="img/constructor/type-septic-two.png" alt="septic">
                                <p>камерный</p>
                                <a class="button construct-btn collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"><span>Следующий шаг</span></a>
                            </div>
                        </div>
                    </div>

                    <div class="panel panel-default panel-two wow fadeInRight" data-wow-delay="0.1s">
                        <div class="panel-heading" role="tab" id="headingTwo">
                            <h4 class="panel-title">
                                <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
                                    <span class="link-text">2. Диаметр и количество колец</span>
                                </a>
                            </h4>
                        </div>
                        <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                            <div class="panel-body">

                                <div class="title-text">первый колодец (приемный)</div>
                                <div class="select-box">
                                    <p><strong>Диаметр</strong></p>
                                    <select class="form-control expand">
                                        <option>1.4 метра</option>
                                        <option>2 метра</option>
                                    </select>
                                </div>
                                <div class="select-box">
                                    <p><strong>Количество колец</strong></p>
                                    <select class="form-control expand">
                                        <option>1 штука</option>
                                        <option>2 штуки</option>
                                        <option>3 штуки</option>
                                    </select>
                                </div>

                                <div class="title-text">второй колодец (дренажный)</div>
                                <div class="select-box">
                                    <p><strong>Диаметр</strong></p>
                                    <select class="form-control expand">
                                        <option>1.4 метра</option>
                                        <option>2 метра</option>
                                    </select>
                                </div>
                                <div class="select-box">
                                    <p><strong>Количество колец</strong></p>
                                    <select class="form-control expand">
                                        <option>1 штука</option>
                                        <option>2 штуки</option>
                                        <option>3 штуки</option>
                                    </select>
                                </div>
                                <a class="button construct-btn" data-toggle="collapse" data-parent="#accordion" href="#collapseThree"><span>Следующий шаг</span></a>
                            </div>
                        </div>
                    </div>

                    <div class="panel panel-default panel-three wow fadeInLeft" data-wow-delay="0.2s">
                        <div class="panel-heading" role="tab" id="headingThree">
                            <h4 class="panel-title">
                                <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
                                    <span class="link-text">3. Наличие днища колодца</span>
                                </a>
                            </h4>
                        </div>
                        <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
                            <div class="panel-body">
                                <p></p>

                                <div class="onoffswitch">
                                    <input type="checkbox" name="onoffswitch-two" class="onoffswitch-checkbox" id="myonoffswitch-two" checked="">
                                    <label class="onoffswitch-label" for="myonoffswitch-two">
                                        <span class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                                <img class="bottom-septic-img" src="img/constructor/bottom-septic.png" alt="bs">
                                <a class="button construct-btn" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour"><span>Следующий шаг</span></a>
                            </div>
                        </div>
                    </div>

                    <div class="panel panel-default panel-four wow fadeInRight" data-wow-delay="0.3s">
                        <div class="panel-heading" role="tab" id="headingFour">
                            <h4 class="panel-title">
                                <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
                                    <span class="link-text">4. Расстояние от септика до дома</span>
                                </a>
                            </h4>
                        </div>
                        <div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
                            <div class="panel-body">
                                <p>Введите расстояние до дома</p>
                                <input type="text">
                                <button class="button construct-btn call-btn">Получить расчет и скидку</button>
                            </div>
                        </div>
                    </div>
                </div>
            
          
!
            
              .constructor .panel-group {
    width: 37rem;
    margin-left: auto;
    margin-right: auto;
}
.panel-group {
    margin-bottom: 20px;
}
.panel-group .panel {
    margin-bottom: 0;
    border-radius: 4px;
}
.panel-default {
    border-color: #ddd;
}
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.constructor .panel-heading {
    height: 6rem;
    background-color: #90c406;
    color: #fff;
}
.panel-default>.panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}
.panel-group .panel-heading {
    border-bottom: 0;
}
.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.constructor .panel-title {
    margin-top: 1rem;
}
.constructor h4 {
    font-size: 1.5rem;
}
.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    color: inherit;
}
.constructor .panel-heading a {
    display: block;
}
.constructor .panel-heading a .link-text {
    font-family: 'MuseoSansCyrl_reg',sans-serif;
    font-size: 1.5rem;
    margin-left: 0;
}
.collapse.in {
    display: block;
}
.collapse {
    display: none;
}
.panel-default>.panel-heading+.panel-collapse>.panel-body {
    border-top-color: #ddd;
}
.panel-group .panel-heading+.panel-collapse>.list-group, .panel-group .panel-heading+.panel-collapse>.panel-body {
    border-top: 1px solid #ddd;
}
.panel-body {
    padding: 15px;
}
.constructor .type-septic {
    display: inline-block;
    margin-top: -5rem;
    margin-left: 4rem;
}
.constructor .onoffswitch {
    display: inline-block;
    margin-top: 2rem;
    margin-left: 4.5rem;
    position: relative;
    width: 124px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.constructor .onoffswitch-checkbox {
    display: none;
}
input[type=checkbox], input[type=radio] {
    margin: 4px 0 0;
    margin-top: 1px\9;
    line-height: normal;
}
input[type=checkbox], input[type=radio] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
}
.constructor .onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #FFF;
    border-radius: 50px;
}
label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}
.constructor .type-septic {
    display: inline-block;
    margin-top: -5rem;
    margin-left: 4rem;
}
.constructor .panel-one p {
    display: inline-block;
    font-family: 'MuseoSansCyrl_reg',sans-serif;
    font-size: 1.4rem;
    margin-left: 13rem;
}
.constructor .panel-one .construct-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 23rem;
    font-size: 1.4rem;
}
            
          
!
            
              document.addEventListener('click', e => {
  const
    t = e.target,
    heading = t.closest('.panel-heading'),
    nextStep = t.closest('.construct-btn');

  const collapse = 
    heading ? heading.nextElementSibling :
    nextStep ? t.closest('.panel').nextElementSibling.querySelector('.panel-collapse') :
    null;

  if (collapse) {
    e.preventDefault();
    t.closest('.panel-group').querySelectorAll('.panel-collapse').forEach(n => {
      n.classList.toggle('in', n === collapse && !n.classList.contains('in'));
    });
  }
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console