Subversion Repositories ALCASAR

Rev

Rev 3183 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3183 Rev 3324
Line 116... Line 116...
116
		<section id="inscription" class="row">
116
		<section id="inscription" class="row">
117
			<form name="master" id="contenu_acces" onsubmit="return false;" class="col-12 offset-lg-1 col-lg-10">
117
			<form name="master" id="contenu_acces" onsubmit="return false;" class="col-12 offset-lg-1 col-lg-10">
118
				<div class="row input_row">
118
				<div class="row input_row">
119
					<div class="label_name col-3 col-lg-4"><?=$l_Email?></div>
119
					<div class="label_name col-3 col-lg-4"><?=$l_Email?></div>
120
					<div class="col-6 col-lg-4">
120
					<div class="col-6 col-lg-4">
121
					<input type="email" placeholder="@<?=$whiteDomain?>" id="email" name="email" required class="form-control"/>
121
					<input type="email" placeholder="@*.<?=$whiteDomain?>" id="email" name="email" required class="form-control"/>
122
					</div>
122
					</div>
123
					<small id="output_email" class="row"></small>
123
					<small id="output_email" class="row"></small>
124
				</div>
124
				</div>
125
				<div id="status">
125
				<div id="status">
126
					<?=$l_mandatory?>
126
					<?=$l_mandatory?>
Line 165... Line 165...
165
						}
165
						}
166
					});
166
					});
167
				});
167
				});
168
			});
168
			});
169
		</script>
169
		</script>
-
 
170
		<script>
-
 
171
		document.getElementById('email').addEventListener('input', function(e) {
-
 
172
			const email = e.target.value;
-
 
173
			const domain = email.split('@')[1];
-
 
174
			if (domain.endsWith('.<?= $whiteDomain ?>') || domain === '<?= $whiteDomain ?>') {
-
 
175
				e.target.style.borderColor = 'green';
-
 
176
			} else {
-
 
177
				e.target.style.borderColor = 'red';
-
 
178
			}
-
 
179
		});
-
 
180
		</script>
170
	</div>
181
	</div>
171
</body>
182
</body>
172
</html>
183
</html>