Coder Social home page Coder Social logo

ofooo / yodaqa-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brmson/yodaqa-client

0.0 2.0 0.0 2.67 MB

HTML5 mobile client for YodaQA

License: Apache License 2.0

Java 57.85% HTML 1.28% JavaScript 31.45% Batchfile 2.17% Objective-C 4.46% C++ 0.66% C# 0.86% CSS 1.27%

yodaqa-client's Introduction

YodaQA Client

Client for YodaQA writen in HTML5 with jQuery mobile and Cordova.

You can see it live on http://brmson.github.io/YodaQA-client/ or http://live.ailao.eu/ . That's the gh-pages branch; to push there, use:

git subtree push --prefix www origin gh-pages

API

Client works with Hub only. Get it from https://github.com/brmson/hub and use it as non-default REST API endpoint.

  • ?dID=N&qID=M: show dialog with id N and opens question with id M
  • ?e=http://qa.ailao.eu:4000/: use a non-default REST API endpoint
  • ?feedback=true: show feedback form

Structure

HTML page

Client itself is located in www folder. There is index.html.

Javascript files are in www/js. File yodaAnswerGetter.js handles getting of answers and their displaying. File androidControl.js handles native android functions. jQuerry mobile is located in www/js/jQuery.

CSS files are located in www/css. style.css contains custom stylesheet. jQuery mobile css files are located in www/css/jQuery.

Android app

Files genrated by Cordova for android app are located in platforms\android. Current apk file is in platforms\android\build\outputs\apk. There are Cordova plugins in plugins folder.

Feedback

Feedback form is handled by feedbackHandler.js located in www/js. To deploy feedback, create google form with 9 text fields (email,question,expected answer[0-5],more correct answers). To variable BASE_URL copy form's id, to array FIELDS_IDS copy text field's ids in order: email,question,expected answer[0-5],more correct answers. SUBMIT_REF holds name and action of form's button. Field more correct answers stores answers separated by vertical bar (answer|answer|answer). See the top of the feedbackHandler source code for the form URLs.

yodaqa-client's People

Contributors

thepetrmarek avatar pasky avatar marekp17 avatar

Watchers

James Cloos avatar FAQrobot avatar

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.