svg
This commit is contained in:
@ -310,9 +310,9 @@
|
||||
{% if appthumbheight!=0 %}
|
||||
{% set source="thumbori_"~illustration.illustration %}
|
||||
{% endif %}
|
||||
|
||||
{% set source=source~"?"~illustration.updatetime|date('ymdHis') %}
|
||||
<a href="{{ path("app_illustration_view",{"by":"home","idcat":illustration.category.id,"id":illustration.id}) }}">
|
||||
<div id="illustration{{illustration.id}}" class="grid-item grid-item-size {{class}} {{classmini}} cssfilter no-cache-bg" data-width="{{illustration.width}}" data-background-image="/{{ appAlias }}/uploads/illustration/{{source}}" data-height="{{illustration.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}");">
|
||||
<div id="illustration{{illustration.id}}" class="grid-item grid-item-size {{class}} {{classmini}} cssfilter" data-width="{{illustration.width}}" data-background-image="/{{ appAlias }}/uploads/illustration/{{source}}" data-height="{{illustration.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}");">
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
@ -338,7 +338,7 @@
|
||||
{% set class=" grid-item-size-2 grid-item-size-page" %}
|
||||
|
||||
<a href="{{ path("app_webzine_view",{"by":"home","idcat":webzine.id,"id":page.id}) }}">
|
||||
<div id="webzine{{webzine.id}}" class="grid-item grid-item-size {{class}} cssfilter no-cache-bg" data-width="{{page.width}}" data-background-image="/{{ appAlias }}/uploads/webzine/{{source}}" data-height="{{page.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/webzine/{{source}}");">
|
||||
<div id="webzine{{webzine.id}}" class="grid-item grid-item-size {{class}} cssfilter" data-width="{{page.width}}" data-background-image="/{{ appAlias }}/uploads/webzine/{{source}}" data-height="{{page.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/webzine/{{source}}");">
|
||||
</div>
|
||||
</a>
|
||||
{% endif %}
|
||||
@ -393,28 +393,6 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block localjavascript %}
|
||||
function getNoCacheBgElements() {
|
||||
return document.querySelectorAll('.no-cache-bg');
|
||||
}
|
||||
|
||||
function loadBgImageForElement(element) {
|
||||
element.style['background-image'] =
|
||||
'url('+ element.attributes['data-background-image'].value + '?' + (new Date()).getTime() +')';
|
||||
}
|
||||
|
||||
function loadBgImages() {
|
||||
for(
|
||||
var i = 0, elements = getNoCacheBgElements();
|
||||
i < elements.length;
|
||||
loadBgImageForElement(elements[i]), i++
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
window.onload = function() {
|
||||
loadBgImages();
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
$('body').imagesLoaded(function() {
|
||||
height=Math.max(500,$(window).height());
|
||||
|
@ -281,10 +281,10 @@
|
||||
{% if appthumbheight!=0 %}
|
||||
{% set source="thumbori_"~illustration.illustration %}
|
||||
{% endif %}
|
||||
|
||||
{% set source=source~"?"~illustration.updatetime|date('ymdHis') %}
|
||||
|
||||
<a href="{{ path("app_illustration_view",{"by":"user","idcat":category.id,"id":illustration.id}) }}">
|
||||
<div id="illustration{{illustration.id}}" class="grid-item grid-item-size {{class}} {{classmini}} cssfilter cssfilter-{{category.id}} no-cache-bg" data-width="{{illustration.width}}" data-background-image="/{{ appAlias }}/uploads/illustration/{{source}}" data-height="{{illustration.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}");">
|
||||
<div id="illustration{{illustration.id}}" class="grid-item grid-item-size {{class}} {{classmini}} cssfilter cssfilter-{{category.id}}" data-width="{{illustration.width}}" data-background-image="/{{ appAlias }}/uploads/illustration/{{source}}" data-height="{{illustration.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}");">
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
@ -311,7 +311,7 @@
|
||||
{% set class=" grid-item-size-2 grid-item-size-page" %}
|
||||
|
||||
<a href="{{ path("app_webzine_view",{"idcat":webzine.id,"id":page.id,"by":"user"}) }}">
|
||||
<div id="webzine{{webzine.id}}" class="grid-item grid-item-size {{class}} cssfilter no-cache-bg" data-width="{{page.width}}" data-background-image="/{{ appAlias }}/uploads/webzine/{{source}}" data-height="{{page.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/webzine/{{source}}");">
|
||||
<div id="webzine{{webzine.id}}" class="grid-item grid-item-size {{class}} cssfilter" data-width="{{page.width}}" data-background-image="/{{ appAlias }}/uploads/webzine/{{source}}" data-height="{{page.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/webzine/{{source}}");">
|
||||
</div>
|
||||
</a>
|
||||
{% endif %}
|
||||
@ -400,28 +400,6 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block localjavascript %}
|
||||
function getNoCacheBgElements() {
|
||||
return document.querySelectorAll('.no-cache-bg');
|
||||
}
|
||||
|
||||
function loadBgImageForElement(element) {
|
||||
element.style['background-image'] =
|
||||
'url('+ element.attributes['data-background-image'].value + '?' + (new Date()).getTime() +')';
|
||||
}
|
||||
|
||||
function loadBgImages() {
|
||||
for(
|
||||
var i = 0, elements = getNoCacheBgElements();
|
||||
i < elements.length;
|
||||
loadBgImageForElement(elements[i]), i++
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
window.onload = function() {
|
||||
loadBgImages();
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
$('body').imagesLoaded(function() {
|
||||
height=Math.max(500,$(window).height());
|
||||
|
@ -57,7 +57,7 @@ ILLUSTRATIONS
|
||||
{% set height=30*90/21 %}
|
||||
{% endif %}
|
||||
|
||||
<div style="width:90px; height:{{ height }}px;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}?v={{ random(0, 10000) }}");">
|
||||
<div style="width:90px; height:{{ height }}px;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}?{{illustration.updatetime|date('ymdHis')}});">
|
||||
|
||||
</td>
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
{% set height=30*90/21 %}
|
||||
{% endif %}
|
||||
|
||||
<div style="width:90px; height:{{ height }}px;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}?v={{ random(0, 10000) }}");">
|
||||
<div style="width:90px; height:{{ height }}px;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}?{{illustration.updatetime|date('ymdHis')}});">
|
||||
|
||||
</td>
|
||||
<td>{{ illustration.submittime|date("Y-m-d H:i") }}</td>
|
||||
|
Reference in New Issue
Block a user