Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. Andrey
    A
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    Andrey

    @Andrey

    0
    Reputation
    2
    Posts
    469
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    Andrey Follow

    Posts made by Andrey

    • On the emulator in the browser everything works on the Android phone do not connect css and js

      Help with the solution everything works on the emulator. When I start the phone it also works but not connected from onsenui Css and js as well onsenui.

      <!DOCTYPE html>
      <html>
      <head>
      <meta http-equiv=“content-type” content=“text/html; charset=UTF-8” />
      <link href="…/bower_components/onsenui/css/onsen-css-components.min.css" rel=“stylesheet”>
      <link href="…/bower_components/onsenui/css/onsenui.css" rel=“stylesheet”>
      <script src="…/bower_components/onsenui/js/onsenui.js"></script>
      </head>
      <body>
      <ons-splitter>
      <ons-splitter-side id=“menu” side=“left” width=“220px” collapse swipeable>
      <ons-page>
      <ons-list>
      <ons-list-item onclick=“fn.load(‘home.html’)” tappable>
      Home
      </ons-list-item>
      <ons-list-item onclick=“fn.load(‘settings.html’)” tappable>
      Settings
      </ons-list-item>
      <ons-list-item onclick=“fn.load(‘about.html’)” tappable>
      About
      </ons-list-item>
      </ons-list>
      </ons-page>
      </ons-splitter-side>
      <ons-splitter-content id=“content” page=“home.html”></ons-splitter-content>
      </ons-splitter>
      <template id=“home.html”>
      <ons-page>
      <ons-toolbar>
      <div class=“left”>
      <ons-toolbar-button onclick=“fn.open()”>
      <ons-icon icon=“md-menu”></ons-icon>
      </ons-toolbar-button>
      </div>
      <div class=“center”>
      Main
      </div>
      </ons-toolbar>
      <p style=“text-align: center; opacity: 0.6; padding-top: 20px;”>
      Swipe right to open the menu!
      </p>
      </ons-page>
      </template>
      <template id=“settings.html”>
      <ons-page>
      <ons-toolbar>
      <div class=“left”>
      <ons-toolbar-button onclick=“fn.open()”>
      <ons-icon icon=“md-menu”></ons-icon>
      </ons-toolbar-button>
      </div>
      <div class=“center”>
      Settings
      </div>
      </ons-toolbar>
      </ons-page>
      </template>
      <template id=“about.html”>
      <ons-page>
      <ons-toolbar>
      <div class=“left”>
      <ons-toolbar-button onclick=“fn.open()”>
      <ons-icon icon=“md-menu”></ons-icon>
      </ons-toolbar-button>
      </div>
      <div class=“center”>
      About
      </div>
      </ons-toolbar>
      </ons-page>
      </template>
      <script src=“scripts/script.js”></script>
      </body>
      </html>

      posted in Onsen UI
      A
      Andrey
    • On the emulator in the browser everything works on the Android phone do not connect css and js

      Help with the solution everything works on the emulator. When I start the phone it also works but not connected from onsenui Css and js as well onsenui.

      <!DOCTYPE html>
      <html>
      <head>
      <meta http-equiv=“content-type” content=“text/html; charset=UTF-8” />
      <link href="…/bower_components/onsenui/css/onsen-css-components.min.css" rel=“stylesheet”>
      <link href="…/bower_components/onsenui/css/onsenui.css" rel=“stylesheet”>
      <script src="…/bower_components/onsenui/js/onsenui.js"></script>
      </head>
      <body>
      <ons-splitter>
      <ons-splitter-side id=“menu” side=“left” width=“220px” collapse swipeable>
      <ons-page>
      <ons-list>
      <ons-list-item onclick=“fn.load(‘home.html’)” tappable>
      Home
      </ons-list-item>
      <ons-list-item onclick=“fn.load(‘settings.html’)” tappable>
      Settings
      </ons-list-item>
      <ons-list-item onclick=“fn.load(‘about.html’)” tappable>
      About
      </ons-list-item>
      </ons-list>
      </ons-page>
      </ons-splitter-side>
      <ons-splitter-content id=“content” page=“home.html”></ons-splitter-content>
      </ons-splitter>
      <template id=“home.html”>
      <ons-page>
      <ons-toolbar>
      <div class=“left”>
      <ons-toolbar-button onclick=“fn.open()”>
      <ons-icon icon=“md-menu”></ons-icon>
      </ons-toolbar-button>
      </div>
      <div class=“center”>
      Main
      </div>
      </ons-toolbar>
      <p style=“text-align: center; opacity: 0.6; padding-top: 20px;”>
      Swipe right to open the menu!
      </p>
      </ons-page>
      </template>
      <template id=“settings.html”>
      <ons-page>
      <ons-toolbar>
      <div class=“left”>
      <ons-toolbar-button onclick=“fn.open()”>
      <ons-icon icon=“md-menu”></ons-icon>
      </ons-toolbar-button>
      </div>
      <div class=“center”>
      Settings
      </div>
      </ons-toolbar>
      </ons-page>
      </template>
      <template id=“about.html”>
      <ons-page>
      <ons-toolbar>
      <div class=“left”>
      <ons-toolbar-button onclick=“fn.open()”>
      <ons-icon icon=“md-menu”></ons-icon>
      </ons-toolbar-button>
      </div>
      <div class=“center”>
      About
      </div>
      </ons-toolbar>
      </ons-page>
      </template>
      <script src=“scripts/script.js”></script>
      </body>
      </html>

      posted in Developer Corner
      A
      Andrey