o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1348676122.901345: @value" {I" class:EFI"ProcessedAsset;FI"logical_path;F"application.jsI" pathname;FI"0$root/app/assets/javascripts/application.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-09-24T14:26:53-04:00;FI" length;FiI" digest;F"%4017c337190c668fac7ec995024ee924I" source;FI" var showingPlayer; function showMobile() { var modalContents = $('#myModal').html(); var selectedRow = $('#video_0_0'); var playerRow = selectedRow.after('' + modalContents + ''); $('#myModal').remove(); var offset = selectedRow.offset(); window.scrollTo(offset.left, offset.top); initPlayer(); } function showDesktop() { $('#myModal').modal(); $('#myModal').on('hide', function() { window.location.href = '/course'; }); initPlayer(); } function playerResizeListener() { $(window).bind('resize orientationchange', resizePlayer); } function resizePlayer() { var parentHeight = $('.modal-video-box').height(); var parentWidth = $('.modal-video-box').width(); $('#theme_video').css({'width': parentWidth, 'height': parentHeight}); // assume we are parsing a decimal -- http://stackoverflow.com/questions/850341/workarounds-for-javascript-parseint-octal-bug $('#theme_video').attr('width', parseInt(parentWidth, 10)); $('#theme_video').attr('height', parseInt(parentHeight, 10)); } function initPlayer() { jwplayer("theme_video").setup({ image: '/assets/woople-theme/poster.jpg', controlbar: { position: 'bottom' }, bufferlength: 10, file: videoOptions.desktopSrc, height: '100%', modes: [{ type: "flash", src: "/assets/jwplayer/player.swf" }], provider: "video", width: '100%', plugins: { "gapro-2":{} } }); } $(document).ready(function() { if (showingPlayer) { if ($(window).width() < 768) { showMobile(); } else { showDesktop(); } playerResizeListener(); resizePlayer(); } }); ;FI"dependency_digest;F"%1337f94011b19125676b93afc62707c4I"required_paths;F[I"0$root/app/assets/javascripts/application.js;FI"dependency_paths;F[{I" path;FI"!$root/app/assets/javascripts;FI" mtime;FI"2012-09-24T14:26:53-04:00;FI" digest;F"%415dac9e4a4fb73ee6fc8f66284ebf31{I" path;FI"0$root/app/assets/javascripts/application.js;FI" mtime;FI"2012-09-24T14:26:53-04:00;FI" digest;F"%6305acaf0445fca222e1c5afab828d50I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862