Advertisement
orksnork

Untitled

Jul 15th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 1.04 KB | None | 0 0
  1. var current = question.number;
  2. var collapsed = 0;
  3. var variable = ""
  4. var timeout = "300"
  5. var fadespeed = "200"
  6. var rolls = 0
  7. $(document).ready(function() {
  8.  
  9.     randomQuestion();
  10.     writeQueryVariable();
  11.     writeCount();
  12.     writeRolls();
  13.    
  14.     $('body').on('click', '#flip-1', function(){
  15.         fadeQuestion();
  16.         $('#answer-1').fadeIn(fadespeed);
  17.         setTimeout(writeQuestion, timeout);
  18.     });
  19.    
  20.     $('body').on('click', '#flip-2', function(){
  21.         fadeQuestion();
  22.         $('#answer-2').fadeIn(fadespeed);
  23.         setTimeout(writeQuestion, timeout);
  24.     });
  25.    
  26.     $('body').on('click', '.flop', flopFull);  
  27.     $('body').on('click', '.btn-submit', panelFlip);   
  28.     $('body').on('click', '#closelink', formX );
  29.            
  30.     if (variable == "") {
  31.         mainLoad();
  32.         htmlVariable("nothing");
  33.         }
  34.     else if (variable != ""){
  35.         numberofquestions = questions.length;
  36.         if (variable <= numberofquestions) {
  37.             question = questions[variable]
  38.             mainLoad();
  39.             htmlVariable("in bounds");
  40.             randomQuestion();
  41.             }
  42.         else {
  43.             mainLoad();
  44.             htmlVariable("outta bounds");
  45.         }
  46.     }
  47.    
  48. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement