31 lignes
753 o
JavaScript
31 lignes
753 o
JavaScript
document.getElementsByClassName("form-torrent-name")[0].onkeyup = function(){
|
|
document.getElementsByClassName("table-torrent-name")[0].innerText = document.getElementsByClassName("form-torrent-name")[0].value;
|
|
};
|
|
|
|
document.getElementsByClassName("form-torrent-category")[0].onchange = function(){
|
|
document.getElementsByClassName("table-torrent-category")[0].className = "table-torrent-category nyaa-cat nyaa-cat-" + Categorylist[document.getElementsByClassName("form-torrent-category")[0].selectedIndex];
|
|
};
|
|
|
|
document.getElementsByClassName("torrent-preview-table")[0].display = "block";
|
|
|
|
var CategoryList = [
|
|
5
|
|
12,
|
|
5,
|
|
13,
|
|
6,
|
|
3,
|
|
4,
|
|
7,
|
|
14,
|
|
8,
|
|
9,
|
|
10,
|
|
18,
|
|
11,
|
|
15,
|
|
16,
|
|
1,
|
|
2
|
|
];
|