-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
executable file
·45 lines (42 loc) · 1.97 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
<?php echo wp_footer(); ?>
<script type="text/javascript" async="true" src="<?php echo get_template_directory_uri(); ?>/js/jquery-ui.min.js"></script>
<script type="text/javascript" async="true" src="<?php echo get_template_directory_uri(); ?>/js/bootstrap.js"></script>
<script type="text/javascript" async="true" src="<?php echo get_template_directory_uri(); ?>/js/fastclick.js"></script>
<script type="text/javascript" async="true" src="<?php echo get_template_directory_uri(); ?>/js/bex-normal.js"></script>
<!-- <script type="text/javascript" async="true" src="<?php echo get_template_directory_uri(); ?>/js/jquery-snowfall.min.js"></script> -->
<script type="text/javascript" async="true" src="//bexcellent.disqus.com/embed.js"></script>
<script type="text/javascript">
window.addEventListener('load', function() {
new FastClick(document.body);
}, false);
var bgcount = 2;
function changeBackground() {
$('body').css("backgroundImage", "url('<?php echo get_template_directory_uri(); ?>/texture/backgrounds/bg"+bgcount+".png')");
++bgcount;
if(bgcount === 12) bgcount = 1;
}
</script>
<div id="preloaded-images">
<?php for ($i = 1; $i <= 11; $i++): ?>
<img src="<?php echo get_template_directory_uri(); ?>/texture/backgrounds/bg<?php echo $i; ?>.png" width="1" height="1" alt="" />
<?php endfor; ?>
</div>
<style type="text/css">
body
{
background-image: url('<?php echo get_template_directory_uri(); ?>/texture/backgrounds/bg1.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-57405264-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>