Browse Source

radio add lable so it can click

liuyuqi-dellpc 1 year ago
parent
commit
bfaf65bd18
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      scripts/sync.xys

+ 1 - 1
README.md

@@ -1,5 +1,5 @@
 # repo_sync
-[![](https://img.shields.io/badge/version-1.0.1-brightgreen.svg)](https://git.yoqi.me/lyq/repo_sync)
+[![](https://img.shields.io/badge/version-1.3.0-brightgreen.svg)](https://git.yoqi.me/lyq/repo_sync)
 [![](https://img.shields.io/badge/Python-3.11.5-brightgreen.svg)](https://git.yoqi.me/lyq/repo_sync)
 
 

+ 1 - 1
scripts/sync.xys

@@ -1,5 +1,5 @@
 $InitialPath = "<curpath>";
-    $GETResult = urldecode(html('<html><style>body{text-align:center}.selection{text-align:left;margin-left:10%;margin-right:10%;padding-bottom:20px}.submtbtn{padding-left:20px;padding-right:20px;padding-top:10px;padding-bottom:10px}</style><body><div><h1>repo_sync tools v1.12</h1></div><form method="get"action="xys:"><div class="selection"><span>Repo:&nbsp;&nbsp;</span><span>' . $InitialPath . '</span></div><div class="selection">Operation:<input type=radio checked name="operation"value="create">Create&nbsp;&nbsp;<input type=radio name="operation"value="push">Push&nbsp;&nbsp;<input type=radio name="operation"value="pull">Pull&nbsp;&nbsp;<input type=radio name="operation"value="delete">Delete&nbsp;&nbsp;</div><div class="selection">Platform:<input type=radio checked name="platform"value="github">Github&nbsp;&nbsp;<input type=radio name="platform"value="gitlab">Gitlab&nbsp;&nbsp;<input type=radio name="platform"value="gitee">Gitee&nbsp;&nbsp;<input type=radio name="platform"value="gogs">git.yoq.me&nbsp;&nbsp;<input type=radio name="platform"value="coding">Coding&nbsp;&nbsp;</div><div><input class="submtbtn"type="submit"name="mysubmit"value="run it"></div></form></body></html>'));
+    $GETResult = urldecode(html('<html><style>body{text-align:center}.selection{text-align:left;margin-left:10%;margin-right:10%;padding-bottom:20px}.submtbtn{padding-left:20px;padding-right:20px;padding-top:10px;padding-bottom:10px}</style><body><div><h1>repo_sync tools v1.12</h1></div><form method="get"action="xys:"><div class="selection"><span>Repo:&nbsp;&nbsp;</span><span>' . $InitialPath . '</span></div><div class="selection">Operation:<input id="operation_create"type=radio checked name="operation"value="create"><label for="operation_create">Create&nbsp;&nbsp;</label><input id="operation_push"type=radio name="operation"value="push"><label for="operation_push">Push&nbsp;&nbsp;</label><input id="operation_pull"type=radio name="operation"value="pull"><label for="operation_pull">Pull&nbsp;&nbsp;</label><input id="operation_delete"type=radio name="operation"value="delete"><label for="operation_delete">Delete&nbsp;&nbsp;</label></div><div class="selection">Platform:<input id="platform_github"type=radio checked name="platform"value="github"><label for="platform_github">Github&nbsp;&nbsp;</label><input id="platform_gitlab"type=radio name="platform"value="gitlab"><label for="platform_gitlab">Gitlab&nbsp;&nbsp;</label><input id="platform_gitee"type=radio name="platform"value="gitee"><label for="platform_gitee">Gitee&nbsp;&nbsp;</label><input id="platform_gogs"type=radio name="platform"value="gogs"><label for="platform_gogs">git.yoq.me&nbsp;&nbsp;</label><input id="platform_coding"type=radio name="platform"value="coding"><label for="platform_coding">Coding&nbsp;&nbsp;</label></div><div><input class="submtbtn"type="submit"name="mysubmit"value="run it"></div></form></body><script></script></html>'));
         IF ("$GETResult"=="") {sub "_Cancel";}
         // substr $GETResult, $GETResult, 1;
         $operation1=gettoken($GETResult, "1", "&");