Commit e4665f9576e07b2da2602344ac90b3460e3362a1
1 parent
d58de2a6
Стрелочки на аккордеоне
Showing
3 changed files
with
22 additions
and
2 deletions
Show diff stats
frontend/views/site/index.php
| ... | ... | @@ -534,8 +534,8 @@ $this->registerJs($js, View::POS_END); |
| 534 | 534 | <!-- /#content --> |
| 535 | 535 | |
| 536 | 536 | <!-- only with map from google--> |
| 537 | -<section id="section4"> | |
| 537 | +<div id="section4"> | |
| 538 | 538 | <div id="map"> |
| 539 | 539 | |
| 540 | 540 | </div> |
| 541 | -</section> | |
| 542 | 541 | \ No newline at end of file |
| 542 | +</div> | |
| 543 | 543 | \ No newline at end of file | ... | ... |
frontend/web/css/style.css
| ... | ... | @@ -173,4 +173,20 @@ a.sqre_btn { |
| 173 | 173 | background: #0080ca; |
| 174 | 174 | padding: 50px 0; |
| 175 | 175 | color: #ffffff; |
| 176 | +} | |
| 177 | +.panel-heading{ | |
| 178 | + position:relative; | |
| 179 | +} | |
| 180 | +.panel-heading:before{ | |
| 181 | + content: "\f106"; | |
| 182 | + font-family: 'FontAwesome'; | |
| 183 | + display: block; | |
| 184 | + font-size: 20px; | |
| 185 | + position: absolute; | |
| 186 | + top: 0; | |
| 187 | + line-height: 44px; | |
| 188 | + right: 15px; | |
| 189 | +} | |
| 190 | +.panel-heading.active:before{ | |
| 191 | + content: "\f107"; | |
| 176 | 192 | } |
| 177 | 193 | \ No newline at end of file | ... | ... |
frontend/web/js/script.js
| ... | ... | @@ -256,5 +256,9 @@ $( |
| 256 | 256 | $(".modal-title#Login").text($(this).data('title')); |
| 257 | 257 | $(".field-feedback-title #feedback-title").val($(this).data('title')); |
| 258 | 258 | }); |
| 259 | + $(".panel-collapse.collapse.in").parent().find(".panel-heading").addClass("active"); | |
| 260 | + $(".panel-heading a").on('click', function(){ | |
| 261 | + $(this).parent().parent().toggleClass("active"); | |
| 262 | + }); | |
| 259 | 263 | } |
| 260 | 264 | ); |
| 261 | 265 | \ No newline at end of file | ... | ... |