diff --git a/public_html/css/container.css b/public_html/css/container.css index 0195799..63a8755 100644 --- a/public_html/css/container.css +++ b/public_html/css/container.css @@ -68,6 +68,24 @@ font-size: .8em; } + #CONTAINER.message div span.del{ /* Del btn */ + display: block; + position: absolute; + top: .5em; + left: calc( 100% - 1.5em ); + width: 1em; + height: 1em; + + background: url('/image/container/del-msg.svg@777777') center center no-repeat; + background-size: 80% auto; + + cursor: pointer; + } + + #CONTAINER.message div span.del:hover{ + background-image: url('/image/container/del-msg.svg@e33222') + } + #CONTAINER.message div span span.code{ /* Code block */ display: inline-block; position: relative; diff --git a/public_html/image/container/del-msg.svg b/public_html/image/container/del-msg.svg new file mode 100644 index 0000000..0614237 --- /dev/null +++ b/public_html/image/container/del-msg.svg @@ -0,0 +1,51 @@ + +image/svg+xml \ No newline at end of file diff --git a/view/vue/container/emergency.vue b/view/vue/container/emergency.vue index e899f72..99deb50 100644 --- a/view/vue/container/emergency.vue +++ b/view/vue/container/emergency.vue @@ -6,6 +6,7 @@ +
@@ -75,6 +76,9 @@ export default { }); }, + del_message(id_msg){ + api.call("DELETE message/emergency/"+this.dep, { id: id_msg }, function(rs){}); + }, bbcode: function(msg){ return this.gstore.func.bbcode(msg); }