Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4442d15

Browse files
using local icons
1 parent 113a0bb commit 4442d15

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

‎src/Components/GridLayoutComponent.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ class GridLayout extends Component {
575575
console.log('bbfs');
576576
console.log(visitedNodes);
577577

578-
// if(visitedNodes !== false)
579-
// {
578+
if(visitedNodes !== false)
579+
{
580580
const shortestPath2 = getNodesInShortestPathOrderBbfs(visitedNodes[1]);
581581
const shortestPath1 = getNodesInShortestPathOrderBbfs(visitedNodes[2]);
582582

@@ -585,7 +585,11 @@ class GridLayout extends Component {
585585

586586
this.animateBbfs(visitedNodes[0], shortestPath1, shortestPath2);
587587

588-
// }
588+
}
589+
else
590+
{
591+
592+
}
589593

590594
}
591595

‎src/css/gridblock.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
.start {
1616
position: relative;
17-
background-image: url(http://cdn.onlinewebfonts.com/svg/download_71708.png);
17+
background-image: url("../images/start.png");
1818
background-position: center;
1919
background-repeat: no-repeat;
2020
background-size: contain;
@@ -32,7 +32,7 @@
3232

3333
.end {
3434
position: relative;
35-
background-image: url(http://cdn.onlinewebfonts.com/svg/img_208778.png);
35+
background-image: url("../images/end.png");
3636
background-position: center;
3737
background-repeat: no-repeat;
3838
background-size: contain;
@@ -46,7 +46,6 @@
4646
animation-play-state: running;
4747
}
4848

49-
5049
.grid-row {
5150
margin: 0px !important;
5251
padding: 0px;
@@ -73,7 +72,7 @@
7372
}
7473
.node-weight {
7574
position: relative;
76-
background-image: url(https://cdn0.iconfinder.com/data/icons/sports-and-games-1-1/65/37-512.png);
75+
background-image: url("../images/weight.png");
7776
background-position: center;
7877
background-repeat: no-repeat;
7978
background-size: contain;
@@ -163,8 +162,8 @@
163162
color: cornsilk;
164163
}
165164

166-
167-
.btn-1, .btn-2 {
165+
.btn-1,
166+
.btn-2 {
168167
margin-left: 50px;
169168
display: inline-block;
170169
background-color: rgb(0, 47, 76);

‎src/images/end.png

26.2 KB
Loading[フレーム]

‎src/images/start.png

21.9 KB
Loading[フレーム]

‎src/images/weight.png

33.4 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /