Skip to content

Commit

Permalink
Fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinna Adhikari committed Dec 6, 2020
1 parent 3484473 commit 3441871
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 7 deletions.
Binary file added images/DDD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Trash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/attacker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/home_client.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/remote_server.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/router.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h2 class="text-white mb-4">DDD Filter applications in the Network</h2>
<input type="number" id="nports" name="nports" value=3><br>
<div class="slidecontainer">
<span>Fastest</span>
<input type="range" min="1" max="5" value="1" class="slider" id="myRange">
<input type="range" min="1" max="5" value="3" class="slider" id="myRange">
<span>Slowest</span>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion js/attacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Entity } from './entity.js';

export class Attacker extends Entity{
constructor(x, y, nextEntity, packetsPerTimeUnit, queue=[]) {
super('images/attacker.jpg', 'Attacker', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);
super('images/attacker.png', 'Attacker', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);

// Bind methods
//this.fillPossibleMoves = this.fillPossibleMoves.bind(this);
Expand Down
2 changes: 1 addition & 1 deletion js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Entity } from './entity.js';

export class Client extends Entity {
constructor(x, y, nextEntity, packetsPerTimeUnit, queue = []) {
super('images/home_client.jpg', 'Client Network', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);
super('images/home_client.png', 'Client Network', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);

this.sendPackets = this.sendPackets.bind(this);
}
Expand Down
2 changes: 1 addition & 1 deletion js/ddd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Entity } from './entity.js';

export class DDD extends Entity {
constructor(x, y, nextEntity, packetsPerTimeUnit, nPorts, queue = []) {
super('images/DDD.jpg', 'DDD', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);
super('images/DDD.png', 'DDD', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);
this.packetTable = new Map();
this.maxOpenPorts = nPorts;
this.openPorts = this.openNewPorts();
Expand Down
2 changes: 1 addition & 1 deletion js/garbage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Entity } from './entity.js';

export class Garbage extends Entity {
constructor(x, y, nextEntity, packetsPerTimeUnit, queue = []) {
super('images/Trash.jpg', 'Garbage', x, y, 150, 100, nextEntity, packetsPerTimeUnit, queue);
super('images/Trash.png', 'Garbage', x, y, 150, 100, nextEntity, packetsPerTimeUnit, queue);
this.droppedPackets = 0;

// Bind methods
Expand Down
2 changes: 1 addition & 1 deletion js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Entity } from './entity.js';

export class Router extends Entity{
constructor(x, y, nextEntity, packetsPerTimeUnit, queue=[]) {
super('images/router.jpg', 'Router', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);
super('images/router.png', 'Router', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);
this.openPorts = []

// Bind methods
Expand Down
2 changes: 1 addition & 1 deletion js/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Entity } from './entity.js';

export class Server extends Entity{
constructor(x, y, nextEntity, packetsPerTimeUnit, queue=[]) {
super('images/remote_server.jpg', 'Remote Server', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);
super('images/remote_server.png', 'Remote Server', x, y, 100, 100, nextEntity, packetsPerTimeUnit, queue);

// Bind methods
this.sendPackets = this.sendPackets.bind(this);
Expand Down

0 comments on commit 3441871

Please sign in to comment.