-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
53 lines (50 loc) · 1.38 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
<?php
/**
* The template for displaying the footer.
*
* Contains footer content and the closing of the
* #main and #page div elements.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
</div><!-- /container -->
<script>
$('#showMap').toggle(function(){
$("#map-canvased").animate({
height:"220px"
})
$(this).text('Hide Map');
},function(){
$(this).text('Show Map');
$("#map-canvased").animate({
height:"0px"
})
});
$('form.simpleform').live('submit',function(){
var data = $(this).serialize();
$.ajax({
'url': "<?php echo get_template_directory_uri(); ?>/form-data.php",
'type': 'post',
'data': data,
'success': function(data) {
var responseData = jQuery.parseJSON(data)
$("form.simpleform").fadeOut().remove();
$("#status-wrapper").html("<h1>Welcome back "+responseData.name);
}
})
return false;
})
</script>
<?php wp_footer(); ?>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/vendor/bootstrap.min.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/plugins.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/tile.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/main.js"></script>
<script>
</script>
</body>
</html>