Compare commits

...

2 Commits

Author SHA1 Message Date
aslan 54e3706dd0 Merge pull request 'new-design changes' (#22) from RomanGolienko/Roman_applicant-site:new-design into main
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Failing after 1m48s Details
Tests & Lint & Deploy to Railway / deploy (push) Has been skipped Details
Reviewed-on: http://172.17.254.104/aslan/applicant-site/pulls/22
2024-03-12 09:33:27 +03:00
ROMANGOLIENKO f1cefa1184 new-design changes
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (pull_request) Failing after 1m48s Details
2024-03-07 16:27:19 +03:00
1 changed files with 5 additions and 3 deletions

View File

@ -494,6 +494,7 @@
</div> </div>
<script>window.onload = function() { <script>window.onload = function() {
$(".calcul input").click(function(){ $(".calcul input").click(function(){
$('.text-remove').remove();
let selected = []; let predmets=''; let selected = []; let predmets='';
$('.calcul input:checked').each(function() { $('.calcul input:checked').each(function() {
selected.push($(this).val()); selected.push($(this).val());
@ -501,10 +502,11 @@
}); });
console.log(selected); console.log(selected);
$(".calcul_rez").html('<tr><td>обрабатываем</td></tr>');
$.ajax({ url: "{{ route('calculator') }}", dataType: 'json', cache:false,type: "POST",data: 'ajx=get_napr&format=html&predmets='+JSON.stringify(selected), $.ajax({ url: "{{ route('calculator') }}", dataType: 'json', cache:false,type: "POST",data: 'ajx=get_napr&format=html&predmets='+JSON.stringify(selected),
success: function(data) { success: function(data) {
$(".calcul_rez").html(data.html); $(".calcul_rez").html('<tr><th> Факультет </th><th> Направление </th><th align="right"> Период обучения (в годах)</th></tr>');
$(".calcul_rez").append(data.html);
console.log(data); console.log(data);
}}); }});
}); });
@ -517,7 +519,7 @@
<div class="d-md-flex d-none border border-white py-5 justify-content-center" style="border-radius: 50px;"> <div class="d-md-flex d-none border border-white py-5 justify-content-center" style="border-radius: 50px;">
<table class="table1 text-white mx-0 p-2 calcul_rez" style="width: 90%; font-family: Geologica-ExtraLight;"> <table class="table1 text-white mx-0 p-2 calcul_rez" style="width: 90%; font-family: Geologica-ExtraLight;">
Выберите предметы <span class="text-remove">Выберите предметы</span>
</table> </table>