Skip to content

Instantly share code, notes, and snippets.

@salmanyaqoob
salmanyaqoob / index.js
Created January 28, 2021 08:37
index screen js
import router from '@system.router'
import app from '@system.app'
export default {
data: {
},
clickAction(){
router.replace({
uri: 'pages/detail/detail'
import router from '@system.router'
export default {
backToHome(){
router.replace({
uri: 'pages/index/index'
});
},
}
@salmanyaqoob
salmanyaqoob / index.hml
Last active January 28, 2021 08:34
Index Screen
<stack class="stack">
<image src='/common/background.png' class="background"></image>
<div class="container" onswipe="touchMove">
<list class="showList">
<list-item class="showListItem" onclick="openPage('arrays/arrays')">
<text>
Array
</text>
</list-item>
<list-item class="showListItem" onclick="openPage('animator/animator')">
@salmanyaqoob
salmanyaqoob / global_style.css
Created January 28, 2021 08:28
global style
.stack {
width: 454px;
height: 454px;
justify-content: center;
}
.background {
width:454px;
height:454px;
}
.container {