Skip to content

Commit

Permalink
更新:优化owo表情js加载
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchunshu committed Feb 18, 2023
1 parent a8708fe commit 6f921f4
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/Themes/CodeFec/resources/views/topic/show/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,17 @@
<link rel="stylesheet" href="{{file_hash('css/OwO.min.css')}}">
<script src="{{file_hash('js/OwO.min.js')}}"></script>
<script>
var OwO_demo = new OwO({
logo: '[OωO表情]',
container: document.getElementById('create-comment-owo'),
target: document.getElementById('create-comment-textarea'),
api: '/api/core/OwO.json',
width: '300px',
maxHeight: '250px',
});
if(OwO_demo){
if(document.getElementById('create-comment-owo') && document.getElementById('create-comment-textarea')){
var OwO_demo = new OwO({
logo: '[OωO表情]',
container: document.getElementById('create-comment-owo'),
target: document.getElementById('create-comment-textarea'),
api: '/api/core/OwO.json',
width: '300px',
maxHeight: '250px',
});
}
if(OwO_demo && document.getElementById('create-comment-owo2')){
var OwO_demo2 = new OwO({
logo: '[OωO表情]',
container: document.getElementById('create-comment-owo2'),
Expand Down

0 comments on commit 6f921f4

Please sign in to comment.