Commit 5a11f436e4792bb3b90c86ba1b40a8d8dda83434
1 parent
aefd7900
generate new link
Showing
1 changed file
with
19 additions
and
1 deletions
Show diff stats
src/app/frontend/views/basket_ru.php
| @@ -831,7 +831,25 @@ else | @@ -831,7 +831,25 @@ else | ||
| 831 | 831 | ||
| 832 | <!-- Latest compiled and minified JavaScript --> | 832 | <!-- Latest compiled and minified JavaScript --> |
| 833 | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> | 833 | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> |
| 834 | - | 834 | +<script> |
| 835 | + var str = location.href; | ||
| 836 | + var tag = str.split('#')[1]; | ||
| 837 | + if(tag == "b1"){ | ||
| 838 | + $("#block_4").show(); | ||
| 839 | + $('html, body').animate({ scrollTop: $("#block_4").offset().top }, 500); | ||
| 840 | + $("#basket_1").show(); | ||
| 841 | + } | ||
| 842 | + if(tag == "b2"){ | ||
| 843 | + $("#block_4").show(); | ||
| 844 | + $('html, body').animate({ scrollTop: $("#block_4").offset().top }, 500); | ||
| 845 | + $("#basket_2").show(); | ||
| 846 | + } | ||
| 847 | + if(tag == "b3"){ | ||
| 848 | + $("#block_4").show(); | ||
| 849 | + $('html, body').animate({ scrollTop: $("#block_4").offset().top }, 500); | ||
| 850 | + $("#basket_3").show(); | ||
| 851 | + } | ||
| 852 | +</script> | ||
| 835 | <?php | 853 | <?php |
| 836 | $url = 'http://api.crm.semena.in.ua/'; | 854 | $url = 'http://api.crm.semena.in.ua/'; |
| 837 | $pbKey = 'e2c4edf8698208c4586fdbcddb0195a5'; | 855 | $pbKey = 'e2c4edf8698208c4586fdbcddb0195a5'; |