mobile_apps_js.html 986 B

1234567891011121314151617181920212223242526272829
  1. <script>
  2. function bx_mobile_apps_show_main_menu () {
  3. if ($('.cd-side-nav').size())
  4. $([$('.cd-side-nav'), $('.cd-nav-trigger')]).toggleClass('nav-is-visible');
  5. else
  6. bx_menu_slide_inline('#bx-sliding-menu-sys_site', null, 'site');
  7. }
  8. function bx_mobile_apps_show_profile_menu () {
  9. bx_menu_slide_inline('#bx-sliding-menu-account', null, 'site');
  10. }
  11. function bx_mobile_apps_show_add_menu () {
  12. bx_menu_slide_inline('#bx-sliding-menu-sys_add_content', null, 'site');
  13. }
  14. function bx_mobile_apps_home () {
  15. if (window.history.length > 1)
  16. window.history.go(-(window.history.length - 1));
  17. }
  18. console.log('Navigation History:' + window.history.length);
  19. var sMsg = JSON.stringify(__msg__);
  20. console.log(sMsg);
  21. if ('undefined' !== typeof(window.ReactNativeWebView))
  22. window.ReactNativeWebView.postMessage(sMsg);
  23. else
  24. window.postMessage(sMsg, '*');
  25. </script>