Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <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