0710e485 by 任超

refactor:不动产门户网站静态页面

0 parents
1 # 门户网站
2
3 #### 项目介绍
4 公司网站
5
6 #### 软件架构
7 HTML+css
8
9
10 #### 安装教程
11
12 1. 从git 下载直接浏览器运行就可以打开
13
14
15
16
17 #### 参与贡献
18
19 1. Fork 本项目
20 2. 新建 Feat_xxx 分支
21 3. 提交代码
22 4. 新建 Pull Request
23
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
1 <!DOCTYPE html>
2 <html>
3
4 <head lang="en">
5 <meta charset="UTF-8">
6 <title>首页</title>
7 <meta http-equiv="X-UA-Compatible" content="IE=edge">
8 <meta name="viewport"
9 content="width=device-width, initial-scale=1,maximum-scale=1.0, user-scalable=0,user-scalable=no">
10 <meta name="format-detection" content="telephone=no">
11 <meta name="renderer" content="webkit">
12 <meta http-equiv="Cache-Control" content="no-siteapp" />
13 <link rel="alternate icon" type="img/hengwang-1.png" href="img/hengwang-1.png">
14 <link rel="stylesheet" href="css/amazeui.css" />
15 <link rel="stylesheet" href="css/style.css" />
16 </head>
17
18 <body>
19 <header class="am-topbar header">
20 111
21 </header>
22 <div class="am-container-1">
23 222222222222222222
24 </div>
25 <footer class="footer ">
26 </footer>
27
28
29 </body>
30 <!--[if lt IE 9]>
31 <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
32 <script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
33 <script src="assets/js/amazeui.ie8polyfill.min.js"></script>
34 <![endif]-->
35
36 <!--[if (gte IE 9)|!(IE)]><!-->
37 <script src="js/jquery.min.js"></script>
38 <!--<![endif]-->
39 <script src="js/amazeui.min.js"></script>
40 <script src="js/scroll.js"></script>
41 <script type="text/javascript">
42 </script>
43
44 </html>
...\ No newline at end of file ...\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 (function($) {
2 'use strict';
3
4 $(function() {
5 var $fullText = $('.admin-fullText');
6 $('#admin-fullscreen').on('click', function() {
7 $.AMUI.fullscreen.toggle();
8 });
9
10 $(document).on($.AMUI.fullscreen.raw.fullscreenchange, function() {
11 $fullText.text($.AMUI.fullscreen.isFullscreen ? '退出全屏' : '开启全屏');
12 });
13 });
14 })(jQuery);
1 // JavaScript Document
2 (function($){
3 $.fn.myScroll = function(options){
4 //默认配置
5 var defaults = {
6 speed:40, //滚动速度,值越大速度越慢
7 rowHeight:24 //每行的高度
8 };
9
10 var opts = $.extend({}, defaults, options),intId = [];
11
12 function marquee(obj, step){
13
14 obj.find("ul").animate({
15 marginTop: '-=1'
16 },0,function(){
17 var s = Math.abs(parseInt($(this).css("margin-top")));
18 if(s >= step){
19 $(this).find("li").slice(0, 1).appendTo($(this));
20 $(this).css("margin-top", 0);
21 }
22 });
23 }
24
25 this.each(function(i){
26 var sh = opts["rowHeight"],speed = opts["speed"],_this = $(this);
27 intId[i] = setInterval(function(){
28 if(_this.find("ul").height()<=_this.height()){
29 clearInterval(intId[i]);
30 }else{
31 marquee(_this, sh);
32 }
33 }, speed);
34
35 _this.hover(function(){
36 clearInterval(intId[i]);
37 },function(){
38 intId[i] = setInterval(function(){
39 if(_this.find("ul").height()<=_this.height()){
40 clearInterval(intId[i]);
41 }else{
42 marquee(_this, sh);
43 }
44 }, speed);
45 });
46
47 });
48
49 }
50
51 })(jQuery);
...\ No newline at end of file ...\ No newline at end of file
This diff is collapsed. Click to expand it.