We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d70824 commit 0cfd5ddCopy full SHA for 0cfd5dd
1 file changed
Types/Gradient/get_HTML.ps1
@@ -0,0 +1,12 @@
1
+<#
2
+.SYNOPSIS
3
+ Gets the gradient as HTML
4
+.DESCRIPTION
5
+ Gets the gradient as a `<div>` element with a style attribute.
6
+#>
7
+$styleAttribute = [Web.HttpUtility]::HtmlAttributeEncode(@(
8
+ "width:100%"
9
+ "height:100%"
10
+ "background-image:$($this.CSS)"
11
+) -join ';')
12
+"<div style='$styleAttribute'></div>"
0 commit comments