admin-theme reverted. scripts moved. one necessary variable assigned.

This commit is contained in:
Metehan Celik 2022-01-12 15:51:25 +03:00
parent 31485e560f
commit 923b08ff67
3 changed files with 17 additions and 17 deletions

View File

@ -1,3 +1,13 @@
$(".clickable-row").click(function () { $(".clickable-row").click(function () {
window.location = $(this).data("href"); window.location = $(this).data("href");
}); });
$('.hover-area').mouseover((e) => {
var el = $(e);
var img = $(`.${$(el[0].target).data('id')}`);
img.siblings('img').hide();
img.show();
});

View File

@ -14,12 +14,14 @@
<div class="d-flex flex-column product-hb gallery-card pb-3 px-1 pt-1 border shadow-sm rounded"> <div class="d-flex flex-column product-hb gallery-card pb-3 px-1 pt-1 border shadow-sm rounded">
<div class="product-image-hb p-sm-3 p-1"> <div class="product-image-hb p-sm-3 p-1">
<a href="{{ adv.detail_url }}" class="imgs" id="{{ adv.id }}"> <a href="{{ adv.detail_url }}" class="imgs" id="{{ adv.id }}">
{% for key,photo in adv.getViewPhotoUrl|slice(0, 3) %} {% set slicedPhotos = adv.getViewPhotoUrl|slice(0,3) %}
{% for key,photo in slicedPhotos %}
<img src="{{ photo }}" class="product-image-in ads-img img-{{ adv.id ~ '-' ~ key }}" alt=""> <img src="{{ photo }}" class="product-image-in ads-img img-{{ adv.id ~ '-' ~ key }}" alt="">
{% endfor %} {% endfor %}
<div class="hover-area"> <div class="hover-area">
{% for key, photo in adv.getViewPhotoUrl|(0,3) %} {% for key, photo in slicedPhotos %}
<div class="hover-{{ key }}" data-parent="{{ adv.id }}" data-id="img-{{ adv.id ~ '-' ~ key }}"></div> <div class="hover-{{ key }}" data-parent="{{ adv.id }}" data-id="img-{{ adv.id ~ '-' ~ key }}"></div>
{% endfor %} {% endfor %}
</div> </div>
@ -44,19 +46,8 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
<script>
$('.ads-img').first().css('display', 'block');
$('.hover-area').mouseover((e) => { {{ asset_add("scripts.js", "visiosoft.module.advs::js/list-table.js") }}
var el = $(e);
var img = $(`.${$(el[0].target).data('id')}`);
img.siblings('img').css('display', 'none');
img.css('display', 'block');
});
</script>
{% endblock %} {% endblock %}
@ -66,7 +57,6 @@
{% endblock %} {% endblock %}
{% block customjs %} {% block customjs %}
{{ asset_add("scripts.js", "visiosoft.module.advs::js/list-table.js") }}
{% include "theme::scroll-modal" %} {% include "theme::scroll-modal" %}
{% endblock %} {% endblock %}

View File

@ -164,7 +164,7 @@ $grid-gutter-widths: (
// //
// Font, line-height, and color for body text, headings, and more. // Font, line-height, and color for body text, headings, and more.
$font-family-sans-serif: Roboto, "Helvetica Neue", Arial, sans-serif !default; $font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !default;
$font-family-serif: Georgia, "Times New Roman", Times, serif !default; $font-family-serif: Georgia, "Times New Roman", Times, serif !default;
$font-family-monospace: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default; $font-family-monospace: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
$font-family-base: $font-family-sans-serif !default; $font-family-base: $font-family-sans-serif !default;