< Script SRC = "Piecon. js" > </ Script > < Script > ( Function (){ VaR Count = 85 ; // Set the loading percentage Piecon. setoptions ({fallback: ' Force ' }); VaR I = Setinterval ( Function (){ If ( ++ Count > 100 ) {Piecon. Reset (); clearinterval (I ); Return False ;} Piecon. setprogress (count );}, 250 );})();
Piecon. setoptions ({Color:'# Ff0084', // pie chart color background: '# BBB', // empty pie chart color shadow: '# fff', // outer ring color fallback: false //In the title
Switch the display Ratio
(Possible values-True, false, 'force ')});
$. Faviconnotify = function (icon, num, Mypos, mybg, myfg) // icon-icon, num-number, Mypos-position, mybg-background color, myfg-font color, // example
$. Faviconnotify ('/favicon. ICO', 67, 'br ',' #123456 ',' # abcdef ');
Value range of Mypos: Random, left, right, up, down
$. Faviconnotify ('/favicon. ICO ', 12, 'tr') // indicates that the ICO icon is used, and the number is 12. tr indicates top, right --- upper right $. faviconnotify ('/favicon. ICO ', 56, 'tl'); "// top left $. faviconnotify ('/favicon. ICO ', 34, 'br'); "// bottom right
// Update icon $ ('link [rel $ = icon] '). replacewith (''); $ ('head'). append ($ ('<LinkREL= "Shortcut icon"Type= "Image/X-icon"/>'). ATTR ('href', canvas. todataurl ('image/PNG ')));