1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 07:50:23 +01:00

smartphone-spoiler.js: add windows phone/tablet user agents

This commit is contained in:
Marcin Łabanowski 2012-12-29 16:30:46 +01:00 committed by Michael Foster
parent 93a8ac1d05
commit cd62252f60

View File

@ -11,7 +11,7 @@
*/
onready(function(){
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook/i)) {
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook|Windows Phone|Tablet PC|Windows CE|IEMobile/i)) {
var spoilers = document.getElementsByClassName('spoiler');
for(var i = 0; i < spoilers.length; i++) {
spoilers[i].onmousedown = function() {