forked from xjh22222228/nav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
747 lines (746 loc) · 24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
<!DOCTYPE html>
<!--
_.._ ,------------.
,' `. ( We want you! )
/ __) __` \ `-,----------'
( (`-`(-') ) _.-'
/) \ = / (
/' |--' . \
( ,---| `-.)__`
)( `-.,--' _`-.
'/,' ( Uu",
(_ , `/,-' )
`.__, : `-'/ /`--'
| `--' |
` `-._ /
\ (
/\ . \.
/ |` \ ,-\
/ \| .) / \
( ,'|\ ,' :
| \,`.`--"/ }
`,' \ |,' /
/ "-._ `-/ |
"-. "-.,'| ;
/ _/["---'""]
: / |"- '
' | /
` |
-->
<html ng-app="app">
<head>
<title>发现导航 - 新世界</title>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="Cache-control" content="no-cache">
<meta name="author" content="https://github.com/xjh22222228">
<meta name="description" content="爱分享,爱创造,一个资源难寻的导航网站">
<meta name="keywords" content="导航,前端资源,社区站点,设计师,实用工具,学习资源,运营">
<link rel="icon" href="./favicon.png" type="image/x-icon">
<link rel ="apple-touch-icon" href="./favicon.png">
<link rel="stylesheet" href="./css/style.css">
<script src="https://cdn.bootcss.com/angular.js/1.6.9/angular.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://hm.baidu.com/hm.js?15a99cb1c1eea969bcc1da33d0d8763b"></script>
<script>
(function(){try {var b = navigator.appName,v = navigator.appVersion,vp = v.split(";"),t_v = vp[1].replace(/[ ]/g, ""),tvt = t_v.substr(4);if(b == "Microsoft Internet Explorer" && tvt <= 9){alert('当前浏览器存在安全隐患');}}catch(e){}})();
!function(a,b,c){a.ripple=function(d,e){var f=this,g=f.log=function(){f.defaults.debug&&console&&console.log&&console.log.apply(console,arguments)};f.selector=d,f.defaults={debug:!1,on:"mousedown",opacity:.4,color:"auto",multi:!1,duration:.7,rate:function(a){return a},easing:"linear"},f.defaults=a.extend({},f.defaults,e);var h=function(b){var d,e,h=a(this);if(h.addClass("has-ripple"),e=a.extend({},f.defaults,h.data()),e.multi||!e.multi&&0===h.find(".ripple").length){if(d=a("<span></span>").addClass("ripple"),d.appendTo(h),g("Create: Ripple"),!d.height()&&!d.width()){var i=c.max(h.outerWidth(),h.outerHeight());d.css({height:i,width:i}),g("Set: Ripple size")}if(e.rate&&"function"==typeof e.rate){var j=c.round(d.width()/e.duration),k=e.rate(j),l=d.width()/k;e.duration.toFixed(2)!==l.toFixed(2)&&(g("Update: Ripple Duration",{from:e.duration,to:l}),e.duration=l)}var m="auto"==e.color?h.css("color"):e.color,n={animationDuration:e.duration.toString()+"s",animationTimingFunction:e.easing,background:m,opacity:e.opacity};g("Set: Ripple CSS",n),d.css(n)}e.multi||(g("Set: Ripple Element"),d=h.find(".ripple")),g("Destroy: Ripple Animation"),d.removeClass("ripple-animate");var o=b.pageX-h.offset().left-d.width()/2,p=b.pageY-h.offset().top-d.height()/2;e.multi&&(g("Set: Ripple animationend event"),d.one("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(){g("Note: Ripple animation ended"),g("Destroy: Ripple"),a(this).remove()})),g("Set: Ripple location"),g("Set: Ripple animation"),d.css({top:p+"px",left:o+"px"}).addClass("ripple-animate")};a(b).on(f.defaults.on,f.selector,h)}}(jQuery,document,Math);$.ripple.version = "1.2.1";
</script>
</head>
<body>
<div id="xiejiahe" ng-controller="controller" ng-cloak="">
<img src="./icon/top.svg" alt="top" class="scroll-top">
<aside class="sidebar user-select-none">
<div class="logo">
<img src="./icon/icon-10x001.svg" alt="logo" class="logo">
</div>
<nav class="nav">
<div class="nav-title" ng-repeat="item in nav track by $index">
<a ng-attr-href="{{ item.hash }}" ng-class="{active: item.hash == hash}" ng-click="hashButton(item.hash)">{{ item.title }}</a>
</div>
</nav>
</aside>
<section class="container">
<header class="header user-select-none">
<div class="header-top">
<img src="./icon/icon-10x001.svg" alt="logo" class="logo">
<div class="open" ng-class="{active: open}" ng-click="openButton()">
<i></i>
<i></i>
<i></i>
</div>
</div>
<nav class="nav-open">
<div class="nav-title" ng-repeat="item in nav track by $index">
<a ng-attr-href="{{ item.hash }}" ng-class="{active: item.hash == hash}" ng-click="hashButton(item.hash)">{{ item.title }}</a>
</div>
</nav>
</header>
<main class="main">
<div class="block" ng-repeat="item in nav track by $index" ng-attr-id="{{ item.hash.slice(1) }}">
<div class="title">{{ item.title }}</div>
<nav class="main-nav">
<ul class="nav-ul">
<li ng-repeat="nav in item.nav track by $index">
<a ng-attr-href="{{ nav.link }}" target="_blank">
<div class="top">
<img ng-attr-src="{{ nav.icon }}" alt="icon" class="icon">
<em class="name" ng-attr-title="{{ nav.name }}">{{ nav.name }}</em>
</div>
<div class="desc">{{ nav.desc }}</div>
</a>
<div class="mark" ng-show="nav.language.length >= 2">
<div class="button-box">
<a ng-attr-href="{{ nav.language[0] }}" class="en" target="_blank">英文</a>
<a ng-attr-href="{{ nav.language[1] }}" class="zh" target="_blank">中文</a>
</div>
</div>
</li>
</ul>
</nav>
</div>
</main>
<footer class="footer">
<div>
<span>爱分享,爱创造,这里是发现导航 - 新世界</span>
</div>
<div>
<a href="https://github.com/xjh22222228/nav" target="_blank">本站仓库</a>
<em>|</em>
<a href="https://github.com/xjh22222228/nav/issues" target="_blank">贡献导航</a>
</div>
</footer>
</section>
</div>
<script>
document.body.addEventListener('touchstart', function(){});
var app = angular.module('app', []);
app.controller('controller', function ($scope) {
$scope.open = false;
$scope.nav = [
{
title: '前端资源',
hash: '#one',
nav: [
{
icon: './icon/icon-1x001.png',
name: 'Vue.js',
desc: '是一套用于构建用户界面的渐进式框架',
link: 'https://cn.vuejs.org/',
language: [
'https://vuejs.org/',
'https://cn.vuejs.org/'
]
},
{
icon: './icon/icon-1x002.svg',
name: 'React',
desc: '用于构建用户界面的 JavaScript 库',
link: 'https://reactjs.org/',
language: [
'https://reactjs.org/',
'https://doc.react-china.org/'
]
},
{
icon: './icon/icon-1x003.svg',
name: 'AngularJs',
desc: 'AngularJS 是一个 JavaScript 框架。它是一个以 JavaScript 编写的库',
link: 'https://angularjs.org/',
language: [
'https://angularjs.org/',
'http://www.angularjs.net.cn/'
]
},
{
icon: './icon/icon-1x003.svg',
name: 'Angular',
desc: 'Angular2.x与Angular1.x 的区别类似 Java 和 JavaScript',
link: 'https://angular.io/',
language: [
'https://angular.io/',
'https://www.angular.cn/'
]
},
{
icon: './icon/icon-1x004.svg',
name: 'jQuery',
desc: 'jQuery是一个JavaScript函数库',
link: 'http://jquery.com/',
language: [
'http://jquery.com/',
'https://www.jquery123.com/'
]
},
{
icon: './icon/icon-1x005.svg',
name: 'Node.js',
desc: '一个基于 Chrome V8 引擎的 JavaScript 运行环境',
link: 'https://nodejs.org/en/',
language: [
'https://nodejs.org/en/',
'http://nodejs.cn/'
]
},
{
icon: './icon/icon-1x006.png',
name: 'Egg.js',
desc: 'Egg.js 为企业级框架和应用而生 - Node.js框架',
link: 'https://eggjs.org/zh-cn/intro/index.html',
language: [
'https://eggjs.org/en/intro/index.html',
'https://eggjs.org/zh-cn/intro/index.html'
]
},
{
icon: './icon/icon-1x007.png',
name: 'TypeScript',
desc: 'TypeScript 是一种由微软开发的自由和开源的编程语言,它是JavaScript的一个超集',
link: 'http://www.typescriptlang.org/',
language: [
'http://www.typescriptlang.org/',
'https://www.tslang.cn/index.html'
]
},
{
icon: './icon/icon-1x008.svg',
name: 'Bootstrap',
desc: 'Bootstrap 是一个用于快速开发 Web 应用程序和网站的前端框架',
link: 'http://getbootstrap.com/',
language: [
'http://getbootstrap.com/',
'http://www.bootcss.com/'
]
},
{
icon: './icon/icon-1x009.svg',
name: 'webpack',
desc: 'webpack 是一个模块打包器',
link: 'https://webpack.js.org/',
language: [
'https://webpack.js.org/',
'https://www.webpackjs.com/'
]
},
{
icon: './icon/icon-1x010.png',
name: 'Babel',
desc: '用于编写下一代 JavaScript 的编译器',
link: 'http://babeljs.io/',
language: [
'http://babeljs.io/',
'https://babeljs.cn/'
]
},
{
icon: './icon/icon-1x011.svg',
name: 'ESLint',
desc: '可组装的JavaScript和JSX检查工具',
link: 'https://eslint.org/',
language: [
'https://eslint.org/',
'http://eslint.cn/'
]
},
{
icon: './icon/icon-1x012.svg',
name: 'Font Awesome',
desc: '一套绝佳的图标字体库和CSS框架',
link: 'https://fontawesome.com/',
language: [
'https://fontawesome.com/',
'http://www.fontawesome.com.cn/'
]
},
{
icon: './icon/icon-1x013.png',
name: 'AntV',
desc: 'AntV 是蚂蚁金服全新一代数据可视化解决方案',
link: 'https://antv.alipay.com/',
},
{
icon: './icon/icon-1x014.png',
name: 'Sass',
desc: 'Sass 是成熟、稳定、强大的 CSS 扩展语言',
link: 'http://sass-lang.com/',
language: [
'http://sass-lang.com/',
'http://sass.bootcss.com/'
]
},
{
icon: './icon/icon-1x015.png',
name: 'Less',
desc: 'Less 是一门 CSS 预处理语言,它扩展了 CSS 语言,增加了变量、Mixin、函数等特性',
link: 'http://lesscss.org/',
language: [
'http://lesscss.org/',
'https://less.bootcss.com/'
]
}
]
},
{
title: '社区站点',
hash: '#two',
nav: [
{
icon: './icon/icon-2x001.png',
name: 'segmentfault',
desc: '是中文领域最大的技术问答交流社区平台',
link: 'https://segmentfault.com/',
},
{
icon: './icon/icon-2x002.svg',
name: '掘金',
desc: '一个帮助开发者成长的社区',
link: 'https://juejin.im/',
},
{
icon: './icon/icon-2x003.png',
name: 'V2EX',
desc: '创意工作者们的社区',
link: 'https://www.v2ex.com/',
},
{
icon: './icon/icon-2x004.png',
name: 'DiyCode',
desc: '致力于构建开发工程师高端交流分享社区',
link: 'https://www.diycode.cc/',
},
{
icon: './icon/icon-2x005.png',
name: '黑客派',
desc: '黑客派是程序员和设计师的聚集地,汇聚了严谨求实的工程师和富有创意的设计师',
link: 'https://hacpai.com/',
},
{
icon: './icon/icon-2x006.png',
name: 'Node.js专业中文社区',
desc: '国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究',
link: 'https://cnodejs.org/',
},
{
icon: './icon/icon-2x007.svg',
name: 'Github',
desc: '面向开源及私有软件项目的托管平台',
link: 'https://github.com/',
},
{
icon: './icon/icon-2x008.svg',
name: '知乎',
desc: '知乎,中文互联网最大的知识分享和社交平台',
link: 'https://www.zhihu.com/',
},
{
icon: './icon/icon-2x009.png',
name: '码云',
desc: '码云专为开发者提供稳定、高效、安全的云端软件开发协作平台',
link: 'https://gitee.com/',
},
{
icon: './icon/icon-2x010.jpg',
name: '吾爱破解',
desc: '吾爱破解关注PC软件安全和移动安全领域,致力于软件安全与病毒分析的前沿',
link: 'https://www.52pojie.cn/',
},
{
icon: './icon/icon-2x011.png',
name: '简书',
desc: '简书是一个创作社区,任何人均可以在其上进行创作',
link: 'https://www.jianshu.com/',
},
{
icon: './icon/icon-2x012.jpg',
name: 'FreeBuf',
desc: 'FreeBuf黑客与极客,国内关注度最高的全球互联网安全媒体平台',
link: 'http://www.freebuf.com/',
},
{
icon: './icon/icon-2x013.png',
name: 'IMWeb',
desc: 'Web前端 腾讯IMWeb 团队社区',
link: 'http://imweb.io/topic/tab/all',
},
{
icon: './icon/icon-2x014.png',
name: 'Stack Overflow',
desc: '全球最大的技术问答网站,是一个与程序相关的IT技术问答网站',
link: 'https://stackoverflow.com/',
},
{
icon: './icon/icon-2x015.png',
name: '小专栏',
desc: '小专栏是一个专业人士的创作知识社区,在这里您可以看到各个领域最专业的专栏和观点',
link: 'https://xiaozhuanlan.com/',
},
{
icon: './icon/icon-1x002.svg',
name: 'React社区',
desc: 'React论坛社区',
link: 'http://react-china.org/',
language: [
'https://discuss.reactjs.org/',
'http://react-china.org/'
]
},
{
icon: './icon/icon-2x016.png',
name: '众成翻译',
desc: '中国最好的技术翻译社区,最懂译者的翻译平台,奇虎360最大前端团队“奇舞团”出品',
link: 'https://zcfy.cc/',
}
]
},
{
title: '设计师',
hash: '#three',
nav: [
{
icon: './icon/icon-3x001.jpg',
name: '创客贴',
desc: '一款简单易用、功能强大的线上图形设计工具',
link: 'https://www.chuangkit.com/',
},
{
icon: './icon/icon-3x002.png',
name: '觅元素',
desc: '觅元素,为您提供免费设计元素,设计元素的资源站',
link: 'http://www.51yuansu.com/',
},
{
icon: './icon/icon-3x003.svg',
name: '千库网',
desc: '致力于为设计师提供最优质的素材',
link: 'http://588ku.com/',
},
{
icon: './icon/icon-3x004.svg',
name: 'iconfont',
desc: '阿里妈妈MUX倾力打造的矢量图标管理、交流平台',
link: 'http://www.iconfont.cn/',
},
{
icon: './icon/icon-3x005.png',
name: '花瓣网',
desc: '花瓣,陪你做生活的设计师',
link: 'http://huaban.com/',
},
{
icon: './icon/icon-3x006.png',
name: 'Dribbble',
desc: 'Dribbble是展示和宣传,推广,发现和探索设计的地方',
link: 'https://dribbble.com/',
},
{
icon: './icon/icon-3x007.png',
name: '万素网',
desc: '万素网致力于为国内各行业设计师,网站编辑,新媒体工作人员提供免费png素材与背景图片服务',
link: 'http://669pic.com/',
}
]
},
{
title: '实用工具',
hash: '#four',
nav: [
{
icon: './icon/icon-4x001.png',
name: 'TinyPNG',
desc: '智能PNG和JPEG压缩,以质量和文件大小的完美平衡来优化您的图像',
link: 'https://tinypng.com/',
},
{
icon: './icon/icon-4x002.jpg',
name: '草料二维码',
desc: '用专业的二维码产品帮助企业创造价值',
link: 'https://cli.im/url/',
},
{
icon: './icon/icon-4x003.svg',
name: 'CSS渐变调试器',
desc: '前端开发调试CSS渐变必备神器',
link: 'http://www.colorzilla.com/gradient-editor/',
},
{
icon: './icon/icon-4x004.png',
name: '正则表达式验证器',
desc: '验证JavaScript正则表达式',
link: 'https://regexper.com/',
},
{
icon: './icon/icon-4x005.png',
name: 'BootCDN',
desc: 'BootCDN 是 Bootstrap 中文网支持并维护的前端开源项目免费 CDN 服务',
link: 'http://www.bootcdn.cn/',
},
{
icon: './icon/icon-4x006.png',
name: 'Shields IO',
desc: 'svg生成版本号图标',
link: 'https://shields.io/',
},
{
icon: './icon/icon-4x007.svg',
name: 'Feed 验证器',
desc: '验证RSS是否符合标准规范',
link: 'http://www.feedvalidator.org/',
},
{
icon: './icon/icon-4x008.png',
name: 'XSS平台',
desc: 'XSS平台 - 免费XSS测试平台',
link: 'http://xss.fbisb.com/',
},
{
icon: './icon/icon-4x009.png',
name: 'MD5解密',
desc: 'md5在线解密破解,md5解密加密',
link: 'http://www.cmd5.com/',
},
{
icon: './icon/icon-4x010.png',
name: '前端兼容性查询',
desc: '前端查询API各个厂商兼容性情况',
link: 'https://www.caniuse.com/',
},
{
icon: './icon/icon-4x011.png',
name: 'FunDebug',
desc: '支持前端JavaScript,后端Node.js以及微信小程序错误监控',
link: 'https://www.fundebug.com/',
},
{
icon: './icon/icon-4x012.png',
name: 'Asciiworld',
desc: 'WA!原来那些年程序猿搞怪的注释都在这里',
link: 'http://www.asciiworld.com/',
},
{
icon: './icon/icon-4x013.png',
name: 'jsfiddle',
desc: '强大的前端代码在线演示的网站',
link: 'http://www.asciiworld.com/',
},
{
icon: './icon/icon-4x014.png',
name: 'ProcessOn',
desc: '免费在线作图工具,UML作图,UI界面原型设计,iOS原型设计,BPMN,流程图,思维导图,多人协作绘图',
link: 'https://www.processon.com/',
},
{
icon: './icon/icon-4x015.png',
name: 'eoLinker接口管理平台',
desc: '国内最大的在线接口管理服务方案供应商',
link: 'https://www.eolinker.com/',
},
{
icon: './icon/icon-4x016.png',
name: 'YApi',
desc: 'YApi-高效、易用、功能强大的可视化接口管理平台',
link: 'http://yapi.demo.qunar.com/',
},
{
icon: './icon/icon-4x017.png',
name: '淘捏捏',
desc: '淘宝信誉查询 - 淘捏捏卖家工具箱 淘宝信誉查询_淘宝信用查询_淘宝小号查询_淘宝黑号查询',
link: 'http://taonienie.com/',
},
{
icon: './icon/icon-4x018.png',
name: '天眼查',
desc: '人人都在用商业安全工具_企业信息查询_公司查询_工商查询_企业信用信息查询系统',
link: 'https://www.tianyancha.com/',
},
{
icon: './icon/icon-4x019.png',
name: '语雀',
desc: '优雅高效的在线文档编辑与协同工具,让每个企业轻松拥有文档中心 - 阿里巴巴',
link: 'https://yuque.com/',
},
{
icon: './icon/icon-4x020.png',
name: '求是潮云U盘',
desc: '临时文件上传, 快速和稳定',
link: 'https://box.zjuqsc.com/',
},
{
icon: './icon/default.svg',
name: 'VConsole',
desc: '一个轻量、可拓展、针对手机网页的前端开发者调试面板',
link: 'https://github.com/Tencent/vConsole/',
language: [
'https://github.com/Tencent/vConsole',
'https://github.com/Tencent/vConsole/blob/dev/README_CN.md'
]
},
{
icon: './icon/icon-4x021.png',
name: '蓝湖',
desc: '蓝湖是一款设计图共享平台,帮助互联网团队管理设计图',
link: 'https://lanhuapp.com/',
},
{
icon: './icon/icon-4x022.png',
name: 'Zeplin',
desc: '为设计师和前端而生的协作应用',
link: 'https://zeplin.io/',
},
{
icon: './icon/icon-4x023.png',
name: 'CODEIF',
desc: '变量命名神器',
link: 'https://unbug.github.io/codelf/',
},
{
icon: './icon/icon-4x024.svg',
name: 'Lodash',
desc: 'Lodash是一个一致性、模块化、高性能的 JavaScript 实用工具库',
link: 'https://www.lodashjs.com/',
language: [
'https://lodash.com/',
'https://www.lodashjs.com/'
]
}
]
},
{
title: '活到老,学到老',
hash: '#five',
nav: [
{
icon: './icon/icon-5x001.png',
name: '慕课网',
desc: '慕课网-程序员的梦工厂',
link: 'https://www.imooc.com/',
},
{
icon: './icon/icon-5x002.png',
name: '极客学院',
desc: '致力于“让IT学习更有效”,以实战为特色,为注重自我提升的IT从业者提供高品质职业教育',
link: 'https://www.jikexueyuan.com/',
},
{
icon: './icon/icon-5x003.svg',
name: '百度传课',
desc: '百度传课,中国教育领域新兴的在线教育平台',
link: 'https://chuanke.baidu.com/',
},
{
icon: './icon/icon-5x004.jpg',
name: '腾讯课堂',
desc: '腾讯课堂 - 专业的在线教育平台',
link: 'https://ke.qq.com/index.html',
},
{
icon: './icon/icon-5x005.png',
name: 'i春秋',
desc: '【i春秋】-专注网络安全_信息安全_白帽子的在线学习_教育_培训平台',
link: 'https://www.ichunqiu.com/',
},
{
icon: './icon/icon-5x006.png',
name: '实验吧',
desc: '实验吧是国内最大的在线虚拟机实验IT教育平台',
link: 'http://www.shiyanbar.com/',
},
{
icon: './icon/icon-5x007.png',
name: '合天网安实验室',
desc: '合天网安实验室是支持在线实验的信息安全学习的大型服务平台',
link: 'http://www.hetianlab.com/',
},
{
icon: './icon/icon-5x008.png',
name: '网易云课堂',
desc: '网易云课堂 - 领先的实用技能学习平台',
link: 'http://study.163.com/',
},
]
},
{
title: '运营',
hash: '#six',
nav: [
{
icon: './icon/icon-6x001.png',
name: '百度统计',
desc: '全球最大的中文网站流量分析平台,帮助企业收集网站访问数据,提供流量趋势、来源分析...',
link: 'https://tongji.baidu.com/',
},
{
icon: './icon/icon-6x002.png',
name: 'CNZZ',
desc: 'CNZZ数据专家是全球最大的中文网站统计分析平台,为各类网站提供免费、安全、稳定',
link: 'http://www.cnzz.com/',
}
]
},
{
title: '友情链接',
hash: '#ten',
nav: [
{
icon: './icon/icon-10x001.svg',
name: '发现导航',
desc: '爱分享,爱创造,一个资源难寻的导航网站',
link: './',
}
]
}
];
$scope.hash = function () {
var hash = window.location.hash;
if( !hash ) return $scope.nav[0].hash;
var findHash = $scope.nav.every(function (el) { return el.hash !== hash });
if( findHash ) return $scope.nav[0].hash;
return hash;
}();
$scope.hashButton = function (hash) {
$scope.hash = hash;
};
$scope.openButton = function () {
$scope.open = !$scope.open;
$('.nav-open').slideToggle(200);
};
$(function () {
var hashLocation = function () {
var hash = window.location.hash;
if( !hash ) return;
var el = $(hash);
if( el.length === 0 ) {
$('body,html').animate({
scrollTop: 0
}, 300);
return;
}
var offsetTop = el.offset().top;
if( offsetTop <= 10 ) return;
$('body,html').animate({
scrollTop: offsetTop + 'px'
}, 300);
}();
var elTop = $('.scroll-top');
elTop.on('click', function () {
$('body,html').animate({
scrollTop: 0
}, 300);
});
$(window).on('scroll', function () {
var scrollTop = $(window).scrollTop();
if( scrollTop > 300 ) {
elTop.fadeIn();
} else {
elTop.fadeOut();
}
});
$.ripple('.ng-binding', {
multi: true
});
});
});
</script>
</body>
</html>