增加高压空闲调节
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang=fr>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Page de test MicroWebSrv</title>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Page de test MicroWebSrv</h1>
|
||||
<h2>Hello !</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis eget ligula quis libero mollis dapibus. Suspendisse potenti. Nullam facilisis neque et sem. Proin placerat adipiscing urna. Aenean sollicitudin. Mauris lorem erat, fringilla quis, sagittis a, varius sed, nunc. Pellentesque ligula. Nullam egestas eleifend turpis. Vivamus ac sapien. Sed venenatis, ligula ut scelerisque vehicula, erat tellus euismod ipsum, eget faucibus tortor arcu et lectus. Vivamus vel purus. Fusce dignissim tortor quis diam elementum fermentum. Mauris eleifend lorem vel arcu. Vivamus tempus faucibus lectus. Curabitur volutpat ornare mi. Curabitur ac libero. Sed eu elit ac metus egestas iaculis.
|
||||
</p>
|
||||
<br />
|
||||
<hr />
|
||||
<br />
|
||||
<div style="text-align: center">
|
||||
<img src="pdf.png" />
|
||||
<p>
|
||||
Afficher « <a href="test.pdf">un fichier PDF</a> »
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
@@ -0,0 +1,36 @@
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
background-color: white;
|
||||
font-family: Verdana, sans-serif;
|
||||
font-size: 100%;
|
||||
}
|
||||
h1 {
|
||||
font-size: 200%;
|
||||
color: navy;
|
||||
text-align: center;
|
||||
}
|
||||
h2 {
|
||||
font-size: 150%;
|
||||
color: red;
|
||||
padding-left: 15px;
|
||||
}
|
||||
p,ul,li,td {
|
||||
color: black;
|
||||
}
|
||||
a:link {
|
||||
color: green;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:visited {
|
||||
color: gray;
|
||||
}
|
||||
a:hover {
|
||||
color: red;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:active, a:focus {
|
||||
color: red;
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,34 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>TEST</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>BEGIN</h1>
|
||||
{{ py }}
|
||||
def _testFunction(x) :
|
||||
return "IN TEST FUNCTION %s" % x
|
||||
{{ end }}
|
||||
<div style="background-color: black; color: white;">
|
||||
{{ for toto in range(3) }}
|
||||
This is an HTML test...<br />
|
||||
TOTO = {{ toto + 1 }} !<br />
|
||||
{{ for toto2 in range(3) }}
|
||||
TOTO2 = {{ _testFunction(toto2) }}
|
||||
{{ end }}
|
||||
Ok good.<br />
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ _testFunction(100) }}<br />
|
||||
<br />
|
||||
{{ if 2+5 < 3 }}
|
||||
IN IF (1)
|
||||
{{ elif 10+15 != 25 }}
|
||||
IN ELIF (2)
|
||||
{{ elif 10+15 == 25 }}
|
||||
IN ELIF (3)
|
||||
{{ else }}
|
||||
IN ELSE (4)
|
||||
{{ end }}
|
||||
<h1>JC :')</h1>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,78 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>MicroWebSocket Test</title>
|
||||
</head>
|
||||
|
||||
<script language="javascript">
|
||||
|
||||
var output;
|
||||
|
||||
function init()
|
||||
{
|
||||
output = document.getElementById("output");
|
||||
testWebSocket();
|
||||
}
|
||||
|
||||
function testWebSocket()
|
||||
{
|
||||
var wsUri = "ws://" + window.location.hostname;
|
||||
writeToScreen("Connection to " + wsUri + "...")
|
||||
websocket = new WebSocket(wsUri);
|
||||
websocket.onopen = function(evt) { onOpen (evt) };
|
||||
websocket.onclose = function(evt) { onClose (evt) };
|
||||
websocket.onmessage = function(evt) { onMessage (evt) };
|
||||
websocket.onerror = function(evt) { onError (evt) };
|
||||
}
|
||||
|
||||
function onOpen(evt)
|
||||
{
|
||||
writeToScreen("<strong>-- CONNECTED --</strong>");
|
||||
SendMsg("Hello world :)");
|
||||
SendMsg("This is a WebSocket test");
|
||||
SendMsg("(with a text frame encoded in UTF-8)");
|
||||
setTimeout( function() { websocket.close() }, 500 )
|
||||
}
|
||||
|
||||
function onClose(evt)
|
||||
{
|
||||
writeToScreen("<strong>-- DISCONNECTED --</strong>");
|
||||
}
|
||||
|
||||
function onMessage(evt)
|
||||
{
|
||||
writeToScreen('MSG FROM SERVER : <span style="color: blue;">' + evt.data + '</span>');
|
||||
}
|
||||
|
||||
function onError(evt)
|
||||
{
|
||||
writeToScreen('ERROR : <span style="color: red;">' + evt.data + '</span>');
|
||||
}
|
||||
|
||||
function SendMsg(msg)
|
||||
{
|
||||
writeToScreen('MSG TO SERVER : <span style="color: green;">' + msg + '</span>');
|
||||
websocket.send(msg);
|
||||
}
|
||||
|
||||
function writeToScreen(s)
|
||||
{
|
||||
var pre = document.createElement("p");
|
||||
pre.style.wordWrap = "break-word";
|
||||
pre.innerHTML = s;
|
||||
output.appendChild(pre);
|
||||
}
|
||||
|
||||
window.addEventListener("load", init, false);
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<h2>MicroWebSocket Test :</h2>
|
||||
<div id="output"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user