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 id="Calculate the turnover of employees">
  <div id="nametext">
<h1>Employee turnover rate</h1>
  <div  id="introduction">
    <p> The turnover rate (ie, the rate of entry and exit of workers to and from one of the departments or departments) indicates the average number of workers. . If the turnover rate is 12%, this means that 12 workers out of every 100 workers are likely to leave work.</p>
  <div id="nametext">
<h2>Calculation of turnover rate:</h2>
<div id="explain">
  <p>The following tool will automatically provide you with the calculation of the turnover during a specified period, just fill in the required data and press the "Calculate" button, and the program will calculate.</p>
  <div id="number1">
  <h3>Number of employees in the first period: </h3>
<input type='number' min='0' step='1' id='first-period-input'/>
<h3>Number of employees in the last period: </h3>
<input type='number' min='0' step='1' id='last-period-input'/>
  <h3>Number of employees leaving their work for any reason during this period: </h3>
<input type='number' min='0' step='1' id='resigned-period-input'/>
  <h1> Result</h1>
<div id = 'result-container'>
  <button id='calculate-ratebtn'>Calculate</button> -> <span id='result'></span>
   text-align: center;
  border-bottom: dashed 1px black;
  text-shadow: 2px 2px  5px blue;
  color: green;
   border-bottom: dashed 1px black;

              var calculateButton = document.getElementById('calculate-ratebtn');
calculateButton.onclick = function(){

   var Resigned = document.getElementById('resigned-period-input').value;
     var number1 = document.getElementById('first-period-input').value;
     var number2 = document.getElementById('last-period-input').value;
var result = (Resigned / ((number1 /2 +number2 /2 )))*100;
document.getElementById('result').innerHTML = result+ ' %' ;
🕑 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.