]> _ Git - cubedesigners-v7.git/commitdiff
wait #3376 @0.75
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 10 Apr 2020 09:13:02 +0000 (09:13 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 10 Apr 2020 09:13:02 +0000 (09:13 +0000)
js/casestudies.js
js/common.js
less/casestudies_detail.less

index 21d4a693c5dd85f2d406f54800419c8be5c16425..2a5f7a4288d99ccc8deb19e1bd821e4b9ac3587a 100644 (file)
@@ -1,14 +1,14 @@
 TO_LOAD_ONCE[TO_LOAD_ONCE.length] = 'load_casestudies();';
 
 function load_casestudies() {
-  $('#casestudies-list-filter').selectric({
-    maxHeight: 450,
-    arrowButtonMarkup: '', // Disable dropdown element since we are using an SVG in the background
-    disableOnMobile: true,
-    onChange: function(element) {
-      $(element).change(); // Trigger change on select box so isotope will update (see isotope-select.js)
-    },
-  });
+    $('#casestudies-list-filter').selectric({
+        maxHeight: 450,
+        arrowButtonMarkup: '', // Disable dropdown element since we are using an SVG in the background
+        disableOnMobile: true,
+        onChange: function (element) {
+            $(element).change(); // Trigger change on select box so isotope will update (see isotope-select.js)
+        },
+    });
 }
 
 
index de8f8729fe7ac9583c806981ba651baea8d13524..b8594c2e2203101e3479ad02891e495c9242122a 100644 (file)
@@ -4,7 +4,7 @@ registerLoader(load_commons_once, true);
 function load_commons_once() {
 
     // Modify WOW.js to allow resetting animated status (see taglist.js)
-    WOW.prototype.addBox = function(element){
+    WOW.prototype.addBox = function (element) {
         this.boxes.push(element);
     };
     window.wow = new WOW();
@@ -77,7 +77,11 @@ function load_commons() {
 }
 
 function resize() {
-
+    $('.detail-visuel iframe.oam').each(function () {
+        var ratio = parseInt($(this).attr('width')) / parseInt($(this).attr('height'));
+        var height = $(this).outerWidth() / ratio;
+        $(this).css('height', height);
+    });
 }
 
 function orientationchange() {
index 8d03bc18ec6c4ad0f1a867444c2a71d6656e2382..a9798eaeaa1d2f8a5298a725aa34c25ff47a88df 100644 (file)
                                // (caused by images being inline elements and having space for character descenders).
                                // This is a better solution than setting it to display:block because images can still be aligned this way.
                        }
+
+                       iframe.oam{
+                               max-width: 100%;
+                       }
                }
 
                .detail-video-background {