mirror of
https://github.com/tursom/typecho-prism.git
synced 2024-12-26 04:20:16 +08:00
为保证加载速度删除不常用语言
This commit is contained in:
parent
5bcd771174
commit
e09472022d
@ -71,7 +71,7 @@ class Prismjs_Plugin implements Typecho_Plugin_Interface
|
||||
public static function header()
|
||||
{
|
||||
$cssUrl = Helper::options()->pluginUrl . '/Prismjs/src/prism.css';
|
||||
echo '<link rel="stylesheet" type="text/css" href="' . $cssUrl . '?v4" />';
|
||||
echo '<link rel="stylesheet" type="text/css" href="' . $cssUrl . '?v5" />';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -84,7 +84,7 @@ class Prismjs_Plugin implements Typecho_Plugin_Interface
|
||||
public static function footer()
|
||||
{
|
||||
$jsUrl = Helper::options()->pluginUrl . '/Prismjs/src/prism.js';
|
||||
echo '<script type="text/javascript" src="' . $jsUrl . '?v4"></script>';
|
||||
echo '<script type="text/javascript" src="' . $jsUrl . '?v5"></script>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
File diff suppressed because one or more lines are too long
287
src/prism.js
287
src/prism.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user