Skip to content

Commit

Permalink
v1.0.8 - Fixed keypress when typing in the text area
Browse files Browse the repository at this point in the history
v1.0.8 - Fixed keypress when typing in the text area
  • Loading branch information
Djedj committed Oct 20, 2016
1 parent 1e0fe2c commit 3e874ba
Show file tree
Hide file tree
Showing 40 changed files with 3,059 additions and 2,451 deletions.
1 change: 1 addition & 0 deletions .adxstudio/workspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"tabs":[{"id":"4dbb9d0e-1cd8-4914-b9bd-307f249cf6e1","pane":"main","current":true,"path":"F:\\Adc\\adc2-keyIn\\config.xml","type":"projectSettings","mode":"code"},{"id":"e45348f9-9a39-4d74-a5c7-3c38ad20bc45","pane":"main","path":"F:\\Adc\\adc2-keyIn\\resources\\static\\keyin.js","type":"file"}]}
6 changes: 3 additions & 3 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version 1.0.0

- Feature 1
Version 1.0.0
- Feature 1
- Feature 2
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# adc2-keyIn

![screenshot](http://i.imgur.com/CmOP9mq.png)
# adc2-keyIn

![screenshot](http://i.imgur.com/CmOP9mq.png)
20 changes: 10 additions & 10 deletions Readme.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Describe your ADC here

Tested in:
List the browsers name and version where the ADC should work on.

Dependencies:
- Name of the 3rd party resource. Version. URL
- Name of the 3rd party resource. Version. URL

Notes:
Describe your ADC here
Tested in:
List the browsers name and version where the ADC should work on.
Dependencies:
- Name of the 3rd party resource. Version. URL
- Name of the 3rd party resource. Version. URL
Notes:
Special notes about incompatibility or warnings
Binary file modified bin/adc2-keyIn.adc
100644 → 100755
Binary file not shown.
930 changes: 510 additions & 420 deletions config.xml

Large diffs are not rendered by default.

Binary file added examples/ADC2_Key_In.qex
Binary file not shown.
Binary file added examples/adc2-keyIn.adc
Binary file not shown.
Binary file added examples/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions resources/dynamic/default.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="adc_{%= CurrentQuestion.Id %}" class="adc-default">
{% If CurrentQuestion.Type = "single" Then %}
{%:= CurrentADC.GetContent("dynamic/single.html").ToText() %}
{% ElseIf CurrentQuestion.Type = "multiple" Then %}
{%:= CurrentADC.GetContent("dynamic/multiple.html").ToText() %}
{% EndIf %}
<div id="adc_{%= CurrentQuestion.Id %}" class="adc-default">
{% If CurrentQuestion.Type = "single" Then %}
{%:= CurrentADC.GetContent("dynamic/single.html").ToText() %}
{% ElseIf CurrentQuestion.Type = "multiple" Then %}
{%:= CurrentADC.GetContent("dynamic/multiple.html").ToText() %}
{% EndIf %}
</div>
84 changes: 42 additions & 42 deletions resources/dynamic/multiple.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
{%
Dim useList = (CurrentADC.PropValue("useList") = "1") ' Convert to boolean
Dim inputName
Dim inputValue
Dim caption

Dim i
If useList Then

inputName = CurrentQuestion.InputName("list") %}
<select name="{%= inputName %}" multiple="multiple">
{%
Dim attrSelected
For i = 1 To CurrentQuestion.AvailableResponses.Count
attrSelected = On(CurrentQuestion.AvailableResponses[i].IsSelected, "selected=\"selected\"", "")
inputValue = CurrentQuestion.AvailableResponses[i].InputValue()
caption = CurrentQuestion.AvailableResponses[i].Caption
%}
<option value="{%= inputValue %}">{%:= caption %}</option>
{% Next %}
</select>
{% Else %}
<table cellpadding="5" cellspacing="0" border="0">
{%
Dim inputId
Dim attrChecked
For i = 1 To CurrentQuestion.AvailableResponses.Count
inputName = CurrentQuestion.AvailableResponses[i].InputName()
inputId = inputName.Replace(" ", "_")
inputValue = CurrentQuestion.AvailableResponses[i].InputValue()
attrChecked = On(CurrentQuestion.AvailableResponses[i].IsSelected, "checked=\"checked\"", "")
caption = CurrentQuestion.AvailableResponses[i].Caption
%}
<tr>
<td>
<input type="checkbox" name="{%= inputName %}" id="{%= inputId %}" {%:= attrChecked %} />
</td><td>
<label for="{%= inputId %}">{%:= caption %}</label><br />
</td>
</tr>
{% Next %}
</table>
{%
Dim useList = (CurrentADC.PropValue("useList") = "1") ' Convert to boolean
Dim inputName
Dim inputValue
Dim caption

Dim i
If useList Then

inputName = CurrentQuestion.InputName("list") %}
<select name="{%= inputName %}" multiple="multiple">
{%
Dim attrSelected
For i = 1 To CurrentQuestion.AvailableResponses.Count
attrSelected = On(CurrentQuestion.AvailableResponses[i].IsSelected, "selected=\"selected\"", "")
inputValue = CurrentQuestion.AvailableResponses[i].InputValue()
caption = CurrentQuestion.AvailableResponses[i].Caption
%}
<option value="{%= inputValue %}">{%:= caption %}</option>
{% Next %}
</select>
{% Else %}
<table cellpadding="5" cellspacing="0" border="0">
{%
Dim inputId
Dim attrChecked
For i = 1 To CurrentQuestion.AvailableResponses.Count
inputName = CurrentQuestion.AvailableResponses[i].InputName()
inputId = inputName.Replace(" ", "_")
inputValue = CurrentQuestion.AvailableResponses[i].InputValue()
attrChecked = On(CurrentQuestion.AvailableResponses[i].IsSelected, "checked=\"checked\"", "")
caption = CurrentQuestion.AvailableResponses[i].Caption
%}
<tr>
<td>
<input type="checkbox" name="{%= inputName %}" id="{%= inputId %}" {%:= attrChecked %} />
</td><td>
<label for="{%= inputId %}">{%:= caption %}</label><br />
</td>
</tr>
{% Next %}
</table>
{% EndIf %}
98 changes: 49 additions & 49 deletions resources/dynamic/single.html
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{%
Dim useList = (CurrentADC.PropValue("useList") = "1") ' Convert to boolean
Dim inputName = CurrentQuestion.InputName()
Dim inputValue
Dim caption
Dim resource

Dim i

If useList Then %}
<select name="{%= inputName %}">
<option value=""></option>
{%
Dim attrSelected
For i = 1 To CurrentQuestion.AvailableResponses.Count
attrSelected = On(CurrentQuestion.AvailableResponses[i].IsSelected, "selected=\"selected\"", "")
inputValue = CurrentQuestion.AvailableResponses[i].InputValue()
caption = CurrentQuestion.AvailableResponses[i].Caption
%}
<option value="{%= inputValue %}" {%:= attrSelected %}>{%:= caption %}</option>
{% Next %}
</select>
{% Else %}

<table cellpadding="5" cellspacing="0" border="0">
{%
Dim inputId
Dim attrChecked
For i = 1 To CurrentQuestion.AvailableResponses.Count
inputId = inputName + "_" + i
attrChecked = On(CurrentQuestion.AvailableResponses[i].IsSelected, "checked=\"checked\"", "")
inputValue = CurrentQuestion.AvailableResponses[i].InputValue()
caption = CurrentQuestion.AvailableResponses[i].Caption
resource = CurrentQuestion.AvailableResponses.ResourceURL[i]
%}
<tr>
<td>
<input type="radio" name="{%= inputName %}" id="{%= inputId %}" value="{%= inputValue %}" {%:= attrChecked %} />
</td><td>
<label for="{%= inputId %}">
{% IF (resource <> "") Then %}
<img src="{%= resource %}" style="vertical-align:middle" />
{% EndIf %}
{%:= caption %}</label>
</td>
</tr>
{% Next %}
</table>
{% EndIf %}
{%
Dim useList = (CurrentADC.PropValue("useList") = "1") ' Convert to boolean
Dim inputName = CurrentQuestion.InputName()
Dim inputValue
Dim caption
Dim resource

Dim i

If useList Then %}
<select name="{%= inputName %}">
<option value=""></option>
{%
Dim attrSelected
For i = 1 To CurrentQuestion.AvailableResponses.Count
attrSelected = On(CurrentQuestion.AvailableResponses[i].IsSelected, "selected=\"selected\"", "")
inputValue = CurrentQuestion.AvailableResponses[i].InputValue()
caption = CurrentQuestion.AvailableResponses[i].Caption
%}
<option value="{%= inputValue %}" {%:= attrSelected %}>{%:= caption %}</option>
{% Next %}
</select>
{% Else %}

<table cellpadding="5" cellspacing="0" border="0">
{%
Dim inputId
Dim attrChecked
For i = 1 To CurrentQuestion.AvailableResponses.Count
inputId = inputName + "_" + i
attrChecked = On(CurrentQuestion.AvailableResponses[i].IsSelected, "checked=\"checked\"", "")
inputValue = CurrentQuestion.AvailableResponses[i].InputValue()
caption = CurrentQuestion.AvailableResponses[i].Caption
resource = CurrentQuestion.AvailableResponses.ResourceURL[i]
%}
<tr>
<td>
<input type="radio" name="{%= inputName %}" id="{%= inputId %}" value="{%= inputValue %}" {%:= attrChecked %} />
</td><td>
<label for="{%= inputId %}">
{% IF (resource <> "") Then %}
<img src="{%= resource %}" style="vertical-align:middle" />
{% EndIf %}
{%:= caption %}</label>
</td>
</tr>
{% Next %}
</table>
{% EndIf %}
Loading

0 comments on commit 3e874ba

Please sign in to comment.