ushio-js
v3.6.11
Published
Ushio front-end toolkit
Readme
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 fppage.params: GET parameterspage.fpObj: parameter of fppage.ip: client ip addresspage.path: page pathpage.url: page with parameter pathpage.Timer: the length of time the page has been openedpage.openTime: the timestamp of the open pagepage.title: page titlepage.host: target hostnamepage.sid: session idpage.timezone: time zonepage.timezoneOffset: Time zone calibration parameterpage.platform: operating platformpage.userAgent: user agentpage.language: client languagepage.copyright.full: copyrightpage.auth[]: authentication information required for the pagepage.availableScreenResolution: Available screen sizepage.deviceMemory: device memorypage.group[]: page requirements for user groupspage.lang[]: the language the user knowspage.mask: page mask informationpage.nolang[]: a language that the user does not recognizepage.proj: github project address corresponding to the pagepage.tran: Translation related methodspage.showUshio(): Show Ushio menu
Page setting parameters
block_aplayer: do not load aplayerblock_viewport: does not automatically adapt to mobileblock_tips: Do not load Global Tipsaplayer_playlist: play listblock_setting: Do not display the setting gearlang[]: Languages supported by the pageallow_no_cookie: Allow cookieless operation
Session method
session.set(index, val): set sessionsession.get(index): Get sessionsession.del(index): delete session
tips method
Fully compatible with izitoast
tips.show(params): show tipstips.info(params): display informationtips.success(params): success informationtips.warning(params): warning messagetips.error(params): error messagetips.question(params): question
jQuery
$.md5(): Support md5 extension
