recently, the Appcan community has new dry content sharing, the community nickname forBalidevelopers to share a copy of the 19 floor of the app source code.
There are four main interfaces to this case, including select, community, Discovery, my, and here are some of the best ways to make a selection and community.
" featured " modules
Page effect:
First, UI Part
1. New and modified main.html page title content is:" building "
2. Add the following code to the header of the main.html page :
<div class= "nav-btn" id= "Nav-left" style= "Margin-left:1em" onclick= "opennews ();" > Blind Date Registration </div>
3. Add tab below the header of the main.html page Tab Code:
<div id= "Tabview" class= "UFSC-BG" ></div>
4. Add the footer section code below the main.html page content area :
<divid= "Footer" style= "Background-color: #FFFFFF" >
<divid= "Jinxuan" class= "UFL footer_width" onclick= "open1 ();" >
<div id= "" class= "FA Fa-star Center Uffooter_icon footer_checked" >
</div>
<divid= "" class= "Text1 centerfooter_checked" >
Selected
</div>
</div>
<divid= "shequ" class= "UFL footer_width" >
<div id= "" class= "FA fa-weixin Center Uffooter_icon sc-text-tab" >
</div>
<divid= "" class= "Text Center" >
Community
</div>
</div>
<divid= "Zhuanti" class= "UFL footer_width" >
<div id= "" class= "FA Fa-camera Center Uffooter_icon sc-text-tab" >
</div>
<divid= "" class= "center" >
</div>
</div>
<divid= "Faxian" class= "Uflfooter_width" onclick= "Open4 ();" >
<div id= "" class= "FA Fa-link Center Uffooter_icon sc-text-tab" >
</div>
<divid= "" class= "Text Center" >
Found
</div>
</div>
<divid= "Wode" class= "Uflfooter_width" onclick= "Open5 ();" >
<div id= "" class= "FA Fa-user Center Uffooter_icon sc-text-tab" >
</div>
<divid= "" class= "Text Center" >
It's mine
</div>
</div>
</div>
Second, JS Code Section
1. load tab tab related page and tab code
Vartitheight = $ (' #header '). Offset (). Height +$ (' #tabview '). Offset (). Height;
Appcan.frame.open ({
ID: "Content",
URL: [{
"Inpagename": "Early to Know",
"Inurl": "Content_1.html",
},{
"Inpagename": "The same city activities",
"Inurl": ' content_two.html ',
},{
"Inpagename": "* * gossip",
"Inurl": "Content_2.html",
},{
"Inpagename": "Fashion",
"Inurl": "Content_3.html",
},{
"Inpagename": "Looking for objects",
"Inurl": "Content_4.html",
}],
Top:titheight,
left:0,
index:0,
Change:function (Err, res) {
Tabview.moveto (Res.multipopselectedindex);
}
});
Window.onorientationchange =window.onresize = function () {
Appcan.frame.resize ("Content", 0, Titheight);
}
});
var Tabview = Appcan.tab ({
Selector: "#tabview",
Hasicon:false,
Hasanim:false,
Haslabel:true,
Hasbadge:false,
Data: [{
}, {
Label: "Activities in the same city"
}, {
Label: "* * gossip"
}, {
Label: "Fashion"
}, {
Label: "Find Object",
"Icon": "Fa-weixin",
Badge:1
});
Tabview.on ("click", Function (obj, index) {
Appcan.window.selectMultiPopover ("Content", index);
})
" Community " module
Interface:
First, UI Part
1. Modify the community.html title as:" Community "
2. Add tab tab code at the bottom of the community.html page
<!--footer Start-up
<divid= "Footer" style= "Background-color: #FFFFFF" >
<divid= "Jinxuan" class= "UFL footer_width" >
<div id= "" class= "FA Fa-star Center Uffooter_icon sc-text-tab" >
</div>
<divid= "" class= "Text Center Sc-text-tab" >
Selected
</div>
</div>
<divid= "shequ" class= "Uflfooter_width" onclick= "Open2 ();" >
<div id= "" class= "FA fa-weixin Center Uffooter_icon footer_checked" >
</div>
<divid= "" class= "Text1 centerfooter_checked" >
Community
</div>
</div>
<divid= "Zhuanti" class= "UFL footer_width" >
<div id= "" class= "FA Fa-camera Center Uffooter_icon sc-text-tab" >
</div>
<divid= "" class= "center" >
</div>
</div>
<divid= "Faxian" class= "Uflfooter_width" onclick= "Open4 ();" >
<div id= "" class= "FA Fa-link Center Uffooter_icon sc-text-tab" >
</div>
<divid= "" class= "Text Center" >
Found
</div>
</div>
<divid= "Wode" class= "UFL footer_width" >
<div id= "" class= "FA Fa-user Center Uffooter_icon sc-text-tab" >
</div>
<divid= "" class= "Text Center" >
It's mine
</div>
</div>
</div>
<!--footer End--
Second, JS Code Section
1. Open the floating window code for the Community
Appcan Mobile development: Imitation 19 floor Life information Type app source sharing