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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
String pageHTML = "<HTML> " +
"<HEAD>" +
"<link rel=\"stylesheet\" href=\"css/all.css\"> " +
"<link rel=\"stylesheet\" href=\"css/mdpi.css\" media=\"only screen and (-webkit-max-device-pixel-ratio:1.0) and (max-device-width:480px)\">" +
"<link rel=\"stylesheet\" href=\"css/hdpi.css\" media=\"only screen and (-webkit-min-device-pixel-ratio:1.5)\">" +
"<meta name=\"viewport\" content=\"user-scalable=no, width=device-width, target-densitydpi=device-dpi\">" +
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />" +
"<TITLE>Android| "+title+"</TITLE>" +
"<STYLE type=\"text/css\">" +
"P { text-align : justify; font-size:16px; }" +
"BODY { height : 100%; width : auto; }" +
".conteneur_liste {" +
"max-width : "+mScreenWidth+"px;" +
"position: relative;" +
"float: left;" +
"height: auto;" +
"font-family:Arial, Helvetica, sans-serif;" +
"font-size: 16px;" +
"text-align: justify;" +
"bottommargin: 0; " +
"}" +
".conteneur_liste img {" +
"width : "+(mScreenWidth-35)+"px;" +
"position:relative;" +
"float:left;" +
"height:auto;" +
"padding-left:5px;" +
"padding-bottom:10px;" +
"margin:0;" +
"}" +
".auteur {" +
"height:auto;" +
"text-align:right;" +
"color:black;" +
"font-family:bold;" +
"padding-bottom:10px;" +
"}" +
"</STYLE>" +
"<script type=\"text/javascript\">" +
"var currentSize = 16;" +
"var minSize = 12;" +
"var maxSize = 24;" +
"var h = 0;" +
"function AgrandirTaille() {" +
"currentSize += 2;" +
"currentSize = (currentSize<minSize) ? minSize : ((currentSize>maxSize) ? maxSize : currentSize);" +
"document.getElementById(\"content\").style.fontSize = currentSize+'px';" +
"}" +
"function ReduireTaille() {" +
"currentSize = currentSize-2;" +
"currentSize = (currentSize<minSize) ? minSize : ((currentSize>maxSize) ? maxSize : currentSize);" +
"document.getElementById(\"content\").style.fontSize = currentSize+'px';" +
"}" +
"</script>" +
"</HEAD>" +
"<BODY>" +
"<div class=\"conteneur_liste\">"+
"<p id=\"content\">"+description+"</p>"+
"<p class=\"auteur\">"+auteur+"</p>"+
"</div>"+
"</BODY>" +
"</HTML>"; |
Partager