From 7405cfc68639b72eea36a1189d816e729c5eb63e Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Thu, 31 Mar 2022 20:41:03 -0400 Subject: [PATCH] Removing unused audio handler shim that turned audio into flash for older browsers. --- media/css/reader/reader.css | 4 - media/js/vendor/audio.js | 722 ------------------------------------ newsblur_web/assets.yml | 1 - 3 files changed, 727 deletions(-) delete mode 100755 media/js/vendor/audio.js diff --git a/media/css/reader/reader.css b/media/css/reader/reader.css index 2e35a40fd..dbbfd36d2 100644 --- a/media/css/reader/reader.css +++ b/media/css/reader/reader.css @@ -4304,10 +4304,6 @@ body { display: block; } -.audiojs audio { - display: none; -} - /* =============== */ /* = User Avatar = */ /* =============== */ diff --git a/media/js/vendor/audio.js b/media/js/vendor/audio.js deleted file mode 100755 index 98392f129..000000000 --- a/media/js/vendor/audio.js +++ /dev/null @@ -1,722 +0,0 @@ -// A cross-browser javascript shim for html5 audio -(function(audiojs, audiojsInstance, container) { - // Use the path to the audio.js file to create relative paths to the swf and player graphics - // Remember that some systems (e.g. ruby on rails) append strings like '?1301478336' to asset paths - var path = (function() { - var re = new RegExp('audio(\.min)?\.js.*'), - scripts = document.getElementsByTagName('script'); - for (var i = 0, ii = scripts.length; i < ii; i++) { - var path = scripts[i].getAttribute('src'); - if(re.test(path)) - { - var f = path.split ( '/' ); - f.pop (); - return f.join ( '/' ) + '/'; - } - } - // when no script found, an empty string causes the least confusion. - return ''; - })(); - - // ##The audiojs interface - // This is the global object which provides an interface for creating new `audiojs` instances. - // It also stores all of the construction helper methods and variables. - container[audiojs] = { - instanceCount: 0, - instances: {}, - // The markup for the swf. It is injected into the page if there is not support for the `