Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
saralsharma authored Nov 4, 2019
1 parent 9a7393d commit 3e45a69
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 9 deletions.
8 changes: 4 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
"type": "git",
"url": "git://github.com/saralsharma/adapt-img-text-reveal.git"
},
"framework": ">=3.3",
"framework": ">=2.1.0",
"homepage": "https://github.com/saralsharma/adapt-img-text-reveal",
"version": "1.0.0",
"version": "1.0.3",
"authors": [
"Saral Sharma <[email protected]>"
],
"displayName": "Image text reveal",
"component": "imageTextReveal",
"description": "A component which reveals/drops down text if clicked on image.",
"description": "This component reveals the text information when user clicks on the graphic. The text information slides down under the graphic. Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively. If any other string is supplied, or if the duration parameter is omitted, the default duration of 400 milliseconds is used.",
"main": "/js/adapt-img-text-reveal.js",
"keywords": [
"adapt-plugin",
"adapt-component"
],
"license": "GPLv3"
}
}
6 changes: 3 additions & 3 deletions example.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"alt": "alt text",
"large": "https://github.com/adaptlearning/documentation/raw/master/04_wiki_assets/adapt_framework/adapt-logo_208x200.gif",
"small": "https://github.com/adaptlearning/documentation/raw/master/04_wiki_assets/adapt_framework/adapt-logo_208x200.gif",
"attribution":"Copyright © 2015"
"attribution":""
},
"textToReveal":"This component reveals the text information when user clicks on the graphic. The text information slides down under the graphic. Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively. If any other string is supplied, or if the duration parameter is omitted, the default duration of 400 milliseconds is used.",
"duration":"fast"
"textToReveal":"<p>This component reveals the text information when user clicks on the graphic. The text information slides down under the graphic.</p><p>Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively. If any other string is supplied, or if the duration parameter is omitted, the default duration of 400 milliseconds is used.</p>",
"duration":"slow"
}
87 changes: 85 additions & 2 deletions properties.schema
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,96 @@
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/component/model.schema",
"globals": {
"ariaRegion": {
"type": "string",
"required": true,
"default": "",
"inputType": "Text",
"validators": [],
"translatable": true
}
},
"properties":{
"_supportedLayout": {
"type": "string",
"required": true,
"enum": ["full-width", "half-width", "both"],
"default": "both",
"editorOnly": true
}
}
},
"instruction": {
"type": "string",
"required": false,
"default": "",
"inputType": "Text",
"validators": [],
"help": "Enter the instruction text for this component.",
"translatable": true
},
"_graphic": {
"type": "object",
"title": "Image",
"properties":{
"large": {
"type": "string",
"required": true,
"default": "",
"title": "Select large image",
"inputType": "Asset:image",
"validators": ["required"],
"help": "Learner will click this image to reveal the text."
},
"small": {
"type": "string",
"required": false,
"default": "",
"title": "Select small image",
"inputType": "Asset:image",
"validators": ["required"],
"help": "This image will be shown on mobile devices if supplied. Learner will click this image to reveal the text."
},
"alt": {
"type": "string",
"required": false,
"default": "",
"title": "Alternative Text",
"inputType": "Text",
"validators": [],
"help": "Alternative text for this items image",
"translatable": true
},
"attribution": {
"type": "string",
"required": false,
"default": "",
"inputType": "Text",
"validators": [],
"help": "Text to be displayed as an attribution",
"translatable": true
}
}
},
"textToReveal": {
"type": "string",
"required": true,
"default": "Enter your text here.",
"title": "Text to reveal",
"inputType": "TextArea",
"validators": [],
"help": "Enter text here which will slide down under the image, once the image is clicked.",
"translatable": true
},
"duration": {
"type": "string",
"required": false,
"default": "",
"title": "Duration of slide down animation.",
"inputType": "Text",
"validators": [],
"help": "Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively. If any other string is supplied, or if the duration parameter is omitted, the default duration of 400 milliseconds is used.",
"translatable": true
}

}
}

0 comments on commit 3e45a69

Please sign in to comment.