Begin handling click events

This commit is contained in:
PCoder 2020-06-19 13:13:26 +05:30
parent ffae844ee5
commit 081f81c41c
2 changed files with 15 additions and 4 deletions

View file

@ -15,4 +15,14 @@ $( document ).ready(function() {
$('html,body').scrollTop(scrollmem); $('html,body').scrollTop(scrollmem);
}); });
// Toggle subscription and one-time payments div
$('#li-one-time-charges').click(function() {
console.log("li-one-time-charges clicked");
});
$('#li-subscriptions').click(function() {
console.log("li-one-time-charges clicked");
});
}); });

View file

@ -16,10 +16,10 @@
</div> </div>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a href="#">{% trans "Subscriptions" %}</a></li> <li class="active" id="li-subscriptions"><a href="#">{% trans "Subscriptions" %}</a></li>
<li><a href="#">{% trans "One-time payments" %}</a></li> <li id="li-one-time-payments"><a href="#">{% trans "One-time payments" %}</a></li>
</ul> </ul>
<div class="subscriptions"> <div class="subscriptions" id="subscriptions">
<table class="table table-switch"> <table class="table table-switch">
<thead> <thead>
<tr> <tr>
@ -73,7 +73,8 @@
{% endif %} {% endif %}
</div> </div>
<div class="one-time-charges">
<div id="#one-time-charges" class="one-time-charges invisible">
<table class="table table-switch"> <table class="table table-switch">
<thead> <thead>
<tr> <tr>