BB tag more with images
This commit is contained in:
parent
5012d8f123
commit
f71587fa3a
4 changed files with 53 additions and 18 deletions
|
@ -1,16 +1,40 @@
|
||||||
|
.progress-bar {
|
||||||
|
height: 18px;
|
||||||
|
background: green;
|
||||||
|
}
|
||||||
|
|
||||||
.foto-block {
|
.foto-block {
|
||||||
/* border: 1px solid black; */
|
/* border: 1px solid black; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.foto-block .image {
|
.foto-block .image {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.foto-block .foto-notes {
|
.foto-block .foto-notes {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-img {
|
.copy-img {
|
||||||
content:url(/img/copy_icon.png);
|
content: url(/img/copy_icon.png);
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-bb-more {
|
||||||
|
content: url(/img/more_icon.ico);
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
overflow: hidden;
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-scale {
|
||||||
|
float: left;
|
||||||
|
padding-right: 5px;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
BIN
public/img/more_icon.ico
Normal file
BIN
public/img/more_icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 164 KiB |
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="progress">
|
<div id="progress">
|
||||||
<div class="bar" style="width: 0%;"></div>
|
<div class="progress-bar" style="width: 0%;"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="lastUploadLog"></div>
|
<div id="lastUploadLog"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,15 +39,33 @@
|
||||||
<div class="foto-block row" v-for="image in imagesList">
|
<div class="foto-block row" v-for="image in imagesList">
|
||||||
<div class="image col-md-3">
|
<div class="image col-md-3">
|
||||||
<img v-bind:src="image.thumbnail_url">
|
<img v-bind:src="image.thumbnail_url">
|
||||||
<div class="image_title">{{ image.filename }}</div>
|
<div class="image_title">
|
||||||
|
{{ image.filename }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="foto-notes col-md-3">
|
<div class="foto-notes col-md-3">
|
||||||
<ul>
|
<div class="image-scale image-original">
|
||||||
<li><a v-bind:href="image.original_url">Original</a> <div @click="copyText" class="copy-img">{{ hostname+image.original_url }}</div></li>
|
<div class="image-scale-url">
|
||||||
<li v-for="scale in image.scales">
|
<a v-bind:href="image.original_url">Original</a>
|
||||||
<a v-bind:href="scale.url">{{ scale.size }}</a> <div @click="copyText" class="copy-img">{{ hostname+scale.url }}</div>
|
</div>
|
||||||
</li>
|
<div @click="copyText" class="copy-img">
|
||||||
</ul>
|
<img src={{ hostname+image.original_url }}>
|
||||||
|
</div>
|
||||||
|
<div @click="copyText" class="copy-bb-more">
|
||||||
|
[MORE=<img src={{ hostname+image.thumbnail_url }}>]<img src={{ hostname+image.original_url }}>[/MORE]
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="image-scale" v-for="scale in image.scales">
|
||||||
|
<div class="image-scale-url">
|
||||||
|
<a v-bind:href="scale.url">{{ scale.size }}</a>
|
||||||
|
</div>
|
||||||
|
<div @click="copyText" class="copy-img">
|
||||||
|
<img src={{ hostname+scale.url }}>
|
||||||
|
</div>
|
||||||
|
<div @click="copyText" class="copy-bb-more">
|
||||||
|
[MORE=<img src={{ hostname+image.thumbnail_url }}>]<img src={{ hostname+scale.url }}>[/MORE]
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -83,7 +101,7 @@
|
||||||
//TODO: rewrite it to vue/JS from jquery
|
//TODO: rewrite it to vue/JS from jquery
|
||||||
var $temp = $("<input>");
|
var $temp = $("<input>");
|
||||||
$("body").append($temp);
|
$("body").append($temp);
|
||||||
$temp.val("<img src="+$(event.target).text()+">").select();
|
$temp.val($(event.target).text()).select();
|
||||||
document.execCommand("copy");
|
document.execCommand("copy");
|
||||||
$temp.remove();
|
$temp.remove();
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,13 +15,6 @@
|
||||||
<link rel="stylesheet" href="/css/main.css">
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
|
||||||
<script src="https://vuejs.org/js/vue.min.js"></script>
|
<script src="https://vuejs.org/js/vue.min.js"></script>
|
||||||
|
|
||||||
<style>
|
|
||||||
.bar {
|
|
||||||
height: 18px;
|
|
||||||
background: green;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||||
|
|
Loading…
Reference in a new issue