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.


                <!DOCTYPE html>
<html lang="ru">
        .contacts-form {
            max-width: 600px;
            margin: 50px auto;

<div id="app">
<div class="contacts-form">
    <form @submit.prevent="toSend">
        <div class="contacts-form_group clearfix">
            <div class="col-md-4 col-sm-12 contacts-form_input">
                <input placeholder="Ваше имя" type="text" name="name" id="name" required="" v-model.trim="name">
            <div class="col-md-4 col-sm-12 contacts-form_input">
                <input placeholder="Ваш телефон" type="text" name="phone" id="phone" required="" v-model.number="phone">
            <div class="col-md-4 col-sm-12 contacts-form_input">
                <input placeholder="Ваш e-mail" type="email" name="email" id="email" required=""
        <div class="contacts-form_textarea">
              <textarea cols="30" rows="10" placeholder="Ваш запрос" name="message" id="message" required=""
        <div class="contacts-form_end fast">
            <div class="form-btn-submit decor-arrow-btn">
                <input type="submit" value="отправить заявку">

    {{ code }}
<script src=""></script>
<script src=""></script>
    new Vue({
        el: '#app',
        data: {
            titleForm: "Контакты",
            name: "John Doe",
            email: "jo@hnd.oe",
            phone: "333333333",
            message: "текст",
           code: ''
        methods: {
            toSend: function(){
                var data = {
                    "Сообщенние": this.message
                const jsonData = JSON.stringify(data)
                this.code = jsonData
                    method: 'post',
                        url: '',
                        data: jsonData,
                        config: { headers: {'Content-Type': 'multipart/form-data' }}
                .then(function (response) {
                    //handle success
                .catch(function (response) {
                    //handle error