123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <{include file="header.html"}>
- <{include file="nav.html"}>
- <script src="<{$web_cfg.cdn}>/public/static/js/spin.min.js" charset="utf-8"></script>
- <{if $user}>
- <{$user.nickname}>
- <{else}>
- <a href="<{$web_cfg.domain}>/connect/">微信登陆</a>
- <{/if}>
- <div id=foo style="margin:auto;"></div>
- <script>
- KISSY.use('node, vogue/test, cookie, gallery/pageNotification/1.0/index', function (S, Node, Test, Cookie, PageNotification) {
- var $ = S.all;
-
- var opts = {
- lines: 12,
- length: 3,
- width: 2,
- radius: 4,
- corners: 1,
- rotate: 2,
- direction: 1,
- color: 'red',
- speed: 2,
- trail: 100,
-
-
- className: 'spinner',
- zIndex: 2e9,
- top: '50%',
- left: '50%'
- };
- var target = document.getElementById('foo');
- var spinner = new Spinner(opts).spin(target);
-
- var objPN = new PageNotification({
- "closeButton": true,
- "positionClass": "page-notification-bottom-left",
- "onclick": null,
- "showDuration": "300",
- "hideDuration": "1000",
- "timeOut": "50000",
- "extendedTimeOut": "1000",
- "showEasing": "swing",
- "hideEasing": "linear",
- "showMethod": "fadeIn",
- "hideMethod": "fadeOut"
- });
-
- objPN.success("hello world");
-
- var TM = Cookie.get('TM_PASSPORT_MEMBER');
- if (TM) {
- objPN.success(TM);
- }
- });
- </script>
- <{include file="bottom.html"}>
|