odoo.define('website.mobile', function (require) { 'use strict'; var core = require('web.core'); var Dialog = require('web.Dialog'); var websiteNavbarData = require('website.navbar'); var _t = core._t; var MobilePreviewDialog = Dialog.extend({ /** * Tweaks the modal so that it appears as a phone and modifies the iframe * rendering to show more accurate mobile view. * * @override */ start: function () { var self = this; this.$modal.addClass('oe_mobile_preview'); this.$modal.on('click', '.modal-header', function () { self.$el.toggleClass('o_invert_orientation'); }); this.$iframe = $('