Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 219

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 226
turn on the sound

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 296

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 329

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 362

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 391

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 407

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 425

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 451

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 493

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 598

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 629

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 671

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 702

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 723

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 749

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 797

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 830

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 846

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 867

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 903

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 940

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 966

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1051

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1091

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1115

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1150

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1176

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1214

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1262

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1293

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1348

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1378

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1403

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1429

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1474

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1495

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1533

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1569

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1753

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1788

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1827

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1906

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 1958

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2087

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2107

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2125

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2166

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2188

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2208

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2239

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2271

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2293

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2319

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2327

Warning: Undefined variable $ShowThis in /opt/homebrew/var/www/uni_quiz/index.php on line 2498
jump to another question
jump to another section
  1. introducing UNI creating solutions and UNI
  2. minimalistic design
  3. about the documentation and help
  4. search for something on a web page
  5. jumping to the top or bottom of a page
  6. open a link in a new tab or window
  7. server record insert comparisons
just for fun

Are you curious about how the "test your knowledge" game was put together? If so, read along.

We wanted to make something fun for those of you who wanted to test your knowledge. We started off by creating the questions and answers, allowing for 2 answers (for true and false or yes and no) up to 9 different answers. To make it more quiz-show game-like, we added CSS to slowly reveal the questions and possible answers.

We added game-show music where we could. Unfortunately Apple does not allow music to be played automatically so the option has been removed from some browsers.

For the game-show music we performed and recorded "tracks" recorded at 120 beats per minute (BPM) all for the same length, fading in and fading out. We recorded a drum solo. Then another drum solo. Then another. Then we did the same for many different instruments. The unique thing is that use PHP and HTML to somewhat randomly put different parts together to create a unique song. So every time you get a correct answer, your "happy" song gets pieced together with a drum fill, keyboard, a basic drum beat, just the hi hat, and bass guitar, all in random combinations.

Each track was published at 64kbps (Kilobits Per Second) which is a pretty low quality. This setting was used to keep the file sizes small for fast page downloads. Some of the hi hat and cymbal crashes are slightly distorted at that quality but we actually liked it because it sounds a little techno. Each track is 165KB (KiloBytes) so even putting 4 different parts together only requires downloading 660KB (4*165) which is just over a half of a MB (MegaByte) which is pretty small by today's web page size standards.

We did the same thing for sound effects for getting the answer right or wrong. We recorded one person cheering many times and pieced those together with music editing software to create one crowd cheer. Multiple crowd cheers were created. Then we randomly select and play one of the cheers. We also randomly layer whistles and other things to make it more authentic. While we were at it, we set the program to somewhat randomly adjust the volume level of each track just to keep things more interesting.

We're not super-huge fans of JavaScript, but it does have its place and we use it some. To make the quizzes more entertaining, when you get answer correct, we use PHP to randomly select a confetti celebration out of quite a few celebrations created just for you. HTML is used for content, CSS is used for styling, and JavaScript is used for action on a web page. We are very intentional on everything in UNI.

So was it worth it to spend time on this? We think so. Your experience with UNI is very important to us. We want you to have the best experience possible.

So now you how the fun was created. Enjoy.