added jquery and js to project
This commit is contained in:
parent
880113ac01
commit
326d1decae
@ -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");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,18 @@
|
|||||||
<html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<html lang="en" dir="ltr">
|
||||||
<link rel="stylesheet" type="text/css" href="css/index.css">
|
<head>
|
||||||
</head>
|
<meta charset="utf-8">
|
||||||
<body class="test">
|
<title></title>
|
||||||
hello there
|
|
||||||
</body>
|
<script
|
||||||
</html>
|
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
3
wwwroot/js/index.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
$(document).ready(function() {
|
||||||
|
console.log("hey from js");
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user