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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

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.

HTML

            
              <link rel="stylesheet" href="https://yastatic.net/bem-components/latest/desktop/bem-components.css">

<div class="select select_mode_check select_theme_islands select_size_m i-bem" data-bem='{"select":{"name":"select1","text":"Программа конференции"}}'>
  <input class="select__control" type="hidden" name="select1" value="2" autocomplete="off">
  <input class="select__control" type="hidden" name="select1" value="3" autocomplete="off">
  <button class="button button_size_m button_theme_islands button_checked select__button button__control i-bem"
        data-bem='{"button":{}}' role="listbox" aria-owns="uniq14953563399141 uniq14953563399142 uniq14953563399143" aria-multiselectable="true" aria-labelledby="uniq14953563399144" type="button">
    <span class="button__text" id="uniq14953563399144">Мастер-класс, Круглый стол</span>
    <span class="icon select__tick"></span>
  </button>
  <div class="popup popup_target_anchor popup_theme_islands popup_autoclosable i-bem" data-bem='{"popup":{"directions":["bottom-left","bottom-right","top-left","top-right"]}}' aria-hidden="true">
    <div class="menu menu_size_m menu_theme_islands menu_mode_check select__menu menu__control i-bem" data-bem='{"menu":{}}'>
      <div class="menu__item menu__item_theme_islands i-bem" data-bem='{"menu__item":{"val":1}}' role="option" id="uniq14953563399141" aria-checked="false">Доклад</div>
      <div class="menu__item menu__item_checked menu__item_theme_islands i-bem" data-bem='{"menu__item":{"val":2}}' role="option" id="uniq14953563399142" aria-checked="true">Мастер-класс</div>
      <div class="menu__item menu__item_checked menu__item_theme_islands i-bem" data-bem='{"menu__item":{"val":3}}' role="option" id="uniq14953563399143" aria-checked="true">Круглый стол</div>
      </div>
  </div>
</div>

<script src="https://yastatic.net/bem-components/latest/desktop/bem-components.js+bemhtml.js"></script>
            
          
!

CSS

            
              
            
          
!

JS

            
              modules.define(
    'select',
    ['i-bem-dom', 'button'],
    function(provide, bemDom, Button) {
      provide(bemDom.declBlock(this.name, {

        onSetMod: {
          js: {
            inited: function() {
              this.__base.apply( this, arguments );
              this._events( Button ).on(
                { modName: 'hovered', modVal: true },
                function () { this.setMod('opened') }
              );
            }
          },
        }

      }, {
        lazyInit: false
      } ) );
    }
)
            
          
!
999px

Console