| Server IP : 172.67.187.206 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/www/myschool/triamudom/check/cardtime/js/ |
Upload File : |
//INITIALIZES PORTFOLIO ZOOM
$(document).ready(function () {
$(".zoom img").css("opacity", "1");
$(".zoom img").hover(function () {
$(this).stop().animate({
opacity: .5
}, "slow");
},
function () {
$(this).stop().animate({
opacity: 1
}, "slow");
});
});
//INITIALIZES NAVIGATION SELECT LINKS
$(document).ready(function () {
$('ul.navigation li').localScroll();
$('ul.navigation li a').click(function () {
$('ul.navigation li').removeClass('current');
$(this).parent().addClass('current');
});
$('ul.navigation').mobileMenu({
defaultText: 'Navigation',
className: 'select-menu',
subMenuDash: '–'
});
});
//INITIALIZES LIGHTBOX PLUGIN
$(document).ready(function () {
$("a[rel^='prettyPhoto']").prettyPhoto({
opacity: 0.80,
default_width: 500,
default_height: 344,
theme: 'dark_rounded',
hideflash: false,
modal: false,
showTitle: false,
});
});
//TOGGLE PANELS
$(document).ready(function(){
$('.toggle-content').hide(); //hides the toggled content, if the javascript is disabled the content is visible
$('.toggle-link').click(function () {
if ($(this).is('.toggle-close')) {
$(this).removeClass('toggle-close').addClass('toggle-open').parent().next('.toggle-content').slideToggle(300);
return false;
}
else {
$(this).removeClass('toggle-open').addClass('toggle-close').parent().next('.toggle-content').slideToggle(300);
return false;
}
});
});
//INITIALIZES CONTACT FORM
$("#contact_form").validate({
meta: "validate",
submitHandler: function (form) {
$('#contact_form').hide();
var s_name = $("#name").val();
var s_email = $("#email").val();
var s_website = $("#website").val();
var s_comment = $("#comment").val();
$.post("contact.php", {
name: s_name,
email: s_email,
website: s_website,
comment: s_comment
},
function (result) {
$('#sucessmessage').append(result);
});
return false;
},
/* */
rules: {
name: "required",
lastname: "required",
// simple rule, converted to {required:true}
email: { // compound rule
required: true,
email: true
},
subject: {
required: true,
},
comment: {
required: true
}
},
messages: {
name: "Please enter your name.",
lastname: "Please enter your last name.",
email: {
required: "Please enter email.",
email: "Please enter valid email"
},
subject: "Please enter a subject.",
comment: "Please enter a comment."
},
}); /*========================================*/