Skip to content

Commit 0f30e09

Browse files
authored
Merge pull request #161 from easycoder/dev
Replace colon with pipe
2 parents 1af088b + 53ce63e commit 0f30e09

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

iwsy/iwsy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -749,10 +749,10 @@ const IWSY = (playerElement, scriptObject) => {
749749
}
750750
if (group.slice(0, 4) === `img:`) {
751751
const data = group.slice(4);
752-
const colon = data.indexOf(`:`);
753-
if (colon > 0) {
754-
const src = data.slice(0, colon);
755-
const classes = data.slice(colon + 1).split(` `);
752+
const pipe = data.indexOf(`|`);
753+
if (copipelon > 0) {
754+
const src = data.slice(0, pipe);
755+
const classes = data.slice(pipe + 1).split(` `);
756756
const styles = [];
757757
for (const item of classes) {
758758
setImageStyles(item, styles);

iwsy/resources/scripts/liguria.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,15 +359,15 @@
359359
"content": [
360360
{
361361
"name": "Manarola",
362-
"content": "## Provincia di La Spezia - Manarola%0a~img:https://easycoder.github.io/iwsy/resources/help/quickstart/cinqueterre.jpg:left 50%~Romantic Manarola – a hamlet of Riomaggiore – spills down a ravine to the wild and rugged Cinque Terre coastline. Besides its natural beauty, the village is also famous for its sweet Sciacchetrà wine, celebrated by Gabriele D'Annunzio in one of his amazing poems. Manarola has brightly painted houses, priceless medieval relics and a tiny harbour that features a boat ramp and a swimming hole; to the north, on the way to Corniglia, there's a stunning viewpoint (Punta Bonfiglio) where visitors can enjoy a drink in a bar between the village’s cemetery and the sea. Everywhere is the scent of the lemon trees, thyme, rosemary and Mediterranean maquis; the grapevines – grown on terraces – embrace the village in a tight hug."
362+
"content": "## Provincia di La Spezia - Manarola%0a~img:https://easycoder.github.io/iwsy/resources/help/quickstart/cinqueterre.jpg|left 50%~Romantic Manarola – a hamlet of Riomaggiore – spills down a ravine to the wild and rugged Cinque Terre coastline. Besides its natural beauty, the village is also famous for its sweet Sciacchetrà wine, celebrated by Gabriele D'Annunzio in one of his amazing poems. Manarola has brightly painted houses, priceless medieval relics and a tiny harbour that features a boat ramp and a swimming hole; to the north, on the way to Corniglia, there's a stunning viewpoint (Punta Bonfiglio) where visitors can enjoy a drink in a bar between the village’s cemetery and the sea. Everywhere is the scent of the lemon trees, thyme, rosemary and Mediterranean maquis; the grapevines – grown on terraces – embrace the village in a tight hug."
363363
},
364364
{
365365
"name": "Apricale",
366-
"content": "## Provincia di Imperia - Apricale%0a~img:https://easycoder.github.io/iwsy/resources/help/quickstart/imperia.jpg:left 50%~Apricale is a picturesque small village to the north-east of Dolceacqua in western Liguria and surrounded by forested hills, included on the list of the 'most beautiful villages in Italy'.%0a%0aJust one of several attractive hill villages in this region, Apricale is compact and easy to explore. Most of the sights of interest are on or very close to the square in the centre of the village, although of course you will also want to follow the main street along the ridge to enjoy more views and to appreciate the medieval character of Apricale.%0a%0a%0a"
366+
"content": "## Provincia di Imperia - Apricale%0a~img:https://easycoder.github.io/iwsy/resources/help/quickstart/imperia.jpg|left 50%~Apricale is a picturesque small village to the north-east of Dolceacqua in western Liguria and surrounded by forested hills, included on the list of the 'most beautiful villages in Italy'.%0a%0aJust one of several attractive hill villages in this region, Apricale is compact and easy to explore. Most of the sights of interest are on or very close to the square in the centre of the village, although of course you will also want to follow the main street along the ridge to enjoy more views and to appreciate the medieval character of Apricale.%0a%0a%0a"
367367
},
368368
{
369369
"name": "Noli",
370-
"content": "## Provincia di Savona - Noli%0a~img:https://easycoder.github.io/iwsy/resources/help/quickstart/savona.jpg:left 50%~The seaside village of Noli lies a few km west of Savona, in the central part of Liguria. Although popular with Italians it's scarcely known to anyone else outside of the area. It's a beautiful quiet and relatively unspoiled gem, with a good beach and right behind it the old town with pedestrian-only streets and a sprinkling of shops and restaurants, all preserving the ancient architecture and topped by a small castle. Although it lies on the main "Via Aurelia" coast road, all the through traffic now goes on the Autostrada, leaving Noli free from noisy vehicles. The coast road is also spectacular and it's well worth forsaking the motorway to explore the coastline between Savona and the busy resorts of Finale Ligure and Loano."
370+
"content": "## Provincia di Savona - Noli%0a~img:https://easycoder.github.io/iwsy/resources/help/quickstart/savona.jpg|left 50%~The seaside village of Noli lies a few km west of Savona, in the central part of Liguria. Although popular with Italians it's scarcely known to anyone else outside of the area. It's a beautiful quiet and relatively unspoiled gem, with a good beach and right behind it the old town with pedestrian-only streets and a sprinkling of shops and restaurants, all preserving the ancient architecture and topped by a small castle. Although it lies on the main "Via Aurelia" coast road, all the through traffic now goes on the Autostrada, leaving Noli free from noisy vehicles. The coast road is also spectacular and it's well worth forsaking the motorway to explore the coastline between Savona and the busy resorts of Finale Ligure and Loano."
371371
},
372372
{
373373
"name": "and so on",

0 commit comments

Comments
 (0)