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 2 years ago
dist 3.6.11 extend health time to decrease server presure 2 years ago
lib 3.5.1 3 years ago
src 3.6.11 extend health time to decrease server presure 2 years ago
test 3.6.11 extend health time to decrease server presure 2 years ago
.gitignore 3.5.1 3 years ago
LICENSE Initial commit 5 years ago
README.md Update README.md 4 years ago
gulpfile.js 3.5.1 3 years ago
package-lock.json add tips 4 years ago
package.json 3.6.11 extend health time to decrease server presure 2 years ago
yarn.lock 3.5.1 3 years ago
zh.md Create zh.md 4 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