doorbell反馈插件使用教程 2022-08-19 13:59 39阅读 0赞 # 用户信息反馈 # 效果图: ![Center][] 直接上代码: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>doorbell实例</title> <link rel="stylesheet" href="bootstrap/3.3.0/css/bootstrap.min.css" type="text/css" /> <link rel="stylesheet" href="alertify/0.3.12/css/alertify-bootstrap.css" type="text/css" /> <script type="text/javascript" src="jquery/jquery-1.9.1.min.js"></script> <script type="text/javascript" src="bootstrap/3.3.0/js/bootstrap.min.js"></script> <script type="text/javascript"> // 设置反馈路径 function shareViaEmail() { $.get('/social/inviteCode', function(response) { if(response.indexOf('Failed') == 0) alertify.error(response); else { //send email with invitecode document.location.href = "" + response; // http后面接的是路径 } }); } // 初始化doorbell window.doorbellOptions = { hideEmail:false, email:"", hideButton: true, strings: { 'title': 'Hi, doorbell item,' }, onSuccess: function(){ var email = $('#doorbell-email').val(); var content = $('#myTextarea').val(); alertify.success('content:'+content); alertify.success('email:'+email); }, appKey: '自己申请' }; // 调用doorbell.js (function(d, t) { var g = d.createElement(t);g.id = 'doorbellScript';g.type = 'text/javascript';g.async = true;g.src = 'https://embed.doorbell.io/button/2278?t='+(new Date().getTime());(d.getElementsByTagName('head')[0]||d.getElementsByTagName('body')[0]).appendChild(g); }(document, 'script')); // 执行展示 function showDoorbellModal() { doorbell.show(); // The doorbell object gets created by the doorbell.js script } </script> </head> <body> <button type="button" οnclick="showDoorbellModal();">Show Doorbell form</button> </body> </html> 第三方资源请读者自行准备。 个人主页:[http://www.itit123.cn/][http_www.itit123.cn] 更多干货等你来拿 更多内容参考:[https://doorbell.io/docs/javascript][https_doorbell.io_docs_javascript] [Center]: /images/20220731/7b6a133ebfc645fea23e6ba3a200f130.png [http_www.itit123.cn]: http://www.itit123.cn/ [https_doorbell.io_docs_javascript]: https://doorbell.io/docs/javascripthttp:// 文章版权声明:注明蒲公英云原创文章,转载或复制请以超链接形式并注明出处。
相关 jQuery插件开发教程 [jQuery插件开发精品教程,让你的jQuery提升一个台阶][jQuery_jQuery] 要说jQuery 最成功的地方,我认为是它的可扩展性吸引了众多开发者为其开 淩亂°似流年/ 2021年09月17日 07:12/ 0 赞/ 315 阅读
相关 下载无水印视频插件版使用教程 什么是无水印视频下载?当我们在观看腾讯视频时会发现腾讯视频右上角有个水印如下图: 如果我们玩抖音或者其它平台时,下载这个视频有水印时不会被推广的。所以我们需要一些无水印的... 朱雀/ 2021年11月27日 14:08/ 1 赞/ 9870 阅读
相关 JS插件fullcalendar教程 一.下载fullcalendar 1.fullcalendar官网 2.百度 fullcalendar下载 二.浏览fullcalendar结构 demos里存放着使用的相 短命女/ 2022年03月22日 13:46/ 0 赞/ 267 阅读
相关 百度编辑器的插件使用教程 今天在做IPTV系统项目的时候,学习到了一个编辑器插件的使用,下面是其方法。感觉十分的好用。 1.在百度网页种搜索百度编辑器,然后在下载中找到该压缩包,并下载: ![ £神魔★判官ぃ/ 2022年05月17日 08:42/ 0 赞/ 42 阅读
相关 MyBatis插件PageHelper的分页使用教程 最近琢磨了一下这个分页,分享使用步骤给大家 官方地址:[https://github.com/pagehelper/Mybatis-PageHelper/blob/maste 今天药忘吃喽~/ 2022年05月27日 08:39/ 0 赞/ 26 阅读
相关 fullCalendar插件的使用简单教程 > 转载请标明出处: > 原文首发于: [http://www.zhangruibin.com][http_www.zhangruibin.com] > 本文出自 [R た 入场券/ 2022年06月01日 11:56/ 0 赞/ 204 阅读
相关 doorbell反馈插件使用教程 用户信息反馈 效果图: ![Center][] 直接上代码: <!DOCTYPE html> <html> <head> 向右看齐/ 2022年08月19日 13:59/ 0 赞/ 40 阅读
相关 BootStrap 教程 之 插件(04) 过度效果: 模态框,页面按钮对应的弹窗响应; 标签页,有淡入淡出效果的标签页; 轮播框,有前向后向按钮,选页按钮的大图幻灯片轮播; 带下拉框的导航栏。 绝地灬酷狼/ 2022年09月25日 14:14/ 0 赞/ 33 阅读
相关 Bootstrap教程(24)--折叠插件 [点此查看全部文字教程、视频教程、源代码][Link 1] 本文目录 1. 概述 2. 通过a元素控制折叠 3. 通过JS控制折叠 4. 偏执的太偏执、/ 2022年11月07日 19:42/ 0 赞/ 23 阅读
相关 jQuery 插件开发教程 jQuery 插件开发教程 扩展jQuery插件和方法的作用是非常强大的,它可以节省大量开发时间。这篇文章将概述jQuery插件开发的基本知识,最佳做法和常见的陷阱。 红太狼/ 2020年06月03日 21:45/ 0 赞/ 813 阅读
还没有评论,来说两句吧...