Permalink
Browse files

Make site usable for IE8 folks

Changed indexOf to jQuery alternative that internally
  uses native indexOf if that is available

Modify CSS to display default background-color - makes button
  non-transparent in IE

Signed-off-by: Aleksandrs Ļedovskis <aleksandrs@ledovskis.lv>
  • Loading branch information...
1 parent 0aa78e7 commit fb3edfa64be4cd211e429dd16510fc9d36c6ed3e @aleksandrs-ledovskis aleksandrs-ledovskis committed Jan 19, 2014
Showing with 5 additions and 2 deletions.
  1. +2 −2 foopy.js
  2. +3 −0 style.css
View
@@ -44,7 +44,7 @@
groupNode = document.getElementById(group);
if (!stack.length || stack[stack.length - 1] !== group || choiceId) {
- if ( stack.indexOf(group) < 0 ) {
+ if ( $.inArray(group, stack) < 0 ) {
stack.push(group);
}
@@ -132,7 +132,7 @@
collector = shuffle(collector)
if (choiceId) {
- choiceIndex.push(collector.indexOf(memo));
+ choiceIndex.push( $.inArray(memo, collector) );
}
choices.push(collector);
View
@@ -138,6 +138,7 @@ a {
}
#ok a {
+ background-color: #84C83C;
background: -moz-linear-gradient(#84C83C, #66AA1E) repeat scroll 0 0 #84C83C;
background: -webkit-linear-gradient(#84C83C, #66AA1E) repeat scroll 0 0 #84C83C;
background: -o-linear-gradient(#84C83C, #66AA1E) repeat scroll 0 0 #84C83C;
@@ -146,6 +147,7 @@ a {
}
#next a {
+ background-color: #669BE1;
background: -moz-linear-gradient(#669BE1, #487DC3) repeat scroll 0 0 #669BE1;
background: -webkit-linear-gradient(#669BE1, #487DC3) repeat scroll 0 0 #669BE1;
background: -o-linear-gradient(#669BE1, #487DC3) repeat scroll 0 0 #669BE1;
@@ -154,6 +156,7 @@ a {
}
#back a {
+ background-color: #F19932;
background: -moz-linear-gradient(#F19932, #D37B14) repeat scroll 0 0 #F19932;
background: -webkit-linear-gradient(#F19932, #D37B14) repeat scroll 0 0 #F19932;
background: -o-linear-gradient(#F19932, #D37B14) repeat scroll 0 0 #F19932;

0 comments on commit fb3edfa

Please sign in to comment.