You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
< html lang = "ja" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< title > 色変換< / title >
< style >
label {
display : block ;
}
# preview {
width : 100 % ;
height : 200 px ;
}
. r {
color : red ;
}
. g {
color : green ;
}
. b {
color : blue ;
}
. html5 {
display : none ;
}
< / style >
< / head >
< body >
< h1 > 色変換< / h1 >
< p >
[< a href = "//xn--rck9c.xn--tckwe" > 戻る< / a > ]
< / p >
< h2 > HTML式16進< / h2 >
< input type = "text" id = "html-text" onchange = "updateColor(this.value)" >
< input type = "color" id = "html-color" class = "html5" onchange = "updateColor(this.value)" >
< hr >
< h2 > RGB< / h2 >
< div id = "rgb" >
< label class = "r" >
< input type = "number" id = "rgb-r" min = "0" max = "255" onchange = "updateColor(document.getElementById('rgb'))" >
赤
< / label >
< label class = "g" >
< input type = "number" id = "rgb-g" min = "0" max = "255" onchange = "updateColor(document.getElementById('rgb'))" >
緑
< / label >
< label class = "b" >
< input type = "number" id = "rgb-b" min = "0" max = "255" onchange = "updateColor(document.getElementById('rgb'))" >
青
< / label >
< / div >
< hr >
< h2 > BGR15< / h2 >
< label >
< input type = "text" id = "bgr15-no-bit15" onchange = "updateColor(this.value)" >
ビット15なし( 時々に透明)
< / label >
< label >
< input type = "text" id = "bgr15-bit15" onchange = "updateColor(this.value)" >
ビット15あり
< / label >
< hr >
< h2 > プレビュー< / h2 >
< div id = "preview" > < / div >
< script src = "/assets/js/color.js" > < / script >
< / body >
< / html >