JunYoung7

server file for Android

1 +<!DOCTYPE html>
2 +<html>
3 +<body>
4 +
5 +<div style="position:absolute; top:-400px; left:-242px;border:0px solid black">
6 + <iframe src="http://114.108.69.93:9999/stream.html" width="760" height="770" scrolling="no" frameborder="0"></iframe>
7 + </div>
8 +
9 +</body>
10 +</html>
1 +img
2 +{
3 + border: 3px solid red:
4 + width: 100px;
5 + height: 100px;
6 + float:right;
7 +}
1 +<!DOCTYPE html>
2 +<html>
3 + <head>
4 +
5 + <title>실시간 스트리밍</title>
6 + <meta charset="utf-8"/>
7 + <style>
8 + body {
9 + margin:30px;
10 + font:1em "맑은 고딕",Cambria,Georgia,sans_serif;
11 + }
12 + img.static{
13 + position: static;
14 + }
15 + </style>
16 + </head>
17 +
18 + <body>
19 + <img src = "icon.png" class="static" height = "100px" width = "100px">
20 +
21 +
22 + <div>
23 + <iframe src="ifames.html" width="1000" height="500" scrolling="no" frameborder="0">
24 + <p>Your browser does not support iframes.</p>
25 + </iframe>
26 + </div>
27 +
28 + </body>
29 +</html>
1 +var http = require('http');
2 +var fs = require('fs');
3 +var app = http.createServer(function(request,response){
4 + var url = request.url;
5 + if (request.url == '/'){
6 + url = '/index.html';
7 + }
8 + if (request.url == '/favicon.ico'){
9 + return response.writeHead(404);
10 + respond.end();
11 + return;
12 + }
13 + response.writeHead(200);
14 + response.end(fs.readFileSync(__dirname + url));
15 +});
16 +
17 +app.listen(3000);