Web

<a id="5b4ca6818ddee" rel="wp-video-lightbox" href="https://vimeo.com/203238145?width=800&height=450" title=""></a>    <script>
    /* <![CDATA[ */
    jQuery(document).ready(function($){
        $(function(){
            var width = $(window).innerWidth();
            var setwidth = 800;
            var ratio = 0.5625;
            var height = 450;
            var link = 'https://vimeo.com/203238145?width=800&height=450';
            if(width < setwidth)
            {
                height = Math.floor(width * 0.5625);
                //console.log("device width "+width+", set width "+800+", ratio "+0.5625+", new height "+ height);
                var new_url = wpvl_paramReplace('width', link, width);
                var new_url = wpvl_paramReplace('height', new_url, height);
                $("a#5b4ca6818ddee").attr('href', new_url);
                //console.log(new_url);
            }    
        });
    });
    /* ]]> */
    </script>