-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
63 lines (52 loc) · 1.98 KB
/
footer.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
<!-- footer -->
<?php include_once("footer-links.php") ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.min-ck.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/bootstrap.min-ck.js"></script>
<script>
$("[rel=tooltip]").tooltip();
topDistance = 58;
(function() {
$(window).scroll(function() {
position = $(window).scrollTop();
if(position > topDistance) {
$('*[role="sidebar"].fixed').addClass('scrolled');
}
else {
$('*[role="sidebar"].fixed').removeClass('scrolled');
}
});
})();
$('a:not(.carousel-control)[href^="#"]').click(function() {
$('html,body').animate({ scrollTop: $(this.hash).offset().top}, 200);
return false;
e.preventDefault();
});
$('.post.carousel .item:first-child').addClass("active");
$('section.skills header button.btn').click(function(){
$('section.skills > article').slideToggle();
});
$('section.blog-sidebar button.btn').click(function(){
$('section.blog-sidebar .menu-categories-container').slideToggle();
});
$(window).resize( function() {
if ( $(document).width() >= 950 ) {
$('section.skills > article').attr("style","");
$('section.blog-sidebar .menu-categories-container').attr("style","");
}
});
</script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37601066-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>