したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | |
レス数が1スレッドの最大レス数(1000件)を超えています。残念ながら投稿することができません。

●●●〇●●●ケンミンショー●●●○●●●

329Guest:2020/09/30(水) 08:17:29 ID:???
432: 大島 ◆oPFpoxa1ys :2020/09/30(水) 06:45:43 ID:???
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {height: 100vh; margin: 0; display: flex; flex-direction: column;}
fieldset {border: none; background: antiquewhite; margin: 0; padding: 5px;}
main {flex: 1;}select {height: 26px; margin-left: 5px;} input {width: 170px; height: 20px;}
</style>
</head>
<body>
<fieldset>
<input id="input" type="text" placeholder="- 参加者欄からの書き込み -">
<button id="btn">送信</button><select id="select"></select><select id="select1"></select>
</fieldset>
<main><iframe id="iframe" frameborder="0"width="100%"height="100%"></iframe></main>
<script>
const array = [
['部屋選択',''],
['新-free部屋',`http://vvvvvvvv.xsrv.jp/nendai/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['新-40部屋',`http://vvvvvvvv.xsrv.jp/40a/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['新-50部屋',`http://vvvvvvvv.xsrv.jp/50a/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['新-60部屋',`http://vvvvvvvv.xsrv.jp/60a/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['新-1970部屋',`http://vvvvvvvv.xsrv.jp/1970/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['新-1960部屋',`http://vvvvvvvv.xsrv.jp/1960/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['新-1950部屋',`http://vvvvvvvv.xsrv.jp/1950/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['G-free部屋',`http://chat.exp.jp/7771/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['G-40部屋',`http://chat.exp.jp/4440/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['G-50A部屋',`http://chat.exp.jp/5550/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['G-50B部屋',`http://chat.exp.jp/5551/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['G-60部屋',`http://chat.exp.jp/6660/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['G-1970部屋',`http://chat.exp.jp/1970/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['G-1960部屋',`http://chat.exp.jp/1960a/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['G-1950部屋',`http://chat.exp.jp/1950a/comchat.cgi?retime=0&amp;lines=50&amp;name=`],
['BBS-大島','https://9203.teacup.com/negentropy/bbs'],
['BBS-したらば','https://jbbs.shitaraba.net/internet/15589'],
];
let res;
array.forEach(a =>{
const option = document.createElement('option');
option.value = a[1]; option.textContent = a[0];
if(/新/.test(option.textContent)) option.style.color = '#4285f4';
if(/BBS/.test(option.textContent)) option.style.color = 'red';
select.appendChild(option);
});
select.addEventListener('change',()=>{
res = select.value.replace( "retime=0" , `retime=${select1.value}`);
iframe.src = res;
});
btn.addEventListener('click',()=>{
if(select.selectedIndex === 0 || /BBS/.test(array[select.selectedIndex][0])) {
input.value = ""; return;
};
iframe.src = `${res}${input.value}`; input.value = "";
});
retime = [0, 5, 10, 20, 30, 40];
retime.forEach(re =>{
const option = document.createElement('option');
option.value = re; option.textContent = `${re}秒`;
select1.appendChild(option);
});
select1.addEventListener('change',()=>{
res = select.value.replace("retime=0", `retime=${select1.value}`);
iframe.src = res;
legend.textContent = array[select.selectedIndex][0];
});
</script>
</body>
</html>




掲示板管理者へ連絡 無料レンタル掲示板