mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 14:56:13 -06:00
category problem solved in new ad, rtl page
This commit is contained in:
parent
2b5b2c555b
commit
37d0da33dc
@ -66,9 +66,15 @@ $(document).ready(function () {
|
|||||||
$(catId).closest('.cat-item-2').show().addClass('focus-select')
|
$(catId).closest('.cat-item-2').show().addClass('focus-select')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Auto scroll right
|
// Auto scroll right or left
|
||||||
let categoryTab = $('.category-tab');
|
let categoryTab = $('.category-tab');
|
||||||
let pos = categoryTab.scrollLeft() + categoryTab.width();
|
let pos;
|
||||||
|
if (isRtl){
|
||||||
|
pos = categoryTab.scrollLeft() - (categoryTab.width() * 2);
|
||||||
|
$('.cat-item-3').css('display', 'flex');
|
||||||
|
} else {
|
||||||
|
pos = categoryTab.scrollLeft() + categoryTab.width();
|
||||||
|
}
|
||||||
categoryTab.animate( {scrollLeft: pos}, 1000);
|
categoryTab.animate( {scrollLeft: pos}, 1000);
|
||||||
},
|
},
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|||||||
@ -45,11 +45,13 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<div class="cat-item mb-2 shadow-sm border rounded align-items-center">
|
<div class="cat-item mb-2 shadow-sm border rounded align-items-center mr-2">
|
||||||
<div class="cat-item-3">
|
<div class="cat-item-3">
|
||||||
<div class="section next-stap post-option post-icon px-4 text-center py-2">
|
<div class="section next-stap post-option post-icon px-4 text-center py-2">
|
||||||
{{ img('visiosoft.module.advs::images/check.svg').data|raw }}
|
<div class="cat-item-icons post-icon d-flex align-items-center justify-content-center">
|
||||||
{{ img('visiosoft.module.advs::images/cross.svg').data|raw }}
|
{{ img('visiosoft.module.advs::images/check.svg').data|raw }}
|
||||||
|
{{ img('visiosoft.module.advs::images/cross.svg').data|raw }}
|
||||||
|
</div>
|
||||||
<div class="next-content"></div>
|
<div class="next-content"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -63,7 +65,9 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<script>
|
||||||
|
let isRtl = '{{ locale().isRtl() }}';
|
||||||
|
</script>
|
||||||
{{ addBlock('post-cat/section') }}
|
{{ addBlock('post-cat/section') }}
|
||||||
|
|
||||||
{{ asset_add("scripts.js", "visiosoft.module.advs::js/cats.js") }}
|
{{ asset_add("scripts.js", "visiosoft.module.advs::js/cats.js") }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user