-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change labels, add multimedia formats
- Loading branch information
Showing
8 changed files
with
381 additions
and
131 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "tanghoong/php-chat-block", | ||
"description": "an dialogue chat block display component for php project", | ||
"type": "library", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Tang Hoong", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#chatUI{ | ||
padding: 10px; | ||
background-color: white; | ||
} | ||
|
||
#chatUI .chat-header{ | ||
border-radius: 30px; | ||
width: 20px; | ||
height: 20px; | ||
margin: 3px; | ||
} | ||
|
||
#chatUI .chat-container{ | ||
white-space: pre-wrap; | ||
border-radius: 5px; | ||
margin: 10px; | ||
padding: 5px; | ||
} | ||
|
||
#chatUI .chat-container-me{ | ||
background-color: #d5fdf0; | ||
margin-left: 40%; | ||
} | ||
|
||
#chatUI .chat-container-them{ | ||
background-color: #2db688; | ||
margin-right: 40%; | ||
} | ||
|
||
#chatUI .chat-container .chat-name{ | ||
font-weight: bold; | ||
display: flex; | ||
align-items: center; | ||
} | ||
#chatUI .chat-container .chat-name-me{ | ||
text-align: right; | ||
justify-content: flex-end; | ||
} | ||
#chatUI .chat-container .chat-name-them{ | ||
text-align: left; | ||
} | ||
|
||
#chatUI .chat-container .chat-block{ | ||
margin: 5px 0px; | ||
} | ||
#chatUI .chat-container .chat-block-me{ | ||
text-align: right; | ||
} | ||
#chatUI .chat-container .chat-block-them{ | ||
text-align: left; | ||
} | ||
|
||
#chatUI .chat-block-system{ | ||
text-align: center; | ||
white-space: pre-wrap; | ||
margin-left: 20%; | ||
margin-right: 20%; | ||
background-color: #cccccc; | ||
padding: 10px; | ||
border-radius: 5px; | ||
margin-bottom: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
Adam: https://i.imgur.com/pW71NE5.jpeg | ||
Eve: https://i.imgur.com/Jvh1OQm.jpeg | ||
Snake: https://i.imgur.com/FEiFVeO.png | ||
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 苹果 🍎🍎🍎? | ||
Eve: Ya sure, why not? why not? why not? why not? why not? why not? why not? why not? why not? why not? why not? | ||
Narator: Eve took the apple and bite. | ||
Adam: Dont! Dont! Dont! Dont! Dont! Dont! Dont! Dont! Dont! | ||
Snake: It is too late! hahaha! | ||
Narator: Thats why human have been cast away away away away away away away away away away away away away. | ||
Narator: Thats why human have been cast away. | ||
Narator: Thats why human have been cast away. | ||
Narator: Thats why human have been cast away. | ||
Narator: Thats why human have been cast away. | ||
Narator: end of the story.FIN.👍 | ||
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 | ||
Decision: 左边,中间,右边,上面,下面 | ||
|
Oops, something went wrong.