I\'m using VueJS to make a simple enough resource management game/interface. At the minute I\'m looking to activate the roll function every 12.5 seconds and use
roll
let vm = new Vue({ el: '#testfunc', data:{ sp1: "Hi I'm textbox1", sp2: "Hi I'm textbox2" }, methods:{ chsp1:function(){ this.sp1 = "I'm swapped from textbox2" }, chsp2:function(){ this.sp2 = "I'm swapped from textbox1"; this.chsp1(); }, swapit:function(){ this.chsp2(); } } });
Swap