Commits

Tom V committed 4335006

show the user which implementation was detected

Comments (0)

Files changed (1)

 			$('#players').hide();
 			var impl = $(this).attr('href').replace("#", "");
 			var opts = {};
-			if (impl !== "detect") {
+			if (impl === "detect") {
+                                $('#using').text(' - using ' + $.shitSound.detectImplementation());
+                        } else {
 				opts.useImplementation = impl;
 			}
 			$.snd.init(opts, function () {
 <div id="intro">Please select an implementation to use first...</div>
 
 <ul id="implementations">
-	<li><a href="#detect">auto detect</a></li>
+	<li><a href="#detect">auto detect</a><span id="using"></span></li>
 	<li><a href="#html5">html5, using the html5 audio tag.</a></li>
 	<li><a href="#soundmanager1">soundmanager1, for old flash 7</a></li>
 	<li><a href="#soundmanager2">soundmanager2, for modern flash (8,9,10+)</a></li>