Commit bc691c00daea5d06fc1dcb552ce5f83413c25870

Authored by OlenaKl
1 parent 88cbb04d

V

Showing 2 changed files with 18 additions and 87 deletions   Show diff stats
frontend/views/goods/index.php
@@ -15,10 +15,9 @@ $this->params['breadcrumbs'][] = $this->title; @@ -15,10 +15,9 @@ $this->params['breadcrumbs'][] = $this->title;
15 <a href="" class='navigation'>Акамуляторы(АКБ)</a> 15 <a href="" class='navigation'>Акамуляторы(АКБ)</a>
16 <img src="/images/arrow_dots.png"> 16 <img src="/images/arrow_dots.png">
17 <span>Аккумулятор<span class='detail_name'> 0 092 S30 120: BOSCH</span></span> 17 <span>Аккумулятор<span class='detail_name'> 0 092 S30 120: BOSCH</span></span>
18 - <div class="tovar_card">  
19 18
20 <p class="vin_article">Аккумулятор 0 092 S30 120: BOSCH</p> 19 <p class="vin_article">Аккумулятор 0 092 S30 120: BOSCH</p>
21 - 20 + <div class="tovar_card">
22 <div class="search_span zapchasti"> 21 <div class="search_span zapchasti">
23 22
24 <img src="/images/car1.png" id="zapchasti_car"> 23 <img src="/images/car1.png" id="zapchasti_car">
@@ -74,9 +73,7 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title; @@ -74,9 +73,7 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title;
74 73
75 </div> 74 </div>
76 <div class="vin href"> 75 <div class="vin href">
77 - <p class="button_grey" style="font-size: 14px;  
78 - margin-right: 12px;  
79 -">Скрыть карточку товара</p> 76 + <p class="button_grey" id="button_grey_card">Скрыть карточку товара</p>
80 </div> 77 </div>
81 <div class="vin tables"> 78 <div class="vin tables">
82 79
@@ -487,88 +484,17 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title; @@ -487,88 +484,17 @@ $this-&gt;params[&#39;breadcrumbs&#39;][] = $this-&gt;title;
487 </div> 484 </div>
488 </div> 485 </div>
489 </div> 486 </div>
490 -<div class="slider_block1">  
491 - <div class="tovars">  
492 - <p style="display:inline-block">Наши проекты</p>  
493 - <span><img src="/images/arrow_slider_back.png"></span>  
494 - <span class="number_of">1/</span>  
495 - <span class="general_number">5</span>  
496 - <span><img src="/images/arrow_slider_go.png"></span>  
497 - <div class="slider_tovars">  
498 -  
499 - <table class="block_project">  
500 - <tbody><tr><td>  
501 - <img src="/images/logo-lr-small.png">  
502 - </td></tr>  
503 - <tr><td>  
504 - <a href="">lr.italauto.com.ua</a>  
505 - </td></tr>  
506 - <tr><td>  
507 - <ul>  
508 - <h4>Запчасти на Land Rover<br> и Range Rover</h4>  
509 - <li>Оригинальные запчасти</li>  
510 - <li>Сертифицированый продавец</li>  
511 - <li>Более 300 000 товаров</li>  
512 - </ul>  
513 - </td></tr>  
514 - </tbody></table>  
515 - <table class="block_project">  
516 - <tbody><tr><td>  
517 - <img src="/images/logo-mersedes-small.png">  
518 - </td></tr>  
519 - <tr><td>  
520 - <a href="">lr.italauto.com.ua</a>  
521 - </td></tr>  
522 - <tr><td>  
523 - <ul>  
524 - <h4>Запчасти на<br> Mercedes Benz</h4>  
525 - <li>Оригинальные запчасти</li>  
526 - <li>Сертифицированый продавец</li>  
527 - <li>Более 300 000 товаров</li>  
528 - </ul>  
529 - </td></tr>  
530 - </tbody></table>  
531 - <table class="block_project">  
532 - <tbody><tr><td>  
533 - <img src="/images/logo-fiat-small.png">  
534 - </td></tr>  
535 - <tr><td>  
536 - <a href="">lr.italauto.com.ua</a>  
537 - </td></tr>  
538 - <tr><td>  
539 - <ul>  
540 - <h4>Запчасти на FIAT</h4>  
541 - <li>Оригинальные запчасти</li>  
542 - <li>Сертифицированый продавец</li>  
543 - <li>Более 300 000 товаров</li>  
544 - </ul>  
545 - </td></tr>  
546 - </tbody></table>  
547 - <table class="block_project">  
548 - <tbody><tr><td>  
549 - <img src="/images/logo-lr-small.png">  
550 - </td></tr>  
551 - <tr><td>  
552 - <a href="">lr.italauto.com.ua</a>  
553 - </td></tr>  
554 - <tr><td>  
555 - <ul>  
556 - <h4>Запчасти на Land Rover<br> и Range Rover</h4>  
557 - <li>Оригинальные запчасти</li>  
558 - <li>Сертифицированый продавец</li>  
559 - <li>Более 300 000 товаров</li>  
560 - </ul>  
561 - </td></tr>  
562 - </tbody></table>  
563 -  
564 - </div>  
565 487
566 - </div>  
567 </div> 488 </div>
568 <script type="text/javascript"> 489 <script type="text/javascript">
569 - $('.button_grey').click(function(){ 490 + function changeText() {
  491 + e = document.getElementById('button_grey_card');
  492 + e.innerHTML = e.innerHTML == "Скрыть карточку товара" ? "Открыть карточку товара" : "Скрыть карточку товара";
  493 + }
  494 + $('#button_grey_card').click(function(){
  495 + changeText();
  496 + $(this).toggleClass('change_b');
570 $('.tovar_card').toggleClass('tovar_card_visible'); 497 $('.tovar_card').toggleClass('tovar_card_visible');
571 $('.table').toggleClass('table_height'); 498 $('.table').toggleClass('table_height');
572 - console.log('lasfj')  
573 }); 499 });
574 </script> 500 </script>
575 \ No newline at end of file 501 \ No newline at end of file
frontend/web/css/main.css
@@ -520,12 +520,16 @@ div.required:after { content: &quot; *&quot;; @@ -520,12 +520,16 @@ div.required:after { content: &quot; *&quot;;
520 margin-bottom: -2px; 520 margin-bottom: -2px;
521 } 521 }
522 522
523 -.button_grey{ 523 +#button_grey_card{
524 margin-top: -20px; 524 margin-top: -20px;
  525 + font-size: 14px;
  526 + margin-right: 388px
  527 +}
  528 +.change_b{
  529 + width: 186px;
525 } 530 }
526 -  
527 .table_height{ 531 .table_height{
528 - height: 0px!important; 532 + height: 70px!important;
529 border-bottom: 0px!important; 533 border-bottom: 0px!important;
530 } 534 }
531 .tovar_card_visible{ 535 .tovar_card_visible{
@@ -549,4 +553,5 @@ div.required:after { content: &quot; *&quot;; @@ -549,4 +553,5 @@ div.required:after { content: &quot; *&quot;;
549 .inner_table td{ 553 .inner_table td{
550 vertical-align: middle; 554 vertical-align: middle;
551 border: 0; 555 border: 0;
552 -}  
553 \ No newline at end of file 556 \ No newline at end of file
  557 +}
  558 +