-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
157 lines (147 loc) · 8.67 KB
/
index.html
File metadata and controls
157 lines (147 loc) · 8.67 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!doctype html>
<html lang="en-US" xmlns:fb="https://www.facebook.com/2008/fbml" xmlns:addthis="https://www.addthis.com/help/api-spec"
prefix="og: http://ogp.me/ns#" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>How to create a custom POPUP form with PHP & Ajax</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="stylesheet" href="lightweightpopup.css" type="text/css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<h1><a href="https://learncodeweb.com/web-development/how-to-create-a-custom-popup-form-with-php-and-ajax/">How
to create a custom POPUP form with PHP & Ajax</a></h1>
<div class="mt-5">
<h1>Overlay Click False</h1>
<button type="button" id="popup" class="btn btn-primary mb-3" data-top="20" data-overlay="true"
data-href="contact-us.html" data-content="ajax"><i class="fa fa-fw fa-file-alt"></i> CLICK HERE
AJAX</button>
<h1>Model Position Fixed</h1>
<button type="button" id="inline" class="btn btn-danger mb-3" data-model-fixed="true"
data-content="inline"><i class="fa fa-fw fa-file-alt"></i> CLICK HERE INLINE</button>
<h1>Ajax base content</h1>
<a href="javascript:;" id="ancher" data-href="contact-us.html" class="btn btn-primary mb-3"
data-content="ajax"><i class="fa fa-fw fa-file-alt"></i> Ancher Tag AJAX</a>
<h1>Iframe Examples</h1>
<button type="button" id="iframe" data-href="https://www.youtube.com/embed/ZwKhufmMxko"
class="btn btn-warning mb-3" data-content="iframe"><i class="fa fa-fw fa-file-alt"></i> Button Tag
Iframe</button>
<a href="javascript:;"
data-href="https://learncodeweb.com/web-development/how-to-create-a-custom-popup-form-with-php-and-ajax/"
class="btn btn-dark mb-3 iframe" data-content="iframe"><i class="fa fa-fw fa-file-alt"></i> Ancher Tag
Iframe</a>
</div>
<div class="lwp-inline">
<div class="p-3">
<form method="post">
<div class="form-group">
<label>First Name</label>
<input type="text" name="name" id="fname" class="form-control"
placeholder="Enter your first name">
</div>
<div class="form-group">
<label>Last Name</label>
<input type="text" name="name" id="lname" class="form-control"
placeholder="Enter your last name">
</div>
<div class="form-group">
<label>Email</label>
<input type="email" name="email" id="email" class="form-control" placeholder="Enter your email">
</div>
<div class="form-group">
<label>Message</label>
<textarea rows="5" name="message" id="message" class="form-control"
placeholder="Write your message here"></textarea>
</div>
<div class="form-group">
<label>First Name</label>
<input type="text" name="name" id="fname" class="form-control"
placeholder="Enter your first name">
</div>
<div class="form-group">
<label>Last Name</label>
<input type="text" name="name" id="lname" class="form-control"
placeholder="Enter your last name">
</div>
<div class="form-group">
<label>Email</label>
<input type="email" name="email" id="email" class="form-control" placeholder="Enter your email">
</div>
<div class="form-group">
<label>Message</label>
<textarea rows="5" name="message" id="message" class="form-control"
placeholder="Write your message here"></textarea>
</div>
<div class="form-group">
<label>First Name</label>
<input type="text" name="name" id="fname" class="form-control"
placeholder="Enter your first name">
</div>
<div class="form-group">
<label>Last Name</label>
<input type="text" name="name" id="lname" class="form-control"
placeholder="Enter your last name">
</div>
<div class="form-group">
<label>Email</label>
<input type="email" name="email" id="email" class="form-control" placeholder="Enter your email">
</div>
<div class="form-group">
<label>Message</label>
<textarea rows="5" name="message" id="message" class="form-control"
placeholder="Write your message here"></textarea>
</div>
<div class="form-group">
<label>First Name</label>
<input type="text" name="name" id="fname" class="form-control"
placeholder="Enter your first name">
</div>
<div class="form-group">
<label>Last Name</label>
<input type="text" name="name" id="lname" class="form-control"
placeholder="Enter your last name">
</div>
<div class="form-group">
<label>Email</label>
<input type="email" name="email" id="email" class="form-control" placeholder="Enter your email">
</div>
<div class="form-group">
<label>Message</label>
<textarea rows="5" name="message" id="message" class="form-control"
placeholder="Write your message here"></textarea>
</div>
<div class="form-group">
<input type="button" name="button" value="Submit" class="btn btn-danger">
</div>
</form>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"
integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"
integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k"
crossorigin="anonymous"></script>
<script src="lightWeightPopup.js"></script>
<script>
$(document).ready(function (e) {
$("#popup").lightWeightPopup({ overlay: false, width: "90%", maxWidth: "600px", title: "Ajax Model" });
$("#inline").lightWeightPopup({ title: "Inline Model", top: 50, width: "90%", maxWidth: '500px' });
$("#ancher").lightWeightPopup({ width: "95%", maxWidth: "500px", title: "Ajax Model" });
$("#iframe").lightWeightPopup({ href: "https://www.youtube.com/embed/N59KnLf2pbY", width: '99%', maxWidth: "600px", height: "400px", title: "Iframe Model" });
$(".iframe").lightWeightPopup({ width: "90%", height: "100%", title: "Iframe Model" });
});
</script>
</body>
</html>