web--前端之js代码8
来源:互联网 发布:iphone连mac充电好吗 编辑:程序博客网 时间:2024/06/17 07:22
这个是之前写的项目中需要的js代码
// var $parentNode = window.parent.document;// function $childNode(name) {// return window.frames[name]// }// // tooltips// $('.tooltip-demo').tooltip({// selector: "[data-toggle=tooltip]",// container: "body"// });// // 使用animation.css修改Bootstrap Modal// $('.modal').appendTo("body");// $("[data-toggle=popover]").popover();// //折叠ibox// $('.collapse-link').click(function () {// var ibox = $(this).closest('div.ibox');// var button = $(this).find('i');// var content = ibox.find('div.ibox-content');// content.slideToggle(200);// button.toggleClass('fa-chevron-up').toggleClass('fa-chevron-down');// ibox.toggleClass('').toggleClass('border-bottom');// setTimeout(function () {// ibox.resize();// ibox.find('[id^=map-]').resize();// }, 50);// });// //关闭ibox// $('.close-link').click(function () {// var content = $(this).closest('div.ibox');// content.remove();// });// //判断当前页面是否在iframe中// if (top == this) {// var gohome = '<div class="gohome"><a class="animated bounceInUp" href="index.html?v=4.0" title="返回首页"><i class="fa fa-home"></i></a></div>';// $('body').append(gohome);// }//animation.cssfunction animationHover(element, animation) { element = $(element); element.hover( function () { element.addClass('animated ' + animation); }, function () { //动画完成之前移除class window.setTimeout(function () { element.removeClass('animated ' + animation); }, 2000); });}// //拖动面板// function WinMove() {// var element = "[class*=col]";// var handle = ".ibox-title";// var connect = "[class*=col]";// $(element).sortable({// handle: handle,// connectWith: connect,// tolerance: 'pointer',// forcePlaceholderSize: true,// opacity: 0.8,// })// .disableSelection();// };
阅读全文
0 0
- web--前端之js代码8
- web--前端之js代码2
- web--前端之js代码3
- web--前端之js代码4
- web--前端之js代码5
- web--前端之js代码6
- web--前端之js代码7
- web—前端之使用的js代码1
- 前端之js功能代码
- web前端常用js小段代码
- 工欲善其事 之 Web 前端调试工具格式化混淆过的 JS 代码
- Web前端之js交互悬放
- web前端JS整理之Handlebars介绍
- 从零开始,学习web前端之js基础
- 从零开始,学习web前端之js特效
- 从零开始,学习web前端之js高级
- WEB开发之前端代码截取
- web--前端之css代码1
- numpy之one-hot
- bzoj 1005: [HNOI2008]明明的烦恼
- 10.9离线赛
- Django HTTP请求的处理流程
- Android 颜色透明度换算
- web--前端之js代码8
- LeetCode 290. Word Pattern
- 关于视频播放VideoView的一些总结
- Material Design UI控件
- layer弹出层msg的文字不显示问题
- 搜索验证js
- c++直接继承和简介继承
- Java 基础(10)—— static
- 友盟分享步骤&