Site Notice
hello, world
Difference between revisions of "Github CDN"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 3: | Line 3: | ||
基本的用法是: | 基本的用法是: | ||
<html> | <html> | ||
− | <pre p>https://raw.githack.com/用户名/仓库/master/路径/文件名.扩展名 | + | <pre p>https://raw.githack.com/用户名/仓库/master/路径/文件名.扩展名<span id="show"></span></pre> |
− | <span id="show"> | + | <span id="apath">https://raw.hithack.com/<input style="width:280px" id="path" value="dragon-fish/wjghj-wiki/master/" /></span> |
− | <span id="apath">https://raw.hithack.com/<input style="width:280px" id="path"/></span> | ||
<script> | <script> | ||
addEventListener('load',function(){ | addEventListener('load',function(){ | ||
$('#path').keyup(function(){ | $('#path').keyup(function(){ | ||
− | $('#show').html('https://raw.hithack.com/'+$('#path').val()); | + | $('#show').html('<br/>https://raw.hithack.com/'+$('#path').val()); |
}); | }); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 15:14, 19 November 2019
基本的用法是: <html> <pre p>https://raw.githack.com/用户名/仓库/master/路径/文件名.扩展名<span id="show"></span></pre> <span id="apath">https://raw.hithack.com/<input style="width:280px" id="path" value="dragon-fish/wjghj-wiki/master/" /></span> <script> addEventListener('load',function(){
$('#path').keyup(function(){ $('#show').html('<br/>https://raw.hithack.com/'+$('#path').val()); });
}); </script> </html>