Skip to content

Commit

Permalink
2. rest 중 일때 고양이 사진 보여주기
Browse files Browse the repository at this point in the history
v-if, computed 이용해서 특정 상태(rest)일 때 고양이 사진 보며 휴식하기
  • Loading branch information
rmcodestar committed Aug 13, 2017
1 parent 37c8b89 commit 50ae657
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file added kitty.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions pomodoro.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ <h4>STATE : {{title}}...</h4>
<span>{{remainingMinute}}</span>:<span>{{remainingSecond}}</span>
</div>
</div>
<div class="well" v-if="!isWorking">
<img src="kitty.png">
</div>
</div>
</body>
<script>
Expand Down Expand Up @@ -66,6 +69,9 @@ <h4>STATE : {{title}}...</h4>
, remainingSecond : function() {
return (this.second < 10)? "0" + this.second : this.second;
}
, isWorking : function() {
return this.state == STATE.WORK;
}
}
, methods : {
start : function() {
Expand Down

0 comments on commit 50ae657

Please sign in to comment.