Skip to content

Commit

Permalink
show values on input
Browse files Browse the repository at this point in the history
Signed-off-by: Crisciany <[email protected]>
  • Loading branch information
Any97Cris committed Aug 6, 2024
1 parent 1e564f4 commit fff74f2
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions source/contributing.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,24 @@

<div class="row">
@foreach($page->donateValues as $option)
@foreach($option['value'] as $item)
@foreach($option['value'] as $item => $value)

<div class="col-12 col-sm-6 col-lg-4 mb-2" >
<a class="ud-main-btn" style=" padding: 20px ;width:100" >{{ $item }}</a>
<a class="ud-main-btn" style=" padding: 20px ;width:100" id="donateValue{{$item}}" onclick="getValue({{ $value }})">{{ $value }}</a>
</div>

@endforeach
@endforeach
</div>

<div class="input-group mb-5 mt-5">
<input type="text" class="form-control" aria-label="Text input with dropdown button">
<input type="text" class="form-control" aria-label="Text input with dropdown button" id="showValue">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">{{ current_path_locale($page) }}</button>

<ul class="dropdown-menu dropdown-menu-end">
@foreach($page->donateCoin as $iten)
@foreach($iten as $coin)
<li><a class="dropdown-item" href="#">{{$coin}}</a></li>
<li><a class="dropdown-item">{{$coin}}</a></li>
@endforeach
@endforeach
</ul>
Expand Down Expand Up @@ -142,4 +142,12 @@
</div>
</div>
</div>
</section>
</section>

<script>
function getValue(showValue){
document.getElementById("showValue").value = showValue
}
</script>

0 comments on commit fff74f2

Please sign in to comment.