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

              
                <html>
   <head>
      <title>Order Form To WhatsApp</title>
      <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
      <script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
   </head>
<body>
      <video autoplay muted loop>
        <source src="https://creativedesign24.netlify.app/creative-studio/video/concrete-fanmade.mp4" type="video/mp4">
        Your browser does not support the video tag.
    </video>
  <div class="content">
    <div class="container">
        <div class="col-lg-6">
            <h4>Make Order Form To WhatsApp</h4>
            <div class="panel panel-success">
                <div class="panel-heading">
                    Send To WhatsApp
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <label>Name</label>
                        <input type="text" name="name" class="form-control" placeholder="Name" id="name">
                    </div>
                    <div class="form-group">
                        <label>E-mail</label>
                        <input type="email" name="email" class="form-control" placeholder="E-mail" id="email">
                    </div>
                    <div class="form-group">
                        <label>No. WhatsApp</label>
                        <input type="text" name="phone" class="form-control" placeholder="No. WhatsApp" id="phone">
                    </div>
                    <div class="form-group">
                        <label>Choose Product</label>
                        <select name="product" class="form-control" id="product">
                            <option value="">-- Choose Package --</option>
                            <option value="produk_1">Package 1</option>
                            <option value="produk_2">Package 2</option>
                            <option value="produk_3">Package 3</option>
                          <option value="produk_4">Package 4</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>Additional Note </label>
                        <textarea name="description" class="form-control" rows="9" id="description"></textarea>
                    </div>
                    <div class="form-group">
                        <button class="btn btn-success send">Send Form Via WhatsApp</button>
                    </div>
 
                    <div id="text-info"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="slider-social d-md-block d-none">
		<img src="https://concrete.istanamuara.com/innovative1/img/b9-trans.png" id="slider-inner-img">
        </div>  
    
    </div>
</body>
</html>
              
            
!

CSS

              
                body {
 background-image: url("https://clouds.kliendk.my.id/images/parallax-video.jpg");
 background-color: #f2f2f2;
 background-size:cover; 
}

.panel-heading {
background-color: #f2f2f2;
}

video {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; 
            z-index: -1; 
        }

 .content {
            position: relative;
            z-index: 1;
            color: white;
            text-align: center;
        }

body, html {
            margin: 0;
            padding: 0;
        }
.slider-social {
    display: inline-block;
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    right: 0px;
    z-index: 13;
}
              
            
!

JS

              
                $(document).on('click','.send', function(){
    /* Form Input */
    var input_name          = $("#name").val(),
        input_email         = $("#email").val(),
        input_phone         = $("#phone").val(),
        input_product       = $("#product").val(),
        input_description   = $("#description").val();
 
    /* Whatsapp Setting */
    var walink      = 'https://web.whatsapp.com/send',
        phone       = '6289605552515',
        text        = 'Hello I want to make website',
        text_yes    = 'Your order was successfully sent.',
        text_no     = 'Fill this form to order.';
 
    /* Smartphone Support */
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
        var walink = 'whatsapp://send';
    }
 
    if(input_name != "" && input_phone != "" && input_product != ""){
        /* Whatsapp URL */
        var checkout_whatsapp = walink + '?phone=' + phone + '&text=' + text + '%0A%0A' +
            '*Nama* : ' + input_name + '%0A' +
            '*Email* : ' + input_email + '%0A' +
            '*No. Whatsapp* : ' + input_phone + '%0A' +
            '*Product* : ' + input_product + '%0A' +
            '*Additional Note* : ' + input_description + '%0A';
 
        /* Whatsapp Window Open */
        window.open(checkout_whatsapp,'_blank');
        document.getElementById("text-info").innerHTML = '<div class="alert alert-success">'+text_yes+'</div>';
    } else {
        document.getElementById("text-info").innerHTML = '<div class="alert alert-danger">'+text_no+'</div>';
    }
});
              
            
!
999px

Console