aboutsummaryrefslogtreecommitdiff
path: root/doc/slides/s6/jquery.microsoft.js
blob: f85af8aa9823139f172ea69326984c304cbf63f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$(document).ready( function() {

    // 1) remove all content 
    $( 'body > *' ).remove();
          
    // 2) show banner  
    $( "<div>" ).html(
       "<p>"
       + "Microsoft's Internet Explorer browser has no built-in vector graphics machinery "
       + "required for 'loss-free' gradient background themes."
       + "</p>"       
       + "<p>"
       + "Please <span style='background: yellow'>upgrade to a better browser</span> "
       + "such as <a href='http://getfirefox.com'>Firefox</a>, <a href='http://www.opera.com/download'>Opera</a>, "
       + "<a href='http://google.com/chrome'>Chrome</a>, <a href='http://apple.com/safari/download'>Safari</a> or others "
       + "with built-in vector graphics machinery and much more. "
       + "(Learn more or post questions or comments "
       + "at the <a href='http://slideshow.rubyforge.org'>Slide Show (S9)</a> project site. Thanks!)"
       + "</p>"      
     )
     .css( {   
       border: 'red solid thick',
       padding: '1em',
       fontFamily: 'sans-serif',
       fontWeight: 'bold' } )
     .prependTo( 'body' );    
  }
);