|
|
@@ -1,14 +1,17 @@
|
|
|
function onReady() {
|
|
|
- $(`p>img`)
|
|
|
+ var imgs = $(`p>img`)
|
|
|
+ imgs
|
|
|
.after(appendExpandButton)
|
|
|
.next()
|
|
|
.on('click', onExpandButton);
|
|
|
|
|
|
+ imgs.parent().addClass(`img-container`);
|
|
|
+
|
|
|
$(`#expand-img button`).on(`click`, onHideImgExpand);
|
|
|
}
|
|
|
|
|
|
function appendExpandButton(img) {
|
|
|
- return `<btn class='btn btn-primary' data-img="${this.src}">+<btn>`
|
|
|
+ return `<button class='btn btn-primary btn-lg' data-img="${this.src}">+</button>`
|
|
|
}
|
|
|
|
|
|
function onExpandButton(e) {
|