Sha256: 7090992b2fa5c7a4b35cb2703af56c73cca156424910f4930ec8b5350343ddc1
Contents?: true
Size: 1.95 KB
Versions: 15
Compression:
Stored size: 1.95 KB
Contents
<script> window.show_bookmark = function(el) { var browser = detect_browser(); var os = detect_os(); var message = 'Please click "Add Bookmark" in the bookmarks bar to add the bookmark' if (os == 'Mac OS' || os == 'undefined') { message = 'In order to add the bookmark, please tap COMMAND + D on your keyboard, and click "Done!"'; } else if (os == 'Windows' || os == 'Linux') { message = 'In order to add the bookmark, please tap Windows + D on your keyboard, and click "Done!"'; } else if (os == 'Android') { message = 'Please tap the "Menu" icon (top right), then "Add bookmark" icon (at the top)' } alert(message); } function detect_browser() { var isIE = /*@cc_on!@*/false || !!document.documentMode; if (!!window.chrome) return 'chrome' if (typeof InstallTrigger !== 'undefined') return 'firefox'; if (!!window.safari) return 'safari'; if (!!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0) return 'opera'; if (!isIE && !!window.StyleMedia) return 'edge'; if (isIE) return 'ie'; return 'undefined'; } function detect_os() { var userAgent = window.navigator.userAgent; var platform = window.navigator.platform; var macs = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K']; var windowses = ['Win32', 'Win64', 'Windows', 'WinCE']; var ioses = ['iPhone', 'iPad', 'iPod']; if (macs.indexOf(platform) !== -1) { return 'Mac OS'; } else if (ioses.indexOf(platform) !== -1) { return 'iOS'; } else if (windowses.indexOf(platform) !== -1) { return 'Windows'; } else if (/Android/.test(userAgent)) { return 'Android'; } else if (!os && /Linux/.test(platform)) { return 'Linux'; } else { return 'undefined'; } } </script>
Version data entries
15 entries across 15 versions & 1 rubygems