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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <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>reactive input filed</title>
</head>
<body>
    <!-- get 3 input field to change the background color,text color, front size of the things page according to what is inside the field -->

    <h1 style="text-align: center;">TEST THINGS HERE!! I AM A DUMMY PIG..:SOBBING</h1>
    <label for="">BackGround color
        <input type="text" class="js-bgColor" style="padding: 10px; margin: 20px;">
    </label><br>

    <label for="">Text Color
        <input type="text" class="js-textColor"style="padding: 10px; margin: 20px;">
    </label><br>

    <label for="">Front Size
        <input type="number" class="js-fSize"style="padding: 10px; margin: 20px;">
    </label>



    <script src="./ReactiveInput.js">
    </script>
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                // brainstroming
// first take select the thing


var bgColor = document.querySelector(".js-bgColor")
var textColor = document.querySelector(".js-textColor")
var fontsize = document.querySelector(".js-fSize")
var body = document.querySelector("body")
// console.log(bgColor , textColor , fontsize);

//    
    // for front size
    
bgColor.addEventListener("keyup", function (event) {
    // for bg
    var bgColor1 = event.target.value
    body.style.background = bgColor1   
})
textColor.addEventListener("keyup", function (event) {
    // for bg
    var textColor1 = event.target.value
    body.style.color = textColor1  
})
fontsize.addEventListener("keyup", function (event) {
    // for bg
    var fontsize1 = event.target.value
    Number(fontsize1)
    body.style.fontSize = fontsize1 + "px" 
})
              
            
!
999px

Console