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)
+ },
+ });
}
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();
}
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() {
// (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 {