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

              
                    <div id="przyciski">
        <button name="przycisk1" value="100">przycisk 1</button>
        <p>Enim quis maiores magni, ipsa amet doloremque eos eligendi iusto perspiciatis sed? Odio laudantium quia expedita dolorum quos molestias sit? Aspernatur, iusto.</p>
        <button name="przycisk2" value="200">przycisk 2</button>
        <p>Expedita ipsam explicabo ad, exercitationem aliquid deleniti omnis, necessitatibus sint perspiciatis deserunt tempore? Dicta eum veritatis nesciunt tempore soluta voluptatum nam beatae!</p>
        <button name="przycisk3" value="300">przycisk 3</button>
        <p>Quidem eaque a voluptas quae, neque rem aut quo, cum, dolores inventore dolore veniam iusto omnis facilis non natus ducimus eveniet asperiores.</p>
        <button name="przycisk4" value="400">przycisk 4</button>
        <p>Necessitatibus quasi modi accusamus, rerum officiis mollitia ad odit, recusandae iusto veniam minus, labore maiores autem incidunt quas quia. Quae, error doloremque?</p>
        <button name="przycisk5" value="500">przycisk 5</button>
        <p>Incidunt consectetur laborum, alias amet facere velit commodi totam eos saepe sunt nihil nisi neque sed iste unde, quas asperiores repellendus ratione!</p>
    </div>
    <div id="opis"></div>
              
            
!

CSS

              
                        p {
            display: none;
            visibility: none;
        }
              
            
!

JS

              
                        const przyciski = document.querySelector('#przyciski');
        const opis = document.querySelector('#opis');

        // wyświetlenie w konsoli obiektu zdarzenia
        przyciski.addEventListener("click",(e) => {
            opis.innerHTML = e.target.nextElementSibling.innerHTML; 
        })
              
            
!
999px

Console