"AWI Call Log"
Bootstrap 4.1.1 Snippet by errorteam10

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="col-md-12"> <div class="container"> <div class="row"> <div class="col-md-12"><button class="btn btn-success" id="callLogStart">Start Call</button></div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> <div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div><div class="col-md-6"> <div class="card card-body"> This is some content. </div> </div> </div> </div> </div> <div class="call-container invisible col-md-6 sticky-bottom" id="callLogAnchor"> <div class="card shadow-sm"> <div class="card-header call-header"> <strong>Time: 1.40</strong> <button type="button" class="close" id="callLogExit"> <span aria-hidden="true">×</span> </button> </div> <div class="card-body call-body"> <form class="row"> <div class="form-group col-md-4"> <input class="form-control" type="text" placeholder="Call Reason" id="callReason"/> <br> <input class="form-control" type="text" placeholder="Phone Number" id="callPhoneNumber"/> </div> <div class="col-md-8 form-group" > <textarea class="form-control" rows="4" placeholder="Notes" id="Call_Notes"></textarea> </div> </form> </div> </div> </div>
.call-container { position: fixed; bottom: 0px; margin-bottom:70px; } .invisible { visibility: hidden; tansition: 3s; } .visible { visibility: visible; transition: 3s; } .call-container .card-header { background-color: #9b171d!important; color: white; } .call-container .card-body { background-color: #f7f7f7; padding-bottom: 0px; } .call-container .close { color: white; } .call-container .card-footer { padding: 0px; border: 0px; } .btn-square { border-radius: 0px; margin: 5px; }
$("#callLogStart").click(function(e){ alert("Button Clicked"); $("#callLogAnchor").addClass('visible'); $("#callLogAnchor").removeClass('invisible'); $("#callLogStart").text('Save Call').addClass('btn-info').removeClass('btn-success').attr('id', "callLogSave"); }); $("#callLogExit").click(function(e){ alert("Button Clicked"); $("#callLogAnchor").addClass('invisible'); $("#callLogAnchor").removeClass('visible'); $("#callLogSave").text('Resume Call').addClass('btn-primary').removeClass('btn-secondary').attr('id', "callLogStart"); }); $("#callLogSave").click(function(e){ var values; values.subject = $("#callReason").value(); values.phone = $("#callPhoneNumber").value(); values.note = $("#Call_Notes").value(); console.log(values); $("#callLogSave").text('Saved Call').addClass('btn-success').removeClass('btn-primary').attr('id', "callLogStart"); });

Related: See More


Questions / Comments: