Code Monkey home page Code Monkey logo

feedback.ts's Introduction

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

  • Internet Explorer +9
  • All versions Of Google Chrome
  • FireFox +3.5
  • Newer versions of Safari & Opera

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

  • onStart : function (Optional) -> this method call befor feedback module is opened.
  • onClose : function (Optional) -> this method call after feedback module is closed.
  • url : string (Optional) -> this property for send feedback data to custom ajax url.
  • contentTemplate : string (Optional) -> this string is address of templates in server
  • contentTemplate default : "../src/templates/fa-Ir/templates.html"

Change log

09.04.2015

  • Merg All template files such as description.html,highlighter.html ,.... into one html file templates.html

31.03.2015

  • add order number of highlighter box
  • add highlightTextbox under the lighter box for type additional description for each highlighter box

feedback.ts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

feedback.ts's Issues

"Transparent" is spelled incorrectly.

Heya, just wanted to let you know that "transparent" is spelled incorrectly, and should be changed to avoid issues down the road.

$(document).on("mouseenter mouseleave", ".fb-helper", (event: JQueryEventObject) => this.setBlackoutTransparetn(event));

private setBlackoutTransparetn(event: JQueryEventObject, fbContext: any= this.fbContext): void {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.