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

+ 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.


                <!DOCTYPE html>
<html lang="en">
    <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>
    <!-- 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 for="">Text Color
        <input type="text" class="js-textColor"style="padding: 10px; margin: 20px;">

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

    <script src="./ReactiveInput.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 = = bgColor1   
textColor.addEventListener("keyup", function (event) {
    // for bg
    var textColor1 = = textColor1  
fontsize.addEventListener("keyup", function (event) {
    // for bg
    var fontsize1 =
    Number(fontsize1) = fontsize1 + "px"