mirror of https://github.com/IoTcat/Ushio-js.git
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
|
2 years ago | |
---|---|---|
dist | 2 years ago | |
lib | 3 years ago | |
src | 2 years ago | |
test | 2 years ago | |
.gitignore | 3 years ago | |
LICENSE | 5 years ago | |
README.md | 4 years ago | |
gulpfile.js | 3 years ago | |
package-lock.json | 4 years ago | |
package.json | 2 years ago | |
yarn.lock | 3 years ago | |
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 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