-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Converted tabs to spaces, indentation amends * Naming refactor, less refactor * Typo fix, added comment, icon definition amend, removed redundant clearfix * Button class update * Variable name amend * Strapline focus fix * Removed redundant classes * Attribution support * Bower, schema, example and readme updates * Removed unnecessary float, EM to REM conversion * Updated license and cross platform coverage
- Loading branch information
Showing
9 changed files
with
668 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"name": "adapt-contrib-narrative", | ||
"version": "5.0.2", | ||
"framework": ">=4", | ||
"version": "6.0.0", | ||
"framework": ">=5", | ||
"homepage": "https://github.com/adaptlearning/adapt-contrib-narrative", | ||
"issues": "https://github.com/adaptlearning/adapt_framework/issues/new", | ||
"displayName" : "Narrative", | ||
"component" : "narrative", | ||
"displayName" : "Narrative", | ||
"description": "A component that displays an image gallery with accompanying text", | ||
"main": "/js/adapt-contrib-narrative.js", | ||
"keywords": [ | ||
"adapt-plugin", | ||
"adapt-component" | ||
], | ||
"license": "GPLv3" | ||
"license": "GPL-3.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,51 @@ | ||
{ | ||
"_id": "c-35", | ||
"_parentId": "b-15", | ||
{ | ||
"_id": "c-05", | ||
"_parentId": "b-05", | ||
"_type": "component", | ||
"_component": "narrative", | ||
"_classes": "", | ||
"_type":"component", | ||
"_layout": "full", | ||
"_component": "narrative", | ||
"title": "Narrative", | ||
"displayTitle": "Narrative", | ||
"body": "This is optional body text. Select the forward arrows to move through the narrative on a desktop, or swipe the images and select the plus icons to do so on mobile.", | ||
"instruction": "", | ||
"_hasNavigationInTextArea": false, | ||
"body": "This is optional body text.", | ||
"instruction": "Select the forward arrows to move through the narrative on a desktop, or swipe the images and select the plus icons to do so on mobile.", | ||
"mobileInstruction": "This is optional instruction text that will be shown when viewed on mobile.", | ||
"_hasNavigationInTextArea": false, | ||
"_comment": "setCompletionOn = inview | allItems", | ||
"_setCompletionOn":"allItems", | ||
"_setCompletionOn": "allItems", | ||
"_items": [ | ||
{ | ||
"title": "Narrative stage 1 title", | ||
"title": "Narrative item 1 title", | ||
"body": "This is display text 1. If viewing on desktop or tablet, this text will appear to the right of the image. On mobile, you’ll need to select the plus icon to reveal this text.", | ||
"_graphic": { | ||
"src": "course/en/images/image-slider-1.jpg", | ||
"alt": "First graphic", | ||
"attribution":"Copyright © 2015" | ||
"alt": "Placeholder graphic", | ||
"attribution": "Copyright © 2019" | ||
}, | ||
"strapline": "Here is the first..." | ||
"strapline": "Narrative item 1 strapline" | ||
}, | ||
{ | ||
"title": "Narrative stage 2 title", | ||
"title": "Narrative item 2 title", | ||
"body": "This is display text 2.", | ||
"_graphic": { | ||
"src": "course/en/images/image-slider-2.jpg", | ||
"alt": "Second graphic", | ||
"attribution":"Copyright © 2015" | ||
"alt": "", | ||
"attribution": "" | ||
}, | ||
"strapline": "Now comes the second..." | ||
"strapline": "Narrative item 2 strapline" | ||
}, | ||
{ | ||
"title": "Narrative stage 3 title", | ||
"title": "Narrative item 3 title", | ||
"body": "This is display text 3.", | ||
"_graphic": { | ||
"src": "course/en/images/image-slider-3.jpg", | ||
"alt": "Third graphic", | ||
"attribution":"Copyright © 2015" | ||
"alt": "", | ||
"attribution": "" | ||
}, | ||
"strapline": "Third here!" | ||
"strapline": "Narrative item 3 strapline" | ||
} | ||
] | ||
], | ||
"_pageLevelProgress": { | ||
"_isEnabled": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
define([ | ||
'core/js/adapt', | ||
'./narrativeView', | ||
'core/js/models/itemsComponentModel' | ||
'core/js/adapt', | ||
'./narrativeView', | ||
'core/js/models/itemsComponentModel' | ||
], function(Adapt, NarrativeView, ItemsComponentModel) { | ||
|
||
return Adapt.register('narrative', { | ||
model: ItemsComponentModel, | ||
view: NarrativeView | ||
}); | ||
return Adapt.register('narrative', { | ||
model: ItemsComponentModel, | ||
view: NarrativeView | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
define(function() { | ||
|
||
return new ENUM([ | ||
'SMALL', | ||
'LARGE' | ||
]); | ||
return new ENUM([ | ||
'SMALL', | ||
'LARGE' | ||
]); | ||
|
||
}); |
Oops, something went wrong.