Skip to content

background:black; display:flex; justify-content:center; #18

Description

@syadahsyadah043-code
<title>WhatsApp Widget - (c) Fajar Setya Budi</title> <style> body { margin: 0; } </style>

John Doe

Billing Support

Lorem ipsum dolor sit, amet consectetur adipisicing elit.

Minima tenetur eaque fugit unde odit nobis, maxime cupiditate error beatae.

Dicta provident nam doloribus porro facilis perspiciatis quisquam ratione recusandae totam.

Send
<!-- Toggleable custom form -->
<style>
    .whatsapp-widget {
        max-width: 480px;
        display: none;
    }
    .whatsapp-widget.expanded {
        display: block;
    }
</style>

<button class="button" data-toggle="wa-chat" data-target="#another-support">Toggle</button>

<form id="another-support" class="whatsapp-widget" action="6289613866000" data-chat="another-support">
    <div class="wa-widget-content chat-form">
        <input data-message="name" type="text" placeholder="Your name" required>
        <input data-message="message" type="text" placeholder="Your message" required>
        <button class="chat-send" type="submit" data-toggle="wa-send"><strong>Open Chat</strong></button>
    </div>
</form>
<!-- End -->

<!-- Built in form -->
<form id="general-support" class="wa-widget" action="6289613866111" data-chat="general-support"></form>
<!-- End -->

<script src="dist/js/whatsapp-widget.min.js"></script>
<script>
    var generalSupport = new WhatsAppWidget(document.getElementById('general-support'), {
        name: 'Fajar Setya',
        division: 'General Supports',
        photo: 'images/user.png',
        introduction: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.'
    }, [
        {
            data: 'name',
            type: 'text',
            required: true
        }, {
            data: 'email',
            type: 'email',
            required: false
        }, {
            data: 'message',
            type: 'text',
            required: true
        }
    ]);
    generalSupport.toggle()
</script>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions