クライアントが中央データベースにフィードバックを送信できるカスタム ツールを開発しました。
クライアントが Web サイトに貼り付ける長い HTML および JavaScript コードがあり、ツールが Web サイトに表示されます。
私の問題は、このコードを最小化するにはどうすればよいですか? 数行のコードを貼り付けるだけでブラウザに表示されるチャット ツールを見たことがあります。
以下は私のコードで、そこからコードのごく一部を生成する必要があります。
<div id='htmlfeedback-container-more'>
<a id='lnkdivFeedBackPage1' href='#'>FeedBack</a> | <a id='lnkdivFeedBackPage2' href='#'>Settings</a><br /><br />
<div id='divFeedBackPage1'>
<div id='content' class='content'></div>
<p>Please give a short description of your feedback. You can also highlight or blackout parts of the screen.</p>
<p>Note: Click on highlighted areas to disappear </p>
<form id='htmlfeedback-form'>
<p> <span>Marker:</span><input type='radio' name='marker' value='rgba(255,255,255,0)' style='width:10%' checked> Highlight <input type='radio' name='marker' value='rgb(0,0,0)' style='width:10%'> Black out </p>
<p><span>Name or E-mail:</span> <input type='text' name='email' id='htmlfeedback-input-email' style='width:88%'/></p>
<p><span>Short description:</span> <textarea name='description' id='htmlfeedback-input-description'></textarea></p>
<p><input type='submit' id='htmlfeedback-submit' value='Send' style='background-color:#5547ec'><input type='reset' id='htmlfeedback-reset' value='Reset' style='width:30%;background-color:#5547ec'></p>
</form></div>
<div id='divFeedBackPage2'>
<p>Changes will take effect through all the instances of the tool if you have added the control in multiple locations.</p>
<form id='frmfeedBackSettings-form'>
<p><span>Title:</span><input type='text' name='text' id='txtfeedBackTitle' style='width: 88%' /></p>
<p><span>Color:</span><input type='text' name='text' id='txtfeedBackColor' /></p>
<input type='submit' id='btnSubmitFeedbackSettings' value='Submit'/>
</form></div></div></div>
<div id='divWaitMsg' style='display:none; color:blue; font-size:20px' class='centered'>Please Wait....</div>