-
Notifications
You must be signed in to change notification settings - Fork 1
/
facts.php
94 lines (83 loc) · 2.81 KB
/
facts.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
<!DOCTYPE html>
<!-- saved from url=(0030)http://bootswatch.com/default/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Catalyst 4 Success</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="custom/custom-bootstrap.css" media="screen">
<link rel="stylesheet" href="files/styles.css" media="screen">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="../bower_components/html5shiv/dist/html5shiv.js"></script>
<script src="../bower_components/respond/dest/respond.min.js"></script>
<![endif]-->
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
</head>
<body>
<?php include("navbar.php") ?>
<br>
<div class="container" style="width:55%">
<h1>Previous Facts of the Week</h1>
<hr>
<p> <?php
$old_facts_file = 'files/oldfacts.txt';
echo file_get_contents($old_facts_file);
?>
</div>
<br><br><br><br><br>
<?php include("footer.php") ?>
<script>
$(document).ready( function(){
var welctop = $("#welcome").offset().top;
var welcbottom = welctop + $("#welcome").height();
$(window).scroll(function(){
var top = $(window).scrollTop();
var bottom = top + $(window).height();
if(top > welcbottom || $(window).width() < 767){
$("#navbar").prop('class', 'navbar navbar-default navbar-fixed-top');
}
else{
$("#navbar").prop('class', 'navbar navbar-default');
}
});
});
</script>
<script>
function goToByScroll(id){
// Scroll
$('html,body').animate({
scrollTop: $("#"+id).offset().top},
'slow');
// Scroll
}
</script>
<script>
var width = $(window).width();
var hoverover;
$(document).ready( function(){
navbarCollapseCheck();
$(".hover-active-dropdown").hover(
function() { $(this).attr("class", "dropdown hover-active-dropdown active")},
function() { $(this).attr("class", "dropdown hover-active-dropdown")}
);
$(".hover-active").hover(
function() { $(this).attr("class", "hover-active active")},
function() { $(this).attr("class", "hover-active")}
);
});
function navbarCollapseCheck(){
var width = $(window).width();
if(width < 767){
$(".dropdown-toggle").attr("data-toggle", "dropdown");
$("#navbar").prop('class', 'navbar navbar-default navbar-fixed-top');
}
else{
$(".dropdown-toggle").attr("data-toggle", " ");
$("#navbar").prop('class', 'navbar navbar-default');
}
}
$(window).on('resize', function() {
navbarCollapseCheck();
});
</script>
</body></html>