瀏覽代碼

Fixed form

Brendan Abolivier 8 年之前
父節點
當前提交
1d9e6879ef
簽署人: Brendan Abolivier <contact@brendanabolivier.com> GPG 金鑰 ID: 8EF1500759F70623
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      front/form.js
  2. 1
    1
      front/index.html

+ 1
- 1
front/form.js 查看文件

103
     
103
     
104
     if(!type.localeCompare('input')) { // Set input type if input
104
     if(!type.localeCompare('input')) { // Set input type if input
105
         if(email) {
105
         if(email) {
106
-            input.setAttribute('type', 'mail');
106
+            input.setAttribute('type', 'email');
107
         } else {
107
         } else {
108
             input.setAttribute('type', 'text');
108
             input.setAttribute('type', 'text');
109
         }
109
         }

+ 1
- 1
front/index.html 查看文件

6
         <script src="http://localhost:1970/form.js" charset="utf-8"></script>
6
         <script src="http://localhost:1970/form.js" charset="utf-8"></script>
7
     </head>
7
     </head>
8
     <body>
8
     <body>
9
-        <div id="smam"></div>
9
+        <form id="smam" onsubmit="sendForm(); return false;"></form>
10
         <script type="text/javascript">
10
         <script type="text/javascript">
11
             generateForm('smam');
11
             generateForm('smam');
12
         </script>
12
         </script>