Skip to content

Commit

Permalink
Adding sample
Browse files Browse the repository at this point in the history
cth-inni committed Aug 30, 2021
1 parent 31abac0 commit 1e76653
Showing 5 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ Snake: Wanna eat apple 苹果 🍎🍎🍎?
then
```
include 'ChatBlock.php';
$lines = file_get_contents('./chapter-1.txt');
$lines = file_get_contents('./chapter.1.txt');
$cb = new ChatBlock($lines);
echo $cb->read();
```
18 changes: 18 additions & 0 deletions chapter.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
妖猫: //i.imgur.com/Jvh1OQm.jpeg?color=blue
大蛇丸: //i.imgur.com/FEiFVeO.png?color=green
天狗: //i.imgur.com/pW71NE5.jpeg?color=red
---
Background: //www.yummy-sounds.com/data/music/music/zoomplayer/2-0521_Lino_Rise_Media_-_Steve_Sin_City_layout.mp3
Narator: 日本,云间里的破庙...
大蛇丸: 谁偷吃了我的千年智慧之果 🍎🍎🍎?
妖猫: 区区小货色竟敢宣称这神圣之物是你的?我呸!看我的暗影飞转无影爪!

大蛇丸: 哎哟!我的鳞片都被你刮掉了!我的妈呀!滑头油舌头术!
妖猫: 好滑~四肢脚都站立不定,没法结印。我撤!
Narator: 滋滋滋滋
妖猫: 怎么有结界?
大蛇丸: 呵呵,你天真啊!以为我千年来是如何镇守这里?飞🐍缠身擒拿法!
妖猫: 喵呜呜~ 好疼~ 我…… 我…… 没法呼吸……
大蛇丸: 不知自己的分寸私闯禁地,我吃了补补我今晚的魔力吧!
天狗: 休想!
妖猫: 狗兄!救命!
5 changes: 3 additions & 2 deletions demo.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,8 @@
include './src/ChatBlock.php';
use ChatBlock as ChatUI;

$sample = file_get_contents('./sample.txt');
// $sample = file_get_contents('./sample.txt');
$sample = file_get_contents('./chapter.1.txt');
// $sample = file_get_contents('./sample.2.txt');
?>

@@ -23,7 +24,7 @@
</head>
<body>
<div class="container" id="chatUI">
<h1>打赏宣言#1</h1>
<h1>Novel Title</h1>
<?php
$cb = new ChatUI($sample);
echo $cb->read();
2 changes: 1 addition & 1 deletion imessage.css
Original file line number Diff line number Diff line change
@@ -199,7 +199,7 @@
}
.imessage .chat-name-me{
text-align: right;
justify-content: flex-end;
flex-direction: row-reverse;
}
.imessage .chat-name-them{
text-align: left;
3 changes: 2 additions & 1 deletion sample.txt
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ Adam: //i.imgur.com/pW71NE5.jpeg?color=red
Eve: //i.imgur.com/Jvh1OQm.jpeg?color=blue
Snake: //i.imgur.com/FEiFVeO.png?color=green
---

Background: //filesamples.com/samples/audio/mp3/sample3.mp3
Narator: Once upon a time...
Snake: Wanna eat apple 苹果 🍎🍎🍎?
@@ -12,14 +13,14 @@ Snake: It is too late! hahaha!
Tiger: It is too late! hahaha!
Dog: It is too late! hahaha!
Cat: It is too late! hahaha!

Narator: Thats why human have been cast <u>away away away away away away away away away away away away away</u>.
Narator: Thats why human have been cast <b>away</b>.
Narator: Thats why human <a href="#here">Here</a> have been cast <i>away</i>.
Narator: Thats why human <br>have been cast <b><i>away</i></b>.

Narator: end of the story.FIN.👍


Image: //i.imgur.com/pW71NE5.jpeg?color=red
MP3: //filesamples.com/samples/audio/mp3/sample3.mp3
Youtube: //www.youtube.com/embed/tgbNymZ7vqY?controls=0

0 comments on commit 1e76653

Please sign in to comment.