Skip to content

fixed file extension and added the -customHeader parameter, see changes comments #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

francescopoli
Copy link

No description provided.

Francesco Poli added 3 commits February 21, 2017 01:05
files extension got mixed up during creation, psd1 become psm1 and vice
versa
added parameter  -customHeader

Added customHeader parameter, it
intersect after jScript and
datatableURi to inject custom polishing.
An
example will be passing in the  -customHeader something like (yes in
my
own script i pushed jquery to 2.2.4 and datatables to
1.10.13)
@"
<!--datatables CSS and js -->
<link rel="stylesheet"
type="text/css"
href="https://cdn.datatables.net/v/bs-3.3.7/jq-2.2.4/dt-1.10.13/datatables.min.css"/>

<!--
Latest compiled and minified CSS
-->
<link
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<script
charset="utf8"
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>

<!--Font
Awesome-->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
crossorigin="anonymous">
<!--BootsWatch-->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/readable/bootstrap.min.css"
integrity="sha384-Li5uVfY2bSkD3WQyiHX8tJd0aMF91rMrQP5aAewFkHkVSTT2TmD2PehZeMmm7aiL"
crossorigin="anonymous">
"@
looks like if the code is passed as list type and not as table type,
there will be an additional </tbody> clousure that is not needed. fix
can be either in here, or a change in current line 649: if (-not
$wrote_first_line -and $as -eq 'Table')  to not evaluate the 'table'
type, but it may have more impact than a proposed change
@brianmccarty
Copy link

Works great, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants