Merge SLEGPI repo into this stand alone one !
This commit is contained in:
4
Website Source Code/js/auto-js.js
Normal file
4
Website Source Code/js/auto-js.js
Normal file
@ -0,0 +1,4 @@
|
||||
setTimeout(function () {
|
||||
window.location.href= 'http://localhost/slegpi/auto.php'; // the redirect goes here
|
||||
|
||||
},2000);
|
3
Website Source Code/js/foundation.min.js
vendored
Normal file
3
Website Source Code/js/foundation.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
43
Website Source Code/js/hawthorne.js
Normal file
43
Website Source Code/js/hawthorne.js
Normal file
@ -0,0 +1,43 @@
|
||||
// Foundation JavaScript
|
||||
// Documentation can be found at: http://foundation.zurb.com/docs
|
||||
$(document).foundation();
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
// Image hover
|
||||
$(".thumbnail-img").hover(function() {
|
||||
$(this).find(".thumbnail-hover").stop(true, true).fadeIn(200);
|
||||
}, function() {
|
||||
$(this).find(".thumbnail-hover").fadeOut(400);
|
||||
});
|
||||
|
||||
$(".thumbnail-img").click(function() {
|
||||
$(this).find(".thumbnail-hover").fadeOut(400);
|
||||
});
|
||||
|
||||
// Hide hover effect on touch devices
|
||||
if (Modernizr.touch) {
|
||||
$(".thumbnail-hover").css("display", "none");
|
||||
$(".thumbnail-hover").css("visibility", "hidden");
|
||||
$(".thumbnail-img").unbind("mouseenter mouseleave");
|
||||
}
|
||||
|
||||
// Trigger caption hover on thumbnail hover
|
||||
$(".thumbnail-img").hover(function(){
|
||||
$(this).parent().find(".caption-link").toggleClass("caption-hover");
|
||||
});
|
||||
|
||||
// Trigger thumbnail hover on caption hover
|
||||
$(".caption-link").hover(function() {
|
||||
$(this).parent().parent().find(".thumbnail-hover").stop(true, true).fadeIn(200);
|
||||
}, function() {
|
||||
$(this).parent().parent().find(".thumbnail-hover").fadeOut(400);
|
||||
});
|
||||
|
||||
// Back to top button on detail view page
|
||||
$(".back-to-top").click(function(event) {
|
||||
event.preventDefault();
|
||||
$("html, body").animate({scrollTop: 0}, 700);
|
||||
});
|
||||
|
||||
});
|
4
Website Source Code/js/index-js.js
Normal file
4
Website Source Code/js/index-js.js
Normal file
@ -0,0 +1,4 @@
|
||||
setTimeout(function () {
|
||||
window.location.href= 'http://localhost/slegpi'; // the redirect goes here
|
||||
|
||||
},2000);
|
Reference in New Issue
Block a user