This widget provide a footer for displaying informations such as versions and Copy rights.
<footer data-am-widget="footer"
class="am-footer am-footer-default"
data-am-footer="{ }">
<div class="am-footer-switch">
<span class="am-footer-ysp" data-rel="mobile"
data-am-modal="{target: '#am-switch-mode'}">
云适配版
</span>
<span class="am-footer-divider"> | </span>
<a id="godesktop" data-rel="desktop" class="am-footer-desktop" href="javascript:">
电脑版
</a>
</div>
<div class="am-footer-miscs ">
<p>由 <a href="http://www.yunshipei.com/" title="诺亚方舟"
target="_blank" class="">诺亚方舟</a>
提供技术支持</p>
<p>CopyRight©2014 AllMobilize Inc.</p>
<p>京ICP备13033158</p>
</div>
</footer>
<div id="am-footer-modal"
class="am-modal am-modal-no-btn am-switch-mode-m am-switch-mode-m-default">
<div class="am-modal-dialog">
<div class="am-modal-hd am-modal-footer-hd">
<a href="javascript:void(0)" data-dismiss="modal" class="am-close am-close-spin " data-am-modal-close>×</a>
</div>
<div class="am-modal-bd">
您正在浏览的是
<span class="am-switch-mode-owner">
云适配
</span>
<span class="am-switch-mode-slogan">
为您当前手机订制的移动网站。
</span>
</div>
</div>
</div>
<body>
of the Amaze UI HTML template(Download);The Handlebars partial of this widget is footer
. See Accordion for more details.
Data binding
button on the right panel, and bind data using following format.var data = {
"lang": context.__lang, // This value can be determined autometically.
"owner": "", // Name of website, company or person.
"companyInfo": [
{ // Website information
"detail": "" // The detail information of this website. Support using HTML, such as an "a" to create a link to some other page. This will be shown in footer.
},
{
"detail": "" // Same as the detail above.
}
]
};
return data;
Explanation:
switchName
:Can be "Mobile Version", "Desktop Version". Default value is "Allmobilize Version"
;owner
:Name of website.slogan
:Your own popup slogan.companyInfo
:Detail information. This is an array, and the each piece of information should be assigned to an element.Reference:
The add to homescreen is defaultly enabled, and can be disabled by using:
window.AMUI_NO_ADD2HS = true;
{
"id": "",
"className": "",
"theme": "default",
"options": {
"modal": "",
"techSupprtCo": "",
"techSupprtNet": "",
"textPosition": ""
},
"content": {
"lang": "",
"switchName": "",
"owner": "",
"slogan": "",
"companyInfo": [
{
"detail": ""
}
]
}
}