Skip to content

Instantly share code, notes, and snippets.

@Kevinlearynet
Last active May 11, 2016 17:55
Show Gist options
  • Save Kevinlearynet/5800ce2f02506abf6e9ae78d28225255 to your computer and use it in GitHub Desktop.
Save Kevinlearynet/5800ce2f02506abf6e9ae78d28225255 to your computer and use it in GitHub Desktop.
Maginfic config throws errors with .split( "_" ) method in _parseMarkup()
{
"items": [
{
"src": "#golden-union-fish-bar-1",
"type": "inline"
},
{
"src": "#trident-fish-chips-2",
"type": "inline"
},
{
"src": "#title-1-3",
"type": "inline"
},
{
"src": "#title-2-4",
"type": "inline"
},
{
"src": "https://www.facebook.com/TripAdvisor/videos/10154132584426684/",
"type": "iframe"
},
{
"src": "https://www.youtube.com/watch?v=n2Z89risBh8",
"type": "iframe"
}
],
"showCloseBtn": false,
"delegate": "[data-gallery=\"item\"]",
"type": "inline",
"gallery": {
"enabled": true,
"arrowMarkup": "<button title=\"%title%\" type=\"button\" class=\"mfp-arrow mfp-arrow-%dir%\"></button>",
"tPrev": "Previous",
"tNext": "Next"
},
"iframe": {
"patterns": {
"facebook": {
"index": "facebook.com",
"src": "https://www.facebook.com/video/embed?video_id=%id%"
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment