4c94b57e by Jeff Balicki

sss

1 parent a66efe2f
......@@ -234,11 +234,63 @@ $(window).on('load resize scroll', function() {
}
//$('#exampleModal').find('form').append('<input type="hidden" name="planner_id" value="'+$(this).data('id')+'"/>')
$('#exampleModal').modal('show');
window.open('https://yournumbers.ca/wp-content/uploads/2022/03/FP_Financial-Stress-Index_R1b.pdf', "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=800, height=900, top=10, left=10");
$.ajax({
url: '/wp-content/uploads/2022/03/FP_Financial-Stress-Index_R1b.pdf',
method: 'GET',
xhrFields: {
responseType: 'blob'
},
success: function (data) {
var a = document.createElement('a');
var url = window.URL.createObjectURL(data);
a.href = url;
a.download = 'myfile.pdf';
document.body.append(a);
a.click();
a.remove();
window.URL.revokeObjectURL(url);
}
});
});
// function SaveToDisk(fileURL, fileName) {
// // for non-IE
// if (!window.ActiveXObject) {
// var save = document.createElement('a');
// save.href = fileURL;
// save.target = '_blank';
// save.download = fileName || 'unknown';
// var evt = new MouseEvent('click', {
// 'view': window,
// 'bubbles': true,
// 'cancelable': false
// });
// save.dispatchEvent(evt);
// (window.URL || window.webkitURL).revokeObjectURL(save.href);
// }
// // for IE < 11
// else if ( !! window.ActiveXObject && document.execCommand) {
// var _window = window.open(fileURL, '_blank');
// _window.document.close();
// _window.document.execCommand('SaveAs', true, fileName || fileURL)
// _window.close();
// }
// }
$(document).on("click",".start_a_contact",function() {
if ($(window).width() < 600) {
......
......@@ -5,7 +5,7 @@
Author: the Understrap Contributors
Author URI: https://github.com/understrap/understrap-child/graphs/contributors
Template: understrap
Version: 1.1.30383
Version: 1.1.30384
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: understrap-child
......