Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
汪沁然
/
AmibaLight
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 99c4b778
authored
Apr 25, 2018
by
CubeSky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Canvg
1 parent
becb2965
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
index.html
js/main.js
index.html
View file @
99c4b77
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
<script
crossorigin=
"anonymous"
src=
"https://cdnjs.loli.net/ajax/libs/axios/0.18.0/axios.min.js"
integrity=
"sha256-mpnrJ5DpEZZkwkE1ZgkEQQJW/46CSEh/STrZKOB/qoM="
></script>
<script
crossorigin=
"anonymous"
src=
"https://cdnjs.loli.net/ajax/libs/axios/0.18.0/axios.min.js"
integrity=
"sha256-mpnrJ5DpEZZkwkE1ZgkEQQJW/46CSEh/STrZKOB/qoM="
></script>
<script
crossorigin=
"anonymous"
src=
"https://cdnjs.loli.net/ajax/libs/sockjs-client/1.1.4/sockjs.min.js"
integrity=
"sha256-KWJavOowudybFMUCd547Wvd/u8vUg/2g0uSWYU5Ae+w="
></script>
<script
crossorigin=
"anonymous"
src=
"https://cdnjs.loli.net/ajax/libs/sockjs-client/1.1.4/sockjs.min.js"
integrity=
"sha256-KWJavOowudybFMUCd547Wvd/u8vUg/2g0uSWYU5Ae+w="
></script>
<script
crossorigin=
"anonymous"
src=
"https://cdnjs.loli.net/ajax/libs/stomp.js/2.3.3/stomp.min.js"
integrity=
"sha256-nkP8cj5xaTdWK/BsZl+57ZCE/Y/i4UNtbNTpgH+6Taw="
></script>
<script
crossorigin=
"anonymous"
src=
"https://cdnjs.loli.net/ajax/libs/stomp.js/2.3.3/stomp.min.js"
integrity=
"sha256-nkP8cj5xaTdWK/BsZl+57ZCE/Y/i4UNtbNTpgH+6Taw="
></script>
<script
crossorigin=
"anonymous"
src=
"https://cdnjs.loli.net/ajax/libs/canvg/1.5/canvg.min.js"
integrity=
"sha256-6CjwjERt4LtRZhlau+A5JQZ1qimB+YIrg4b24Po4Sz0="
></script>
<script
src=
"https://cdn.polyfill.io/v2/polyfill.min.js"
></script>
<script
src=
"https://cdn.polyfill.io/v2/polyfill.min.js"
></script>
<script
src=
"/js/main.js"
></script>
<script
src=
"/js/main.js"
></script>
...
...
js/main.js
View file @
99c4b77
...
@@ -426,12 +426,16 @@ function notify(nId, nText, nContent) {
...
@@ -426,12 +426,16 @@ function notify(nId, nText, nContent) {
if
(
!
(
'Notification'
in
window
))
return
if
(
!
(
'Notification'
in
window
))
return
if
(
Notification
.
permission
!==
'granted'
)
return
if
(
Notification
.
permission
!==
'granted'
)
return
if
(
parseInt
(
moment
().
format
(
'x'
))
-
notifyCooldown
[
nId
+
''
]
<
10000
)
return
if
(
parseInt
(
moment
().
format
(
'x'
))
-
notifyCooldown
[
nId
+
''
]
<
10000
)
return
var
canvas
=
document
.
createElement
(
'canvas'
)
canvas
.
height
=
512
canvas
.
width
=
512
canvg
(
canvas
,
'<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 667 667" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><path d="M78.742,549.715l0,-16.169l17.609,0l0,16.169l-17.609,0Zm0,74.998l0,-66.043l17.609,0l0,66.043l-17.609,0Z" style="fill:#ffa400;fill-rule:nonzero;"/><path d="M172.428,578.197l-17.358,3.109c-0.585,-3.441 -1.912,-6.032 -3.98,-7.773c-2.068,-1.741 -4.752,-2.612 -8.052,-2.612c-4.387,0 -7.886,1.503 -10.497,4.509c-2.611,3.005 -3.917,8.032 -3.917,15.08c0,7.836 1.327,13.37 3.98,16.604c2.653,3.234 6.214,4.851 10.684,4.851c3.343,0 6.079,-0.944 8.21,-2.83c2.13,-1.886 3.634,-5.13 4.512,-9.732l17.296,2.923c-1.797,7.877 -5.243,13.826 -10.34,17.847c-5.097,4.022 -11.928,6.032 -20.492,6.032c-9.734,0 -17.495,-3.047 -23.281,-9.141c-5.786,-6.094 -8.679,-14.531 -8.679,-25.31c0,-10.904 2.903,-19.392 8.71,-25.466c5.808,-6.074 13.662,-9.11 23.563,-9.11c8.105,0 14.549,1.73 19.333,5.192c4.783,3.462 8.219,8.738 10.308,15.827Z" style="fill:#ffa400;fill-rule:nonzero;"/><path d="M224.316,603.694l17.547,2.922c-2.256,6.385 -5.818,11.246 -10.685,14.583c-4.867,3.338 -10.956,5.006 -18.267,5.006c-11.573,0 -20.137,-3.752 -25.693,-11.255c-4.387,-6.012 -6.58,-13.599 -6.58,-22.761c0,-10.945 2.882,-19.516 8.648,-25.714c5.765,-6.198 13.055,-9.297 21.87,-9.297c9.901,0 17.714,3.244 23.437,9.732c5.724,6.488 8.46,16.428 8.21,29.819l-44.117,0c0.125,5.182 1.545,9.214 4.261,12.095c2.715,2.881 6.099,4.322 10.152,4.322c2.757,0 5.076,-0.746 6.956,-2.239c1.88,-1.492 3.3,-3.897 4.261,-7.213Zm1.003,-17.662c-0.126,-5.057 -1.442,-8.903 -3.948,-11.535c-2.507,-2.633 -5.557,-3.949 -9.149,-3.949c-3.844,0 -7.019,1.389 -9.526,4.166c-2.506,2.778 -3.739,6.551 -3.697,11.318l26.32,0Z" style="fill:#ffa400;fill-rule:nonzero;"/><path d="M250.949,605.87l17.672,-2.674c0.752,3.4 2.277,5.98 4.575,7.742c2.298,1.762 5.515,2.643 9.651,2.643c4.553,0 7.979,-0.829 10.277,-2.487c1.546,-1.161 2.319,-2.716 2.319,-4.664c0,-1.327 -0.418,-2.425 -1.254,-3.296c-0.877,-0.829 -2.841,-1.596 -5.89,-2.301c-14.205,-3.109 -23.208,-5.949 -27.01,-8.52c-5.264,-3.565 -7.896,-8.519 -7.896,-14.862c0,-5.722 2.277,-10.531 6.831,-14.428c4.554,-3.897 11.614,-5.845 21.181,-5.845c9.108,0 15.876,1.471 20.304,4.415c4.429,2.943 7.478,7.297 9.15,13.059l-16.607,3.047c-0.71,-2.57 -2.058,-4.539 -4.042,-5.907c-1.984,-1.369 -4.815,-2.053 -8.491,-2.053c-4.638,0 -7.959,0.643 -9.964,1.928c-1.337,0.912 -2.006,2.094 -2.006,3.545c0,1.244 0.585,2.301 1.755,3.171c1.588,1.161 7.071,2.799 16.45,4.913c9.379,2.115 15.928,4.706 19.646,7.774c3.676,3.109 5.515,7.441 5.515,12.997c0,6.053 -2.549,11.256 -7.646,15.609c-5.097,4.353 -12.638,6.529 -22.622,6.529c-9.066,0 -16.241,-1.824 -21.526,-5.472c-5.285,-3.648 -8.742,-8.603 -10.372,-14.863Z" style="fill:#ffa400;fill-rule:nonzero;"/><path d="M328.53,549.715l0,-16.169l17.61,0l0,16.169l-17.61,0Zm0,74.998l0,-66.043l17.61,0l0,66.043l-17.61,0Z" style="fill:#ffa400;fill-rule:nonzero;"/><path d="M362.872,558.67l16.23,0l0,9.017c5.807,-7.006 12.722,-10.509 20.743,-10.509c4.261,0 7.959,0.87 11.092,2.611c3.133,1.742 5.703,4.374 7.708,7.898c2.924,-3.524 6.079,-6.156 9.463,-7.898c3.384,-1.741 6.997,-2.611 10.841,-2.611c4.888,0 9.024,0.984 12.408,2.953c3.384,1.97 5.911,4.861 7.582,8.676c1.212,2.819 1.818,7.379 1.818,13.681l0,42.225l-17.61,0l0,-37.748c0,-6.55 -0.605,-10.779 -1.817,-12.686c-1.629,-2.487 -4.136,-3.731 -7.52,-3.731c-2.465,0 -4.783,0.746 -6.956,2.239c-2.172,1.492 -3.739,3.679 -4.7,6.56c-0.961,2.882 -1.441,7.432 -1.441,13.65l0,31.716l-17.609,0l0,-36.193c0,-6.426 -0.314,-10.572 -0.94,-12.437c-0.627,-1.866 -1.598,-3.255 -2.914,-4.167c-1.316,-0.912 -3.102,-1.368 -5.358,-1.368c-2.716,0 -5.16,0.725 -7.332,2.176c-2.173,1.451 -3.729,3.545 -4.669,6.281c-0.94,2.737 -1.41,7.276 -1.41,13.619l0,32.089l-17.609,0l0,-66.043Z" style="fill:#ffa400;fill-rule:nonzero;"/><path d="M477.551,624.713l0,-91.167l17.61,0l0,32.835c5.431,-6.135 11.864,-9.203 19.301,-9.203c8.105,0 14.81,2.912 20.116,8.737c5.306,5.825 7.958,14.189 7.958,25.092c0,11.277 -2.705,19.963 -8.115,26.057c-5.41,6.094 -11.98,9.141 -19.708,9.141c-3.802,0 -7.552,-0.943 -11.249,-2.829c-3.697,-1.886 -6.883,-4.675 -9.557,-8.364l0,9.701l-16.356,0Zm17.484,-34.452c0,6.841 1.087,11.899 3.259,15.174c3.05,4.643 7.102,6.965 12.157,6.965c3.886,0 7.196,-1.648 9.933,-4.944c2.736,-3.296 4.105,-8.489 4.105,-15.578c0,-7.545 -1.379,-12.987 -4.136,-16.324c-2.758,-3.337 -6.288,-5.006 -10.591,-5.006c-4.22,0 -7.729,1.627 -10.528,4.882c-2.799,3.254 -4.199,8.198 -4.199,14.831Z" style="fill:#ffa400;fill-rule:nonzero;"/><path d="M569.859,578.819l-15.98,-2.861c1.797,-6.384 4.888,-11.111 9.275,-14.179c4.386,-3.067 10.904,-4.601 19.552,-4.601c7.854,0 13.703,0.922 17.546,2.767c3.844,1.845 6.549,4.187 8.116,7.027c1.566,2.84 2.35,8.053 2.35,15.64l-0.188,20.398c0,5.804 0.282,10.084 0.846,12.841c0.564,2.757 1.619,5.711 3.164,8.862l-17.421,0c-0.46,-1.161 -1.024,-2.881 -1.692,-5.162c-0.292,-1.036 -0.501,-1.72 -0.627,-2.052c-3.008,2.902 -6.225,5.079 -9.65,6.53c-3.426,1.451 -7.082,2.176 -10.967,2.176c-6.851,0 -12.251,-1.844 -16.199,-5.534c-3.948,-3.69 -5.922,-8.354 -5.922,-13.992c0,-3.732 0.898,-7.059 2.694,-9.981c1.797,-2.923 4.314,-5.162 7.552,-6.717c3.238,-1.554 7.906,-2.912 14.006,-4.073c8.23,-1.534 13.933,-2.964 17.108,-4.291l0,-1.741c0,-3.358 -0.836,-5.752 -2.507,-7.183c-1.671,-1.43 -4.825,-2.145 -9.463,-2.145c-3.133,0 -5.577,0.611 -7.332,1.834c-1.754,1.223 -3.175,3.369 -4.261,6.437Zm23.563,14.178c-2.256,0.747 -5.828,1.638 -10.716,2.674c-4.888,1.037 -8.084,2.053 -9.588,3.048c-2.298,1.617 -3.447,3.669 -3.447,6.156c0,2.446 0.919,4.561 2.757,6.343c1.839,1.783 4.178,2.674 7.019,2.674c3.175,0 6.204,-1.036 9.087,-3.109c2.13,-1.575 3.53,-3.503 4.198,-5.783c0.46,-1.493 0.69,-4.333 0.69,-8.52l0,-3.483Z" style="fill:#ffa400;fill-rule:nonzero;"/><path d="M336.625,115.448l25.655,-66.732c1.474,-3.833 5.783,-5.749 9.616,-4.275l39.536,15.2c3.833,1.474 5.749,5.782 4.275,9.615l-21.785,56.666l0.46,0.175l47.944,-53.334c2.746,-3.054 7.455,-3.305 10.509,-0.56l31.5,28.317c3.054,2.746 3.305,7.454 0.559,10.509l-38.808,43.172l60.523,-31.684c3.638,-1.905 8.138,-0.497 10.043,3.141l19.645,37.526c1.905,3.638 0.497,8.139 -3.141,10.043l-53.912,28.223c0.144,0.272 0.287,0.545 0.429,0.819l70.841,-8.096c4.081,-0.466 7.772,2.468 8.238,6.548l4.809,42.083c0.466,4.081 -2.468,7.772 -6.548,8.238l-59.043,6.747l67.688,16.972c3.984,0.999 6.407,5.044 5.408,9.027l-10.301,41.086c-0.999,3.983 -5.044,6.406 -9.027,5.408l-58.718,-14.723c-0.092,0.37 -0.186,0.738 -0.28,1.106l57.972,40.93c3.355,2.369 4.156,7.015 1.787,10.37l-24.429,34.603c-2.369,3.354 -7.016,4.155 -10.37,1.787l-49.404,-34.88c-0.192,0.27 -0.384,0.54 -0.577,0.809l39.332,58.996c2.278,3.417 1.353,8.041 -2.064,10.319l-35.243,23.495c-3.417,2.279 -8.041,1.354 -10.319,-2.063l-31.654,-47.481l15.592,65.431c0.952,3.995 -1.519,8.012 -5.514,8.964l-41.203,9.818c-3.995,0.952 -8.011,-1.518 -8.963,-5.513l-14.056,-58.982l-9.094,70.488c-0.526,4.073 -4.26,6.953 -8.333,6.428l-42.008,-5.42c-4.073,-0.526 -6.953,-4.259 -6.428,-8.332l7.784,-60.328c-0.633,-0.085 -1.267,-0.174 -1.9,-0.267l-34.363,62.461c-1.979,3.599 -6.508,4.913 -10.106,2.933l-37.111,-20.416c-3.599,-1.979 -4.913,-6.508 -2.933,-10.106l29.413,-53.467c-0.42,-0.233 -0.839,-0.469 -1.257,-0.706l-54.879,45.824c-3.152,2.632 -7.849,2.21 -10.481,-0.943l-27.148,-32.513c-2.632,-3.152 -2.21,-7.849 0.943,-10.481l47.057,-39.292c-0.497,-0.601 -0.988,-1.205 -1.476,-1.812l-68.216,22.404c-3.902,1.281 -8.11,-0.846 -9.392,-4.748l-13.216,-40.242c-1.282,-3.902 0.846,-8.11 4.748,-9.392l58.415,-19.184c-0.288,-0.885 -0.569,-1.772 -0.842,-2.662l-71.839,-4.628c-4.098,-0.264 -7.211,-3.805 -6.947,-7.904l2.723,-42.269c0.264,-4.098 3.805,-7.211 7.904,-6.947l61.496,3.961c0.058,-0.846 0.122,-1.694 0.193,-2.541l-65.119,-31.042c-3.708,-1.767 -5.283,-6.211 -3.516,-9.918l18.226,-38.235c1.767,-3.708 6.212,-5.283 9.919,-3.516l55.687,26.545c0.345,-0.722 0.695,-1.44 1.05,-2.155l-49.02,-53.013c-2.788,-3.015 -2.604,-7.727 0.412,-10.515l31.099,-28.757c3.015,-2.788 7.727,-2.604 10.515,0.411l41.907,45.321l0.305,-0.281l0.196,-0.179l-26.608,-67.164c-1.513,-3.818 0.359,-8.146 4.177,-9.658l39.379,-15.601c3.819,-1.513 8.146,0.359 9.659,4.177l22.492,56.772l-0.997,-71.527c-0.057,-4.106 3.23,-7.487 7.337,-7.544l42.352,-0.59c4.107,-0.057 7.487,3.23 7.544,7.337l0.856,61.433c0.812,-0.013 1.625,-0.02 2.439,-0.02Zm-19.555,279.031c0,0 6.567,19.976 24.08,15.05c17.513,-4.925 32.836,-15.597 35.846,-20.523c3.01,-4.925 0.547,-11.492 -6.293,-15.323c-6.841,-3.831 -24.901,-7.936 -42.688,0c-17.786,7.935 -11.492,15.871 -10.945,20.796Zm36.003,-266.794c0.061,-0.618 -0.029,-1.239 -0.283,-1.862c0.168,0.628 0.26,1.248 0.283,1.862c-1.176,11.933 -58.444,22.706 -66.366,19.975c-6.321,7.183 -6.042,6.075 -6.609,8.906c-1.436,7.183 24.135,31.318 27.583,45.397c-1.149,10.63 -5.747,35.627 -18.963,47.694c-4.612,4.211 4.884,4.597 12.929,6.896c8.045,2.298 30.169,11.493 30.169,16.377c0,4.884 -0.862,10.056 -0.862,10.056c0,0 -6.321,-8.907 -10.057,-9.481c-3.735,-0.575 -11.169,5.082 -12.193,7.138c0,0 -17.361,-4.861 -30.555,0c-13.195,4.861 -20.139,15.972 -13.195,26.389c6.945,10.417 38.463,27.435 36.686,54.694l5.629,6.519c0,0 30.815,-6.222 33.778,-24c0.593,-19.556 -17.481,-23.408 -24,-29.926c-0.889,-3.259 -4.148,-2.37 2.667,-2.667c6.814,-0.296 54.222,0 54.814,0c5.038,-1.185 -2.074,9.778 -6.814,13.334c-4.741,3.555 -16.297,9.185 -16.593,14.518c-0.296,5.333 0.593,6.519 8,12.148c7.407,5.63 20.741,13.926 20.741,13.926c0,0 10.666,-16.592 13.629,-31.704c9.186,-9.777 26.667,-21.333 27.852,-27.851c1.185,-6.519 1.778,-16 -2.37,-22.223c-4.148,0 -29.63,-1.185 -29.63,-1.185c0,0 -9.481,-5.926 -12.444,-11.852c-3.852,1.186 -3.556,2.667 -4.148,7.408c-0.593,4.741 -3.01,19.181 0.726,24.64c-2.874,-1.149 -18.963,-20.399 -10.344,-38.788c16.377,-6.608 43.098,-10.631 48.844,-9.769c-5.172,-8.906 -14.94,-24.709 -22.411,-24.709c-7.47,0 -40.224,18.676 -44.534,16.952c-4.31,-1.724 -21.836,3.735 -21.549,-30.169c0.862,-19.824 4.31,-21.836 -12.067,-36.202c-16.377,-14.365 -16.952,-11.205 -14.653,-18.675c2.298,-7.47 14.94,-4.597 24.422,-11.78c10.609,-2.448 32.291,-11.077 31.888,-21.986Z" style="fill:#ffa400;"/></svg>'
)
switch
(
nId
)
{
switch
(
nId
)
{
case
-
1
:
case
-
1
:
var
config
=
{
var
config
=
{
body
:
'通知中心失去连接,点击尝试重连...'
,
body
:
'通知中心失去连接,点击尝试重连...'
,
dir
:
'auto'
,
dir
:
'auto'
,
icon
:
'https://static.utilapi.bid/amiba/logo.png'
icon
:
canvas
.
toDataURL
(
'image/png'
)
}
}
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
notification
.
onclick
=
function
(){
notification
.
onclick
=
function
(){
...
@@ -443,7 +447,7 @@ function notify(nId, nText, nContent) {
...
@@ -443,7 +447,7 @@ function notify(nId, nText, nContent) {
var
config
=
{
var
config
=
{
body
:
nContent
,
body
:
nContent
,
dir
:
'auto'
,
dir
:
'auto'
,
icon
:
'https://static.utilapi.bid/amiba/logo.png'
icon
:
canvas
.
toDataURL
(
'image/png'
)
}
}
var
notification
=
new
Notification
(
'阿米巴通知 '
+
nText
,
config
);
var
notification
=
new
Notification
(
'阿米巴通知 '
+
nText
,
config
);
notification
.
onclick
=
function
(){
notification
.
onclick
=
function
(){
...
@@ -461,7 +465,7 @@ function notify(nId, nText, nContent) {
...
@@ -461,7 +465,7 @@ function notify(nId, nText, nContent) {
var
config
=
{
var
config
=
{
body
:
'快要下班了,不要忘记填写阿米巴哦~'
,
body
:
'快要下班了,不要忘记填写阿米巴哦~'
,
dir
:
'auto'
,
dir
:
'auto'
,
icon
:
'https://static.utilapi.bid/amiba/logo.png'
icon
:
canvas
.
toDataURL
(
'image/png'
)
}
}
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
notification
.
onclick
=
function
(){
notification
.
onclick
=
function
(){
...
@@ -480,7 +484,7 @@ function notify(nId, nText, nContent) {
...
@@ -480,7 +484,7 @@ function notify(nId, nText, nContent) {
var
config
=
{
var
config
=
{
body
:
'下班啦~ 需要加班的同狮们也要注意休息哦!'
,
body
:
'下班啦~ 需要加班的同狮们也要注意休息哦!'
,
dir
:
'auto'
,
dir
:
'auto'
,
icon
:
'https://static.utilapi.bid/amiba/logo.png'
icon
:
canvas
.
toDataURL
(
'image/png'
)
}
}
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
notification
.
onclick
=
function
(){
notification
.
onclick
=
function
(){
...
@@ -497,7 +501,7 @@ function notify(nId, nText, nContent) {
...
@@ -497,7 +501,7 @@ function notify(nId, nText, nContent) {
var
config
=
{
var
config
=
{
body
:
'开始订餐啦!'
,
body
:
'开始订餐啦!'
,
dir
:
'auto'
,
dir
:
'auto'
,
icon
:
'https://static.utilapi.bid/amiba/logo.png'
icon
:
canvas
.
toDataURL
(
'image/png'
)
}
}
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
notification
.
onclick
=
function
(){
notification
.
onclick
=
function
(){
...
@@ -514,7 +518,7 @@ function notify(nId, nText, nContent) {
...
@@ -514,7 +518,7 @@ function notify(nId, nText, nContent) {
var
config
=
{
var
config
=
{
body
:
'开饭啦!开饭啦!'
,
body
:
'开饭啦!开饭啦!'
,
dir
:
'auto'
,
dir
:
'auto'
,
icon
:
'https://static.utilapi.bid/amiba/logo.png'
icon
:
canvas
.
toDataURL
(
'image/png'
)
}
}
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
var
notification
=
new
Notification
(
'阿米巴通知中心'
,
config
);
notification
.
onclick
=
function
(){
notification
.
onclick
=
function
(){
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment