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 class main {
public static void main(String[] args) { public static void main(String[] args) {
Thread mythread = new Thread(new Runnable() { Thread mythread = new Thread(() -> new Webserver().startserver());
@Override
public void run() {
new Webserver().startserver();
}
});
mythread.start(); mythread.start();
System.out.println("thread started"); System.out.println("thread started");
} }
} }

View File

@ -1,6 +1,16 @@
<html> <!DOCTYPE html>
<html lang="en" dir="ltr">
<head> <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"> <link rel="stylesheet" type="text/css" href="css/index.css">
<script type="text/javascript" src="js/index.js"> </script>
</head> </head>
<body class="test"> <body class="test">
hello there hello there

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

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