smartphone-spoiler.js: Opera Mini support
This commit is contained in:
parent
af3ec3f8c7
commit
c2437737b4
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
onready(function(){
|
onready(function(){
|
||||||
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android/i)) {
|
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini/i)) {
|
||||||
var spoilers = document.getElementsByClassName('spoiler');
|
var spoilers = document.getElementsByClassName('spoiler');
|
||||||
for(var i = 0; i < spoilers.length; i++) {
|
for(var i = 0; i < spoilers.length; i++) {
|
||||||
spoilers[i].onmousedown = function() {
|
spoilers[i].onmousedown = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user