12345678910111213141516 |
- (function(win) {
- var orgLink = win.location.href
- var newLink = ''
- if (/iPhone|iPad|Android/i.test(win.navigator.userAgent)) {
- if (orgLink.indexOf('smart-viewer.html') !== -1) {
- newLink = orgLink.replace('smart-viewer.html', 'smart-sviewer.html')
- }
- } else {
- if (orgLink.indexOf('smart-sviewer.html') !== -1) {
- newLink = orgLink.replace('smart-sviewer.html', 'smart-viewer.html')
- }
- }
- if (newLink) {
- win.location.href = newLink
- }
- }(window))
|