Commit 7a18a6ee authored by 神楽坂玲奈's avatar 神楽坂玲奈

news

parent 0083e502
......@@ -23,3 +23,15 @@ progress {
.carousel-inner img {
width: 100%;
}
#news h3 {
font-size: 1.5rem;
}
#news p {
margin-bottom: 0;
}
#news a {
display: block;
margin-bottom: 1rem;
}
\ No newline at end of file
......@@ -33,7 +33,7 @@
</div>
</div>-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!--<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li *ngFor="let item of news; let index = index;" data-target="#carousel-example-generic" [data-slide-to]="index" [class.active]="index == 0"></li>
</ol>
......@@ -54,10 +54,14 @@
<span class="icon-next" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>-->
<br>
<div id="news" *ngFor="let item of news">
<h3>{{item.title}}</h3>
<p>{{item.text}}</p>
<a *ngIf="item.url" [href]="item.url">了解更多</a>
</div>
<div *ngIf="friends">
<h2>好友</h2>
......
......@@ -33,7 +33,7 @@
<label>选择对手</label>
<div id="windbot" class="list-group">
<a *ngFor="let name of windbot" href="#" class="list-group-item"
onclick="join_windbot(name)">{{name}}</a>
(click)="join_windbot(name)">{{name}}</a>
</div>
</div>
<div class="modal-footer">
......
......@@ -133,7 +133,7 @@ export class YGOProComponent {
};
join_windbot(name) {
this.join(name, this.servers[0])
this.join('AI#'+name, this.servers[0])
}
start_game = (args) => {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment