Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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>