1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-23 19:36:53 +00:00
This commit is contained in:
devfake 2015-06-22 20:21:31 +02:00
parent 7d21a962bc
commit c468147c90
3 changed files with 17 additions and 2 deletions

View File

@ -1,5 +1,19 @@
module.exports = { module.exports = {
template: require('../views/chat.html') template: require('../views/chat.html'),
data: function() {
return {
message: ''
}
},
methods: {
submitChat: function(e) {
e.preventDefault();
console.log(this.message);
}
}
}; };

View File

@ -11,7 +11,7 @@
blaa blaa blaa blaa
</div> </div>
<textarea class="chatbox" placeholder="Type an message..." autofocus></textarea> <textarea class="chatbox" placeholder="Type an message..." v-model="message" autofocus v-on="keydown: submitChat(this) | key 'enter'"></textarea>
</div> </div>
</section> </section>

View File

@ -75,6 +75,7 @@
text-align: center; text-align: center;
color: darken(#8798ac, 30%); color: darken(#8798ac, 30%);
cursor: pointer; cursor: pointer;
text-transform: uppercase;
@include transition(); @include transition();