Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
99 changes: 57 additions & 42 deletions FrontEnd/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,59 +9,74 @@ <h2>SuSy Knower - Knowledge Maps</h2>
<style type="text/css">
#mynetwork {
width: 90vw;
height: 70vh;
height: 80vh;
border: 1px solid lightgray;
}
#infoPanel {
float: right;
width: 320px;
padding: 10px;
border: 5px solid gray;
margin: 0;
}
</style>
<link rel="stylesheet" href="./list.css">
<link rel="stylesheet" href="./list.css">
</head>
<body>
<p>Clicking on a node will highlight its prerequisites(green) and the future courses it is required for (red)</p>
<P>Double clicking a node will take you to the unit website</P>
<div>
<app-search-bar></app-search-bar>
<div id="searchUsers" class="instant-search instant-search--loading">
<div style="text-align: center;">

<!--Find a course : -->
<br> <input type='text' placeholder="Search Bar" id="myInput" onkeyup="searchCourse()" class="instant-search__input" spellcheck="false">
<button id='sb' class="circle"> </button>


</div>
</div>
<p>Clicking on a node will highlight its prerequisites(green) and the future courses it is required for (red)</p>
<P>Double clicking a node will take you to the unit website</P>

<div>
<app-search-bar></app-search-bar>
<div id="searchUsers" class="instant-search instant-search--loading">
<div style="text-align: center;">

<!--Find a course : -->
<br> <input type='text' placeholder="Search Bar" id="myInput" onkeyup="searchCourse()" class="instant-search__input" spellcheck="false">
<button id='sb' class="circle"> </button>


</div>
</div>
</div>

<div id="mynetwork"></div>

<div id="mynetwork"></div>

<div>
<label>
<input type="checkbox" name="InBox" value="parent" id="FadeBox" unchecked />
Fade On/Off
</label>
<label>
<input type="button" name="InButton" value="Fit" id="FitButton" unchecked />
</label>
<label>
<input type="button" name="InButton" value="Fit Condition" id="FitButtonWithCondition" unchecked />
</label>
<label>
<input type="button" name="ClusterButton" value="Cluster" id="ClusterButton" unchecked />
</label>
<label>
<input type="button" name="UnClusterButton" value="UnCluster" id="UnClusterButton" unchecked />
</label>
</div>
<div>
<label for="output">Zoom Level: </label><input type="textbox" name="output" id="OutBox"></input>
</div>

<script src = "template.js"></script>
<script src = "data.js"></script>
<script type="text/javascript" src="function.js"></script>
<script src = "network.js" defer> </script>
<div>
<label>
<input type="checkbox" name="InBox" value="parent" id="FadeBox" unchecked />
Fade On/Off
</label>
<label>
<input type="checkbox" name="InBox" value="parent" id="DrawBox" checked />
Drawing On/Off
</label>
<label>
<input type="button" name="InButton" value="Fit" id="FitButton" unchecked />
</label>
<label>
<input type="button" name="InButton" value="Fit Condition" id="FitButtonWithCondition" unchecked />
</label>
<label>
<input type="button" name="ClusterButton" value="Cluster" id="ClusterButton" unchecked />
</label>
<label>
<input type="button" name="UnClusterButton" value="UnCluster" id="UnClusterButton" unchecked />
</label>
<label>
<input type="button" name="RedrawButton" value="Redraw" id="RedrawButton" unchecked />
</label>
</div>
<div>
<label for="output">Zoom Level: </label><input type="textbox" name="output" id="OutBox">
</div>

<script src = "template.js"></script>
<script src = "data.js"></script>
<script type="text/javascript" src="function.js"></script>
<script src = "network.js" defer> </script>


</body>
Expand Down
5 changes: 2 additions & 3 deletions FrontEnd/src/app/function.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var strings = ['Algorithm', 'Security', 'Architecture','Mathematical Methods']
var keys = document.getElementById('myInput');
var button = document.getElementById('sb');

Expand All @@ -11,7 +10,7 @@ function searchfun() {
console.log("found!")
console.log(node)
found = true;
highlightNode(node);
highlightNode(node,hlsf,bdr_ratio);
//setTarget(node.id)
}
});
Expand All @@ -21,4 +20,4 @@ function searchfun() {
}

}
button.addEventListener('click', searchfun)
button.addEventListener('click', searchfun)
Loading