-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
executable file
·107 lines (96 loc) · 3.83 KB
/
contact.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Text Input Effects | Set 1</title>
<meta name="description" content="Simple ideas for enhancing text input interactions" />
<meta name="keywords" content="input, text, effect, focus, transition, interaction, inspiration, web design" />
<meta name="author" content="Codrops" />
</head>
<body>
<?php
include_once 'header.php';
?>
<div id="textinput">
<div class="container">
<h2 class="text-center">Contact me</h2>
<div class="col-md-6 col-md-offset-3">
<form name='registration' action='demo.php' method='POST'/>
<span class="input input--kaede">
<input class="input__field input__field--kaede" name="user_name" type="text" id="input-35" />
<label class="input__label input__label--kaede" for="input-35">
<span class="input__label-content input__label-content--kaede">First Name</span>
</label>
</span>
<span class="input input--kaede">
<input class="input__field input__field--kaede" name="phone" type="number" id="input-36" />
<label class="input__label input__label--kaede" for="input-36">
<span class="input__label-content input__label-content--kaede">Number</span>
</label>
</span>
<span class="input input--kaede">
<input class="input__field input__field--kaede" name="email" type="email" id="input-37" />
<label class="input__label input__label--kaede" for="input-37">
<span class="input__label-content input__label-content--kaede">Email</span>
</label>
</span>
<span class="input input--kaede">
<label class="input__label input__label--kaede" for="input-38" id="message">Message:</label>
<textarea class="input__field input__field--kaede" name="comment" rows="5" id="input-38"></textarea>
</label>
</span>
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div><!-- /container -->
</div>
<script src="js/classie.js"></script>
<script>
(function() {
// trim polyfill : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim
if (!String.prototype.trim) {
(function() {
// Make sure we trim BOM and NBSP
var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
String.prototype.trim = function() {
return this.replace(rtrim, '');
};
})();
}
[].slice.call( document.querySelectorAll( 'input.input__field' ) ).forEach( function( inputEl ) {
// in case the input is already filled..
if( inputEl.value.trim() !== '' ) {
classie.add( inputEl.parentNode, 'input--filled' );
}
// events:
inputEl.addEventListener( 'focus', onInputFocus );
inputEl.addEventListener( 'blur', onInputBlur );
} );
function onInputFocus( ev ) {
classie.add( ev.target.parentNode, 'input--filled' );
}
function onInputBlur( ev ) {
if( ev.target.value.trim() === '' ) {
classie.remove( ev.target.parentNode, 'input--filled' );
}
}
})();
</script>
<!--==============================FOOTER=============================================-->
<footer class="footer">
<div class="container">
<p class="text-muted">© MakeUp by JMay <?php echo date("Y"); ?> </p>
</div>
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/tiltfx.js"></script>
</body>
</html>