File tree 1 file changed +16
-8
lines changed 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 212
212
</script >
213
213
{{ /if }}
214
214
215
- {{ #if is_print }}
216
- <script type =" text/javascript" >
217
- document .addEventListener (' DOMContentLoaded' , function () {
218
- window .print ();
219
- })
220
- </script >
221
- {{ /if }}
222
-
223
215
{{ #if playpen_js }}
224
216
<script src =" ace.js" type =" text/javascript" charset =" utf-8" ></script >
225
217
<script src =" editor.js" type =" text/javascript" charset =" utf-8" ></script >
246
238
<script type =" text/javascript" src =" {{ this }} " ></script >
247
239
{{ /each }}
248
240
241
+ {{ #if is_print }}
242
+ {{ #if mathjax_support }}
243
+ <script type =" text/x-mathjax-config" >
244
+ MathJax .Hub .Register .StartupHook (" End" , function () {
245
+ window .print ();
246
+ });
247
+ </script >
248
+ {{ else }}
249
+ <script type =" text/javascript" >
250
+ document .addEventListener (' DOMContentLoaded' , function () {
251
+ window .print ();
252
+ });
253
+ </script >
254
+ {{ /if }}
255
+ {{ /if }}
256
+
249
257
</body >
250
258
</html >
You can’t perform that action at this time.
0 commit comments