summaryrefslogtreecommitdiff
path: root/js/smartphone-spoiler.js
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-03-31 11:20:18 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-03-31 11:20:18 +1100
commit6a9169657d5b5dea09fe7d2dbabe49a8a4845d05 (patch)
treec57c9c440e8ae88875008591c56add350c4b8a5c /js/smartphone-spoiler.js
parent2df1ebd88c266d984cbaa6c26917c2ea89c2ae0e (diff)
Merged js/ into https://github.com/savetheinternet/Tinyboard
Diffstat (limited to 'js/smartphone-spoiler.js')
-rw-r--r--js/smartphone-spoiler.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/js/smartphone-spoiler.js b/js/smartphone-spoiler.js
deleted file mode 100644
index 5dca82b7..00000000
--- a/js/smartphone-spoiler.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * smartphone-spoiler.js
- * https://github.com/savetheinternet/Tinyboard-Tools/blob/master/js/smartphone-spoiler.js
- *
- * Released under the MIT license
- * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org>
- *
- * Usage:
- * $config['additional_javascript'][] = 'js/smartphone-spoiler.js';
- *
- */
-
-$(document).ready(function(){
- /* This needs to be expanded upon: */
- var is_mobile = navigator.userAgent.match(/iPhone|iPod|iPad|Android/i);
-
- if(is_mobile) {
- $('span.spoiler').each(function() {
- $(this).click(function() {
- if($(this).hasClass('show'))
- $(this).css('color', 'black').removeClass('show');
- else
- $(this).css('color', 'white').addClass('show');
- });
- });
- }
-});
-