search - 自定义域搜索栏 WHMCS 集成
问题描述
我正在尝试将 WHMCS 中的几行代码集成为“域搜索栏”,该栏将在输入字符串时搜索可用性。这是域订购允许潜在客户直接进入具有输入域的购物车。见下文:
<form action="https://sales.tgitmedia.co.za/cart.php?a=add&domain=register" method="post">
Find your Domain: <input type="text" name="query" size="20" />
<input type="submit" value="Go" />
</form>
接下来,我找到了一个使用 CSS 设置样式的免费 Colorlib 搜索栏主题。但我不确定如何将这两个代码混合在一起以使搜索按钮在输入内容时起作用。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="author" content="colorlib.com">
<link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet" />
<link href="css/main.css" rel="stylesheet" />
</head>
<body>
<div class="s130">
<form>
<div class="inner-form">
<div class="input-field first-wrap">
<div class="svg-wrapper">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
</svg>
</div>
<input id="search" type="text" placeholder="Enter your website name" />
</div>
<div class="input-field second-wrap">
<button class="btn-search" type="button">SEARCH</button>
</div>
</div>
<span class="info">example .com .co.uk .net </span>
</form>
</div>
<script src="js/extention/choices.js"></script>
</body><!-- This templates was made by Colorlib (https://colorlib.com) -->
</html>
我尝试了很多次来整合这两个代码,但没有运气。请问有什么帮助吗?
解决方案
推荐阅读
- javascript - VUEJS我想直接在变量中导入图像文件
- ruby-on-rails - 在 ruby on rails 中堆叠或过滤会导致异常结果
- amazon-web-services - 启用详细的云观察指标有什么作用?
- python - 使用授权头下载后保存m4a文件
- c++ - 非 const 何时按值捕获引用?
- javascript - 我应该对不影响渲染的变量使用状态吗?
- azure - 生成本地运行的用户委托 SAS 令牌
- javascript - 赛普拉斯测试挂起自定义命令,但如果在 PO 文件中使用函数则不会 - 我错了什么?
- linux - 通过读取文件找到我机器的IP地址
- javascript - 使用本机 postgres 查询请求而不是使用 rest_framework 视图集对象