Changeset 1130122
- Timestamp:
- 04/08/2015 03:59:24 AM (11 years ago)
- Location:
- wp-customer-feedback/trunk
- Files:
-
- 4 edited
-
css/feedback.css (modified) (1 diff)
-
js/feedback.js (modified) (1 diff)
-
readme.txt (modified) (5 diffs)
-
wp-customer-feedback.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-customer-feedback/trunk/css/feedback.css
r1076396 r1130122 1 #cfbp-panel{position:fixed;left:0;top:0;width:300px;height:288px;background:#FFF;z-index:9997000;border:1px solid #999;border-radius:8px 8px 0 0;text-align:center}#cfbp-panel h3#cfbp- footer,#cfbp-panel h3#cfbp-title{color:#FFF;font:14px sans-serif;padding-top:8px;margin-top:0}#cfbp-panel h3#cfbp-footer{color:#888;margin:0;padding-top:10px}#cfbp-panel #rating-header{height:30px;width:300px;background:#ED5100;border-radius:8px 8px 0 0}#cfbp-panel .comment{width:300px}#cfbp-panel .comment textarea{margin:10px 0;width:280px;height:140px}#cfbp-panel .comment label{background-color:#eee}#cfbp-panel .comment .email{width:280px;color:#111;font-size:16px;background-color:#eee}#cfbp-panel input.rating-submit{margin:10px;float:right;border:none;border-radius:2px;font-size:12px;padding:10px 30px 11px;text-transform:uppercase}1 #cfbp-panel{position:fixed;left:0;top:0;width:300px;height:288px;background:#FFF;z-index:9997000;border:1px solid #999;border-radius:8px 8px 0 0;text-align:center}#cfbp-panel h3#cfbp-title{color:#FFF;font-family:"Helvetica Neue",Arial,sans-serif;font-size:14px;margin-top:0;padding-top:4px}#cfbp-panel .cfbp-rating-header{height:30px;width:300px;background:#ED5100;border-radius:8px 8px 0 0;cursor:pointer}#cfbp-panel .cfbp-close{color:#000;font-family:"Helvetica Neue",Arial,sans-serif;font-size:18px;position:absolute;top:0;left:278px;height:20px;width:20px}#cfbp-panel .cfbp-comment{width:300px}#cfbp-panel .cfbp-comment textarea{margin:10px 0;width:280px;height:140px}#cfbp-panel .cfbp-comment label{background-color:#eee}#cfbp-panel .cfbp-comment .cfbp-email{width:280px;color:#111;font-size:16px;background-color:#eee}#cfbp-panel input.cfbp-rating-submit{margin:10px;float:right;padding:10px 30px 11px;text-transform:uppercase;box-shadow:rgba(0,0,0,.2) 0 1px 0 0;border-radius:5px;font-family:"Helvetica Neue",Arial,sans-serif;font-weight:700;font-size:12px;text-shadow:#FE6 0 1px 0} -
wp-customer-feedback/trunk/js/feedback.js
r1099762 r1130122 1 jQuery(document).ready(function(e){var n,t,a, r,i,o,c,p,d,l;return i=!1,r=!1,n=function(){var n,t,a;return a=endual.title,n=endual.color,this.delay=1e3*endual.delay,t='<div id="cfbp-panel">',t+='<form accept-charset="UTF-8" action="" class="cs-rating" data-remote="true" id="wp-cfbp" method="post">',t+='<div id="rating-header">',t+="<h3 id='cfbp-title'>"+a+"</h3>",t+="</div>",t+='<div class="comment">',t+='<textarea name="comment" placeholder="'+a+'"></textarea>',t+='<input class="email" type="email" name="email" placeholder="Your email address?"></textarea>',t+='<input class="rating-submit" name="commit" type="submit" value="Submit">',t+="</div>",t+="</form>",t+="</div>",e("body").append(t),e("#rating-header").css({background:n}),e("<style type='text/css'> .hilite{ color:"+n+";} .checked{ color:"+n+";}</style>").appendTo("head")},p=function(){return o(),e(window).on("resize",c),e(window).on("scroll",c),e("#cfbp-panel #rating-header").click(function(){return d()}),e("#wp-cfbp").submit(function(){var n,a;return a=e("#wp-cfbp").serializeArray(),n={},e.map(a,function(e){return n[e.name]=e.value}),n.action="process_form_data",e.post(endual.ajaxurl,n,t),!1})},o=function(){var n,t;return t=e(window).innerHeight()+2,n=e(window).width()-400,e("#cfbp-panel").css({transform:"translate( "+n+"px, "+t+"px )"}),l()},l=function(){var n;return n=e(window).innerHeight()-30,e("#cfbp-panel").delay(this.delay).animate({top:"-32"},600,"swing",function(){return i=!0})},c=function(){var n,t;if(r||i)return t=e(window).innerHeight()-30,i&&(t+=32),n=e(window).width()-400,e("#cfbp-panel").css({transform:"translate( "+n+"px, "+t+"px )"})},d=function(){var n;if(!r)return r=!0,n=258,e("#cfbp-panel").animate({top:"-="+n},600,"swing")},t=function(){var n;return e("#cfbp-panel .comment").html("<br /><br /><p>Thanks for your feedback!</p>"),n=e(window).innerHeight()+2,e("#cfbp-panel").animate({top:"+=130"},600,"swing").delay(3e3).animate({top:"+=200"},600,"swing",a),e(window).off("resize",c)},a=function(){return e("#cfbp-panel").hide()},n(),p()});1 jQuery(document).ready(function(e){var n,t,a,i,r,c,o,p,l,f,d;return r=!1,i=!1,n=function(){var n,t,a;return a=endual.title,n=endual.color,this.delay=1e3*endual.delay,t='<div id="cfbp-panel">',t+='<form accept-charset="UTF-8" action="" data-remote="true" id="wp-cfbp" method="post">',t+='<div class="cfbp-rating-header">',t+="<h3 id='cfbp-title'>"+a+"</h3>",t+='<div class="cfbp-close">X</div>',t+="</div>",t+='<div class="cfbp-comment">',t+='<textarea name="comment" placeholder="'+a+'"></textarea>',t+='<input class="cfbp-email" type="email" name="email" placeholder="Your email address?"></textarea>',t+='<input class="cfbp-rating-submit" name="commit" type="submit" value="Submit">',t+="</div>",t+="</form>",t+="</div>",e("body").append(t),e(".cfbp-rating-header").css({background:n}),e("<style type='text/css'> .hilite{ color:"+n+";} .checked{ color:"+n+";}</style>").appendTo("head")},p=function(){return c(),e(window).on("resize",o),e(window).on("scroll",o),e("#cfbp-panel .cfbp-rating-header").click(function(){return l()}),e("#cfbp-panel .cfbp-close").click(function(e){return e.stopPropagation(),d()}),e("#cfbp-panel .cfbp-close").hide(),e("#wp-cfbp").submit(function(){var n,a;return a=e("#wp-cfbp").serializeArray(),n={},e.map(a,function(e){return n[e.name]=e.value}),n.action="process_form_data",e.post(endual.ajaxurl,n,t),!1})},c=function(){var n,t;return t=e(window).innerHeight()+2,n=e(window).width()-400,e("#cfbp-panel").css({transform:"translate( "+n+"px, "+t+"px )"}),f()},f=function(){var n;return n=e(window).innerHeight()-30,e("#cfbp-panel").delay(this.delay).animate({top:"-32"},600,"swing",function(){return r=!0})},d=function(){var n;if(i)return i=!1,r=!1,e("#cfbp-panel .cfbp-close").hide(),n=e(window).innerHeight()-30,e("#cfbp-panel").animate({top:"-32"},600,"swing",function(){return r=!1})},o=function(){var n,t;if(i||r)return t=e(window).innerHeight()-30,r&&(t+=32),n=e(window).width()-400,e("#cfbp-panel").css({transform:"translate( "+n+"px, "+t+"px )"})},l=function(){var n;if(!i)return i=!0,e("#cfbp-panel .cfbp-close").show(),n=258,e("#cfbp-panel").animate({top:"-="+n},600)},t=function(){var n;return e("#cfbp-panel .comment").html("<br /><br /><p>Thanks for your feedback!</p>"),n=e(window).innerHeight()+2,e("#cfbp-panel").animate({top:"+=130"},600).delay(3e3).animate({top:"+=200"},600,"swing",a),e(window).off("resize",o)},a=function(){return e("#cfbp-panel").hide()},n(),p()}); -
wp-customer-feedback/trunk/readme.txt
r1099940 r1130122 5 5 Plugin URI: http://endual.com/wp-customer-feedback 6 6 Requires at least: 3.3 7 Tested up to: 4. 18 Stable tag: 1. 0.17 Tested up to: 4.2 8 Stable tag: 1.1.0 9 9 License: GPLv2 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 * Delay before panel scrolls into view 53 53 54 = Video walk through = 55 http://swoon.wistia.com/medias/p7ez8vqcmt 56 54 57 Suggestions for improvements are always welcome, and I love to hear suggestions for new plugins. 55 58 … … 63 66 3. Place `[get-feedback]` in your pages or posts. 64 67 65 == Controls ==68 == Frequently Asked Questions == 66 69 67 70 = Short codes = … … 97 100 [get-feedback color="blue" title="How did you find us?" delay="5"] 98 101 99 == Frequently Asked Questions ==100 101 102 = Why can't I see the feedback panel on the home page? = 102 103 … … 110 111 111 112 == Changelog == 113 114 = 1.1.0 = 115 Updated readme.txt for WordPress 4.2 116 Namespaced all CSS 117 Added close button to panel when visible 118 Changed cursor to pointer over panel header 119 120 = 1.0.2 = 121 Updated readme.txt to include better shortcode info and added video to readme home tab. 112 122 113 123 = 1.0.1 = -
wp-customer-feedback/trunk/wp-customer-feedback.php
r1099766 r1130122 5 5 * Plugin URI: http://endual.com/wp-customer-feedback/ 6 6 * Description: Simple way to get user feedback for your site 7 * Version: 1. 0.17 * Version: 1.1.0 8 8 * Author: Adrian Gray 9 9 * Author URI: http://endual.com/about-adrian-gray/ … … 45 45 } 46 46 wp_enqueue_style( 'endual-feedback', plugins_url( '/css/feedback.css', __FILE__ ) ); 47 wp_register_script( 'endual-feedback', plugins_url( '/js/feedback.js', __FILE__ ), array( 'jquery' ), '1. 0.1', true);47 wp_register_script( 'endual-feedback', plugins_url( '/js/feedback.js', __FILE__ ), array( 'jquery' ), '1.1.0', true); 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.