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


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


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.


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.


    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Калькулятор расчета площади</title>
    <link rel="stylesheet" href="style.css">
    <div class="container_calc">
        <div class="container">
           <h3 style="text-align: center;">Калькулятор расчета стоимости ремонта</h3>         
           <p style="text-align: center;">Класс ремонта:
           <select onchange="calc()" id="type_design">
           <option value="0">Выбрать</option>
           <option value="5000">Эконом</option>
           <option value="7000">Капитальный</option>
           <option value="10000">Евро</option> 
           <p style="text-align: center;">Площадь помещения:<input type="text" class="ploschad" id="count" value="0" onchange="calc()"/></p>
           <p style="padding-left: 15px;">Требуется демонтаж:<input type="checkbox" onchange="calc()" value="300" id="is_html"/></p>
           <p style="text-align: center; font-size: 12px;">*Цена является ознакомительной и может отличаться от фактической</p>                      
        <div class="cena">Стоимость ремонта: <span id="result">0</span> RUB.</div>                   


                .container_calc {
    width: 325px;
	  height: auto;	
	  margin: 100px auto;
    background: #c4aacc;
	  background: linear-gradient(#497ad6, #7ea9bb);
    outline: 2px solid rgb(7, 214, 204); 

.container {
    padding: 20px 20px 9px;
    color: rgb(255, 255, 255);


.cena {
    padding-left: 35px;
    background-color: #0a51d4;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    color: white;

.ploschad {
    width: 100px;

#type_design {
    width: 148px;


                function calc() {
           let type_design = document.getElementById("type_design");
           let is_html = document.getElementById("is_html");
           let count = document.getElementById("count");
           let result = document.getElementById("result"); 
           let price = 0;
              price += parseInt(type_design.options[type_design.selectedIndex].value);
              price += (is_html.checked == true) ? parseInt(is_html.value) : 0;
              price = parseInt(count.value) * price;
              result.innerHTML = price;