-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
129 lines (104 loc) · 3.29 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<div class="w-section section footer">
<div class="w-container">
<div class="w-row">
<div class="w-col w-col-4"><img class="talix-logo-footer" src="<?php bloginfo('template_directory'); ?>/library/images/Talix-Final-Logos-2_6-Talix-RGB-Large1.png">
</div>
<div class="w-col w-col-4"></div>
<div class="w-col w-col-4 w-clearfix"><a class="button footer-button" href="/contact">Let’s Talk</a>
</div>
</div>
<div>
<div class="divider"></div>
</div>
<div>
<div class="w-row">
<div class="w-col w-col-4"></div>
<div class="w-col w-col-12">
<div class="footer-copyright">Copyright 2016 Talix. All Rights Reserved.</div>
</div>
</div>
</div>
</div>
</div>
<?php // all js scripts are loaded in library/bones.php ?>
<?php wp_footer(); ?>
<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-68174886-1', 'auto');
ga('send', 'pageview');
</script>
<script>
/**
* jQuery Unveil
* A very lightweight jQuery plugin to lazy load images
* http://luis-almeida.github.com/unveil
*
* Licensed under the MIT license.
* Copyright 2013 Luís Almeida
* https://github.com/luis-almeida
*/
;(function($) {
$.fn.unveil = function(threshold, callback) {
var $w = $(window),
th = threshold || 0,
retina = window.devicePixelRatio > 1,
attrib = retina? "data-src-retina" : "data-src",
images = this,
loaded;
this.one("unveil", function() {
var source = this.getAttribute(attrib);
source = source || this.getAttribute("data-src");
if (source) {
this.setAttribute("src", source);
if (typeof callback === "function") callback.call(this);
}
});
function unveil() {
var inview = images.filter(function() {
var $e = $(this);
if ($e.is(":hidden")) return;
var wt = $w.scrollTop(),
wb = wt + $w.height(),
et = $e.offset().top,
eb = et + $e.height();
return eb >= wt - th && et <= wb + th;
});
loaded = inview.trigger("unveil");
images = images.not(loaded);
}
$w.on("scroll.unveil resize.unveil lookup.unveil", unveil);
unveil();
return this;
};
})(window.jQuery || window.Zepto);
$(document).ready(function(){
$('.customer-image').unveil();
});
</script>
<script>
jQuery(document).ready(function($){
//open popup
$('.lead-popup-trigger').on('click', function(event){
event.preventDefault();
$('.lead-popup').addClass('is-visible');
});
//close popup
$('.lead-popup').on('click', function(event){
if( $(event.target).is('.lead-popup-close') || $(event.target).is('.lead-popup') ) {
event.preventDefault();
$(this).removeClass('is-visible');
}
});
//close popup when clicking the esc keyboard button
$(document).keyup(function(event){
if(event.which=='27'){
$('.lead-popup').removeClass('is-visible');
}
});
});
</script>
</body>
</html>