You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
IoTcat 611ba98a8b 3.6.11 extend health time to decrease server presure 3 months ago
dist 3.6.11 extend health time to decrease server presure 3 months ago
lib 3.5.1 1 year ago
src 3.6.11 extend health time to decrease server presure 3 months ago
test 3.6.11 extend health time to decrease server presure 3 months ago
.gitignore 3.5.1 1 year ago
LICENSE Initial commit 3 years ago
README.md Update README.md 2 years ago
gulpfile.js 3.5.1 1 year ago
package-lock.json add tips 3 years ago
package.json 3.6.11 extend health time to decrease server presure 3 months ago
yarn.lock 3.5.1 1 year ago
zh.md Create zh.md 2 years ago

README.md

Ushio-js

Ushio front-end toolkit

简体中文(推荐)

Positioning

Ushio-js integrates a series of front-end services such as ushio-session, fp user agent recognition, ushio user system, aplayer music control, tips pop-up window management, etc. Toolkit. ushio-js is referenced by all ushio supported websites.

Instructions

Global properties page

  • page.fp: device fp
  • page.params: GET parameters
  • page.fpObj: parameter of fp
  • page.ip: client ip address
  • page.path: page path
  • page.url: page with parameter path
  • page.Timer: the length of time the page has been opened
  • page.openTime: the timestamp of the open page
  • page.title: page title
  • page.host: target hostname
  • page.sid: session id
  • page.timezone: time zone
  • page.timezoneOffset: Time zone calibration parameter
  • page.platform: operating platform
  • page.userAgent: user agent
  • page.language: client language
  • page.copyright.full: copyright
  • page.auth[]: authentication information required for the page
  • page.availableScreenResolution: Available screen size
  • page.deviceMemory: device memory
  • page.group[]: page requirements for user groups
  • page.lang[]: the language the user knows
  • page.mask: page mask information
  • page.nolang[]: a language that the user does not recognize
  • page.proj: github project address corresponding to the page
  • page.tran: Translation related methods
  • page.showUshio(): Show Ushio menu

Page setting parameters

  • block_aplayer: do not load aplayer
  • block_viewport: does not automatically adapt to mobile
  • block_tips: Do not load Global Tips
  • aplayer_playlist: play list
  • block_setting: Do not display the setting gear
  • lang[]: Languages supported by the page
  • allow_no_cookie: Allow cookieless operation

Session method

  • session.set(index, val): set session
  • session.get(index): Get session
  • session.del(index): delete session

tips method

Fully compatible with izitoast

  • tips.show(params): show tips
  • tips.info(params): display information
  • tips.success(params): success information
  • tips.warning(params): warning message
  • tips.error(params): error message
  • tips.question(params): question

jQuery

  • $.md5(): Support md5 extension