質問するログイン新規登録

質問編集履歴

1

ソースコード更新

2016/05/28 04:52

投稿

Clementine
Clementine

スコア158

title CHANGED
File without changes
body CHANGED
@@ -4,10 +4,68 @@
4
4
  レイアウトが崩れてしまします。
5
5
 
6
6
  ```html
7
+
8
+ <!DOCTYPE html>
9
+ <head>
10
+ <meta charset="utf-8"/>
11
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
12
+
13
+ <link href="http://localhost/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
14
+ <link href="http://localhost/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
15
+ <link href="http://localhost/css\auth.css" rel="stylesheet" type="text/css" />
16
+ <script src="http://localhost/js/jquery.min.js" ></script>
17
+ <script src="http://localhost/js/bootstrap.min.js" ></script>
18
+
19
+
20
+ </head>
21
+
22
+ <body>
23
+
24
+ <div class="container">
25
+ <script type="text/javascript">
26
+ $(function(){
27
+ $('input[name=show_password]').change(function(){
28
+ var typ = "password";
29
+ var plh = $('input[name=password]').attr('placeholder');
30
+ var val = $('input[name=password]').val();
31
+ if($(this).is(':checked')){
32
+ typ = "text";
33
+ }
34
+ $('input[name=password]').replaceWith($('<input />').attr({
35
+ name: 'password',
36
+ type: typ,
37
+ class: 'form-control',
38
+ placeholder: plh,
39
+ value: val
40
+ }));
41
+ });
42
+ })
43
+ </script>
44
+
45
+ <form action="http://localhost/index.php/auth/signin" class="form-signin form" method="post" accept-charset="utf-8">
46
+ <h2 class="form-signin-heading">Please sign in</h2>
47
+
7
- <div class="input-group">
48
+ <div class="input-group">
49
+ <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
50
+ <input type="text" name="email" value="" placeholder="メールアドレス" class="form-control" autofocus="1" />
51
+ </div>
52
+
53
+ <div class="input-group">
8
54
  <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
9
- <input type="password" name="password" value="" placeholder="パスワード" class="form-control" required="1" />
55
+ <input type="password" name="password" value="" placeholder="パスワード" class="form-control" />
10
- </div>
56
+ </div>
57
+
58
+ <div class="checkbox">
59
+ <label>
60
+ <input type="checkbox" name="show_password" value="1" />
61
+ &nbsp;パスワードを表示
62
+ </label>
63
+ </div>
64
+ <input type="submit" name="submit" value="サインイン" class="btn btn-lg btn-primary btn-block" />
65
+ </form> </div>
66
+ </body>
67
+
68
+ </html>
11
69
  ```
12
70
 
13
71
  情報がありました、ご教授の程、よろしくお願い致します。