We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b94a52 commit e03caa9Copy full SHA for e03caa9
docs/js/quickstart-fullscreen.js
@@ -1,7 +1,8 @@
1
/*
2
- This script removes the sidebar from the Getting Started page for the example to expand whole page.
+ This script removes the sidebar from the Getting Started page for the example to expand whole page on non-mobile devices.
3
*/
4
5
-if(window.location.pathname.endsWith('getting_started/quickstart/')) {
+//https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent for recommended approach to test if device is mobile
6
+if(window.location.pathname.endsWith('hopsworks-tutorials/quickstart/') && !/Mobi|Android/i.test(navigator.userAgent)) {
7
document.getElementsByClassName("md-sidebar--primary")[0].remove()
8
}
0 commit comments