⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.112
Server IP:
65.21.180.239
Server:
Linux gowhm.eplangoweb.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.0.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
eplangoweb
/
.trash
/
assets.1
/
user
/
js
/
quiz
/
Edit File: edit.js
"use strict"; new Vue({ el: '#app', data: { answers: [] }, created() { axios .get(loadAns) .then(response => { const ansArr = response.data.answers; for (let i = 0; i < ansArr.length; i++) { this.answers.push(ansArr[i]); } }) }, methods: { addAns() { // creating & pushing some random value into the 'answers' array to increase it's range let firstValue = Math.floor(Math.random() * 11); let secondValue = Math.floor(Math.random() * 1000000); let finalValue = firstValue + secondValue; this.answers.push({ 'uniqId': finalValue }); }, removeAns(index) { this.answers.splice(index, 1); } } });
Simpan