Last active
April 11, 2023 20:30
-
-
Save reinerBa/5245703ec0a061315017653e63ae816e to your computer and use it in GitHub Desktop.
TAN Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.28/vue.js" integrity="sha512-/I2PC0BuPX4pgUed1MB0BodK/Wn4LJw3b9NiQVZTau2HrACEmHMf/4qGBiIaFCJsgY5GX4JcsHTP0P2pfSimpA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | |
<script src="index.js"></script> | |
<style> | |
*{ | |
font-size: 14px; | |
font-family: arial; | |
} | |
table{ | |
float:left; | |
} | |
</style> | |
</head> | |
<body> | |
<h3> | |
Tan Liste from __________________ for ________________________ | |
</h3> | |
<div id="app"> | |
<table> | |
<tr v-for="item in 100"><td>{{item}} </td> | |
<td>{{ rand() }}</td> | |
</tr> | |
</table> | |
<table> | |
<tr v-for="item in 100"> | |
<td>{{item + 100 }} </td> | |
<td>{{ rand() }}</td> | |
</tr> | |
</table> | |
<table> | |
<tr v-for="item in 100"> | |
<td>{{item + 200 }} </td> | |
<td>{{ rand() }}</td> | |
</tr> | |
</table> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Vue({ | |
el: '#app', | |
methods: { | |
rand(){ | |
// Code from https://stackoverflow.com/a/47496558 | |
return [...Array(15)].map(() => Math.random().toString(36)[2]).join('').toUpperCase() | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment