@@ -24,6 +24,28 @@ public static async Task FontProtected(string Path, string Rel, string Pathname)
24
24
await Font ( Path , Rel ) ;
25
25
}
26
26
}
27
+ public static async Task FontElement ( string Identify , string Path )
28
+ {
29
+ await FontElement ( Identify , Path , "stylesheet" ) ;
30
+ }
31
+
32
+ public static async Task FontElementProtected ( string Identify , string Path , string Pathname )
33
+ {
34
+ await FontElementProtected ( Identify , Path , "stylesheet" , Pathname ) ;
35
+ }
36
+
37
+ public static async Task FontElement ( string Identify , string Path , string Rel )
38
+ {
39
+ await Interop . Call ( "Taiizor.Include.Font.Element" , Identify , Path , Rel ) ;
40
+ }
41
+
42
+ public static async Task FontElementProtected ( string Identify , string Path , string Rel , string Pathname )
43
+ {
44
+ if ( await Location . GetPathname ( ) == Pathname )
45
+ {
46
+ await FontElement ( Identify , Path , Rel ) ;
47
+ }
48
+ }
27
49
28
50
public static async Task Script ( string Path )
29
51
{
@@ -83,5 +105,38 @@ public static async Task StylesheetProtected(string Path, string Rel, string Typ
83
105
await Stylesheet ( Path , Rel , Type ) ;
84
106
}
85
107
}
108
+
109
+ public static async Task StylesheetElement ( string Identify , string Path )
110
+ {
111
+ await StylesheetElement ( Identify , Path , "stylesheet" ) ;
112
+ }
113
+
114
+ public static async Task StylesheetElementProtected ( string Identify , string Path , string Pathname )
115
+ {
116
+ await StylesheetElementProtected ( Identify , Path , "stylesheet" , Pathname ) ;
117
+ }
118
+
119
+ public static async Task StylesheetElement ( string Identify , string Path , string Rel )
120
+ {
121
+ await StylesheetElement ( Identify , Path , Rel , "text/css" ) ;
122
+ }
123
+
124
+ public static async Task StylesheetElementProtected ( string Identify , string Path , string Rel , string Pathname )
125
+ {
126
+ await StylesheetElementProtected ( Identify , Path , Rel , "text/css" , Pathname ) ;
127
+ }
128
+
129
+ public static async Task StylesheetElement ( string Identify , string Path , string Rel , string Type )
130
+ {
131
+ await Interop . Call ( "Taiizor.Include.Css.Element" , Identify , Path , Rel , Type ) ;
132
+ }
133
+
134
+ public static async Task StylesheetElementProtected ( string Identify , string Path , string Rel , string Type , string Pathname )
135
+ {
136
+ if ( await Location . GetPathname ( ) == Pathname )
137
+ {
138
+ await StylesheetElement ( Identify , Path , Rel , Type ) ;
139
+ }
140
+ }
86
141
}
87
142
}
0 commit comments