Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head >
- <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
- <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
- <style type="text/css">/* ラジオボタンを消す */
- #slidemenu input{
- display: none;
- }
- /* 開閉ボタン */
- #button_open,
- #button_close {
- position: fixed;
- top: 3px;
- left: 3px;
- width: 50px;
- height: 50px;
- text-align: right;
- cursor: pointer;
- }
- /* 初期値はオープンボタンはblock、クローズボタンはnone */
- #button_open {
- display: block;
- }
- #button_close {
- display: none;
- }
- /****************************************
- ボタンのスタイル ここから
- ****************************************/
- #button_open span,
- #button_close span {
- margin: 0 auto;
- width: 50px;
- height: 50px;
- display: inline-block;
- position: relative;
- background: #555555;
- }
- /* 擬似要素で横線を描写(border-top) */
- #button_open span:after,
- #button_close span:after {
- content: "";
- position: absolute;
- top: 23px;
- left: 12px;
- width: 24px;
- border-top: 3px solid #FFFFFF;
- }
- /* オープンボタンはbox-shadowを上下に描写して3本線に */
- #button_open span:after {
- box-shadow: 0 6px 0 #CACACA, 0 -6px 0 #FFFFFF;
- }
- /****************************************
- ボタンのスタイル ここまで
- ****************************************/
- /****************************************
- メニューのスタイル ここから
- ****************************************/
- #menu {
- margin: 0;
- padding: 0;
- width: 0; /* 初期値は横幅が0で見えない状態 */
- position: fixed;
- top: 54px;
- left: 3px;
- color: #FFFFFF;
- z-index: 99999;
- overflow: hidden;
- /* 表示するときにアニメーションさせる */
- -webkit-transition: all ease-in-out;
- -webkit-transition-delay: 0.5s;
- -moz-transition: all ease-in-out 0.5s;
- -o-transition: all ease-in-out 0.5s;
- transition: all ease-in-out 0.5s;
- }
- #menu ul {
- margin: 0;
- padding: 0;
- color: #FFFFFF;
- border-top: #CACACA;
- text-align: left;
- list-style: none inside;
- }
- #menu li {
- margin: 0;
- padding: 0;
- overflow: hidden;
- width: 100%;
- }
- #menu li a {
- margin: 0;
- padding: 5px;
- overflow: hidden;
- display: block;
- height: 60px;
- line-height: 60px;
- background: #555555;
- text-decoration: none;
- color: #FFFFFF;
- }
- #menu li a:hover {
- background: #252525;
- }
- /****************************************
- メニューのスタイル ここまで
- ****************************************/
- /****************************************
- オープンボタンにチェック時の処理 ここから
- ****************************************/
- /* オープンボタンを非表示 */
- #open:checked ~ #button_open {
- display: none;
- }
- /* クローズボタンを表示 */
- #open:checked ~ #button_close {
- display: inline;
- }
- /* メニューを表示(横幅をつける) */
- #open:checked ~ #menu {
- width: 80%;
- }
- /****************************************
- オープンボタンにチェック時の処理 ここまで
- ****************************************/
- </style>
- <style type="text/css">
- <!--
- div#floating-menu {
- position: fixed;
- text-align: right;
- top: 0px;
- left: 70%;
- right: 0px;
- background-color: #FFFFFF;
- border: 1px solid #000000;
- z-index: 9999;
- opacity: 0.5;
- }
- -->
- </style>
- <style type="text/css">
- <!--
- input,textarea {
- font-size: 1.5em;
- width:90%;
- height:70%;
- }
- -->
- </style>
- <style type="text/css">
- <!--
- #buttonx {
- width:30%;
- color:#ffffff;
- background:#337fcc;
- font-family: fantasy,sans-serif;
- font-size:24px;
- font-weight:bold;
- text-shadow:0 1px 0px #143352,0 2px 0px #143352;
- text-align:center;
- display:inline-block;
- text-decoration:none;
- border:1px solid #225588;
- padding:15px 0 12px 0;
- border-radius:5px;
- margin-bottom:20px;
- }
- -->
- </style>
- <title>音声メモ帳</title>
- </head>
- <!--
- This simple Javascript Function sends
- the string "data" to the the excuting BASIC!
- program.
- The BASIC command, "html.getdatalink data$", is
- used to read linked data. If data$ is empty ("") then
- not data has been sent. The BASIC! programmer
- can loop on this value until a non-empty string is
- returned.
- This function is the heart the HTML/BASIC! interactive
- interface.
- -->
- <script type="text/javascript">
- function doDataLink(data) {
- Android.dataLink(data);
- }
- </script>
- <script type="text/javascript">
- function doDataLink2() {
- var dataxx=document.getElementById('ken1').value
- Android.dataLink(dataxx);
- }
- </script>
- <script type="text/javascript">
- function doDataint() {
- setInterval("doDataLink2()",20000);
- }
- </script>
- <body bgcolor="azure">
- <div id="slidemenu">
- <input type="radio" name="text" value="1" id="open" />
- <label for="open" id="button_open"><span></span></label>
- <input type="radio" name="text" value="1" id="close" />
- <label for="close" id="button_close"><span></span></label>
- <div id="menu">
- <ul>
- <li><a onmouseover="this.style.background='#252525'" onmouseout="this.style.background='#555555'" onclick="this.style.background='#43cd80';doDataLink('//y//'+document.getElementById('ken1').value)">ファイル保存</a></li>
- <li><a onmouseover="this.style.background='#252525'" onmouseout="this.style.background='#555555'" onclick="this.style.background='#43cd80';doDataLink('//x//')">終了</a></li>
- </ul>
- </div>
- </div>
- <div id="floating-menu">
- <p id="RealtimeClockArea">時計表示エリア</p>
- </div>
- <script type="text/javascript">
- function set2fig(num) {
- // 桁数が1桁だったら先頭に0を加えて2桁に調整する
- var ret;
- if( num < 10 ) { ret = "0" + num; }
- else { ret = num; }
- return ret;
- }
- function showClock1() {
- var nowTime = new Date();
- var nowHour = set2fig( nowTime.getHours() );
- var nowMin = set2fig( nowTime.getMinutes() );
- var nowSec = set2fig( nowTime.getSeconds() );
- var nowYear = nowTime.getFullYear();
- var nowMonth = nowTime.getMonth() + 1;
- var nowDate = nowTime.getDate();
- var yobi = ["日","月","火","水","木","金","土"];
- var nowYobi = yobi[nowTime.getDay()];
- var msg = nowYear + "/" + nowMonth + "/" + nowDate
- var msg = msg + "(" + nowYobi + ") [" + nowHour + ":" + nowMin + ":" + nowSec + "]";
- document.getElementById("RealtimeClockArea").innerHTML = msg;
- }
- setInterval('showClock1()',1000);
- </script>
- <div align="center">
- <!--
- Display an image located on the internet
- -->
- <h1><b>音声メモ帳</b></h1>
- <BR>
- <a id="buttonx" style="width:200px" onmouseover="this.style.background='#43cd80'" onmouseout="this.style.background='#337fcc'" onclick="this.style.background='#43cd80';doDataLink('//a//'+document.getElementById('ken1').value)">録 音</a>
- <a id="buttonx" style="width:200px" onmouseover="this.style.background='#43cd80'" onmouseout="this.style.background='#337fcc'" onclick="this.style.background='#43cd80';doDataLink('//b//'+document.getElementById('ken1').value)">読 上</a>
- <p>
- <textarea name="msg" cols="40" rows="10" id="ken1">@@@1@@@</textarea>
- </p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment