added jquery and js to project

This commit is contained in:
Lukas-Heiligenbrunner 2019-09-13 15:57:33 +02:00
parent 880113ac01
commit 326d1decae
3 changed files with 22 additions and 17 deletions

View File

@ -1,15 +1,7 @@
public class main {
public static void main(String[] args) {
Thread mythread = new Thread(new Runnable() {
@Override
public void run() {
new Webserver().startserver();
}
});
Thread mythread = new Thread(() -> new Webserver().startserver());
mythread.start();
System.out.println("thread started");
}
}

View File

@ -1,8 +1,18 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/index.css">
</head>
<body class="test">
hello there
</body>
</html>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8="
crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/index.css">
<script type="text/javascript" src="js/index.js"> </script>
</head>
<body class="test">
hello there
</body>
</html>

3
wwwroot/js/index.js Normal file
View File

@ -0,0 +1,3 @@
$(document).ready(function() {
console.log("hey from js");
});