Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeff Balicki
/
FP_Canada
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4c94b57e
authored
2022-03-27 20:27:49 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sss
1 parent
a66efe2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
2 deletions
wp-content/themes/understrap-child/js/custom-javascript.js
wp-content/themes/understrap-child/style.css
wp-content/themes/understrap-child/js/custom-javascript.js
View file @
4c94b57
...
...
@@ -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
)
{
...
...
wp-content/themes/understrap-child/style.css
View file @
4c94b57
...
...
@@ -5,7 +5,7 @@
Author: the Understrap Contributors
Author URI: https://github.com/understrap/understrap-child/graphs/contributors
Template: understrap
Version: 1.1.3038
3
Version: 1.1.3038
4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: understrap-child
...
...
Please
register
or
sign in
to post a comment