본문 바로가기

Story/html/css

구글 가상 키보드 google virtual-keyboard

반응형

출처 https://developers.google.com/virtual-keyboard/v1/getting_started

 

<html>
 
<head>
   
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   
<script type="text/javascript" src="https://www.google.com/jsapi=INSERT-YOUR-KEY"></script>
   
<script type="text/javascript">

     
// Load the Google Onscreen Keyboard API
      google
.load("elements", "1", {
          packages
: "keyboard"
     
});

     
function onLoad() {
       
var kbd = new google.elements.keyboard.Keyboard(
         
[google.elements.keyboard.LayoutCode.KOREAN],
         
['t1']);
     
}

      google
.setOnLoadCallback(onLoad);
   
</script>
 
</head>
 
<body>
  Type in Russian
<br/>
 
<textarea id="t1" style="width: 600px; height: 200px;"></textarea>
 
</body>
</html>   

 

반응형