CORS Error
This commit is contained in:
parent
e3186aebb0
commit
87d2357b41
8
Website/apiConnector.js
Normal file
8
Website/apiConnector.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
const apiUri = "http://localhost:5177";
|
||||||
|
|
||||||
|
function GetTasks(){
|
||||||
|
var getTaskUri = apiUri + "/Tasks/GetList";
|
||||||
|
fetch(getTaskUri)
|
||||||
|
.then(response => response.json())
|
||||||
|
.catch(error => console.error('Unable to get items.', error));
|
||||||
|
}
|
@ -40,6 +40,7 @@
|
|||||||
<settingstab id="settingstab">
|
<settingstab id="settingstab">
|
||||||
|
|
||||||
</settingstab>
|
</settingstab>
|
||||||
|
<script src="apiConnector.js"></script>
|
||||||
<script src="interaction.js"></script>
|
<script src="interaction.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -78,6 +78,7 @@ searchdiv{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#settingscog {
|
#settingscog {
|
||||||
|
cursor: pointer;
|
||||||
margin: 0px 30px;
|
margin: 0px 30px;
|
||||||
height: calc(100% - 40px);
|
height: calc(100% - 40px);
|
||||||
filter: invert(100%) sepia(0%) saturate(7465%) hue-rotate(115deg) brightness(116%) contrast(101%);
|
filter: invert(100%) sepia(0%) saturate(7465%) hue-rotate(115deg) brightness(116%) contrast(101%);
|
||||||
@ -125,6 +126,7 @@ settingstab{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#addPublication {
|
#addPublication {
|
||||||
|
cursor: pointer;
|
||||||
background-color: var(--secondary-color);
|
background-color: var(--secondary-color);
|
||||||
width: 180px;
|
width: 180px;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
@ -154,6 +156,7 @@ settingstab{
|
|||||||
}
|
}
|
||||||
|
|
||||||
publication{
|
publication{
|
||||||
|
cursor: pointer;
|
||||||
background-color: var(--secondary-color);
|
background-color: var(--secondary-color);
|
||||||
width: 180px;
|
width: 180px;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
Loading…
Reference in New Issue
Block a user