Mercurial > hg > Papers > 2017 > tatsuki-master
comparison slide/js/jquery.microsoft.js @ 27:796c18a4aa0d
add slide
author | tatsuki |
---|---|
date | Sun, 12 Feb 2017 16:24:24 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
26:4365c210d1cb | 27:796c18a4aa0d |
---|---|
1 | |
2 | |
3 $(document).ready( function() { | |
4 | |
5 // 1) remove all content | |
6 $( 'body > *' ).remove(); | |
7 | |
8 // 2) show banner | |
9 $( "<div>" ).html( | |
10 "<p>" | |
11 + "Microsoft's Internet Explorer browser has no built-in vector graphics machinery " | |
12 + "required for 'loss-free' gradient background themes." | |
13 + "</p>" | |
14 + "<p>" | |
15 + "Please <span style='background: yellow'>upgrade to a better browser</span> " | |
16 + "such as <a href='http://getfirefox.com'>Firefox</a>, <a href='http://www.opera.com/download'>Opera</a>, " | |
17 + "<a href='http://google.com/chrome'>Chrome</a>, <a href='http://apple.com/safari/download'>Safari</a> or others " | |
18 + "with built-in vector graphics machinery and much more. " | |
19 + "(Learn more or post questions or comments " | |
20 + "at the <a href='http://slideshow.rubyforge.org'>Slide Show (S9)</a> project site. Thanks!)" | |
21 + "</p>" | |
22 ) | |
23 .css( { | |
24 border: 'red solid thick', | |
25 padding: '1em', | |
26 fontFamily: 'sans-serif', | |
27 fontWeight: 'bold' } ) | |
28 .prependTo( 'body' ); | |
29 } | |
30 ); | |
31 |