Changeset 107907 in spip-zone for _plugins_/medias_responsive_mod/squelettes
- Timestamp:
- Dec 7, 2017, 3:26:48 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/medias_responsive_mod/squelettes/javascript/portfolio_slide.js
r107905 r107907 13 13 var ratio_ecran = $( document ).height() / $( document ).width() * 100; 14 14 $(".portfolio_slide").each(function() { 15 var ratio_max = ratio_ecran;15 var ratio_max = 0; 16 16 $(this).find(".spip_img").each(function(){ 17 17 if ($(this).attr("data-italien-l")) { 18 18 var ratio = $(this).attr("data-italien-h") / $(this).attr("data-italien-l") * 100; 19 ratio_max = Math.m in(ratio, ratio_max);19 ratio_max = Math.max(ratio, ratio_max); 20 20 } 21 21 }); 22 ratio_max = Math.min(ratio_ecran, ratio_max); 22 23 $(this).find(".spip_img").css("padding-bottom", ratio_max+"%"); 23 24 });
Note: See TracChangeset
for help on using the changeset viewer.