add function to get website
This commit is contained in:
parent
3294d11a12
commit
47c2c17189
@ -1,4 +1,5 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
@ -8,8 +9,10 @@
|
||||
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<canvas id="glCanvas"></canvas>
|
||||
</body>
|
||||
<script src="./index.js"></script>
|
||||
|
||||
</html>
|
||||
@ -0,0 +1,6 @@
|
||||
function getWebsite(geturl) {
|
||||
xmlhttp=new XMLHttpRequest();
|
||||
xmlhttp.open("GET", geturl, false);
|
||||
xmlhttp.send();
|
||||
var data = xmlhttp.responseText;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user