Skip to content

RustingSword/fanfou-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

将饭否消息嵌入网页中

Usage

demo.html:

<!DOCTYPE html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <script type="text/javascript" charset="utf-8" src="fanfouembed.js"></script>
    <style type="text/css">
    body {background: #eee;}
    </style>
</head>
<body>
    <script type="text/javascript">
        ffstatus.embedMessage("http://fanfou.com/statuses/kSKBi4eZ-qQ");
        ffstatus.embedMessage("http://fanfou.com/statuses/jUYCGbbeMUM");
        ffstatus.embedMessage("http://fanfou.com/statuses/qBfN_C5UfrU");
    </script>
</body>

result:

嵌入的消息

致谢

JS 代码来自饭否博客插件

CSS 代码来自饭否主站

饭否 API 参考文档 statuses.show

About

embed a fanfou message in webpage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published