-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from playboySeductor/sainik
Project Initiated
- Loading branch information
Showing
138 changed files
with
33,876 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
|
||
<body> | ||
HI | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Fully working PHP/AJAX contact form is available in the pro version. | ||
You can buy it from: https://bootstrapmade.com/buy/?theme=BizPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
jQuery(document).ready(function($) { | ||
"use strict"; | ||
|
||
//Contact | ||
$('form.contactForm').submit(function() { | ||
var f = $(this).find('.form-group'), | ||
ferror = false, | ||
emailExp = /^[^\s()<>@,;:\/]+@\w[\w\.-]+\.[a-z]{2,}$/i; | ||
|
||
f.children('input').each(function() { // run all inputs | ||
|
||
var i = $(this); // current input | ||
var rule = i.attr('data-rule'); | ||
|
||
if (rule !== undefined) { | ||
var ierror = false; // error flag for current input | ||
var pos = rule.indexOf(':', 0); | ||
if (pos >= 0) { | ||
var exp = rule.substr(pos + 1, rule.length); | ||
rule = rule.substr(0, pos); | ||
} else { | ||
rule = rule.substr(pos + 1, rule.length); | ||
} | ||
|
||
switch (rule) { | ||
case 'required': | ||
if (i.val() === '') { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'minlen': | ||
if (i.val().length < parseInt(exp)) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'email': | ||
if (!emailExp.test(i.val())) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'checked': | ||
if (!i.attr('checked')) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'regexp': | ||
exp = new RegExp(exp); | ||
if (!exp.test(i.val())) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
} | ||
i.next('.validation').html((ierror ? (i.attr('data-msg') !== undefined ? i.attr('data-msg') : 'wrong Input') : '')).show('blind'); | ||
} | ||
}); | ||
f.children('textarea').each(function() { // run all inputs | ||
|
||
var i = $(this); // current input | ||
var rule = i.attr('data-rule'); | ||
|
||
if (rule !== undefined) { | ||
var ierror = false; // error flag for current input | ||
var pos = rule.indexOf(':', 0); | ||
if (pos >= 0) { | ||
var exp = rule.substr(pos + 1, rule.length); | ||
rule = rule.substr(0, pos); | ||
} else { | ||
rule = rule.substr(pos + 1, rule.length); | ||
} | ||
|
||
switch (rule) { | ||
case 'required': | ||
if (i.val() === '') { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
|
||
case 'minlen': | ||
if (i.val().length < parseInt(exp)) { | ||
ferror = ierror = true; | ||
} | ||
break; | ||
} | ||
i.next('.validation').html((ierror ? (i.attr('data-msg') != undefined ? i.attr('data-msg') : 'wrong Input') : '')).show('blind'); | ||
} | ||
}); | ||
if (ferror) return false; | ||
else var str = $(this).serialize(); | ||
$.ajax({ | ||
type: "POST", | ||
url: "contactform/contactform.php", | ||
data: str, | ||
success: function(msg) { | ||
// alert(msg); | ||
if (msg == 'OK') { | ||
$("#sendmessage").addClass("show"); | ||
$("#errormessage").removeClass("show"); | ||
$('.contactForm').find("input, textarea").val(""); | ||
} else { | ||
$("#sendmessage").removeClass("show"); | ||
$("#errormessage").addClass("show"); | ||
$('#errormessage').html(msg); | ||
} | ||
|
||
} | ||
}); | ||
return false; | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>RANDOM</title> | ||
</head> | ||
|
||
<body> | ||
<div class="random"> | ||
This is a random page | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The scss source files are available in the pro version. |
Oops, something went wrong.