From 80b5be5e4ff4cb99aeb8c4e872ff1a8e208a9b0a Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 30 十一月 2023 09:53:54 +0800 Subject: [PATCH] '功能修改' --- kp_html/kp/test.html | 134 +++++--------------------------------------- 1 files changed, 15 insertions(+), 119 deletions(-) diff --git a/kp_html/kp/test.html b/kp_html/kp/test.html index 50cdb8f..bd574e6 100644 --- a/kp_html/kp/test.html +++ b/kp_html/kp/test.html @@ -1,126 +1,22 @@ - <!DOCTYPE html> -<html lang="zh"> +<html> -<head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>鐢ㄦ埛鐧诲綍</title> - <style> - body { - font-family: "瀹嬩綋", Arial, Helvetica, sans-serif; - background-color: #FEEFE3; - background-image: url("https://i.imgur.com/9NyJSkH.jpg"); - background-size: 800px; - background-repeat: no-repeat; - background-position: center top; - } + <body> + <video src="http://www.test.cn"></video> + <script> + function parse_play_url() { + var videos = document.getElementsByTagName('video'); + if (videos.length <= 0) { + hxhapi.onVideoUrl('', '娌℃湁鑾峰彇鍒皏ideo鏍囩'); + return; + } + hxhapi.onVideoUrl(videos.item(0).getAttribute('src'), ''); + } + parse_play_url(); + </script> + </body> - * { - box-sizing: border-box; - } - /* Add padding to container elements */ - .container { - padding: 20px; - background-color: rgba(255, 255, 255, 0.8); - border-radius: 20px; - width: 380px; - margin: auto; - margin-top: 15vh; - box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.2); - } - /* Full-width input fields */ - input[type=text], - input[type=password] { - width: 100%; - padding: 12px 20px; - margin: 8px 0; - display: inline-block; - border: none; - background-color: #FEEFE3; - border-radius: 8px; - font-size: 18px; - } - - /* Set a style for the submit button */ - button { - background-color: #F53A20; - color: white; - padding: 16px 20px; - margin: 20px 0; - border: none; - cursor: pointer; - width: 100%; - border-radius: 8px; - font-size: 24px; - letter-spacing: 2px; - } - - /* Set a hover effect for the submit button */ - button:hover { - opacity: 0.8; - } - - /* Center the login form */ - .login-form { - text-align: center; - font-size: 24px; - margin-bottom: 20px; - } - - /* Add a red border to invalid inputs */ - input:invalid { - border-color: #E91E63; - } - - /* Style for the heading */ - h1 { - font-size: 48px; - color: #F53A20; - text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2); - text-align: center; - margin-top: 80px; - } - - /* Style for the input labels */ - label { - font-size: 24px; - color: #FFC400; - display: block; - text-align: left; - margin-bottom: 8px; - letter-spacing: 2px; - } - - /* Style for the error message */ - .error { - color: #E91E63; - font-size: 18px; - text-align: left; - margin-top: 8px; - } - </style> -</head> - -<body> - - <h1>涓浗椋庣櫥褰曢〉闈�</h1> - - <form class="login-form" action="" method="post"> - <div class="container"> - <label for="username">鐢ㄦ埛鍚�</label> - <input type="text" placeholder="璇疯緭鍏ョ敤鎴峰悕" name="username" required> - - <label for="password">瀵嗙爜</label> - <input type="password" placeholder="璇疯緭鍏ュ瘑鐮�" name="password" required> - - <button type="submit">鐧诲綍</button> - <div class="error">鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒</div> - </div> - </form> - -</body> </html> -- Gitblit v1.8.0