Feedback.ts

feedback module with Typescript

This script allows you to create feedback forms which include a screenshot And clients browser Information . Feedback tool similar to the Google Feedback based on Typescript/JQuery and HTML2Canvas.

Demo

Browser Support

screenshot Support

both rtl and ltr direction.

Requirements

jQuery +1.10 html2canvas

Setup

To use it you need of course JQuery, so make sure it is loaded first. I always like to use JQuery.com CDN for that:

   <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>

for create screensnapshot you need html2convas.js , so add it into html file :

   <script src="../src/html2canvas.js"></script>

for feedback tool you need add feedback.js ( compiled feedback.ts - typescript) :

  <script src="../src/feedback.js"></script>

Also you should load the stylesheet of the feedback:

<link href="../src/styles/feedback.rtl.css" rel="stylesheet" />

Example

Html :

<button id="content">feedback</button>

JavaScript:

  function onStart() {
            console.log('onStart');
        }
        function onClose() {
            console.log('onClose');
        }

        var options = new phoenix.feedbackOptions(onStart, onClose);
        new phoenix.feedback("content", options);

phoenix.feedbackOptions

Change log

09.04.2015

31.03.2015

Support or Contact

Having trouble with Pages? Check out the documentation at https://github.com/mohammadKarimi/Feedback.ts/wiki or contact dot.dotbydot@gmail.com and we’ll help you sort it out.