Skip to content

Commit

Permalink
MONOの構造にあわせてluminousのインスタンスを分離。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 22, 2023
1 parent 633839f commit 6e8dd08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions potiboard5/templates/mono/js/mono_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
new Luminous(elem);
}
}
//画像のファイル名へのリンクの時
const luminousElems_Filename = document.querySelectorAll('.luminous_Filename');
if( luminousElems_Filename.length > 0 ){
for(const elem of luminousElems_Filename) {
new Luminous(elem);
}
}

//JavaScriptによるCookie発行
const paintform = document.getElementById("paint_form");
Expand Down
2 changes: 1 addition & 1 deletion potiboard5/templates/mono/mono_main.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class="trip">{{$res['trip']}}</span> : {{$res['now']}}@if($res['id']) ID :
{{-- 親子共通 --}}
@if($res['src'])
<div class="img_info_wrap">
<a href="{{$res['src']}}" title="{{$res['sub']}}" target="_blank" rel="noopener" class="luminous">{{$res['srcname']}}</a>
<a href="{{$res['src']}}" title="{{$res['sub']}}" target="_blank" rel="noopener" class="luminous_Filename">{{$res['srcname']}}</a>
({{$res['size_kb']}} KB)
@if($res['thumb']) - サムネイル表示中 - @endif @if($res['painttime']) PaintTime :
{{$res['painttime']}}@endif
Expand Down

0 comments on commit 6e8dd08

Please sign in to comment.