Skip to content

Commit

Permalink
UI4: Web Tools
Browse files Browse the repository at this point in the history
- Replace bootstrap data-* with javascript modal methods
  • Loading branch information
yogykwan committed May 11, 2017
1 parent 76a9765 commit 15360f6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ <h1>Ristorante con Fusion</h1>
</div>
<div class="col-xs-12 col-sm-2">
<p style="padding:40px;"></p>
<a type="button" class="btn btn-warning btn-block"
data-toggle="modal" data-target="#reserveModal">Reserve Table</a>
<a type="button" class="btn btn-warning btn-block" id="showReserve">Reserve Table</a>
</div>
</div>
</div>
Expand All @@ -133,7 +132,7 @@ <h1>Ristorante con Fusion</h1>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<button type="button" class="close" id="closeReserve">&times;</button>
<h4 class="modal-title">Reserve Table </h4>
</div>
<div class="modal-body">
Expand Down Expand Up @@ -190,6 +189,7 @@ <h4 class="modal-title">Reserve Table </h4>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="button" class="btn btn-default" id="cancelReserve">Cancel</button>
</div>
</div>
<div class="alert alert-warning alert-dismissable" role="alert">
Expand Down Expand Up @@ -436,6 +436,15 @@ <h5>Our Address</h5>
$("#carousel-play").click(function () {
$("#mycarousel").carousel('cycle');
});
$("#showReserve").click(function () {
$("#reserveModal").modal("show");
});
$("#closeReserve").click(function () {
$("#reserveModal").modal("hide");
});
$("#cancelReserve").click(function () {
$("#reserveModal").modal("hide");
});
});
</script>

Expand Down

0 comments on commit 15360f6

Please sign in to comment.