Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
swdev:js:javascript_code_snippets [2016/05/20 11:06]
smayr [Audio Support]
swdev:js:javascript_code_snippets [2018/02/09 14:07] (current)
smayr
Line 37: Line 37:
 </code> </code>
 == Query Touch Device == == Query Touch Device ==
-<code html file sample.php>+File ''sample.php'': 
 +<code html >
 <html> <html>
 ... ...
Line 69: Line 70:
 </code> </code>
  
-<code javascript file utils.js>+File ''utils.js'': 
 +<code javascript>
 //------------------------------------------------------------------------ //------------------------------------------------------------------------
 // Test whether client device supports touch.   // Test whether client device supports touch.  
Line 97: Line 99:
  
 Preload audio clips and play them.  Add the following to a webpage: Preload audio clips and play them.  Add the following to a webpage:
-<code html>+<code php>
 <html> <html>
 <head> <head>