Greasy Fork

fctpresentation

Fonctions pour la fenêtre création de présentation match

目前为 2016-11-02 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.icu/scripts/24514/155774/fctpresentation.js

// JavaScript Document

function getformation(valeur){

if(valeur==001){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 1;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 5;
	document.getElementById("playerhomerolelist_06").value = 5;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 12;
	document.getElementById("playerhomerolelist_10").value = 12;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==002){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 1;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 5;
	document.getElementById("playerhomerolelist_06").value = 5;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 7;
	document.getElementById("playerhomerolelist_10").value = 12;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==003){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 1;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 5;
	document.getElementById("playerhomerolelist_06").value = 5;
	document.getElementById("playerhomerolelist_07").value = 5;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 7;
	document.getElementById("playerhomerolelist_10").value = 7;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==004){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 1;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 7;
	document.getElementById("playerhomerolelist_06").value = 7;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 7;
	document.getElementById("playerhomerolelist_10").value = 10;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==005){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 1;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 7;
	document.getElementById("playerhomerolelist_06").value = 7;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 10;
	document.getElementById("playerhomerolelist_10").value = 10;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==006){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 1;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 7;
	document.getElementById("playerhomerolelist_06").value = 7;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 11;
	document.getElementById("playerhomerolelist_10").value = 12;
	document.getElementById("playerhomerolelist_11").value = 10;
}
if(valeur==007){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 1;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 7;
	document.getElementById("playerhomerolelist_06").value = 7;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 7;
	document.getElementById("playerhomerolelist_10").value = 10;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==008){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 1;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 7;
	document.getElementById("playerhomerolelist_06").value = 7;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 7;
	document.getElementById("playerhomerolelist_10").value = 12;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==009){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 4;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 3;
	document.getElementById("playerhomerolelist_06").value = 5;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 11;
	document.getElementById("playerhomerolelist_10").value = 12;
	document.getElementById("playerhomerolelist_11").value = 10;
}
if(valeur==010){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 4;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 3;
	document.getElementById("playerhomerolelist_06").value = 5;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 7;
	document.getElementById("playerhomerolelist_10").value = 12;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==011){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 4;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 3;
	document.getElementById("playerhomerolelist_06").value = 5;
	document.getElementById("playerhomerolelist_07").value = 7;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 7;
	document.getElementById("playerhomerolelist_10").value = 7;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==012){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 4;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 3;
	document.getElementById("playerhomerolelist_06").value = 5;
	document.getElementById("playerhomerolelist_07").value = 5;
	document.getElementById("playerhomerolelist_08").value = 9;
	document.getElementById("playerhomerolelist_09").value = 11;
	document.getElementById("playerhomerolelist_10").value = 12;
	document.getElementById("playerhomerolelist_11").value = 10;
}
if(valeur==013){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 4;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 3;
	document.getElementById("playerhomerolelist_06").value = 5;
	document.getElementById("playerhomerolelist_07").value = 5;
	document.getElementById("playerhomerolelist_08").value = 9;
	document.getElementById("playerhomerolelist_09").value = 9;
	document.getElementById("playerhomerolelist_10").value = 12;
	document.getElementById("playerhomerolelist_11").value = 12;
}
if(valeur==014){
	document.getElementById("playerhomerolelist_01").value = 0;
	document.getElementById("playerhomerolelist_02").value = 4;
	document.getElementById("playerhomerolelist_03").value = 1;
	document.getElementById("playerhomerolelist_04").value = 1;
	document.getElementById("playerhomerolelist_05").value = 3;
	document.getElementById("playerhomerolelist_06").value = 5;
	document.getElementById("playerhomerolelist_07").value = 5;
	document.getElementById("playerhomerolelist_08").value = 7;
	document.getElementById("playerhomerolelist_09").value = 7;
	document.getElementById("playerhomerolelist_10").value = 7;
	document.getElementById("playerhomerolelist_11").value = 12;
}
};