added jquery and js to project
This commit is contained in:
parent
880113ac01
commit
326d1decae
@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,8 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="css/index.css">
|
||||
</head>
|
||||
<body class="test">
|
||||
hello there
|
||||
</body>
|
||||
<!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
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