summaryrefslogtreecommitdiff
path: root/lib/scripts/helpers.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-01 09:42:08 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-08-01 09:42:08 -0700
commit301f606fd81604b858381a13d0a0359de10ff561 (patch)
treeff108e36310e1c3e236dd16093a09ac77deaf941 /lib/scripts/helpers.js
parent65f0aa62806695ee51cc94679913449b7ad862d6 (diff)
parent9805efa058358e0fcbd3976fa553901cabe0b2e0 (diff)
downloadrpg-301f606fd81604b858381a13d0a0359de10ff561.tar.gz
rpg-301f606fd81604b858381a13d0a0359de10ff561.tar.bz2
Merge pull request #248 from splitbrain/aria
Implemented some ARIA attributes
Diffstat (limited to 'lib/scripts/helpers.js')
-rw-r--r--lib/scripts/helpers.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/scripts/helpers.js b/lib/scripts/helpers.js
index d6f36967d..632c4bff2 100644
--- a/lib/scripts/helpers.js
+++ b/lib/scripts/helpers.js
@@ -3,25 +3,6 @@
*/
/**
- * Very simplistic Flash plugin check, probably works for Flash 8 and higher only
- *
- * @author Andreas Gohr <andi@splitbrain.org>
- */
-function hasFlash(version){
- var ver = 0;
- try{
- if(navigator.plugins != null && navigator.plugins.length > 0){
- ver = navigator.plugins["Shockwave Flash"].description.split(' ')[2].split('.')[0];
- }else{
- ver = (new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))
- .GetVariable("$version").split(' ')[1].split(',')[0];
- }
- }catch(e){ }
-
- return ver >= version;
-}
-
-/**
* A PHP-style substr_replace
*
* Supports negative start and length and omitting length, but not