Nice to meet you.It's been three days since I started programming.I want to make a game with javascript.(I want to use the tmlib.js framework.)
I registered with monaca and was able to combine the onsen-ui tab bar and sliding bar templates for page transition.
However, after the page transition, I am having trouble running css and javascript.
If you create a link and open person.html (purpose page), you can alert CSS and javascript.
If I use onsen-ui, can I use javascript or css?
Thank you for your cooperation.
Some index.html
<ons-tabbar>
<ons-tab page="home.html" active="true">
<ons-iconion="ion-home" class="tab-icon">/ons-icon>
</ons-tab>
<ons-tab page="cutlery.html">
<div class="notification reply-notification"ons-tab-inactive>4</div>
<ons-icon="fa fa-cuterie" class="tab-icon">/ons-icon>
</ons-tab>
<ons-tab page="heart.html">
<ons-iconion="ion-heart" class="tab-icon">/ons-icon>
</ons-tab>
<ons-tab page="person.html">
<ons-iconion="ion-person" class="tab-icon">/ons-icon>
</ons-tab>
</ons-tabbar>
person.html (e.g., javascript, css, etc.)
body {
background:#000ffff
}
FONT size 7
a
person
<script>
tm.main(function(){
alert("tmlib.js is loaded perfectly!!");
});
</script>
<script>
// TODO: I'm going to write the code here.
tm.main(function(){
// Generate Application Classes
var app=tm.display.CanvasApp("#world");
// Create a star and add it to a scene
var star=tm.display.StarShape().addChildTo(app.currentScene);
// Set position
star.setPosition(150,75);
// Register update process
star.update=function(){
// revolving
This.rotation+=8;
};
// execution
app.run();
});
</script>
Run js in the html file to which the tab bar is transitioned
This is it, right?
I've never used it, but Angular seems to be a lot of trouble.
But you'd better search before you ask a question.
© 2024 OneMinuteCode. All rights reserved.